@charset "UTF-8";
/* ==========================================================================
   Kings Pharmacy — Weight Loss Assessment
   Stylesheet v1.0

   BRANDING LIVES IN ONE PLACE: the :root block immediately below.
   Change those values and the whole flow re-skins. You should not need to
   touch anything past the "COMPONENTS" divider to rebrand.
   ========================================================================== */


/* ==========================================================================
   1. BRAND TOKENS  ← edit these
   Matched to the Kings Pharmacy house style used across the other treatment
   pages (Fexofenadine, Finasteride, Sildenafil): Inter throughout, green
   #0a9a73 primary, grey-50 ground, white cards.
   ========================================================================== */
:root{
  color-scheme:light;

  /* -- Core brand ------------------------------------------------------- */
  --brand:#0a9a73;            /* Primary. Buttons, selected states, accents. */
  --brand-deep:#087a5c;       /* Button hover / darker brand.                */
  --brand-bright:#10B981;     /* Progress fill, focus rings, success.        */
  --accent:#0a9a73;           /* Secondary accent. Same green — no gold.     */
  --brand-tint:#e6fffa;       /* Pale green fills (badges, notices).         */
  --brand-tint-line:#b2f5ea;  /* Border for those fills.                     */

  /* -- Text ------------------------------------------------------------- */
  --ink:#111827;              /* Headings and primary text.   (gray-900)     */
  --ink-2:#4B5563;            /* Body text, secondary.        (gray-600)     */
  --ink-3:#6B7280;            /* Captions, hints, disabled.   (gray-500)     */

  /* -- Surfaces --------------------------------------------------------- */
  --paper:#FFFFFF;            /* App background.                             */
  --surface:#FFFFFF;          /* Cards, inputs, buttons.                     */
  --surface-2:#F9FAFB;        /* Subtle raised/inset areas.   (gray-50)      */
  --line:#E5E7EB;             /* Hairlines and borders.       (gray-200)     */
  --line-strong:#D1D5DB;      /* Emphasised borders.          (gray-300)     */
  --ground:#F9FAFB;           /* Page ground behind the app on desktop.      */

  /* -- Status ----------------------------------------------------------- */
  --danger:#DC2626;
  --danger-bg:#FEF2F2;
  --warn-bg:#FFFBEB;

  /* -- Typography ------------------------------------------------------- */
  --font-display:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --font-ui:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --font-mono:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;

  /* -- Shape ------------------------------------------------------------ */
  --radius:12px;
  --radius-lg:16px;
  --app-max-width:430px;      /* Mobile. Widened at the desktop breakpoint.  */
  --app-max-width-desktop:640px;

  /* -- Elevation -------------------------------------------------------- */
  --shadow:0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow-lift:0 10px 15px -3px rgb(0 0 0 / .1),0 4px 6px -4px rgb(0 0 0 / .1);
}


/* ==========================================================================
   2. RESET
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* An author `display` beats the UA rule for [hidden], so elements we lay out
   with flex would stay visible when hidden. Make hidden mean hidden. */
[hidden]{display:none!important}
body{margin:0}
h1,h2,h3,p,dl,dd{margin:0}
button{font:inherit;color:inherit;background:none;border:0;padding:0}
input,textarea{font:inherit;color:inherit}
svg{display:block}
img{display:block;max-width:100%;height:auto}


/* ==========================================================================
   3. LAYOUT SHELL
   ========================================================================== */
body{
  background:var(--ground);
  color:var(--ink);
  font-family:var(--font-ui);
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
}

