/* The original BigCommerce theme JS opens an "item added" confirmation modal
   after a successful add-to-cart, backed by a full-page .modal-background
   overlay. On a static export that flow never completes (no backend to
   confirm against), so the overlay gets stuck open and blocks every click
   on the page afterward. Neutralize it entirely -- we don't rely on any of
   BigCommerce's own modals here.

   The theme also has a generic #alert-modal it pops up to surface its own
   JS errors (e.g. a failed cart-sync fetch against a backend that doesn't
   exist here) -- shows a raw "TypeError: ..." dialog with an OK button
   right over the page. Hide that too; our own cart.js reports its own
   state through the cart panel, not this. */
.modal-background,
#alert-modal,
.modal--alert {
  display: none !important;
  pointer-events: none !important;
}

/* Cart page (/cart/) -- the header cart icon is a plain link here, no
   dropdown. A small anchored panel doesn't work well on mobile, so the cart
   always opens as its own full page instead. */
.txcc-cart-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 0;
}

.txcc-cart-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: #666;
  font-size: 1rem;
}

.txcc-cart-empty a {
  color: #222;
  font-weight: 600;
}

.txcc-cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.txcc-cart-row {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.625rem;
}

.txcc-cart-row-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
}

.txcc-cart-row-body {
  flex: 1 1 auto;
  min-width: 0;
}

.txcc-cart-row-name {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.txcc-cart-row-variant {
  font-size: 0.75rem;
  color: #777;
  margin-top: 0.125rem;
}

.txcc-cart-row-controls {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.375rem;
}

.txcc-qty-btn {
  width: 22px;
  height: 22px;
  line-height: 20px;
  padding: 0;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.875rem;
}

.txcc-qty-value {
  min-width: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
}

.txcc-remove-btn {
  margin-left: auto;
  border: none;
  background: none;
  color: #e74c3c;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.txcc-cart-row-price {
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.txcc-cart-total {
  text-align: right;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-top: 1px solid #ddd;
}

.txcc-payment-methods {
  margin-top: 0.5rem;
}

.txcc-payment-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #666;
  margin-bottom: 0.375rem;
}

.txcc-payment-buttons {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.txcc-payment-btn {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 0.5rem;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
}

.txcc-payment-btn-logo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
}

.txcc-payment-btn--active {
  border-color: #222;
  background: #222;
  color: #fff;
}

.txcc-payment-btn--bitcoin.txcc-payment-btn--active { background: #f7931a; border-color: #f7931a; }
.txcc-payment-btn--cashapp.txcc-payment-btn--active { background: #00d632; border-color: #00d632; }
.txcc-payment-btn--chime.txcc-payment-btn--active { background: #1ee0ac; border-color: #1ee0ac; color: #063; }
.txcc-payment-btn--usdt.txcc-payment-btn--active { background: #26a17b; border-color: #26a17b; }

.txcc-order-now-btn {
  display: block;
  width: 100%;
  margin-top: 0.625rem;
}

.txcc-payment-paid-note {
  margin-top: 0.625rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #ccc;
  font-size: 0.75rem;
  color: #444;
}

.txcc-payment-detail {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #444;
  line-height: 1.4;
}

.txcc-payment-address-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.25rem;
}

.txcc-payment-address {
  font-family: monospace;
  font-weight: 700;
  word-break: break-all;
  flex: 1 1 auto;
}

.txcc-copy-btn {
  flex: 0 0 auto;
  padding: 0.3rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
}

.txcc-copy-btn--done {
  background: #1ee0ac;
  border-color: #1ee0ac;
  color: #063;
}

.txcc-min-order-notice {
  padding: 0.625rem;
  background: #fff4e5;
  border: 1px solid #f7931a;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #7a4b00;
  line-height: 1.4;
}

.txcc-payment-email-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  background: #222;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.75rem;
}

.txcc-payment-email-link:hover {
  background: #444;
}

.txcc-proof-note {
  margin-top: 0.625rem;
  padding: 0.625rem;
  background: #eef7ff;
  border: 1px solid #b8dcff;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #1a4d80;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.txcc-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0b5fad;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.txcc-info-btn:hover {
  background: #084a87;
}

.txcc-info-btn--disabled {
  background: #a8b8c7;
  cursor: not-allowed;
}

/* Footer payment badges (Bitcoin / Cash App / Chime) replacing card-network icons */
.footer-payment-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Same look as the cart page's payment method buttons (.txcc-payment-btn):
   white background, bordered box, real logo + label -- no solid brand-color
   fill, just a plain neutral badge matching the rest of the site. */
.footer-payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  height: 2.1875rem;
  min-width: 2.75rem;
  padding: 0 0.625rem;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
}

.footer-payment-badge-logo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
}

/* Admin-added product detail page (/p/?id=...) */
.txcc-product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.txcc-product-detail-img {
  width: 100%;
  max-width: 320px;
  border-radius: 8px;
  object-fit: cover;
  flex: 1 1 280px;
}

.txcc-product-detail-body {
  flex: 1 1 320px;
  min-width: 240px;
}

.txcc-product-detail-price {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}

.txcc-product-detail-desc {
  color: #555;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.txcc-product-detail-qty {
  margin-bottom: 1rem;
}

.txcc-product-detail-qty label {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 0.375rem;
}

.txcc-product-detail-qty input {
  width: 100px;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.txcc-min-order-note {
  padding: 0.625rem;
  margin-bottom: 1rem;
  background: #fff4e5;
  border: 1px solid #f7931a;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #7a4b00;
  line-height: 1.4;
}


/* "Added to cart" toast (shown after Add to Cart, since there's no dropdown
   to pop open and confirm it anymore -- the cart icon just links to /cart/) */
.txcc-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 12px);
  background: #222;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
  max-width: 90vw;
  text-align: center;
}

.txcc-toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
