/* Checkout is intentionally separate from the site's legacy Bootstrap overrides. */
.checkout-modal,
.checkout-cartbar {
  --checkout-ink: #1e1e1e;
  --checkout-gold: #f5d732;
  --checkout-border: #e6e1d6;
  --checkout-muted: #706b61;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--checkout-ink);
  font-size: 14px;
  line-height: 1.55;
}
.checkout-modal .checkout-dialog { max-width: 1060px; margin: 4vh auto; padding: 0 16px; }
.checkout-modal .modal-content { max-height: 92vh; max-height: 92dvh; border: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 100px #0005; }
.checkout-modal .checkout-header { padding: 27px 34px 25px; background: var(--checkout-ink); color: #fff; border: 0; border-top: 4px solid var(--checkout-gold); align-items: flex-start; flex-shrink: 0; }
.checkout-eyebrow { display: block; color: #f5d732; font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; }
.checkout-header h2 { margin: 8px 0 2px; color: #fff; font-family: "Spectral", Georgia, serif; font-size: 35px; font-weight: 500; line-height: 1.2; }
.checkout-header p { margin: 9px 0 0; font-size: 13px; color: #d1cdc2; }
.checkout-close { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; margin: 0 0 0 16px; border: 1px solid #ffffff40; border-radius: 50%; background: transparent; color: #fff; font: 26px/1 Arial, sans-serif; cursor: pointer; }
.checkout-close:hover { background: #ffffff15; color: #f5d732; }
.checkout-modal .checkout-body { padding: 30px 34px; overflow-y: auto; overscroll-behavior: contain; background: #fff; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; align-items: start; }
.checkout-summary { grid-column: 2; grid-row: 1; padding: 22px; border: 1px solid var(--checkout-border); border-radius: 10px; background: #f8f6f0; position: sticky; top: 0; min-width: 0; }
.checkout-details { grid-column: 1; grid-row: 1; min-width: 0; }
.checkout-summary-heading { margin-bottom: 18px; }
.checkout-summary-heading h3 { margin: 0 0 5px; font-family: "Spectral", Georgia, serif; font-size: 22px; font-weight: 500; }
.checkout-count { color: var(--checkout-muted); font-size: 12px; }
.checkout-section { min-width: 0; padding: 0 0 24px; margin: 0 0 24px; border: 0; border-bottom: 1px solid var(--checkout-border); }
.checkout-section-heading { display: flex; align-items: center; width: 100%; gap: 11px; margin: 0 0 16px; padding: 0; color: var(--checkout-ink); font-size: 17px; font-weight: 600; line-height: 1.4; }
.checkout-section-heading h3 { margin: 0; font: inherit; color: inherit; }
.checkout-step { display: inline-flex; justify-content: center; align-items: center; width: 29px; height: 29px; flex: 0 0 29px; border: 1px solid #d7af0070; border-radius: 50%; color: #806800; font-size: 10px; font-weight: 700; }
.checkout-section-hint { margin: -6px 0 18px 40px; font-size: 12px; color: var(--checkout-muted); }
.checkout-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.checkout-field { min-width: 0; }
.checkout-field-wide { grid-column: 1 / -1; }
.checkout-field label { display: block; margin: 0 0 7px; font-size: 12px; font-weight: 600; color: #454137; }
.checkout-field label > span:not(.checkout-optional) { color: #8b7200; }
.checkout-modal .checkout-field .form-control { display: block; width: 100%; height: 45px; border: 1px solid #d9d5ca; border-radius: 6px; background: #fff; color: #1e1e1e; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
.checkout-modal .checkout-field .form-control::placeholder { color: #8c887e; font-size: 12px; opacity: 1; }
.checkout-modal .checkout-field .form-control:focus { outline: 0; border-color: #9c8000; box-shadow: 0 0 0 3px #d7af0026; }
.checkout-modal .checkout-field textarea.form-control { height: auto; min-height: 86px; resize: vertical; }
.checkout-field-hint { color: var(--checkout-muted); font-size: 11px; line-height: 1.65; margin: 7px 0 0; }
.checkout-field-hint .fa { margin-right: 3px; }
.checkout-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checkout-option { position: relative; min-width: 0; }
.checkout-option-wide { grid-column: 1 / -1; }
.checkout-option > input { position: absolute; z-index: 1; top: 18px; left: 14px; width: 16px; height: 16px; margin: 0; accent-color: #8b7200; cursor: pointer; }
.checkout-option > label { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; height: 100%; margin: 0; padding: 15px 13px 15px 40px; border: 1px solid #d9d5ca; border-radius: 7px; background: #fff; cursor: pointer; transition: background .15s, border-color .15s; }
.checkout-option strong { display: block; font-size: 12px; line-height: 1.6; font-weight: 600; overflow-wrap: anywhere; }
.checkout-option small { display: block; color: var(--checkout-muted); font-size: 11px; line-height: 1.6; margin-top: 4px; }
.checkout-option-price { flex-shrink: 0; color: #6c5900; font-size: 12px; font-weight: 600; white-space: nowrap; }
.checkout-option > input:checked + label { border-color: #a98b00; background: #fcf8e5; box-shadow: inset 0 0 0 1px #a98b00; }
.checkout-option > input:focus-visible + label { outline: 3px solid #d7af0060; outline-offset: 3px; }
.checkout-option > input:disabled + label { cursor: default; opacity: .65; }
.checkout-option > label:hover { border-color: #a98b00; }
.checkout-time-field, .checkout-modal .addressForm { margin-top: 18px; }
.checkout-optional { color: var(--checkout-muted); font-size: 11px; font-weight: 400; }
.checkout-required { color: var(--checkout-muted); font-size: 11px; margin: 12px 0 0; }
.checkout-modal .was-validated .form-control:invalid { border-color: #b14232; background-image: none; }
.checkout-modal .was-validated .form-control:valid { background-image: none; }
.checkout-modal .was-validated .checkout-option input:invalid + label { border-color: #b14232; }
.checkout-modal .checkout-error { margin: 0 0 22px; padding: 14px 16px; border: 1px solid #e5bbb2; border-left: 3px solid #a63d2c; border-radius: 6px; background: #fff5f2; color: #7c2f23; font-size: 13px; }
.checkout-modal .checkout-error[hidden] { display: none; }
.checkout-modal .cartItemList { list-style: none; margin: 0 0 18px; padding: 0; max-height: 310px; overflow-y: auto; scrollbar-width: thin; }
.checkout-modal .cartItemList > li { margin: 0; padding: 15px 0; border-bottom: 1px solid #e3ded2; font-family: inherit; }
.checkout-modal .cartItemList > li:first-child { padding-top: 0; }
.checkout-item-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.checkout-modal .cartItemList .cartItemTitle { display: block; margin: 0; font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.checkout-item-option { display: block; color: var(--checkout-muted); font-size: 12px; margin-top: 3px; }
.checkout-item-price { font-size: 13px; font-weight: 600; white-space: nowrap; }
.checkout-item-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.checkout-quantity { display: inline-flex; align-items: center; border: 1px solid #d9d3c4; border-radius: 6px; background: #fff; }
.checkout-quantity button { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: #1e1e1e; font: 18px Arial, sans-serif; cursor: pointer; }
.checkout-quantity button:hover { background: #f5d73233; }
.checkout-quantity span { min-width: 24px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.checkout-remove { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #80786a; cursor: pointer; }
.checkout-remove:hover { background: #eadfd7; color: #8e3c2c; }
.checkout-breakdown { margin: 0; padding: 0; }
.checkout-summary-row { display: flex; justify-content: space-between; gap: 15px; margin: 11px 0; font-size: 12px; }
.checkout-summary-row dt { font-weight: 400; color: #625c50; }
.checkout-summary-row dd { margin: 0; white-space: nowrap; font-weight: 600; }
.checkout-summary-row.is-discount dt, .checkout-summary-row.is-discount dd { color: #536344; }
.checkout-summary-row.is-total { border-top: 1px solid #d7cfbc; padding-top: 16px; margin-top: 16px; align-items: baseline; }
.checkout-summary-row.is-total dt { font-size: 13px; color: #1e1e1e; font-weight: 600; }
.checkout-summary-row.is-total dd { font-size: 25px; letter-spacing: -1px; }
.checkout-summary-note { margin: 18px 0 0; padding-top: 15px; border-top: 1px dashed #d9d1bf; color: var(--checkout-muted); font-size: 11px; line-height: 1.7; }
.checkout-summary-note .fa { margin-right: 4px; }
.checkout-modal .checkout-footer { justify-content: space-between; align-items: center; flex-shrink: 0; margin: 0; padding: 18px 34px; border-top: 1px solid var(--checkout-border); background: #fff; gap: 20px; }
.checkout-footer > :not(:last-child), .checkout-footer > :not(:first-child) { margin: 0; }
.checkout-back { padding: 10px 0; background: transparent; border: 0; color: #625c50; font-size: 12px; cursor: pointer; text-align: left; }
.checkout-back:hover { color: #1e1e1e; text-decoration: underline; }
.checkout-back span { margin-right: 7px; }
.checkout-submit-area { display: flex; align-items: center; gap: 24px; }
.checkout-footer-total { display: flex; flex-direction: column; text-align: right; }
.checkout-footer-total span { color: var(--checkout-muted); font-size: 10px; }
.checkout-footer-total strong { font-size: 23px; line-height: 1.25; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.checkout-button { display: inline-flex; justify-content: center; align-items: center; gap: 13px; padding: 14px 22px; border: 1px solid transparent; border-radius: 6px; font: 600 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; cursor: pointer; transition: background .15s, box-shadow .15s; }
.checkout-button-gold { background: #f5d732; border-color: #f5d732; color: #1e1e1e; }
.checkout-button-gold:hover { background: #e5c51b; border-color: #e5c51b; color: #1e1e1e; }
.checkout-modal button:focus-visible, .checkout-cartbar button:focus-visible { outline: 3px solid #a98b00; outline-offset: 3px; }
.checkout-modal button:disabled { cursor: wait; opacity: .55; }
.checkout-modal [aria-busy="true"] { cursor: wait; }
.checkout-cartbar { background: #1e1e1e; box-shadow: 0 -4px 25px #0002; padding: 13px 24px calc(13px + env(safe-area-inset-bottom, 0px)); color: #fff; border-top: 1px solid #ffffff1a; }
.checkout-cartbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 992px; margin: 0 auto; }
.checkout-cartbar-count { font-size: 13px; color: #e4e0d5; }
.checkout-cartbar-count .fa { color: #f5d732; margin-right: 12px; }
.checkout-cartbar .checkout-button { padding: 11px 18px; }
.checkout-cartbar-total { padding-left: 13px; border-left: 1px solid #1e1e1e35; white-space: nowrap; }
/* Confirmation shares the visual language, while emails use their own inline styles. */
.checkout-confirmed .modal-dialog { max-width: 680px; padding: 0 12px; margin: 4vh auto; }
.checkout-confirmed-top { display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; background: #1e1e1e; border-top: 4px solid #f5d732; padding: 16px 28px; }
.checkout-confirmed .modal-body { overflow-y: auto; padding: 28px; }
.checkout-confirmed .checkout-footer { justify-content: flex-end; }
.order-receipt { font-size: 13px; color: #1e1e1e; }
.order-receipt h2 { margin: 14px 0 8px; color: #1e1e1e; font: 500 30px/1.3 "Spectral", Georgia, serif; }
.receipt-check { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: #f7edaf; color: #6a5700; font-size: 19px; }
.receipt-intro, .receipt-reference { color: #706b61; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.receipt-reference { padding-bottom: 18px; border-bottom: 1px solid #e6e1d6; }
.receipt-reference strong { color: #1e1e1e; }
.receipt-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.receipt-facts span, .receipt-contact span { display: block; font-size: 11px; color: #706b61; margin-bottom: 4px; }
.receipt-facts strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.receipt-facts p { margin: 4px 0 0; color: #706b61; font-size: 12px; }
.receipt-table { width: 100%; border-collapse: collapse; }
.receipt-totals { margin: 16px 0 22px; }
.receipt-transfer, .receipt-contact, .receipt-notes { margin-top: 20px; padding: 18px; border-radius: 7px; background: #f8f6f0; border: 1px solid #e6e1d6; }
.receipt-transfer h3, .receipt-notes h3 { font-size: 15px; font-weight: 600; margin: 0 0 9px; }
.receipt-transfer p, .receipt-notes p, .receipt-contact p { margin: 5px 0; overflow-wrap: anywhere; }
.receipt-contact a { color: #715c00; }
.receipt-transfer strong { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
  .checkout-modal .checkout-header, .checkout-modal .checkout-body, .checkout-modal .checkout-footer { padding-left: 24px; padding-right: 24px; }
  .checkout-summary { padding: 18px; }
  .checkout-options { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .checkout-modal .checkout-dialog, .checkout-confirmed .modal-dialog { max-width: none; margin: 0; padding: 0; height: 100%; min-height: 100%; }
  .checkout-modal .modal-content { height: 100%; max-height: 100vh; max-height: 100dvh; border-radius: 0; }
  .checkout-modal .checkout-header { padding: 21px 20px; }
  .checkout-header h2 { font-size: 29px; }
  .checkout-modal .checkout-body { padding: 22px 20px; }
  .checkout-layout { display: flex; flex-direction: column; gap: 26px; }
  .checkout-summary { position: static; width: 100%; padding: 20px; }
  .checkout-summary-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .checkout-summary-heading h3 { font-size: 21px; }
  .checkout-summary .cartItemList { max-height: none; }
  .checkout-quantity button, .checkout-remove { min-width: 40px; height: 40px; }
  .checkout-details { width: 100%; }
  .checkout-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-modal .checkout-footer { padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); gap: 12px; }
  .checkout-footer .checkout-back { display: none; }
  .checkout-submit-area { width: 100%; justify-content: space-between; gap: 14px; }
  .checkout-footer-total { text-align: left; }
  .checkout-submit-area .checkout-button { padding: 13px 20px; }
  .checkout-cartbar { padding-left: 16px; padding-right: 16px; }
  .checkout-cartbar-count { font-size: 11px; }
  .checkout-cartbar-count .fa { display: none; }
  .checkout-cartbar .checkout-button { gap: 8px; padding: 11px 12px; font-size: 12px; }
  .checkout-confirmed .modal-body { padding: 24px 20px; }
}
@media (max-width: 390px) {
  .checkout-fields, .checkout-options { grid-template-columns: 1fr; }
  .checkout-cartbar-inner { gap: 10px; }
  .checkout-cartbar .checkout-button > span:last-child { display: none; }
  .checkout-cartbar-total { padding-left: 8px; }
  .checkout-submit-area .checkout-button { padding: 13px; font-size: 12px; }
  .receipt-facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-modal *, .checkout-cartbar * { transition: none !important; scroll-behavior: auto !important; }
}