/* -- Kings site header: the green bar carried across every treatment page. */
.kp-site-header{
  flex:0 0 auto;
  background:var(--brand);
  padding:12px 0;
  padding-top:max(12px,env(safe-area-inset-top));
  box-shadow:0 1px 2px 0 rgb(0 0 0 / .05);
}
.kp-shell{
  width:100%;max-width:1280px;margin:0 auto;padding:0 24px;
}
.kp-site-header__row{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.kp-site-header__logo img{height:38px;width:auto}
.kp-site-header__help{color:#fff;font-size:14px;font-weight:500}
.kp-site-header__help a{color:#fff;font-weight:700;text-decoration:none}
.kp-site-header__help a:hover{text-decoration:underline}
@media (max-width:600px){
  .kp-shell{padding:0 16px}
  .kp-site-header__logo img{height:30px}
  .kp-site-header__help span{display:none}
  .kp-site-header__help{font-size:13px}
}

/* -- Main: the assessment card, with a trust rail alongside on desktop. -- */
.kp-main{
  flex:1 1 auto;
  width:100%;
  display:flex;
  min-height:0;
  min-width:0;
}
.kp-layout{
  width:100%;max-width:1060px;margin:0 auto;min-width:0;
  display:flex;align-items:stretch;
}

.kp-app{
  position:relative;
  width:100%;
  max-width:var(--app-max-width);
  margin:0 auto;
  /* Without this a flex item refuses to shrink below its content's
     min-content width, which pushes the whole page sideways on a phone. */
  min-width:0;
  flex:1 1 auto;
  background:var(--paper);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

/* -- Trust rail. Hidden until there is room for it beside the card. ------ */
.kp-rail{display:none}

/* Tablet and up: the flow becomes a card on the Kings grey ground. */
@media (min-width:700px){
  .kp-main{padding:32px 24px 44px}
  .kp-layout{justify-content:center;align-items:start}
  .kp-app{
    margin:0 auto;
    max-width:var(--app-max-width-desktop);
    min-height:560px;
    border:1px solid var(--line);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-lift);
  }
  /* The card grows to fit each step instead of scrolling internally — a
     fixed-height inner pane meant a long result screen scrolled inside a
     box on the page, which read as broken rather than just "long". */
  .kp-scroll{overflow-y:visible}
}

/* Wide desktop: bring in the reassurance rail alongside. */
@media (min-width:1000px){
  .kp-main{padding:40px 24px 56px}
  .kp-layout{gap:24px}
  .kp-app{margin:0;flex:1 1 auto}
  .kp-rail{
    display:flex;flex-direction:column;gap:16px;
    flex:0 0 300px;width:300px;
  }
  .kp-rail__card{
    background:var(--surface);border:1px solid var(--line);
    border-radius:14px;padding:18px;box-shadow:var(--shadow);
  }
  .kp-rail__icon{
    width:36px;height:36px;border-radius:10px;margin-bottom:10px;
    display:grid;place-items:center;
    background:var(--brand-tint);border:1px solid var(--brand-tint-line);color:var(--brand);
  }
  .kp-rail__icon svg{width:18px;height:18px}
  .kp-rail__card h2{font-size:16px;font-weight:700;color:var(--ink);margin:0 0 6px}
  .kp-rail__card p{font-size:14px;line-height:1.55;color:var(--ink-3);margin:0}
  .kp-rail__badges{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
  .kp-rail__badges img{height:44px;width:auto;opacity:.85}
}

/* -- Legal footer strip ------------------------------------------------- */
.kp-site-footer{
  flex:0 0 auto;
  background:var(--ink);color:#9CA3AF;
  padding:20px 0;
  padding-bottom:max(20px,env(safe-area-inset-bottom));
  font-size:12.5px;line-height:1.6;
}
.kp-site-footer a{color:#D1D5DB}
.kp-site-footer p{margin:0 0 4px}
.kp-site-footer p:last-child{margin:0}
@media (max-width:699px){
  /* On phones the assessment is the page: no ground, no footer chrome. */
  .kp-main{padding:0}
  .kp-app{min-height:0}
  .kp-site-footer{display:none}
}

/* Embedded in an iframe or a parent page section: fill the frame, drop the
   page chrome. Add class kp-app--embedded to the shell. */
.kp-app--embedded{max-width:none;height:100%;border-radius:0;border:0;box-shadow:none}


/* ==========================================================================
   4. HEADER + PROGRESS
   ========================================================================== */
.kp-header{
  flex:0 0 auto;
  border-radius:var(--radius-lg) var(--radius-lg) 0 0;
  background:var(--surface);
  border-bottom:1px solid var(--line);
  padding:14px 18px 0;
  padding-top:max(14px,env(safe-area-inset-top));
}
.kp-header__row{display:flex;align-items:center;gap:12px;min-height:34px}

/* The green site bar carries the logo, so this is the screen title. */
.kp-brand{display:flex;align-items:center;gap:9px;margin:0 auto;min-width:0}
.kp-brand__name{
  font-size:15px;font-weight:600;
  letter-spacing:-.01em;color:var(--ink-2);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;
}

.kp-iconbtn{
  width:34px;height:34px;flex:0 0 auto;
  display:grid;place-items:center;
  border-radius:9px;cursor:pointer;color:var(--ink-2);
  transition:background .15s ease;
}
.kp-iconbtn:hover{background:var(--surface-2)}
.kp-iconbtn:disabled{opacity:0;pointer-events:none}
.kp-iconbtn svg{width:19px;height:19px}

.kp-progress{display:flex;gap:4px;padding:12px 0 11px}
.kp-progress__seg{height:3px;flex:1;border-radius:2px;background:var(--line);overflow:hidden}
.kp-progress__seg i{
  display:block;height:100%;width:0;background:var(--brand-bright);
  transition:width .45s cubic-bezier(.22,.9,.3,1);
}
.kp-progress__label{
  font-family:var(--font-mono);font-size:10.5px;letter-spacing:.09em;
  text-transform:uppercase;color:var(--ink-3);
  padding-bottom:11px;margin-top:-4px;
}


/* ==========================================================================
   5. SCREEN BODY
   ========================================================================== */
.kp-scroll{
  flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;
  padding:26px 18px 12px;
}
.kp-screen{animation:kp-enter .34s cubic-bezier(.22,.9,.3,1) both}
@keyframes kp-enter{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}

.kp-eyebrow{
  font-family:var(--font-mono);font-size:10.5px;font-weight:500;
  letter-spacing:.12em;text-transform:uppercase;
  color:var(--brand);margin:0 0 10px;
}
.kp-q{
  font-family:var(--font-display);font-weight:500;
  font-size:27px;line-height:1.17;letter-spacing:-.021em;
  margin:0 0 9px;color:var(--ink);text-wrap:balance;
}
.kp-q--lg{font-size:32px}
.kp-help{
  font-size:14.5px;line-height:1.5;color:var(--ink-2);
  margin:0 0 20px;max-width:34ch;
}
.kp-help:last-child{margin-bottom:0}
@media (min-width:900px){ .kp-help{max-width:52ch} }
.kp-hero-mark{width:58px;height:58px;margin:8px 0 20px;color:var(--accent)}


/* ==========================================================================
   6. COMPONENTS — options
   ========================================================================== */
.kp-opts{display:flex;flex-direction:column;gap:9px;margin:0 0 8px}
.kp-opt{
  display:flex;align-items:center;gap:13px;
  width:100%;min-height:60px;padding:13px 15px;
  background:var(--surface);color:var(--ink);
  border:1.5px solid var(--line);border-radius:var(--radius);
  font-size:15.5px;font-weight:500;text-align:left;cursor:pointer;
  transition:border-color .14s ease,background .14s ease,transform .1s ease;
}
.kp-opt:hover{border-color:var(--line-strong)}
.kp-opt:active{transform:scale(.987)}
.kp-opt--none{border-style:dashed}

.kp-tick{
  width:21px;height:21px;flex:0 0 auto;border-radius:50%;
  border:1.5px solid var(--line-strong);
  display:grid;place-items:center;transition:all .16s ease;
}
.kp-opt--multi .kp-tick,.kp-consent .kp-tick{border-radius:6px}
.kp-tick svg{
  width:12px;height:12px;color:#fff;opacity:0;transform:scale(.6);
  transition:all .16s ease;
}
.kp-opt[aria-pressed="true"]{
  border-color:var(--brand);
  background:color-mix(in srgb,var(--brand) 6%,var(--surface));
}
.kp-opt[aria-pressed="true"] .kp-tick,
.kp-consent[aria-pressed="true"] .kp-tick{background:var(--brand);border-color:var(--brand)}
.kp-opt[aria-pressed="true"] .kp-tick svg,
.kp-consent[aria-pressed="true"] .kp-tick svg{opacity:1;transform:none}

.kp-opt__body{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.kp-opt__sub{font-size:13px;font-weight:400;color:var(--ink-3);line-height:1.35}


/* ==========================================================================
   7. COMPONENTS — inputs
   ========================================================================== */
.kp-field{margin:0 0 16px}
.kp-field label{
  display:block;font-size:12.5px;font-weight:600;color:var(--ink-2);
  letter-spacing:.01em;margin:0 0 7px;
}
.kp-input{
  width:100%;height:56px;padding:0 15px;
  background:var(--surface);color:var(--ink);
  border:1.5px solid var(--line);border-radius:var(--radius);
  font-size:16px; /* Never drop below 16px — iOS zooms the page on focus. */
  font-weight:500;
  transition:border-color .14s ease;
}
.kp-input::placeholder{color:var(--ink-3);font-weight:400}
.kp-input:focus{outline:none;border-color:var(--brand)}
.kp-input--error{border-color:var(--danger) !important;background-color:var(--danger-bg) !important}
.kp-input--error:focus{border-color:var(--danger) !important;outline:none}
.kp-field__error{display:block;font-size:12px;color:var(--danger);margin-top:4px;font-weight:500;line-height:1.3}
textarea.kp-input{height:96px;padding:14px 15px;resize:none;line-height:1.45}

.kp-pair{display:flex;gap:9px}
.kp-pair>div{flex:1;position:relative}
.kp-pair .kp-input{padding-right:44px}
.kp-unit{
  position:absolute;right:14px;top:50%;transform:translateY(-50%);
  font-family:var(--font-mono);font-size:12.5px;color:var(--ink-3);pointer-events:none;
}

/* Generic two-up field row (city/postcode, etc.) — unlike .kp-pair, its
   inputs don't reserve space for a unit suffix. */
.kp-row{display:flex;gap:9px}
.kp-row .kp-field{flex:1;min-width:0}

.kp-checkout{margin-top:22px}

.kp-login-box{
  margin:12px 0 18px;
  background:var(--surface-2);
  border:1.5px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  transition:all .2s ease;
}
.kp-login-box__banner{
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  background:#f1f5f9;
  user-select:none;
}
.kp-login-box__banner:hover{background:#e2e8f0}
.kp-login-box__banner-text{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13.5px;
  color:var(--ink);
}
.kp-login-box__banner-text svg{
  width:16px;
  height:16px;
  color:var(--brand);
}
.kp-login-box__arrow{
  background:none;
  border:none;
  font-size:13px;
  color:var(--ink-3);
  cursor:pointer;
  padding:0;
  line-height:1;
}
.kp-login-box__content{
  padding:14px 15px 16px;
  background:var(--paper);
  border-top:1px solid var(--line);
}
.kp-login-box__content .kp-field{margin-bottom:12px}
.kp-login-success-badge{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:10px 0 16px;
  padding:10px 14px;
  background:#f0fdf4;
  border:1px solid #bbf7d0;
  border-radius:var(--radius);
  color:#166534;
  font-size:13.5px;
}
.kp-login-success-badge__info{
  display:flex;
  align-items:center;
  gap:8px;
  flex:1;
  min-width:0;
}
.kp-login-success-badge__info svg{
  width:16px;
  height:16px;
  color:#16a34a;
  flex-shrink:0;
}
.kp-logout-btn{
  background:none;
  border:none;
  color:#b91c1c;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  padding:4px 8px;
  border-radius:4px;
  text-decoration:underline;
  transition:all .15s ease;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.kp-logout-btn:hover{
  color:#991b1b;
  background:rgba(220, 38, 38, 0.08);
}

/* Social Login & Divider */
.kp-login-divider{
  display:flex;
  align-items:center;
  text-align:center;
  margin:16px 0 14px;
  color:var(--ink-3);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0.5px;
}
.kp-login-divider::before,
.kp-login-divider::after{
  content:'';
  flex:1;
  border-bottom:1px solid var(--line);
}
.kp-login-divider span{
  padding:0 10px;
}
.kp-social-login-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  width:100%;
}
.kp-btn-google{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:42px;
  padding:8px 16px;
  background:#ffffff;
  border:1px solid var(--line-strong);
  border-radius:6px;
  color:#374151;
  font-size:13.5px;
  font-weight:600;
  cursor:pointer;
  text-decoration:none;
  box-shadow:0 1px 2px rgba(0,0,0,0.05);
  transition:all .15s ease;
  font-family:inherit;
}
.kp-btn-google:hover{
  background:#f9fafb;
  border-color:#9ca3af;
  color:#111827;
  box-shadow:0 1px 3px rgba(0,0,0,0.1);
}
.kp-btn-google svg{
  margin-right:10px;
  flex-shrink:0;
}

/* Default Checkout sections styling */
.kp-checkout-sec {
  margin: 22px 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.kp-checkout-sec--first {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.kp-checkout-sec__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kp-postcode-finder {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.kp-postcode-finder .kp-input {
  flex: 1;
}
.kp-btn-search {
  padding: 0 18px;
  height: 56px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.kp-btn-search:hover {
  background: var(--brand-deep);
}
.kp-btn-search:disabled {
  opacity: .65;
  cursor: not-allowed;
}
.kp-select {
  width: 100%;
  height: 54px;
  padding: 0 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 14px;
  outline: none;
  cursor: pointer;
}
.kp-select:focus {
  border-color: var(--brand);
}
.kp-checkbox-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  user-select: none;
}
.kp-checkbox-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
}
.kp-delivery-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 14px;
}
.kp-delivery-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s ease;
}
.kp-delivery-card:hover {
  border-color: var(--brand-tint-line);
}
.kp-delivery-card--active {
  border-color: var(--brand);
  background: #f0fdf9;
}
.kp-delivery-card input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
  cursor: pointer;
}
.kp-delivery-card__info {
  flex: 1;
}
.kp-delivery-card__title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kp-delivery-card__price {
  font-weight: 700;
  color: var(--brand-deep);
}
.kp-delivery-card__desc {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 4px;
  line-height: 1.4;
}
.kp-totals-card {
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 18px 0;
}
.kp-totals-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-2);
}
.kp-totals-card__row--total {
  border-top: 1px dashed var(--line-strong);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
}
.kp-totals-card__row--total span:last-child {
  color: var(--brand-deep);
  font-size: 20px;
}
.kp-totals-card__discount {
  color: #16a34a;
  font-weight: 600;
}
.kp-coupon-toggle-line {
  font-size: 13.5px;
  margin: 12px 0 6px;
  color: var(--ink-2);
}
.kp-coupon-box {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 12px;
}
.kp-coupon-box .kp-input {
  flex: 1;
  height: 48px;
}
.kp-coupon-box button {
  height: 48px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.kp-coupon-box button:hover {
  background: var(--brand-deep);
}

/* Placeholder for wherever a real payment element (Stripe Elements or
   equivalent) mounts. Deliberately not a text input — card data should never
   pass through a plain field on this page, only a PCI-compliant provider's
   own iframe/element. */
.kp-payment{
  display:flex;align-items:center;gap:10px;
  height:56px;padding:0 15px;
  border:1.5px dashed var(--line-strong);border-radius:var(--radius);
  background:var(--surface-2);color:var(--ink-3);font-size:13.5px;
}
.kp-payment svg{width:17px;height:17px;flex:0 0 auto}

.kp-toggle{
  display:inline-flex;padding:3px;gap:2px;margin:0 0 16px;
  background:var(--surface-2);border:1px solid var(--line);border-radius:10px;
}
.kp-toggle button{
  cursor:pointer;padding:7px 15px;border-radius:7px;
  font-size:13px;font-weight:600;color:var(--ink-3);
  transition:all .14s ease;
}
.kp-toggle button[aria-pressed="true"]{
  background:var(--surface);color:var(--ink);box-shadow:var(--shadow);
}


/* ==========================================================================
   8. COMPONENTS — action bar
   ========================================================================== */
.kp-bar{
  flex:0 0 auto;background:var(--surface);border-top:1px solid var(--line);
  padding:13px 18px;
  padding-bottom:max(13px,env(safe-area-inset-bottom));
  display:flex;flex-direction:column;gap:9px;
}
.kp-btn{
  width:100%;min-height:56px;padding:15px 20px;
  border-radius:var(--radius);
  background:var(--brand);color:#fff;
  font-size:16px;font-weight:600;letter-spacing:-.005em;cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:9px;
  transition:background .15s ease,transform .1s ease,opacity .15s ease,filter .15s ease;
}
.kp-btn:hover{background:var(--brand-deep)}
.kp-btn:active{transform:scale(.99)}
.kp-btn:disabled{opacity:.32;pointer-events:none}
.kp-btn svg{width:17px;height:17px}
.kp-btn--ghost{
  background:transparent;color:var(--ink-2);min-height:44px;
  font-size:14.5px;font-weight:500;
}
.kp-btn--ghost:hover{background:var(--surface-2)}

.kp-barnote{
  font-family:var(--font-mono);font-size:10.5px;letter-spacing:.05em;
  color:var(--ink-3);text-align:center;
}


/* ==========================================================================
   9. COMPONENTS — trust list
   ========================================================================== */
.kp-trust{
  display:flex;flex-direction:column;gap:1px;margin:22px 0 0;
  border:1px solid var(--line);border-radius:var(--radius);
  background:var(--line);overflow:hidden;
}
.kp-trust__row{
  display:flex;align-items:center;gap:11px;
  background:var(--surface);padding:13px 15px;
  font-size:13.5px;color:var(--ink-2);line-height:1.35;
}
.kp-trust__row svg{width:17px;height:17px;color:var(--brand);flex:0 0 auto}
.kp-trust__row b{color:var(--ink);font-weight:600}


/* ==========================================================================
   10. COMPONENTS — BMI reveal
   ========================================================================== */
.kp-bmi{text-align:center;padding:14px 0 4px}
.kp-bmi__num{
  font-family:var(--font-display);font-size:78px;font-weight:500;
  line-height:1;letter-spacing:-.035em;color:var(--brand);
  font-variant-numeric:tabular-nums;
}
.kp-bmi__cat{
  font-family:var(--font-mono);font-size:11.5px;letter-spacing:.13em;
  text-transform:uppercase;color:var(--ink-2);margin-top:11px;
}
.kp-bmi__scale{
  height:7px;border-radius:4px;margin:26px 0 9px;position:relative;
  background:linear-gradient(90deg,#8FA8C9 0%,#3E9B6E 22%,#D3B14F 48%,#C8823C 72%,#A8452B 100%);
}
.kp-bmi__pin{
  position:absolute;top:-5px;width:4px;height:17px;border-radius:3px;
  background:var(--ink);border:1.5px solid var(--surface);
  transform:translateX(-50%);left:0;
  transition:left .8s cubic-bezier(.22,.9,.3,1);
}
.kp-bmi__ticks{
  display:flex;justify-content:space-between;
  font-family:var(--font-mono);font-size:10px;color:var(--ink-3);
}

.kp-projection{
  margin:24px 0 0;padding:17px;border-radius:var(--radius);
  background:var(--surface);border:1px solid var(--line);text-align:left;
}
.kp-projection__label{
  font-family:var(--font-mono);font-size:10.5px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--ink-3);margin-bottom:6px;
}
.kp-projection__val{
  font-family:var(--font-display);font-size:29px;font-weight:500;
  letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums;
}
.kp-projection__note{font-size:12px;color:var(--ink-3);margin-top:7px;line-height:1.45}

/* 12-month projection chart */
.kp-chart{display:block;width:100%;height:auto;margin:12px 0 4px;overflow:visible}
.kp-chart text{font-family:var(--font-mono);font-size:10px;fill:var(--ink-3)}
.kp-chart__base{stroke:var(--line);stroke-width:1}
.kp-chart__area{fill:var(--brand-tint);opacity:.7}
.kp-chart__line{fill:none;stroke:var(--brand);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.kp-chart__dot{fill:var(--brand);stroke:var(--surface);stroke-width:2}
.kp-chart .kp-chart__val{font-family:inherit;font-size:11.5px;font-weight:600;fill:var(--ink)}
.kp-chart__goal{stroke:var(--ink-3);stroke-width:1;stroke-dasharray:3 3}
.kp-chart .kp-chart__goaltxt{fill:var(--ink-2)}
.kp-chart__hit{fill:transparent;cursor:default}
.kp-chart__hit:hover{fill:var(--surface-2);opacity:.5}

.kp-link{
  display:inline;padding:0;margin-left:2px;background:none;border:0;cursor:pointer;
  font:inherit;font-weight:600;color:var(--brand-deep);text-decoration:underline;text-underline-offset:2px;
}


/* ==========================================================================
   11. COMPONENTS — medication picker
   ========================================================================== */
.kp-chips{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 14px}
.kp-chip{
  display:inline-flex;align-items:center;gap:7px;
  padding:8px 10px 8px 13px;border-radius:999px;
  background:var(--surface);border:1.5px solid var(--line);
  font-size:13.5px;font-weight:500;color:var(--ink);
}
.kp-chip button{
  cursor:pointer;color:var(--ink-3);
  width:17px;height:17px;display:grid;place-items:center;border-radius:50%;
}
.kp-chip button:hover{background:var(--surface-2);color:var(--ink)}
.kp-chip button svg{width:11px;height:11px}

.kp-suggest{
  border:1px solid var(--line);border-radius:var(--radius);
  background:var(--surface);overflow:hidden;margin:-8px 0 14px;
}
.kp-suggest button{
  display:block;width:100%;text-align:left;
  padding:13px 15px;font-size:14.5px;color:var(--ink);
  cursor:pointer;border-bottom:1px solid var(--line);
}
.kp-suggest button:last-child{border-bottom:0}
.kp-suggest button:hover{background:var(--surface-2)}
.kp-suggest em{font-style:normal;color:var(--ink-3);font-size:12.5px;display:block;margin-top:1px}


/* ==========================================================================
   12. COMPONENTS — notices + consent
   ========================================================================== */
.kp-notice{
  display:flex;gap:11px;padding:14px 15px;border-radius:var(--radius);
  background:var(--warn-bg);
  border:1px solid color-mix(in srgb,var(--accent) 32%,transparent);
  font-size:13.5px;line-height:1.5;color:var(--ink-2);margin:18px 0 0;
}
.kp-notice svg{width:17px;height:17px;color:var(--accent);flex:0 0 auto;margin-top:1px}
.kp-notice b{color:var(--ink);font-weight:600}
.kp-notice--stop{
  background:var(--danger-bg);
  border-color:color-mix(in srgb,var(--danger) 28%,transparent);
}
.kp-notice--stop svg{color:var(--danger)}

.kp-consent{
  display:flex;gap:12px;align-items:flex-start;
  padding:15px;border-radius:var(--radius);
  background:var(--surface);border:1.5px solid var(--line);
  cursor:pointer;margin:0 0 10px;text-align:left;width:100%;
}
.kp-consent[aria-pressed="true"]{border-color:var(--brand)}
.kp-consent .kp-tick{margin-top:1px}
.kp-consent span{font-size:13.5px;line-height:1.5;color:var(--ink-2)}
.kp-consent span b{color:var(--ink);font-weight:600}


/* ==========================================================================
   13. COMPONENTS — dispensing label (recommendation)
   ========================================================================== */
.kp-label{
  background:var(--surface);border:1.5px solid var(--ink);
  border-radius:8px;overflow:hidden;margin:0 0 14px;box-shadow:var(--shadow);
}
.kp-label__hd{
  background:var(--ink);color:var(--paper);
  padding:9px 14px;display:flex;justify-content:space-between;align-items:center;
  font-family:var(--font-mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;
}
.kp-label__body{padding:17px 16px 16px}
.kp-rx__name{
  font-family:var(--font-display);font-size:30px;font-weight:600;
  letter-spacing:-.024em;line-height:1.06;color:var(--ink);
}
.kp-rx__generic{
  font-family:var(--font-mono);font-size:12px;color:var(--ink-2);
  margin:5px 0 0;letter-spacing:.01em;
}
.kp-rx__meta{margin:16px 0 0;border-top:1px dashed var(--line-strong)}
.kp-rx__meta div{
  display:flex;justify-content:space-between;gap:14px;
  padding:9px 0;border-bottom:1px dashed var(--line);font-size:13.5px;
}
.kp-rx__meta div:last-child{border-bottom:0}
.kp-rx__meta dt{color:var(--ink-3);font-size:12.5px}
.kp-rx__meta dd{font-weight:600;color:var(--ink);text-align:right}
.kp-rx__why{
  margin:15px 0 0;padding:13px 14px;border-radius:10px;
  background:var(--surface-2);font-size:13.5px;line-height:1.5;color:var(--ink-2);
}
.kp-rx__why b{color:var(--ink);font-weight:600}

.kp-alt{
  display:flex;align-items:center;gap:13px;width:100%;
  padding:14px 15px;background:var(--surface);
  border:1.5px solid var(--line);border-radius:var(--radius);
  margin-bottom:9px;text-align:left;cursor:pointer;
  transition:border-color .14s ease;
}
.kp-alt:hover{border-color:var(--line-strong)}
/* These are spans inside a span — they must be blocks or the name and the
   dose form run together on one line. */
.kp-alt__name{display:block;font-size:15.5px;font-weight:600;color:var(--ink)}
.kp-alt__sub{display:block;font-size:12.5px;color:var(--ink-3);margin-top:2px}
.kp-alt__price{
  font-family:var(--font-mono);font-size:13px;font-weight:500;
  color:var(--ink-2);margin-left:auto;white-space:nowrap;
}

.kp-rule{
  display:flex;align-items:center;gap:11px;margin:26px 0 13px;
  font-family:var(--font-mono);font-size:10.5px;letter-spacing:.11em;
  text-transform:uppercase;color:var(--ink-3);
}
.kp-rule::after{content:"";flex:1;height:1px;background:var(--line)}


/* ==========================================================================
   14. COMPONENTS — verification timeline
   ========================================================================== */
.kp-steps{display:flex;flex-direction:column;margin:4px 0 0}
.kp-step{display:flex;gap:14px;padding:0 0 22px;position:relative}
.kp-step:last-child{padding-bottom:0}
.kp-step::before{
  content:"";position:absolute;left:14px;top:32px;bottom:0;width:1.5px;background:var(--line);
}
.kp-step:last-child::before{display:none}
.kp-step__num{
  width:29px;height:29px;flex:0 0 auto;border-radius:50%;
  background:var(--brand);color:#fff;display:grid;place-items:center;
  font-family:var(--font-mono);font-size:12px;font-weight:500;
  position:relative;z-index:1;
}
.kp-step h3{font-size:15px;font-weight:600;margin:4px 0 4px;color:var(--ink)}
.kp-step p{font-size:13.5px;line-height:1.5;color:var(--ink-2)}


/* ==========================================================================
   15. COMPONENTS — verification uploads
   ========================================================================== */
.kp-upload{display:flex;flex-direction:column;gap:9px;margin:18px 0 0}
.kp-upload__card{
  display:flex;align-items:center;gap:13px;width:100%;
  padding:12px 14px;background:var(--surface);
  border:1.5px solid var(--line);border-radius:var(--radius);
  cursor:pointer;transition:border-color .14s ease;position:relative;
}
.kp-upload__card:hover{border-color:var(--line-strong)}
.kp-upload__card--filled{border-color:var(--brand);cursor:default}
.kp-upload__thumb{
  flex:0 0 auto;width:44px;height:44px;border-radius:9px;
  object-fit:cover;background:var(--surface-2);
}
.kp-upload__thumb--empty{display:grid;place-items:center;color:var(--ink-3)}
.kp-upload__thumb--empty svg{width:20px;height:20px}
.kp-upload__body{flex:1 1 auto;min-width:0}
.kp-upload__body h3{font-size:14.5px;font-weight:600;color:var(--ink);margin:0}
.kp-upload__body p{
  font-size:12.5px;color:var(--ink-3);margin:2px 0 0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.kp-upload__add{
  flex:0 0 auto;font-size:13px;font-weight:600;color:var(--brand);
}
.kp-upload__remove{
  flex:0 0 auto;cursor:pointer;color:var(--ink-3);
  width:28px;height:28px;display:grid;place-items:center;border-radius:50%;
}
.kp-upload__remove:hover{background:var(--surface-2);color:var(--ink)}
.kp-upload__remove svg{width:14px;height:14px}


/* ==========================================================================
   16. FOOTER + PROTOTYPE MARKER
   ========================================================================== */
.kp-legal{
  font-family:var(--font-mono);font-size:10px;line-height:1.6;
  color:var(--ink-3);letter-spacing:.02em;
  padding:16px 0 4px;border-top:1px solid var(--line);margin-top:24px;
}
.kp-proto{
  display:inline-flex;align-items:center;gap:6px;
  font-family:var(--font-mono);font-size:9.5px;letter-spacing:.11em;
  text-transform:uppercase;color:var(--ink-3);
  border:1px solid var(--line);border-radius:5px;
  padding:4px 8px;margin-bottom:16px;
}
.kp-proto::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--accent)}


/* ==========================================================================
   17. ACCESSIBILITY + MOTION
   ========================================================================== */
.kp-visually-hidden{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
:focus-visible{outline:2.5px solid var(--brand-bright);outline-offset:2px;border-radius:6px}
.kp-q:focus{outline:none}

/* JS is required. Styles the fallback so it doesn't look broken. */
.kp-noscript{
  padding:32px 24px;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--radius);margin:24px 18px;
}
.kp-noscript h1{font-family:var(--font-display);font-size:24px;margin-bottom:10px}
.kp-noscript p{font-size:14.5px;color:var(--ink-2);line-height:1.5}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important;
  }
}


/* --- "Send later" next-steps dialog -------------------------------------- */
.kp-modal{
  width:min(440px, calc(100vw - 32px));
  max-height:calc(100dvh - 32px);
  overflow:auto;
  padding:26px 22px 20px;
  border:0;border-radius:var(--radius-lg, 16px);
  background:var(--surface);color:var(--ink);
  box-shadow:0 20px 50px rgba(17,24,39,.25);
  font-family:inherit;
}
.kp-modal::backdrop{background:rgba(17,24,39,.5)}
.kp-modal[open]{animation:kp-enter .22s ease-out}
.kp-modal__t{font-size:22px;font-weight:700;line-height:1.25;margin:0 0 8px}
.kp-modal__list{margin:4px 0 18px;padding:0;list-style:none;counter-reset:kp-ev;display:grid;gap:10px}
.kp-modal__list li{
  counter-increment:kp-ev;
  position:relative;padding:12px 14px 12px 50px;
  border:1px solid var(--line);border-radius:12px;
  display:grid;gap:2px;font-size:15px;
}
.kp-modal__list li::before{
  content:counter(kp-ev);
  position:absolute;left:14px;top:12px;
  width:24px;height:24px;border-radius:50%;
  background:var(--brand-tint);color:var(--brand-deep);
  display:grid;place-items:center;font-size:13px;font-weight:700;
}
.kp-modal__list b{font-weight:600}
.kp-modal__list span{color:var(--ink-3);font-size:13.5px;line-height:1.4}
.kp-modal__actions{display:grid;gap:8px;margin-top:18px}

/* ==========================================================================
   16. COMPONENTS — Nested Attributes & Product List Enhancements
   ========================================================================== */
.kp-rx__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.kp-rx__img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--surface-2);
  padding: 4px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.kp-alt__thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--surface-2);
  padding: 3px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.kp-nested-attributes {
  margin: 16px 0;
  padding: 14px 15px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.kp-attr-header {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.kp-attr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) {
  .kp-attr-grid {
    grid-template-columns: 1fr;
  }
}
.kp-attr-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kp-attr-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.kp-attr-select {
  width: 100%;
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  transition: border-color .15s ease;
}
.kp-attr-select:focus {
  border-color: var(--brand);
}
.kp-attr-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px dashed var(--line-strong);
}
.kp-attr-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.kp-attr-price-lbl {
  font-size: 12.5px;
  color: var(--ink-3);
}
.kp-attr-price-val {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--brand-deep);
}
.kp-stock-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.kp-stock-badge--in {
  background: #e6f7f0;
  color: #0a8a65;
  border: 1px solid #c2ede0;
}
.kp-stock-badge--out {
  background: #feeceb;
  color: #cf3427;
  border: 1px solid #facdc9;
}

@keyframes kp-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Full Checkout Flow Components
   ========================================================================== */
.kp-checkout-sec {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.kp-checkout-sec:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.kp-checkout-sec__title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kp-checkout-sec__sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
  margin-top: -6px;
  margin-bottom: 12px;
}
.kp-postcode-finder {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.kp-postcode-finder .kp-input {
  flex: 1;
}
.kp-btn-search {
  padding: 0 16px;
  min-height: 44px;
  height: 44px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .15s ease, opacity .15s ease;
}
.kp-btn-search:hover:not(:disabled) {
  background: var(--brand-deep);
}
.kp-btn-search:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.kp-select {
  width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  margin-bottom: 12px;
  cursor: pointer;
  outline: none;
  transition: border-color .15s ease;
}
.kp-select:focus {
  border-color: var(--brand);
}
.kp-checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 6px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.kp-checkbox-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
  margin: 0;
}
.kp-delivery-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.kp-delivery-card {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  cursor: pointer;
  transition: all .15s ease;
  background: var(--surface);
}
.kp-delivery-card--active {
  border-color: var(--brand);
  background: var(--brand-tint);
}
.kp-delivery-card label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin: 0;
  width: 100%;
}
.kp-delivery-card input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--brand);
  width: 17px;
  height: 17px;
  cursor: pointer;
}
.kp-delivery-card__body {
  flex: 1;
}
.kp-delivery-card__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kp-delivery-card__desc {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.4;
}
.kp-delivery-card__price {
  font-weight: 700;
  color: var(--brand-deep);
  font-size: 13px;
}
.kp-textarea {
  width: 100%;
  min-height: 75px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  resize: vertical;
  outline: none;
  transition: border-color .15s ease;
}
.kp-textarea:focus {
  border-color: var(--brand);
}
.kp-coupon-wrap {
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 13px 15px;
  margin: 18px 0;
}
.kp-coupon-toggle {
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.kp-coupon-toggle button {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 13.5px;
}
.kp-coupon-box {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.kp-coupon-input {
  flex: 1;
  min-height: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 13.5px;
  outline: none;
  text-transform: uppercase;
}
.kp-coupon-input:focus {
  border-color: var(--brand);
}
.kp-totals-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
}
.kp-totals-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.kp-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 6px 0;
}
.kp-totals-row--highlight {
  color: #16a34a;
  font-weight: 600;
}
.kp-totals-row--grand {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1.5px solid var(--line);
}
.kp-totals-remove-btn {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 0 0 6px;
  text-decoration: underline;
}

