/* Source bTOuG dimensions; local close/confirmation and unavailable checkout. */
.tool-cart-modal {
  width: 360px;
  min-width: 300px;
  max-width: 500px;
  min-height: 300px;
  padding-left: 10px;
  padding-right: 10px;
}
.tool-cart-modal > [data-tool-cart-instance],
.tool-cart-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tool-cart-modal h2 {
  margin: 0;
}
.tool-cart-modal p {
  margin: 0;
}
.tool-cart-modal label,
.tool-cart-modal textarea {
  display: block;
  width: 100%;
}
.tool-cart-modal textarea {
  min-width: 250px;
  min-height: 80px;
  padding: 5px;
  resize: vertical;
  box-sizing: border-box;
}
.tool-cart-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--border, #ddd);
  padding-bottom: 10px;
}
.tool-cart-images {
  flex: 1 0 200px;
  min-width: 200px;
  display: flex;
  gap: 5px;
  overflow: auto;
}
.tool-cart-placeholder {
  min-width: 90px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #555;
  font-size: 12px;
}
.tool-cart-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tool-cart-quantity input {
  width: 50px;
  min-width: 30px;
  height: 28px;
  text-align: center;
}
.tool-cart-quantity .icon {
  width: 30px;
  height: 30px;
}
.icon.tool-cart-entry {
  color: #cd260e;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  position: relative;
  min-width: 43px;
  min-height: 43px;
}
.tool-cart-bubble {
  font-weight: bold;
  border-radius: 5px;
  margin-right: -10px;
  color: #ef2f15;
}
.tool-cart-confirm {
  padding: 8px;
  border: 1px solid #b33;
}
.tool-cart-row-status {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tool-detail-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 5px;
  min-width: 60px;
}

.icon.tool-cart-remove-icon {
  color: #b0200c;
  background: transparent;
}

/* Index bTRkc owns the quantity, cart and existing Messenger siblings. */
.tool-cart-floating {
  position: fixed;
  z-index: 3;
  top: 60px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 64px;
  max-width: 128px;
  height: 64px;
}
.tool-cart-floating [data-tool-cart-toolbar] {
  display: contents;
}
.tool-cart-floating .float-chat {
  position: static;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
}
@media print {
  .tool-cart-floating {
    display: none;
  }
}

/* A review is a buyer-local immutable snapshot, never checkout. */
.tool-order-panel { border-top: 1px solid var(--border, #ddd); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.tool-order-panel h3 { margin: 0; }
.tool-order-scope, .tool-cart-totals { font-size: 12px; line-height: 1.5; }
.tool-order-lines { padding-left: 22px; margin: 0; }
.tool-order-lines li { padding: 8px 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.tool-order-resume { max-width: 140px; white-space: normal; }
.transaction-bill[data-internal-order] { border-top: 1px solid var(--border, #ddd); margin-top: 12px; padding-top: 12px; }
.tool-cart-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
