/* Order checkout modal + screenshot-friendly receipt */
.tuk-checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 16, 28, 0.55);
}
.tuk-checkout-modal[hidden] { display: none !important; }
.tuk-checkout-dialog {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.35rem;
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}
.tuk-checkout-dialog h2 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.tuk-checkout-dialog label {
  display: block;
  margin: 0.85rem 0;
  font-weight: 600;
  font-size: 0.92rem;
}
.tuk-checkout-dialog input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #c9d2de;
  border-radius: 10px;
  font: inherit;
}
.tuk-checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.tuk-checkout-actions .btn { flex: 1 1 140px; text-align: center; }
.tuk-checkout-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #445;
}
.tuk-checkout-status {
  min-height: 1.2em;
  color: #a33;
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
}

#checkout-wa.btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  border: 0;
  cursor: pointer;
}
#checkout-wa.is-disabled,
#checkout-wa[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.order-receipt {
  margin-top: 1.5rem;
}
.order-receipt-recovery {
  max-width: 560px;
  padding: 1.35rem 1.4rem 1.5rem;
  background: #fff8ed;
  border: 1px solid #e6c58f;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(110, 72, 16, 0.08);
}
.order-receipt-recovery h2 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
}
.order-receipt-recovery p {
  margin: 0 0 1rem;
  color: #5a6778;
}
.order-receipt-card {
  background: #fff;
  border: 1px solid #d7dde6;
  border-radius: 18px;
  padding: 1.35rem 1.4rem 1.5rem;
  max-width: 560px;
  box-shadow: 0 8px 28px rgba(16, 28, 48, 0.08);
}
.order-receipt-card {
  max-width: 720px;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-color: #e4e7e2;
  box-shadow: 0 10px 28px rgba(16, 28, 48, 0.06);
}
.order-receipt-brand strong {
  color: #102a43;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.order-receipt-thanks {
  padding: .9rem 1rem;
  border-left: 4px solid #e8b936;
  border-radius: 8px;
  background: #fbfaf5;
  color: #405166;
}
.order-receipt-status {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin: 0 0 1.15rem;
  padding: .8rem 1rem;
  border-radius: 10px;
  background: #eef8f1;
  color: #1b6d3b;
  font-size: .86rem;
}
.order-receipt-status strong { font-size: .82rem; text-transform: uppercase; }
.order-receipt-items { display: grid; gap: .65rem; }
.order-receipt-items li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: .9rem;
  min-width: 0;
  padding: .7rem;
  border: 1px solid #e7ecf2;
  border-radius: 12px;
  background: #fff;
}
.order-receipt-items li img {
  width: 82px;
  height: 96px;
  border-radius: 8px;
  object-fit: contain;
  background: #f1efe8;
}
.order-receipt-item-copy {
  display: grid;
  min-width: 0;
  gap: .25rem;
}
.order-receipt-item-copy strong {
  color: #102a43;
  overflow-wrap: anywhere;
}
.order-receipt-item-copy span {
  color: #5a6778;
  font-size: .82rem;
  line-height: 1.35;
}
.order-receipt-item-price {
  align-self: start;
  color: #102a43;
  font-size: .85rem;
  white-space: nowrap;
}
.order-receipt-summary {
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
  padding-top: .95rem;
  border-top: 1px solid #dfe5ea;
}
.order-receipt-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #5a6778;
  font-size: .88rem;
}
.order-receipt-summary .receipt-total {
  margin-top: .25rem;
  padding-top: .7rem;
  border-top: 2px solid #102a43;
  color: #102a43;
  font-size: 1rem;
  font-weight: 800;
}
.order-receipt-action-status {
  min-height: 1.2em;
  margin: .7rem 0 0;
  color: #1b6d3b;
  font-size: .82rem;
  text-align: center;
}
.order-receipt-brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.85rem;
}
.order-receipt-brand img {
  border-radius: 12px;
  object-fit: cover;
}
.order-receipt-brand p {
  margin: 0.15rem 0 0;
  color: #5a6778;
  font-size: 0.95rem;
}
.order-receipt-thanks {
  margin: 0 0 1rem;
  font-weight: 600;
}
.order-receipt-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
}
.order-receipt-meta div {
  background: #f5f7fb;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
}
.order-receipt-meta dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6a7688;
}
.order-receipt-meta dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
  word-break: break-word;
}
.order-receipt-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}
.order-receipt-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.order-receipt-items li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0;
  border-top: 1px solid #e7ecf2;
}
.order-receipt-items li span {
  color: #5a6778;
  font-size: 0.92rem;
}
.order-receipt-note {
  margin: 0.85rem 0 1rem;
  color: #5a6778;
  font-size: 0.92rem;
}
.order-receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.order-receipt-actions .btn {
  flex: 1 1 160px;
  text-align: center;
}

@media (max-width: 560px) {
  .order-receipt-meta { grid-template-columns: 1fr; }
  .order-receipt-items li {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .order-receipt-items li img {
    width: 72px;
    height: 86px;
  }
  .order-receipt-item-price {
    grid-column: 2;
    justify-self: start;
  }
}

@media print {
  body * { visibility: hidden !important; }
  #order-receipt,
  #order-receipt * { visibility: visible !important; }
  #order-receipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
  }
  .order-receipt-card {
    box-shadow: none;
    border: 0;
    max-width: none;
  }
  .no-print { display: none !important; }
  .util-bar, .site-header, .site-footer, .mobile-bar, .tuk-edit-fab, .tuk-edit-toolbar {
    display: none !important;
  }
}
