/* Good Company — load LAST after design-v6.css, order-v7.css, payment-v7.css and dashboards-v7.css. */
:root {
  --sans: 'Inter', Arial, sans-serif;
  --display: 'Manrope', 'Inter', Arial, sans-serif;
  --serif: var(--sans);
  --line: #e3e9f2;
  --muted: #596b87;
}
body { font-family: var(--sans); font-size: 15px; line-height: 1.65; }
.brand, .footer-wordmark, .hero h1, .section-heading h2, .how-heading h2, .hamper-inner h3, .how-caption h3, .dialog h2 { font-family: var(--display); }
button, input, select, textarea { font-family: var(--sans); }
button:disabled { cursor: not-allowed; }
:is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn, .how-action .btn { min-height: 48px; padding: 12px 20px; gap: 16px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 2px 6px #142c580a; }
.btn:hover, .how-action .btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px #142c5814; }
.btn:active, .how-action .btn:active { transform: translateY(0); box-shadow: none; }
.btn.secondary { border-color: #cbd8ed; box-shadow: none; }
.text-button, .back { min-height: 36px; font-size: 13px; line-height: 1.5; text-decoration-thickness: 1px; }

/* Navigation and the existing photographic hero. */
.site-header { background: #fffffff5; border-bottom-color: #e7ecf4; }
.nav { display: flex; gap: 24px; }
.brand { font-size: 24px; font-weight: 800; letter-spacing: -.045em; }
.nav-right { display: flex; gap: 20px; }
.nav-link { font-size: 13px; line-height: 1.4; }
.region { padding: 8px 12px; border-color: var(--line); border-radius: 999px; background: #f6f8fc; font-size: 12px; line-height: 1.4; white-space: nowrap; }
.account-button, .checkout-starter .basket-edit { position: relative; display: grid; place-items: center; flex: 0 0 36px; width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); box-shadow: none; transition: background .18s, border-color .18s, box-shadow .18s; }
.account-button svg, .basket-edit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.account-button:hover, .checkout-starter .basket-edit:hover { background: #edf3ff; border-color: #b8cbed; box-shadow: 0 2px 8px #142c5808; }
.nav .nav-cta { display: inline-flex; min-height: 40px; padding: 8px 16px; gap: 12px; border-radius: 10px; font-size: 13px; }
.hero-inner { gap: 40px; padding-block: 48px; }
.hero h1 { margin: 0 0 32px; font: 800 clamp(60px, 6.40625vw, 82px)/1.08 var(--display); letter-spacing: -.035em; }
.hero-accent:after { height: 10px; bottom: 4px; }
.hero-main-photo { box-shadow: 0 12px 28px #17336d18; }
.hero-mini-photo { box-shadow: 0 8px 20px #17336d18; }
.hero-price-badge { box-shadow: 0 4px 12px #142c580c; }
.hero-price-badge strong { font-family: var(--display); letter-spacing: -.02em; }

/* Catalogue: retain the photographs and the independent circle selectors. */
.shop-section { padding-block: 64px 112px; }
.section-heading { gap: 24px; margin-bottom: 32px; }
.section-heading h2, .how-heading h2 { font-size: clamp(32px, 3.2vw, 42px); line-height: 1.16; letter-spacing: -.03em; }
.gift-grid { gap: 24px; }
.hamper-option { border: 1px solid #dce5f3; border-radius: 20px; box-shadow: 0 3px 12px #142c5808; transition: border-color .2s, box-shadow .2s, transform .2s; }
.hamper-option:hover { transform: translateY(-2px); border-color: #b8cbed; box-shadow: 0 8px 24px #142c5812; }
.hamper-option:focus-within { border-color: #94afe5; box-shadow: 0 0 0 3px #2557d617; }
.hamper-option:has(.hamper[aria-pressed="true"]) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 6px 18px #2557d614; }
.hamper-option:has(.hamper[aria-pressed="true"]) .quantity-control { border-color: var(--blue); background: #fff; }
.hamper-visual { flex: 0 0 auto; aspect-ratio: 1; border-radius: 19px 19px 0 0; }
.hamper-visual:focus-visible { outline-offset: -5px; }
.hamper-inner { min-width: 0; padding: 22px 20px; }
.hamper-inner h3 { min-height: 2.5em; margin: 0; font: 700 21px/1.25 var(--display); letter-spacing: -.025em; overflow-wrap: anywhere; }
.hamper-description { min-height: 0; margin-top: 12px; font-size: 14px; line-height: 1.65; }
.hamper-pricing { gap: 4px; margin: 8px 0 20px; }
.hamper-price { color: var(--blue); font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
.hamper-basis { color: var(--muted); font-size: 13px; line-height: 1.5; }
.hamper { top: 12px; right: 12px; width: 44px; height: 44px; min-height: 44px; border-color: #c1d0ed; font-size: 26px; box-shadow: 0 2px 8px #142c5814; }
.hamper:hover { transform: scale(1.06); }
.hamper:focus-visible { box-shadow: 0 0 0 4px #fff; }
.image-open { left: 12px; bottom: 12px; min-height: 36px; padding: 8px 12px; gap: 12px; border-radius: 8px; font-size: 13px; }
.hamper-visual:focus-visible .image-open { background: var(--gold); transform: translateY(-2px); }
.collection-note, .fx-note { font-size: 13px; line-height: 1.6; }

/* The same stepper serves catalogue cards and basket rows, including zero. */
.quantity-control { display: inline-grid; grid-template-columns: 44px 44px 44px; align-items: center; align-self: flex-start; flex: 0 0 auto; width: max-content; max-width: 100%; padding: 2px; border: 1px solid #cbd7ea; border-radius: 12px; background: #ffffffc9; transition: border-color .18s, box-shadow .18s; }
.quantity-control:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #2557d617; }
.hamper-inner .quantity-control { margin-top: auto; }
.card-quantity { margin-top: auto; }
.quantity-control button { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--blue); font: 500 20px/1 var(--sans); transition: background .18s, color .18s; }
.quantity-control button:hover:not(:disabled) { background: #eaf1ff; }
.quantity-control button:active:not(:disabled) { background: var(--blue); color: #fff; }
.quantity-control button:focus-visible { outline-offset: -2px; }
.quantity-control button:disabled { opacity: 1; background: transparent; color: #8b98ad; cursor: not-allowed; }
.quantity-control input.quantity-value { appearance: textfield; display: block; box-sizing: border-box; width: 44px; min-width: 0; max-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--navy); font: 500 16px/1 var(--sans); text-align: center; font-variant-numeric: tabular-nums; box-shadow: none; }
.quantity-control input.quantity-value:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; }
.quantity-control input.quantity-value::-webkit-inner-spin-button, .quantity-control input.quantity-value::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Visibility remains controlled by the catalogue's existing contextual state. */
.checkout-starter { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(920px, calc(100% - 48px)); padding: 16px; gap: 16px; border-color: #dae3f0; border-radius: 16px; background: #fffffff5; box-shadow: 0 8px 32px #142c581a; }
.selected-summary { display: flex; gap: 12px; min-width: 0; font-size: 14px; line-height: 1.4; }
.selection-thumbs i { width: 40px; height: 44px; flex-basis: 40px; border-radius: 8px; }
.selection-thumbs i+i { display: block; margin-left: -22px; }
.selected-summary>.selection-copy { gap: 4px; font-size: 14px; }
.selection-copy strong { font-weight: 600; }
.selection-copy>span { max-width: none; overflow: visible; color: var(--muted); font-size: 13px; line-height: 1.5; white-space: normal; }
.selected-summary>.selection-price { color: var(--navy); font-size: 18px; letter-spacing: -.02em; }
.basket-edit #basket-count { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px #fff; }
#choose-next { width: auto; min-height: 44px; padding: 12px 20px; gap: 12px; font-size: 14px; }

/* Four steps; use IDs to outrank the legacy order font shorthands. */
:is(#step-1, #step-2, #step-4, #flow-bar) { --order-line: #e2e8f2; --order-muted: #566984; font-family: var(--sans); font-size: 15px; line-height: 1.6; }
#flow-bar { width: min(600px, calc(100% - 32px)); margin: 16px auto 32px; padding: 4px; gap: 4px; background: #f1f4fa; }
.flow-bar .step { min-height: 44px; padding: 8px 12px; gap: 8px; font: 500 13px/1.35 var(--sans); letter-spacing: 0; }
.flow-bar .step-dot { width: 24px; height: 24px; flex-basis: 24px; border-color: #d5dfed; font-size: 12px; }
.flow-bar .step.active { color: var(--blue); font-weight: 600; box-shadow: 0 2px 8px #142c580c; }
:is(#step-1, #step-2)>.section-heading h2, #step-4 .confirmation h2 { font-family: var(--display); font-size: clamp(32px, 3.5vw, 44px); line-height: 1.16; letter-spacing: -.03em; }
#step-1 .form-block h3, #step-2 .review-block h3 { margin-bottom: 16px; font-family: var(--display); font-size: 18px; letter-spacing: -.015em; }
:is(#step-1, #step-2, #step-4) .summary-title { font-family: var(--display); font-size: 20px; letter-spacing: -.02em; }
#step-1 .form-layout, #step-2 .review-grid { gap: 32px; }
#step-1 .form-block, #step-2 .review-block { margin-bottom: 32px; padding-bottom: 32px; }
#step-1 :is(.fields, .address-fields) { gap: 16px; }
#step-1 .field { gap: 8px; }
#step-1 :is(input:not([type="radio"]), textarea, select) { padding: 12px 16px; border-color: #c9d5e6; border-radius: 10px; font-family: var(--sans); box-shadow: 0 1px 2px #142c5805; }
#step-1 :is(input:not([type="radio"]), textarea, select):focus:not(.invalid):not([aria-invalid="true"]):not(:user-invalid) { box-shadow: 0 0 0 3px #2557d617; }
#step-1 :is(.field small, .mode-option small, .optional) { font-size: 13px; line-height: 1.5; }
#step-1 :is(.recipient-card, .mode-option) { border-color: var(--order-line); background: #f7f9fd; }
#step-1 .recipient-card { margin-bottom: 16px; padding: 24px; border-radius: 16px; }
#step-1 .recipient-heading { margin-bottom: 16px; }
#step-1 .address-fields { margin-top: 24px; padding-top: 24px; }
#step-1 #sample-details, #step-1 .recipient-gift-preview { font-size: 13px; }
:is(#step-1, #step-2) .order-aside { padding: 24px; border-radius: 16px; background: #f0f5ff; }
:is(#step-1, #step-2, #step-4) :is(.summary-foot, .gift-item .text-button, .gift-item-name small, .summary-row.total span:first-child) { font-size: 13px; }
:is(#step-1, #step-2, #step-4) .summary-row.total { padding: 16px; background: #fff0b9; }
:is(#step-1, #step-2, #step-4) .summary-row.total span:last-child { font-family: var(--display); font-size: clamp(26px, 2.5vw, 32px); line-height: 1.25; letter-spacing: -.025em; }
#step-2 .review-block p { line-height: 1.7; }
#step-2 .message-preview { padding: 16px; font-family: var(--sans); line-height: 1.7; }
#step-2 .status-label { padding: 6px 10px; border-radius: 8px; font-size: 13px; }

/* Native dialogs keep their existing scrolling bodies and persistent actions. */
.dialog { padding: 24px; border-color: var(--line); border-radius: 20px; box-shadow: 0 20px 64px #142c5829; }
.dialog::backdrop { background: #142c5873; backdrop-filter: blur(4px); }
.dialog.hamper-dialog { border-radius: 20px; }
.dialog h2, #recipient-dialog h2 { font-family: var(--display); font-size: clamp(26px, 2.5vw, 32px); line-height: 1.2; letter-spacing: -.03em; }
.dialog p, .contents-copy .contents-note, .contents-list li { font-size: 14px; line-height: 1.65; }
.dialog :is(.live-message, .contents-note) { font-size: 13px; }
.dialog-close { width: 36px; height: 36px; flex-basis: 36px; border-color: var(--line); background: #f6f8fc; }
.dialog-close:hover { transform: none; border-color: #b8cbed; background: #edf3ff; }
.contents-layout { gap: 32px; padding: 32px; }
.contents-copy { padding-top: 16px; }
.contents-list li { padding-block: 12px; border-color: var(--line); }
.contents-list li:before { top: 14px; }
.contents-footer { padding: 16px 24px; border-color: var(--line); }
.dialog-message { padding: 24px; font-family: var(--sans); font-size: 17px; line-height: 1.7; }
.dialog.basket-dialog { width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; }
.basket-dialog[open] { display: flex; flex-direction: column; }
.basket-dialog .dialog-head { flex: 0 0 auto; padding: 24px; border-bottom: 1px solid var(--line); }
.basket-dialog .dialog-head h2 { margin: 0; font-size: 26px; }
.basket-items { min-height: 0; padding-inline: 24px; overflow-y: auto; overscroll-behavior: contain; }
.basket-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.basket-item:last-child { border-bottom: 0; }
.basket-item>:is(.product-photo, img) { grid-column: 1; grid-row: 1 / span 2; display: block; width: 64px; height: 72px; border-radius: 10px; object-fit: cover; }
.basket-item-info { grid-column: 2; grid-row: 1; min-width: 0; }
.basket-item-info h3 { margin: 0 0 4px; font: 700 16px/1.4 var(--display); letter-spacing: -.015em; overflow-wrap: anywhere; }
.basket-item-info :is(p, span, small) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.basket-item .quantity-control { grid-column: 2; grid-row: 2; }
.basket-item-total { grid-column: 3; grid-row: 1 / span 2; font-size: 15px; font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.basket-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-top: 1px solid var(--line); background: #f7f9fd; }
.basket-footer>:is(p, div) { min-width: 0; margin: 0; font-size: 13px; }
.basket-footer strong { display: block; font: 700 24px/1.3 var(--display); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.basket-empty { padding: 48px 24px; color: var(--muted); font-size: 15px; text-align: center; }
.basket-empty>span { display: block; margin-bottom: 16px; color: #b15c83; font-size: 32px; line-height: 1; }
.basket-empty h3 { margin: 0 0 24px; color: var(--navy); font: 700 20px/1.4 var(--display); letter-spacing: -.02em; }

/* One FAQ reading column and a quieter, readable footer. */
#faqs { display: block; width: min(800px, calc(100% - 64px)); padding-block: 64px; }
#faqs .faq-title { margin-bottom: 32px; }
#faqs .faq-title h2 { font: 700 clamp(32px, 3.2vw, 40px)/1.2 var(--display); letter-spacing: -.03em; }
.faq-items details { margin-bottom: 12px; border-color: var(--line); border-radius: 12px; background: #fafbfe; }
.faq-items summary { gap: 16px; padding: 20px 24px; font-size: 15px; line-height: 1.6; }
.faq-items details p { padding: 0 64px 24px 24px; font-size: 14px; line-height: 1.75; }
.footer-commerce { padding-top: 48px; background: var(--navy); }
.footer-top { gap: 32px; padding-bottom: 32px; }
.footer-wordmark { font-size: clamp(36px, 4.5vw, 58px); line-height: 1.12; letter-spacing: -.04em; white-space: normal; }
.footer-links { flex-wrap: wrap; gap: 24px; font-size: 14px; line-height: 1.5; }
.footer { gap: 12px 24px; padding-block: 24px; border-color: #ffffff24; color: #c0cee7; font-size: 13px; line-height: 1.6; }

@media (max-width: 1119px) {
  .nav-right { gap: 16px; }
  .hero-inner { gap: 32px; padding-block: 40px; }
  .hamper-inner { padding: 24px; }
  .hamper-inner h3 { min-height: 0; font-size: 24px; }
}
@media (max-width: 900px) {
  :root { --header-height: 76px; }
  .nav, .nav-right { gap: 14px; }
  .brand { font-size: 22px; }
  /* One compact row per hamper; keep each sprite tile square. */
  .gift-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hamper-option { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .hamper-visual { align-self: start; border-radius: 19px 0 0 19px; }
  .hamper-inner { align-self: center; padding: clamp(20px, 3vw, 28px); }
  .hamper-inner h3 { padding-right: 44px; font-size: clamp(22px, 3vw, 26px); }
  .card-quantity { margin-top: 0; }
}
@media (max-width: 760px) {
  .nav .nav-link, .nav .nav-cta { display: none; }
  .account-button { flex-basis: 38px; width: 38px; min-width: 38px; height: 38px; min-height: 38px; }
}
@media (max-width: 700px) {
  :root { --header-height: 68px; }
  .wrap { width: calc(100% - 32px); }
  .nav { gap: 8px; }
  .brand { gap: 6px; font-size: 20px; }
  .brand-icon { width: 27px; height: 27px; flex-basis: 27px; }
  .nav-right { flex: 0 0 auto; gap: 8px; }
  .region { max-width: none; padding: 6px 8px; font-size: 10px; }
  .hero-inner { gap: 32px; padding-block: 40px; }
  .hero h1 { margin-bottom: 24px; font-size: clamp(56px, 15.5vw, 60px); line-height: 1.1; }
  .hero-actions .btn { min-height: 48px; padding: 12px 20px; gap: 16px; font-size: 14px; }
  .shop-section { padding-block: 48px 160px; }
  .gift-grid { gap: 16px; }
  .how-section { padding-block: 48px; }
  .how-heading { margin-bottom: 32px; }
  .how-caption { gap: 12px; padding: 16px; }
  .how-caption h3 { font-size: 24px; letter-spacing: -.025em; }
  .checkout-starter { display: grid; grid-template-columns: 36px minmax(0, 1fr); inset-inline: 16px; width: calc(100% - 32px); padding: 12px; gap: 12px; }
  #selection-summary { display: grid; grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  .selection-thumbs { grid-column: 1; grid-row: 1; }
  .selection-copy { grid-column: 2; grid-row: 1; }
  .selected-summary>.selection-price { grid-column: 3; grid-row: 1; margin-left: 0; font-size: 16px; }
  .checkout-starter .basket-edit { grid-column: 1; grid-row: 2; }
  #choose-next { grid-column: 2; grid-row: 2; width: 100%; }
  #faqs { width: calc(100% - 32px); padding-block: 48px; }
  .faq-items summary { padding: 20px 16px; font-size: 14px; }
  .faq-items details p { padding: 0 48px 20px 16px; }
  .footer-top { gap: 24px; }
  .footer-links { gap: 16px 24px; }
  .dialog.hamper-dialog { width: calc(100% - 32px); border-radius: 16px; }
  .contents-layout { padding: 24px; gap: 24px; }
  .contents-copy { padding-top: 0; }
  .dialog h2, #recipient-dialog h2 { font-size: 28px; }
}
@media (max-width: 600px) {
  /* Full-width photograph, then a title and a compact price / quantity row. */
  .hamper-option { display: flex; }
  .hamper-visual { align-self: stretch; border-radius: 19px 19px 0 0; }
  .hamper-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-self: stretch; align-items: center; gap: 12px 16px; padding: 20px; }
  .hamper-inner h3 { grid-column: 1 / -1; padding-right: 0; font-size: 22px; }
  .hamper-pricing { min-width: 0; margin: 0; }
  #flow-bar { gap: 0; margin-block: 12px 24px; }
  .flow-bar .step { flex-direction: column; min-height: 60px; padding: 8px 2px; gap: 4px; }
  .flow-bar .step-dot { width: 20px; height: 20px; flex-basis: 20px; font-size: 11px; }
  #step-1 .form-layout, #step-2 .review-grid { gap: 24px; }
  #step-1 .recipient-card, :is(#step-1, #step-2) .order-aside { padding: 20px; }
  .basket-dialog .dialog-head, .basket-footer { padding: 20px; }
  .basket-items { padding-inline: 20px; }
  .basket-item { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding-block: 20px; }
  .basket-item>:is(.product-photo, img) { width: 52px; height: 64px; }
  .basket-item-total { grid-column: 2; grid-row: 3; font-size: 14px; text-align: left; }
  .basket-footer { flex-direction: column; align-items: stretch; }
  .basket-footer .btn { width: 100%; }
}
@media (max-width: 450px) {
  .selection-thumbs i { width: 32px; height: 36px; flex-basis: 32px; }
  .selection-thumbs i+i { margin-left: -16px; }
  .selected-summary>.selection-copy { font-size: 13px; }
  .selected-summary>.selection-price { font-size: 15px; }
  .footer-wordmark { font-size: 36px; }
}
@media (max-width: 359px) {
  .hamper-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .btn:hover, .how-action .btn:hover, .hamper-option:hover, .hamper:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .account-button, .basket-edit, .quantity-control, .quantity-control button { transition: none; }
}