/* ==========================================================================
   Shipping Service Options & Delivery Estimate Box
   ========================================================================== */
.kp-shipping-sec {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.kp-shipping-sec__title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.kp-shipping-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kp-shipping-card {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  cursor: pointer;
  transition: all .15s ease;
  background: var(--surface);
}
.kp-shipping-card:hover {
  border-color: var(--brand);
}
.kp-shipping-card--active {
  border-color: var(--brand);
  background: #f0fdf9;
  box-shadow: 0 0 0 1px var(--brand);
}
.kp-shipping-card label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin: 0;
  width: 100%;
}
.kp-shipping-card input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--brand);
  width: 17px;
  height: 17px;
  cursor: pointer;
}
.kp-shipping-card__body {
  flex: 1;
}
.kp-shipping-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.kp-shipping-card__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.kp-shipping-card__price {
  font-weight: 700;
  font-size: 13px;
  color: var(--brand-deep);
  background: #e6f7f0;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.kp-shipping-card__desc {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.45;
  margin-top: 2px;
}
.delivery-estimate-box {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #ccebe1;
}
.delivery-row {
  display: flex;
  margin-bottom: 4px;
  font-size: 12.5px;
  align-items: center;
  line-height: 1.35;
}
.delivery-row:last-child {
  margin-bottom: 0;
}
.delivery-row .label {
  color: #374151;
  font-weight: 500;
  white-space: nowrap;
}
.delivery-row .value {
  color: #065f46;
  font-weight: 700;
  margin-left: 5px;
}
.delivery-row.urgency .timer {
  color: #065f46;
  font-weight: 700;
  margin-left: 5px;
}
.delivery-row.info span {
  color: #047857;
  font-weight: 600;
  font-size: 11px;
  background: #e6f7f0;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 2px;
}
.delivery-row.info p {
  margin: 0 !important;
}

