.basket-open { display: block; flex-shrink: 0; border: 0; background: transparent; padding: 0; color: inherit; }
.basket-totals { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: right; }
.checkout-dock-cta { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 9px; width: 100%; margin-top: 5px; background: #315e3f; border: 1px solid #265137; border-radius: 7px; color: #fffdf0; font-size: .875rem; font-weight: 600; white-space: nowrap; box-shadow: 0 3px 0 #1d402833; }
.checkout-dock-cta:not(:disabled):hover { background: #214c32; }
.checkout-dock-cta:disabled { background: #a4af97; border-color: #9aa58f; box-shadow: none; }
.checkout-start { margin-top: 7px; display: flex; align-items: center; justify-content: center; gap: 18px; }
#cart-dialog .primary-button[data-close="cart-dialog"] { background: transparent; color: #6c7e5b; margin-top: 7px; }

.checkout-dialog { width: min(510px, calc(100% - 24px)); max-height: 92vh; max-height: 92dvh; padding: 0; border: 1px solid #d6ddca; border-radius: 20px; background: #fafbf6; overflow-x: hidden; }
.checkout-dialog::backdrop { background: #182c2080; backdrop-filter: blur(7px); }
.checkout-heading { position: sticky; top: 0; z-index: 4; margin: 0; padding: 20px 24px 14px; background: #fafbf6f5; border-bottom: 1px solid #ebeee2; backdrop-filter: blur(8px); }
.checkout-heading h2 { font-size: 1.35rem; font-weight: 800; margin-top: 4px; }
.checkout-eyebrow { color: #8a987a; font-size: .75rem; }
.checkout-demo-banner { display: flex; align-items: center; gap: 8px; padding: 9px 12px; margin: 14px 24px 0; border: 1px solid #e6dec4; background: #faf5e5; color: #9a8153; border-radius: 8px; font-size: .75rem; line-height: 1.9; }
.checkout-demo-banner span { font-size: .75rem; font-weight: 700; color: #8d733e; white-space: nowrap; }
.checkout-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; margin: 20px 24px 0; padding: 0 0 17px; border-bottom: 1px solid #e0e7d7; }
.checkout-steps li { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #a1aa96; font-size: .875rem; }
.checkout-steps b { display: grid; place-items: center; width: 29px; height: 29px; background: #edf0e5; color: #9aa58b; border: 1px solid #e0e5d7; border-radius: 50%; font-size: .875rem; font-weight: 500; }
.checkout-steps .is-active { color: #325c3c; font-weight: 600; }
.checkout-steps .is-active b { color: #fffdf1; background: #396444; border-color: #396444; box-shadow: 0 0 0 4px #e9efdf; }
.checkout-steps .is-complete b { background: #dce9cd; color: #4e7042; border-color: #c5d7b4; }
.checkout-error { color: #9d533b; background: #f8eae1; border: 1px solid #efd0bd; border-radius: 8px; padding: 10px 12px; margin: 15px 24px 0; font-size: .875rem; line-height: 1.9; }
.checkout-panel { padding: 24px; }
.checkout-panel h3 { font-size: 1.25rem; font-weight: 800; margin: 0 0 9px; }
.checkout-copy { color: #839075; line-height: 2; font-size: 1rem; margin: 0 0 20px; }
.checkout-step-icon { width: 57px; height: 57px; display: grid; place-items: center; background: #edf2e4; color: #6c8a52; border-radius: 17px; margin-bottom: 19px; transform: rotate(-5deg); }
.checkout-step-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.checkout-field { display: flex; flex-direction: column; gap: 8px; font-size: .875rem; color: #526748; margin: 16px 0 0; }
.checkout-field input, .checkout-field textarea { width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid #cfd9c1; border-radius: 9px; background: #fffef9; color: #324e35; font-family: inherit; font-size: 1rem; resize: vertical; }
.checkout-field textarea { line-height: 1.9; min-height: 98px; }
.checkout-field input::placeholder, .checkout-field textarea::placeholder { color: #a9af9d; }
.checkout-field [aria-invalid="true"] { border-color: #c17b5c; background: #fff9f3; }
.checkout-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout-hint { margin: 10px 0 0; color: #909b82; font-size: .75rem; line-height: 1.95; }
.checkout-next { margin-top: 22px; min-height: 47px; font-size: 1rem; }
.checkout-dialog[aria-busy="true"] .checkout-next { cursor: progress; }
.checkout-dialog[aria-busy="true"] .checkout-next::after { content: ''; display: inline-block; width: 12px; height: 12px; margin-inline-start: 9px; border-radius: 50%; border: 2px solid #ffffff66; border-top-color: white; vertical-align: middle; animation: checkout-spin .8s linear infinite; }
@keyframes checkout-spin { to { transform: rotate(360deg); } }
.text-button { border: 0; background: none; color: #62824f; padding: 5px 0; font-size: .875rem; text-decoration: underline; text-decoration-color: #a9bd91; text-underline-offset: 4px; }
.text-button:disabled { text-decoration: none; }
.checkout-copy .text-button { margin-inline-start: 8px; }
.otp-demo-hint { display: flex; flex-direction: column; gap: 5px; padding: 13px 15px; border: 1px dashed #d0c8aa; background: #faf6e9; border-radius: 9px; color: #998455; }
.otp-demo-hint strong { font-size: .875rem; font-weight: 500; }
.otp-demo-hint b { font-size: 1.1rem; letter-spacing: 3px; color: #716338; }
.otp-demo-hint span { font-size: .75rem; line-height: 1.9; }
.otp-label input { font-size: 1.8rem; font-weight: 700; text-align: center; letter-spacing: .55em; padding-inline-start: calc(13px + .55em); color: #36583b; }
.resend-button { display: block; margin: 15px auto 0; }
.location-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.location-action { display: flex; align-items: center; gap: 7px; background: #eaf1df; color: #557245; border: 1px solid #cdddb9; border-radius: 8px; padding: 10px 12px; font-size: .875rem; }
.location-action .icon { width: 19px; height: 19px; }
.location-status { font-size: .875rem; color: #688355; line-height: 1.9; margin: 9px 0; }
.location-status:empty { display: none; }
.location-status.is-error { color: #a47a51; }
.address-map-wrap { position: relative; isolation: isolate; z-index: 0; margin-top: 14px; border: 1px solid #d7e1cb; border-radius: 11px; overflow: hidden; }
.address-map { width: 100%; height: 230px; direction: ltr; background: #e6ebdc; font-family: inherit; }
.map-actions { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; background: #f5f8ee; }
.address-map .leaflet-control-attribution { font-size: 12px; background: #fffffff0; }
.delivery-pin { background: none; border: none; }
.delivery-pin span { display: block; width: 28px; height: 28px; border-radius: 50% 50% 50% 3px; background: #386147; border: 3px solid #fffdf1; transform: rotate(-45deg); box-shadow: -2px 3px 6px #28432d55; }
.delivery-pin span::after { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; top: 7px; left: 7px; background: #dce9bf; }
.checkout-review { padding: 15px; border-radius: 10px; background: #edf2e4; border: 1px solid #d7e1c9; color: #506747; }
.checkout-review strong { display: block; font-size: 1rem; margin-bottom: 3px; }
.review-phone { display: inline-block; font-size: .875rem; color: #889a79; }
.checkout-review p { font-size: .875rem; line-height: 1.9; margin: 9px 0 4px; }
.checkout-review small { font-size: .75rem; }
.review-location { display: block; font-size: .75rem; color: #879c74; margin-top: 9px; }
.payment-choices { margin: 20px 0; padding: 0; border: 0; display: grid; gap: 11px; }
.payment-choice { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #dbe2d0; border-radius: 10px; background: #fffef9; cursor: pointer; }
.payment-choice:has(input:checked) { border-color: #95b07c; background: #f0f6e6; box-shadow: 0 0 0 1px #c9daba; }
.payment-choice input { accent-color: #476b43; width: 17px; height: 17px; margin: 0; flex-shrink: 0; }
.payment-choice strong { display: block; font-size: 1rem; font-weight: 600; }
.payment-choice small { display: block; font-size: .75rem; color: #8d9a7d; margin-top: 5px; line-height: 1.8; }
.payment-symbol { color: #82976e; font-size: 1.8rem; }
.checkout-totals { padding: 17px 0 6px; border-top: 1px solid #dce4d1; display: grid; gap: 12px; }
.checkout-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .875rem; }
.checkout-savings { color: #729153; }
.checkout-totals .delivery-pending { color: #95a088; font-size: .75rem; }
.gateway-amount { text-align: center; font-size: 1.7rem; color: #3e633e; font-weight: 800; padding: 15px; background: #eef4e3; border-radius: 10px; margin: 18px 0; }
.secondary-button { display: block; width: 100%; background: #f8f9f3; border: 1px solid #d5dfc8; color: #758966; border-radius: 9px; padding: 11px; margin-top: 10px; font-size: .875rem; }
#change-payment { display: block; margin: 15px auto 0; }
.checkout-success { text-align: center; }
.success-seal { width: 88px; height: 88px; margin: 0 auto 20px; }
.success-seal svg { width: 100%; height: 100%; overflow: visible; }
.success-seal circle { fill: #e5efd6; stroke: #c9dcaf; stroke-width: 1; }
.success-seal path { fill: none; stroke: #5a7f43; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.checkout-receipt { padding: 20px 16px; background: #fffef7; border: 1px dashed #c8d5b6; border-radius: 10px; text-align: right; margin: 18px 0; box-shadow: 0 4px 0 #eef1e6; }
.receipt-demo { display: block; font-size: .75rem; color: #a4ac97; text-align: center; }
.checkout-receipt > strong { display: block; text-align: center; font-size: 1.2rem; color: #63804d; letter-spacing: 2px; margin: 8px 0 20px; }
.checkout-receipt > div { display: flex; justify-content: space-between; gap: 13px; margin-top: 12px; font-size: .875rem; }
.checkout-receipt b { font-weight: 600; }
.checkout-success .primary-button { margin-top: 20px; }

@media (max-width: 900px) {
  .basket-summary { padding: 6px 8px; }
  .checkout-dock-cta { padding: 6px 5px; font-size: .875rem; }
  .checkout-dock-cta > span { display: none; }
}
@media (max-width: 520px) {
  .checkout-dialog { width: calc(100% - 16px); max-height: 94dvh; border-radius: 16px; }
  .checkout-heading { padding: 16px 19px 12px; }
  .checkout-heading h2 { font-size: 1.2rem; }
  .checkout-demo-banner { margin-inline: 19px; }
  .checkout-steps { margin-inline: 19px; gap: 6px; }
  .checkout-panel { padding: 22px 19px; }
  .checkout-error { margin-inline: 19px; }
  .checkout-panel h3 { font-size: 1.15rem; }
  .checkout-copy { font-size: 1rem; }
  .address-map { height: 210px; }
  .payment-choice { gap: 9px; padding: 12px; }
  .payment-symbol { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-dialog *, .checkout-dialog *::after { animation: none !important; transition: none !important; }
}
