/* KAWTHAR checkout authority. Checkout page only. */

.kaw-checkout-authority {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  gap: 28px;
  color: #3a281f;
}

.kaw-checkout-card {
  border-radius: 32px;
  background: rgba(255, 250, 246, .96);
  border: 1px solid rgba(72, 50, 36, .12);
  box-shadow: 0 22px 58px rgba(45, 33, 25, .08);
  overflow: hidden;
}

.kaw-checkout-card-head {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(72, 50, 36, .10);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.kaw-checkout-card-head h2,
.kaw-checkout-payment h2 {
  margin: 0;
  color: #2f241d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 500;
}

.kaw-checkout-back {
  color: #6a4f3d;
  text-decoration: none;
  font-weight: 850;
}

.kaw-checkout-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.kaw-checkout-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: rgba(246, 238, 230, .72);
  border: 1px solid rgba(72, 50, 36, .10);
}

.kaw-checkout-row img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(72, 50, 36, .08);
}

.kaw-checkout-info h3 {
  margin: 0 0 6px;
  color: #2f241d;
  font-size: 1rem;
  line-height: 1.35;
}

.kaw-checkout-info p {
  margin: 0 0 10px;
  color: #7a604a;
  font-size: .9rem;
}

.kaw-checkout-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.kaw-checkout-controls button {
  border: 0;
  min-width: 34px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: #3a281f;
  color: #fffaf6;
  font-weight: 950;
  cursor: pointer;
}

.kaw-checkout-controls .remove {
  background: #fff1ed;
  color: #a53c2c;
  min-width: 76px;
}

.kaw-checkout-qty {
  min-width: 26px;
  text-align: center;
  font-weight: 950;
}

.kaw-checkout-line-total {
  font-weight: 950;
  color: #3a281f;
  white-space: nowrap;
}

.kaw-checkout-summary {
  padding: 18px 22px 22px;
  border-top: 1px solid rgba(72, 50, 36, .10);
}

.kaw-checkout-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0;
  color: #5b4537;
  font-weight: 850;
}

.kaw-checkout-summary-row.total {
  padding-top: 12px;
  border-top: 1px solid rgba(72, 50, 36, .10);
  color: #2f241d;
  font-size: 1.18rem;
  font-weight: 950;
}

.kaw-checkout-payment {
  padding: 24px;
  border-radius: 32px;
  background: rgba(255, 250, 246, .96);
  border: 1px solid rgba(72, 50, 36, .12);
  box-shadow: 0 22px 58px rgba(45, 33, 25, .08);
  align-self: start;
}

.kaw-pay-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(239, 228, 216, .68);
  border: 1px solid rgba(72, 50, 36, .10);
}

.kaw-pay-box small {
  display: block;
  color: #806550;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 10px;
}

.kaw-pay-amount,
.kaw-pay-ipa {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.kaw-pay-amount strong,
.kaw-pay-ipa strong {
  font-family: Georgia, serif;
  font-size: 1.45rem;
  color: #2f241d;
  word-break: break-word;
}

.kaw-copy-btn,
.kaw-checkout-action,
.kaw-qr-open,
.kaw-qr-close {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: #3a281f;
  color: #fffaf6;
  font-weight: 950;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.kaw-copy-btn {
  background: #fffaf6;
  color: #3a281f;
  min-width: 72px;
}

.kaw-qr-box {
  margin-top: 18px;
  padding: 20px;
  border-radius: 26px;
  background: #fff;
  border: 1px dashed rgba(58, 40, 31, .22);
  text-align: center;
}

.kaw-qr-box small {
  color: #806550;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.kaw-qr-box img {
  width: min(320px, 82vw);
  height: auto;
  display: block;
  margin: 16px auto;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(72, 50, 36, .12);
  border-radius: 18px;
}

.kaw-pay-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.kaw-checkout-action.whatsapp {
  background: #24c45e;
  color: #fff;
}

.kaw-checkout-empty {
  padding: 34px;
  text-align: center;
  color: #725641;
  font-weight: 850;
}

.kaw-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(35, 24, 18, .75);
}

.kaw-qr-modal.open {
  display: grid;
}

.kaw-qr-modal-card {
  width: min(560px, 100%);
  padding: 24px;
  border-radius: 32px;
  background: #fffaf6;
  text-align: center;
  box-shadow: 0 32px 90px rgba(0,0,0,.35);
}

.kaw-qr-modal-card img {
  width: min(460px, 88vw);
  height: auto;
  display: block;
  margin: 0 auto 18px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
}

.kaw-checkout-toast {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 999999;
  max-width: min(380px, calc(100% - 36px));
  padding: 15px 17px;
  border-radius: 20px;
  background: rgba(58,40,31,.96);
  color: #fffaf6;
  box-shadow: 0 18px 46px rgba(45,33,25,.24);
  font-weight: 850;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: .24s ease;
}

.kaw-checkout-toast.show {
  opacity: 1;
  transform: translateY(0);
}

body.kaw-checkout-authority-active main > *:not(#kaw-checkout-authority-root) {
  display: none !important;
}

@media (max-width: 900px) {
  .kaw-checkout-authority {
    grid-template-columns: 1fr;
  }

  .kaw-checkout-row {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .kaw-checkout-line-total {
    grid-column: 2;
  }
}
