.offer-page-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; }
.offer-header-link, .offer-back { color: var(--green); font-size: .9rem; font-weight: 700; }
.offer-header-link:hover, .offer-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.offer-page { width: min(1060px, calc(100% - 32px)); min-height: 66vh; padding-block: 18px 54px; }
.offer-back { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-bottom: 10px; }
.offer-back .icon { width: 17px; height: 17px; }

.offer-overview, .offer-panel, .offer-notice { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.offer-overview { display: grid; overflow: hidden; }
.offer-main-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; min-width: 0; padding: clamp(14px, 4vw, 34px); background: #fff; }
.offer-main-photo > img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.offer-overview.is-ended .offer-main-photo > img { filter: grayscale(1); }
.offer-photo-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 110px; border-radius: 14px; background: var(--lime-light); }
.offer-overview-copy { min-width: 0; padding: clamp(19px, 4vw, 39px); border-top: 1px solid var(--line); }
.offer-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--muted); line-height: 1.4; font-size: .88rem; font-weight: 700; }
#offer-category { border-radius: 100px; padding: 4px 9px; background: var(--lime-light); color: var(--green); }
.offer-overview h1, .offer-panel h2, .offer-notice h1 { font-family: var(--display); color: var(--green-dark); font-weight: 800; letter-spacing: -.043em; line-height: 1.12; overflow-wrap: anywhere; }
.offer-overview h1 { font-size: clamp(1.7rem, 4.8vw, 2.65rem); }
.offer-panel h2, .offer-notice h1 { font-size: clamp(1.38rem, 3.2vw, 1.8rem); }
.offer-ended, .offer-discount { display: inline-flex; align-items: center; border-radius: 8px; padding: 5px 9px; font-size: .83rem; font-weight: 700; }
.offer-ended { margin-top: 12px; background: #eaeee9; color: #445349; }
.offer-discount { background: var(--lime); color: var(--green-dark); }
.offer-price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; margin-top: 17px; }
.offer-price-line strong { font-family: var(--display); color: var(--green); font-size: clamp(1.88rem, 5.5vw, 2.68rem); font-weight: 800; letter-spacing: -.047em; line-height: 1; }
.offer-price-line del, .offer-recorded-label { color: var(--muted); font-size: .91rem; }
.offer-recorded-label { flex-basis: 100%; }
.offer-dates { display: grid; gap: 5px; margin-top: 14px; color: var(--muted); font-size: .83rem; line-height: 1.4; }
.offer-dates .price-review-note { color: #795020; font-weight: 750; }
.offer-conditions { width: 100%; margin-top: 11px; }
.offer-condition-line { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.offer-payment { color: var(--green); font-weight: 750; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.offer-buy, .offer-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 9px 14px; border: 1px solid transparent; border-radius: 10px; font-size: .88rem; font-weight: 700; text-align: center; }
.offer-buy { background: var(--green); color: #fffefa; }
.offer-buy:hover { background: #235745; }
.offer-buy:disabled { cursor: wait; opacity: .7; }
.offer-secondary { border-color: var(--line); background: var(--surface); color: var(--green-dark); }
.offer-secondary:hover { border-color: #aebfa7; background: var(--lime-light); }
.offer-actions .icon { width: 17px; height: 17px; }
.offer-affiliate, .offer-muted, .offer-feedback-copy { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.offer-affiliate, .offer-feedback-copy { margin-top: 9px; }
.offer-feedback-copy.is-error { color: #872d23; }

.offer-panel, .offer-notice { margin-top: 14px; padding: clamp(17px, 4vw, 30px); }
.offer-notice p { margin-block: 12px; color: var(--muted); line-height: 1.55; }
.offer-notice .offer-buy { margin-top: 3px; }
.offer-description-text, .offer-instructions, .offer-comment-message { line-height: 1.6; overflow-wrap: anywhere; }
.offer-description-text { margin-top: 11px; white-space: pre-wrap; }
.offer-history-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 9px; margin: 13px 0 0; }
.offer-history-summary > div { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #f5f8ec; }
.offer-history-summary dt { color: var(--muted); font-size: .8rem; font-weight: 700; }
.offer-history-summary dd { display: grid; gap: 2px; margin: 4px 0 0; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.offer-history-summary dd strong { color: var(--green-dark); font: 800 1.48rem/1.12 var(--display); }
.offer-history-records { margin-top: 8px; }
.offer-history-records summary { padding-block: 11px; min-height: 44px; cursor: pointer; color: var(--green); font-size: .9rem; font-weight: 700; }
.offer-history-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: .86rem; }
.offer-history-table :is(th, td) { padding: 8px 10px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.offer-history-table th { color: var(--muted); }
.offer-history-table td span { display: block; color: var(--muted); font-size: .8rem; }
.offer-price-alert { margin-top: 16px; border: 1px solid #ccd8bd; border-radius: 12px; background: #f5f8ec; scroll-margin-top: 86px; }
.offer-price-alert summary { min-height: 46px; padding: 11px 14px; color: var(--green-dark); cursor: pointer; font-weight: 750; }
.offer-price-alert-body { padding: 0 14px 14px; }
.offer-price-alert-body > p + p { margin-top: 4px; }
.offer-price-alert-form { display: grid; gap: 6px; margin-top: 12px; }
.offer-price-alert-form label { color: var(--green-dark); font-size: .89rem; font-weight: 700; }
.offer-price-alert-controls, .offer-price-alert-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 9px; }
.offer-price-alert-controls input { flex: 0 1 156px; min-width: min(100%, 110px); min-height: 46px; padding: 9px 11px; border: 1px solid #b6c6b7; border-radius: 8px; background: #fff; color: var(--ink); font-size: 1rem; }
.offer-price-alert-actions { margin-top: 9px; }
.offer-alert-favorites { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-size: .85rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
#offer-alert-enable:disabled { cursor: wait; opacity: .7; }
#offer-alert-match.is-reached { color: var(--green); font-weight: 750; }
.offer-checkout, .offer-report { width: 100%; margin-top: 9px; border-top: 1px solid var(--line); color: var(--green-dark); font-size: .88rem; }
.offer-checkout summary, .offer-report summary { min-height: 44px; padding: 11px 0; cursor: pointer; font-weight: 750; }
.offer-report { margin-top: 0; }
.offer-report-form { display: grid; gap: 7px; }
.offer-report-form label { font-weight: 700; }
.offer-report-form select { max-width: 100%; min-height: 44px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; color: inherit; font: inherit; background: var(--surface); }
.offer-report-form button { justify-self: start; }
.offer-instructions { margin: 0 0 7px; padding-left: 1.4em; }
.offer-instructions li { padding-left: 3px; }
.offer-instructions li + li { margin-top: 6px; }
.offer-coupon { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px; margin-top: 12px; padding: 10px 12px; border: 1px dashed #98af75; border-radius: 10px; background: var(--lime-light); }
.offer-coupon > div { display: grid; gap: 3px; min-width: 0; }
.offer-coupon span { color: var(--muted); font-size: .79rem; font-weight: 700; }
.offer-coupon code { color: var(--green-dark); font-size: 1rem; font-weight: 700; overflow-wrap: anywhere; }
.offer-copy-fallback { display: grid; gap: 5px; margin-top: 10px; color: var(--green-dark); font-size: .84rem; font-weight: 700; }
.offer-copy-fallback input, .offer-comment-form input, .offer-comment-form textarea { width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid #b6c6b7; border-radius: 8px; color: var(--ink); background: #fff; font-size: 1rem; }

.offer-related-list { display: grid; gap: 10px; margin: 13px 0 0; padding: 0; list-style: none; }
.offer-related-list a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 11px; }
.offer-related-list a:hover { border-color: #aebfa7; background: var(--lime-light); }
.offer-related-photo { width: 55px; height: 55px; flex: none; padding: 4px; border-radius: 8px; background: #fff; object-fit: contain; }
.offer-related-copy { display: grid; gap: 4px; min-width: 0; }
.offer-related-copy h3 { color: var(--green-dark); font-size: .93rem; line-height: 1.3; overflow-wrap: anywhere; }
.offer-related-copy strong { color: var(--green); font-size: .94rem; }

.offer-comments > .offer-muted { margin-top: 10px; }
.offer-comment-list { display: grid; gap: 13px; padding: 0; margin: 14px 0 0; list-style: none; }
.offer-comment-list li { padding: 0 0 13px; border-bottom: 1px solid var(--line); }
.offer-comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; margin-bottom: 4px; }
.offer-comment-meta strong { color: var(--green-dark); overflow-wrap: anywhere; }
.offer-comment-meta time { color: var(--muted); font-size: .8rem; }
.offer-comment-message { font-size: .92rem; white-space: pre-wrap; }
.offer-comment-form { display: grid; gap: 7px; max-width: 620px; margin-top: 20px; }
.offer-comment-form h3 { font-size: 1rem; }
.offer-comment-form label { margin-top: 3px; color: var(--green-dark); font-size: .9rem; font-weight: 700; }
.offer-comment-form label span { font-weight: 400; }
.offer-comment-form textarea { resize: vertical; }
.offer-comment-form button { justify-self: start; margin-top: 3px; }
.offer-comment-form .offer-feedback-copy { margin-top: 1px; }

@media (min-width: 720px) {
  .offer-page { width: min(1060px, calc(100% - 64px)); padding-top: 25px; }
  .offer-overview { grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); align-items: stretch; }
  .offer-main-photo { aspect-ratio: 1; align-self: center; }
  .offer-overview-copy { display: flex; flex-direction: column; justify-content: center; align-items: start; border-top: 0; border-left: 1px solid var(--line); }
  .offer-related-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .offer-actions :is(.offer-buy, .offer-secondary) { flex: 1 1 135px; }
}
