.gift-finder { max-width: 1040px; margin: 0 auto; padding: 28px 20px 54px; color: #202020; }
.gift-hero { max-width: 720px; padding: 34px 0 26px; }
.gift-hero h1, .gift-results h1, .gift-result-state h1 { margin: 4px 0 12px; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.02; }
.gift-kicker { margin: 0; color: #006800; font-size: .78rem; font-weight: 800; letter-spacing: .16em; }
.gift-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 26px 0; border-top: 1px solid #dedede; }
.gift-step h2 { margin: 0 0 5px; font-size: 1.45rem; }
.gift-step p { margin: 0 0 17px; color: #666; }
.gift-step-number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #006800; color: #fff; font-weight: 800; }
.gift-step-body { min-width: 0; }
.gift-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.gift-pill, .gift-action button, .gift-result-actions button, .gift-primary-link { min-height: 44px; border: 2px solid #242424; border-radius: 5px; padding: 10px 18px; background: #fff; color: #202020; font: inherit; font-weight: 700; cursor: pointer; }
.gift-pill[aria-pressed="true"] { border-color: #006800; background: #006800; color: #fff; }
.gift-pill-secondary { border-color: #777; }
.gift-pill:hover, .gift-result-actions button:hover { border-color: #006800; color: #006800; }
.gift-pill[aria-pressed="true"]:hover { color: #F4E100; }
.gift-pill:focus-visible, .gift-action button:focus-visible, .gift-result-actions button:focus-visible, .gift-primary-link:focus-visible, .gift-price-inputs input:focus-visible, .gift-range input:focus-visible { outline: 2px solid #006800; outline-offset: 3px; }
.gift-progressive[hidden], .gift-note[hidden] { display: none; }
.gift-price-inputs { display: flex; justify-content: space-between; gap: 18px; max-width: 620px; }
.gift-price-inputs label { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; min-width: 0; font-weight: 700; }
.gift-price-inputs label span { position: absolute; left: 12px; bottom: 13px; color: #666; }
.gift-price-inputs input { grid-column: 1 / -1; width: 170px; min-height: 44px; box-sizing: border-box; margin-top: 7px; padding: 8px 10px 8px 25px; border: 1px solid #777; border-radius: 4px; font: inherit; }
.gift-range { position: relative; max-width: 620px; height: 54px; margin-top: 10px; }
.gift-range-track { position: absolute; top: 25px; right: 8px; left: 8px; height: 4px; background: #bbb; }
.gift-range input { position: absolute; top: 5px; left: 0; width: 100%; height: 44px; margin: 0; background: transparent; pointer-events: none; appearance: none; }
.gift-range input::-webkit-slider-thumb { width: 26px; height: 26px; border: 3px solid #fff; border-radius: 50%; background: #038801; box-shadow: 0 0 0 1px #006800; pointer-events: auto; appearance: none; }
.gift-range input::-moz-range-thumb { width: 24px; height: 24px; border: 3px solid #fff; border-radius: 50%; background: #038801; box-shadow: 0 0 0 1px #006800; pointer-events: auto; }
.gift-note { padding: 12px 15px; border-left: 4px solid #038801; background: #f4f4f4; }
.gift-action { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 8px; padding: 22px; background: #efefef; border-radius: 6px; }
.gift-action strong { font-size: 1.25rem; }
.gift-action p { margin: 4px 0 0; }
.gift-action button, .gift-primary-link { border-color: #038801; background: #038801; color: #fff; text-decoration: none; }
.gift-action button:not(:disabled):hover, .gift-primary-link:hover { border-color: #006800; background: #006800; color: #F4E100; text-decoration: none; }
.gift-action button:disabled { border-color: #999; background: #999; cursor: not-allowed; }
.gift-results-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 30px 0 24px; border-bottom: 1px solid #ddd; }
.gift-results-header h1 { font-size: clamp(2rem, 4vw, 3rem); }
.gift-heading-link, .gift-heading-link:hover { display: block; color: inherit; text-decoration: none; }
.gift-heading-link:hover h1 { text-decoration: underline; }
.gift-heading-link:focus-visible { outline: 2px solid #006800; outline-offset: 4px; }
.gift-result-actions { display: flex; align-items: center; gap: 12px; }
.gift-result-actions a { min-height: 44px; display: inline-flex; align-items: center; color: #006800; font-weight: 700; }
.gift-result-list { margin-top: 24px; }
.gift-result-list .productBox { height: auto; min-height: 245px; vertical-align: top; outline-color: #1a6e3c; }
.gift-result-list .productBox:hover { outline-color: #006800; }
.gift-result-list .productBox:not(.gift-unavailable-card) > a { height: 245px; }
.gift-curation { margin: 0 5px 5px; padding: 13px 15px 15px; background: #145730; color: #fff; text-align: left; }
.gift-curation-label { display: block; margin: 10px 0 5px; color: #F4E100; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.gift-curation-label:first-child { margin-top: 0; }
.gift-reason { margin: 0; padding: 0; color: #fff; font-size: 12px; line-height: 1.45; text-align: left; }
.gift-type { display: inline-block; max-width: 100%; box-sizing: border-box; padding: 4px 9px; border-radius: 12px; font-size: 11px; line-height: 1.2; font-weight: 700; }
.gift-type-essential { background: #d4edda; color: #006800; }
.gift-type-fun_gift { background: #fff; color: #145730; }
.gift-type-upgrade { background: #F4E100; color: #202020; }
.gift-unavailable-card .gift-curation { margin: 14px 0 0; }
.gift-unavailable { margin: 10px 0 0; color: #9c1118; font-weight: 800; }
.gift-unavailable-card { box-sizing: border-box; padding: 24px !important; background: #f4f4f4; }
.gift-result-state { max-width: 650px; padding: 80px 0; }
.gift-result-state p { margin-bottom: 26px; }
.gift-product-context { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 24px; padding: 18px 20px; border-left: 4px solid #038801; background: #f1f1f1; }
.gift-product-context > a { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; box-sizing: border-box; min-height: 34px; padding: 6px 12px; border: 1px solid #006800; border-radius: 4px; background: #006800; color: #fff; font-size: 13px; font-weight: normal; text-decoration: none; }
.gift-product-context > a:hover { background: #145730; color: #F4E100; text-decoration: none; }
.gift-product-context > a:focus-visible { outline: 2px solid #006800; outline-offset: 3px; }
.gift-product-context p { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.5; }
.gift-product-context p strong { display: block; margin-bottom: 5px; }
.gift-product-notes { flex: 1; min-width: 0; }
#content-body .gift-product-notes p + p { margin-top: 16px; }

@media screen and (max-width: 800px) {
  .gift-results-header { align-items: start; flex-direction: column; }
}

@media screen and (max-width: 540px) {
  .gift-product-context { align-items: stretch; flex-direction: column; gap: 16px; padding: 16px; }
  .gift-product-context > a { align-self: flex-start; }
  .gift-finder { padding: 15px 10px 38px; }
  .gift-hero { padding-top: 20px; }
  .gift-step { grid-template-columns: 38px minmax(0, 1fr); gap: 9px; }
  .gift-step-number { width: 32px; height: 32px; }
  .gift-pill { width: 100%; }
  .gift-price-inputs { gap: 8px; }
  .gift-price-inputs label, .gift-price-inputs input { width: 100%; }
  .gift-action { align-items: stretch; flex-direction: column; }
  .gift-action button { width: 100%; }
  .gift-result-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .gift-result-actions button { width: 100%; }
}
