/* KaileyMax Checkout · Stage 10. Visual changes only, basket page only. */
:root { color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; }
body {
  max-width: 1050px !important;
  margin: 0 auto !important;
  padding: 28px 20px 75px !important;
  background: radial-gradient(ellipse 1000px 480px at 50% -150px, #e3eafa 0%, transparent 75%), #f5f7fb !important;
  color: #172339 !important;
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
a { color: #185bb5; text-underline-offset: 3px; }
a:hover { color: #0c3e8c; }
button, input { font: inherit; }
button { transition: background-color .18s ease, box-shadow .18s ease, transform .15s ease; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #5199ee; outline-offset: 3px; }
.km-checkout { width: 100%; }
.km-topnav {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  margin-bottom: 27px;
}
.km-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 750; color: #1c2c44; }
.km-brand-mark { background: #19385b; color: white; border-radius: 10px; display: inline-grid; place-items: center;
  width: 39px; height: 39px; font-size: 13px; letter-spacing: -.4px; }
.km-brand-sub { color: #6c7890; font-weight: 500; }
.km-gallery-back {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650;
  color: #365778; text-decoration: none; padding: 10px 13px;
  background: #fff; border: 1px solid #e3e8f0; border-radius: 11px;
}
.km-gallery-back:hover { background: #edf4fc; }
.km-hero { border-radius: 19px; background: linear-gradient(112deg, #162e4e, #264b74); color: white;
  padding: 34px 38px; margin: 0 0 24px; box-shadow: 0 14px 30px rgba(18,45,80,.12); }
.km-hero-kicker { color: #bcd5ff; letter-spacing: 2px; font-weight: 750; font-size: 11px; text-transform: uppercase; }
.km-hero h1 { color: white; margin: 5px 0 3px; font-weight: 750; font-size: clamp(27px, 5vw, 37px); letter-spacing: -.9px; }
.km-hero p { margin: 0; color: #d6e4f6; font-size: 15px; }
.km-checkout .notice { border: 1px solid #aed9c0; background: #ecf8f0; color: #17613c;
  padding: 13px 17px; border-radius: 12px; font-weight: 600; }
.km-checkout table { border-collapse: separate; border-spacing: 0; width: 100%; background: #fff;
  border: 1px solid #e2e7f0; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px rgba(30,47,75,.035); }
.km-checkout th { background: #f0f4fa; color: #64718a; font-size: 12px; text-transform: uppercase;
  letter-spacing: 1px; font-weight: 750; padding: 14px 17px; border-bottom: 1px solid #e2e7f0; }
.km-checkout td { padding: 19px 17px; vertical-align: middle; border-bottom: 1px solid #edf0f5; font-weight: 550; }
.km-checkout tr:last-child td { border-bottom: 0; }
.km-checkout td:first-child { min-width: 220px; font-weight: 750; }
.km-checkout td .muted, .km-checkout td small { display: block; margin-top: 3px; font-weight: 400; font-size: 12px; color: #708097; overflow-wrap: anywhere; }
.km-checkout td:nth-child(3) { font-weight: 750; white-space: nowrap; }
.km-checkout td:last-child { text-align: right; }
.km-checkout td form { margin: 0; }
.km-checkout td button {
  color: #a3343a; background: #fff5f5; border: 1px solid #f4d8dc; padding: 9px 13px;
  margin: 0; border-radius: 9px; font-size: 13px; font-weight: 650; cursor: pointer;
}
.km-checkout td button:hover { background: #ffe9e9; }
.km-checkout .card { background: #fff; border: 1px solid #e2e7f0;
  border-radius: 16px; padding: 24px 27px; margin-top: 24px; box-shadow: 0 6px 24px rgba(30,47,75,.035); }
.km-checkout .card h2 { font-size: 19px; letter-spacing: -.4px; margin: 0 0 10px; font-weight: 750; }
.km-checkout .card .muted { color: #738198; line-height: 1.55; }
.km-checkout .card input[type=text] { background: #fff; border: 1px solid #cad4e3; border-radius: 10px;
  padding: 11px 13px; margin: 0 10px 0 0; min-width: 200px; max-width: 100%; }
.km-checkout .card button:not(.km-paypal-button) { border: 1px solid #d0dbea; border-radius: 10px;
  background: #ecf3ff; color: #174c89; padding: 11px 17px; margin: 0;
  font-weight: 750; cursor: pointer; }
.km-checkout .card button:not(.km-paypal-button):hover { background: #dceaff; }
.km-checkout .card form { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.km-checkout .card form input[type=hidden] { display: none; }
.km-checkout .card > p { margin: 13px 0; }
.km-checkout .totals { text-align: right; background: #edf3fd; border: 1px solid #d9e6f6;
  border-radius: 16px; padding: 23px 28px; margin: 22px 0; }
.km-checkout .totals p { margin: 7px 0; color: #526785; }
.km-checkout .totals strong { color: #172339; }
.km-checkout .totals h2 { margin: 14px 0 0; border-top: 1px solid #ceddec; padding-top: 15px;
  font-size: clamp(21px,4vw,28px); color: #132c4b; }
.km-checkout .km-paypal-button { width: min(100%, 440px); min-height: 56px;
  border: 0; border-radius: 11px; padding: 13px 22px; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; gap: 12px; background: #ffc439; color: #182b49;
  font-size: 17px; font-weight: 800; letter-spacing: -.2px; margin: 10px 0 7px;
  box-shadow: 0 5px 12px rgba(191,125,0,.13); }
.km-checkout .km-paypal-button:hover { background: #ffb923; box-shadow: 0 7px 16px rgba(191,125,0,.21); transform: translateY(-1px); }
.km-checkout .km-paypal-button:active { transform: translateY(0); }
.km-checkout .km-paypal-button img { width: 37px; height: 23px; object-fit: contain; flex: 0 0 auto; }
.km-checkout .km-paypal-note { display: block; margin: 2px 0 0; color: #65758d; font-size: 12px; }
.km-checkout .km-checkout-card form { flex-direction: column; align-items: center; }
.km-checkout .km-checkout-card { text-align: center; }
.km-checkout .km-checkout-card h2 { font-size: 20px; }
.km-checkout .km-warning { background: #fff6e7; color: #80520c; border: 1px solid #f4d7a5;
  padding: 14px 17px; border-radius: 11px; margin-top: 22px; font-size: 13px; }
@media(max-width:680px) {
  body { padding: 15px 13px 55px !important; }
  .km-topnav { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .km-brand { font-size: 13px; }
  .km-gallery-back { font-size: 12px; }
  .km-hero { padding: 24px 22px; border-radius: 15px; }
  .km-checkout table, .km-checkout tbody, .km-checkout tr, .km-checkout td { display: block; width: 100%; }
  .km-checkout thead { display: none; }
  .km-checkout tr { border-bottom: 1px solid #e2e7f0; padding: 13px 15px; }
  .km-checkout tr:last-child { border: 0; }
  .km-checkout td { padding: 4px 0; border: 0; text-align: left !important; }
  .km-checkout td:first-child { min-width: 0; }
  .km-checkout td:last-child { margin-top: 10px; }
  .km-checkout .card { padding: 20px 18px; }
  .km-checkout .totals { padding: 19px 20px; }
  .km-checkout .card input[type=text] { min-width: 0; flex: 1 1 175px; }
  .km-checkout .km-paypal-button { font-size: 15px; }
}
@media(prefers-reduced-motion: reduce) { button { transition: none !important; } }

/* Stage 11: basket mark icon */
.km-brand-mark svg { display:block; width:22px; height:22px; }

/* Stage 14: digital delivery details */
.km-checkout .km-delivery-card { text-align: left; }
.km-checkout .km-delivery-card h2 { margin-bottom: 4px; }
.km-checkout .km-delivery-card .muted { color: #586b85; margin: 4px 0 16px; }
.km-checkout .card form.km-delivery-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; align-items: stretch; }
.km-checkout .km-delivery-form label { font-weight: 650; font-size: 13px; color: #243855; }
.km-checkout .km-delivery-form input[type=email] {
  background: #fff; border: 1px solid #cad4e3; border-radius: 10px;
  padding: 12px 13px; margin: 0; width: 100%; min-width: 0; color: #172339;
}
.km-checkout .km-delivery-form label[for=km_delivery_email] { grid-column: 1; grid-row: 1; }
.km-checkout .km-delivery-form #km_delivery_email { grid-column: 1; grid-row: 2; }
.km-checkout .km-delivery-form label[for=km_delivery_email_confirm] { grid-column: 2; grid-row: 1; }
.km-checkout .km-delivery-form #km_delivery_email_confirm { grid-column: 2; grid-row: 2; }
.km-checkout .km-privacy-note { color: #687890; font-size: 12px; grid-column: 1/-1; margin: 4px 0 0 !important; }
.km-checkout .km-save-email { grid-column: 1/-1; justify-self: start; background: #19385b !important; color: #fff !important;
  border: 0 !important; border-radius: 10px; padding: 12px 18px; font-weight: 750; cursor: pointer; }
.km-checkout .km-save-email:hover { background: #2c5480 !important; }
.km-checkout .km-order-reference { font-size: 13px; overflow-wrap: anywhere; }
@media(max-width:680px) {
  .km-checkout .card form.km-delivery-form { display: flex; flex-direction: column; align-items: stretch; }
  .km-checkout .km-privacy-note { margin: 6px 0 0 !important; }
  .km-checkout .km-save-email { width: 100%; }
}

/* Stripe conversion: leave Stage 14 basket design intact and style hosted-checkout trigger. */
.km-checkout .km-stripe-button { display:block; width:min(100%,440px); min-height:56px;
  margin:18px auto 4px; padding:14px 26px; color:#fff; font-size:16px; font-weight:700;
  border:0; border-radius:11px; background:#635bff; cursor:pointer; }
.km-checkout .km-stripe-button:hover { background:#5147db; }