/* --- Saved Address Selector (Matches default checkout) ------------------- */
.kp-address-selector {
  margin-top: 10px;
  margin-bottom: 16px;
}
.kp-address-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 580px) {
  .kp-address-grid {
    grid-template-columns: 1fr;
  }
}
.kp-address-card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 12px 14px;
  cursor: pointer;
  transition: all .15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
}
.kp-address-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.kp-address-card--active {
  border-color: var(--brand) !important;
  background: #f0fdf4 !important;
  box-shadow: 0 0 0 1px var(--brand) !important;
}
.kp-address-card--add {
  border: 2px dashed var(--line-strong) !important;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 12px;
  cursor: pointer;
}
.kp-address-card--add:hover {
  border-color: var(--brand) !important;
  background: #f0fdf4;
}
.kp-address-card--add .kp-add-plus {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.kp-address-card--add:hover .kp-add-plus {
  color: var(--brand);
}
.kp-address-card--add .kp-add-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.kp-address-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.kp-address-card__radio-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  cursor: pointer;
}
.kp-address-card__radio-wrap input[type="radio"] {
  accent-color: var(--brand);
  width: 17px;
  height: 17px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}
.kp-address-card__title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.kp-address-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  flex-shrink: 0;
}
.kp-address-btn-edit,
.kp-address-btn-del {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all .15s ease;
}
.kp-address-btn-edit svg,
.kp-address-btn-del svg {
  width: 15px;
  height: 15px;
}
.kp-address-btn-edit:hover {
  color: var(--brand);
  background: rgba(10, 154, 115, 0.08);
}
.kp-address-btn-del:hover {
  color: var(--danger);
  background: rgba(220, 38, 38, 0.08);
}
.kp-address-card__lines {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.4;
  margin-top: 4px;
  padding-left: 25px;
}

/* Modal Popup for Add/Edit Address */
.kp-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.kp-modal-backdrop.kp-modal-open {
  opacity: 1;
  pointer-events: auto;
}
.kp-modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lift);
  padding: 24px;
  position: relative;
  transform: translateY(12px);
  transition: transform .2s ease;
}
.kp-modal-backdrop.kp-modal-open .kp-modal {
  transform: translateY(0);
}
.kp-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.kp-modal__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.kp-modal__close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-3);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.kp-modal__close:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.kp-modal__body .kp-field {
  margin-bottom: 12px;
}
.kp-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Cart Action Buttons & Cart Item List Component
   ========================================================================== */
.kp-cart-btn-area {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kp-cart-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all .16s ease;
  font-family: inherit;
  letter-spacing: .01em;
}
.kp-cart-action-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.kp-btn-add-cart {
  background: var(--brand);
  color: #ffffff;
  border: 1.5px solid var(--brand);
  box-shadow: 0 2px 4px rgba(10, 154, 115, 0.2);
}
.kp-btn-add-cart:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(10, 154, 115, 0.28);
}
.kp-btn-add-cart:disabled {
  background: #cbd5e1;
  border-color: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.kp-btn-remove-cart {
  background: #ffffff;
  color: #b91c1c;
  border: 1.5px solid #fecaca;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.kp-btn-remove-cart:hover {
  background: #fef2f2;
  border-color: #f87171;
  color: #991b1b;
  transform: translateY(-1px);
}
.kp-cart-feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 6px 12px;
  border-radius: 6px;
  animation: fadeIn .2s ease;
}

/* Cart Item List on Checkout */
.kp-cart-list-sec {
  margin-bottom: 18px;
  overflow: hidden;
}
.kp-cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.kp-cart-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all .15s ease;
  overflow: hidden;
  box-sizing: border-box;
}
.kp-cart-item-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.kp-cart-item-card__img-wrap {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  overflow: hidden;
}
.kp-cart-item-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.kp-cart-item-card__body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.kp-cart-item-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 3px;
}
.kp-cart-item-card__title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}
.kp-cart-item-card__price {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-deep);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.kp-cart-item-card__generic {
  font-size: 12.5px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}
.kp-cart-item-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.kp-cart-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 2.5px 8px;
  border-radius: 6px;
  line-height: 1.3;
}
.kp-cart-badge strong {
  margin-right: 4px;
  color: #14532d;
}
.kp-cart-remove-btn {
  background: none;
  border: none;
  color: #b91c1c;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
  text-decoration: underline;
  transition: color .15s ease;
}
.kp-cart-remove-btn:hover {
  color: #991b1b;
}
.kp-cart-remove-btn svg {
  width: 14px;
  height: 14px;
}

/* Empty Cart State */
.kp-cart-empty-card {
  background: var(--surface);
  border: 2px dashed var(--line-strong);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.kp-cart-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.kp-cart-empty-icon svg {
  width: 22px;
  height: 22px;
}
.kp-cart-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.kp-cart-empty-sub {
  font-size: 13px;
  color: var(--ink-2);
  max-width: 320px;
  margin-bottom: 12px;
  line-height: 1.4;
}

@media (max-width: 580px) {
  .kp-cart-item-card {
    align-items: flex-start;
  }
  .kp-cart-item-card__img-wrap {
    width: 60px;
    height: 60px;
  }
}

/* ===========================================================================
   PAYMENT GATEWAY CARD (#payment)
   =========================================================================== */
.kp-payment-container {
  max-width: 580px;
  margin: 0 auto;
}
.kp-payment-summary-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.kp-payment-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.kp-payment-ref-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.kp-payment-ref-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-mono);
}
.kp-payment-total-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-deep);
  font-family: var(--font-mono);
  letter-spacing: -.5px;
}
.kp-payment-delivery-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.kp-payment-delivery-summary svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
  flex-shrink: 0;
}
.kp-payment-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.kp-payment-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.kp-payment-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.kp-payment-card__logos {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.kp-card-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 3px 7px;
  border-radius: 4px;
}
.kp-payment-error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.4;
  margin-bottom: 16px;
}
.kp-payment-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.94);
  border-radius: 16px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.kp-payment-spinner {
  width: 44px;
  height: 44px;
  border: 3.5px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: kp-spin .75s linear infinite;
}
.kp-payment-security-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.kp-sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}
.kp-sec-badge svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}
.kp-back-link {
  background: none;
  border: none;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 6px 12px;
  transition: color .15s ease;
}
.kp-back-link:hover {
  color: var(--brand-deep);
}

/* GlobalPayments hosted form styling & button enhancements */
#credit-card-form {
  min-height: 200px;
}
#credit-card-form iframe {
  width: 100% !important;
}
#credit-card-form button[type="submit"],
#credit-card-form .btn-submit,
#credit-card-form input[type="submit"] {
  background: var(--brand) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  border-radius: 10px !important;
  padding: 14px 20px !important;
  width: 100% !important;
  border: none !important;
  cursor: pointer !important;
  transition: background .15s ease, box-shadow .15s ease !important;
  box-shadow: 0 2px 8px rgba(10,154,115,.25) !important;
  margin-top: 10px !important;
}
#credit-card-form button[type="submit"]:hover,
#credit-card-form .btn-submit:hover,
#credit-card-form input[type="submit"]:hover {
  background: var(--brand-deep) !important;
  box-shadow: 0 4px 12px rgba(10,154,115,.35) !important;
}





