/* Advertorial layout (advertorial.php): follows the offer's own landing page design. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Theme colors and header edge: one set per source platform theme. */
.theme-techetc      { --band: linear-gradient(100deg, #000574 4.66%, #0085ff 99.49%); --edge: url(../img/adv-pixels.svg) repeat-x left bottom / 256px 96px; --edge-h: 96px;
                      --frame: linear-gradient(100deg, #000574 4.66%, #0085ff 99.49%); --accent: #012ea0; --accent-soft: rgba(1, 46, 160, .2); --foot: #001750; --title: #1c1c1c; --page: #fff; --logo-font: Inter, sans-serif; }
.theme-wellwellwell { --band: linear-gradient(170deg, #12b26f 0%, #0f8a57 45%, #106e4b 100%); --edge: none; --edge-h: 0px;
                      --frame: linear-gradient(120deg, #126a4c 0%, #10a16c 100%); --accent: #108f72; --accent-soft: rgba(16, 143, 114, .2); --foot: #165647; --title: #1c1c1c; --page: #fff; --logo-font: Inter, sans-serif; }
.theme-beautysaver  { --band: #ee4423; --edge: url(../img/adv-wave.svg) no-repeat left bottom / 100% 80px; --edge-h: 80px;
                      --frame: #ee4423; --accent: #ee4423; --accent-soft: rgba(238, 68, 35, .2); --foot: #772212; --title: #2a1f04; --page: #fdf6ee; --logo-font: Georgia, "Times New Roman", serif; }
.theme-hoom         { --band: #322b23; --edge: url(../img/adv-torn.svg) no-repeat left bottom / 100% 80px; --edge-h: 80px;
                      --frame: #322b23; --accent: #bc6d13; --accent-soft: rgba(188, 109, 19, .2); --foot: #5e370a; --title: #5b4c44; --page: #f8f1ea; --logo-font: Georgia, "Times New Roman", serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.adv { margin: 0; background: var(--page); color: #000; font: 16px/normal Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
.adv img { display: block; max-width: 100%; height: auto; }
.adv a { color: var(--accent); }

/* ---------- Header: gradient band with a pixel-dissolve edge, white headline, hero image ---------- */
.adv-head { position: relative; color: var(--head-ink, #fff); padding-top: 10px; }
.adv-band {
  position: absolute; inset: 0 0 auto 0; height: 600px; z-index: 0;
  background: var(--band);
}
.adv-band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: var(--edge-h);
  background: var(--edge);
}
.adv-top, .adv-hero { position: relative; z-index: 1; }
.adv-top { display: flex; justify-content: center; padding: 6px 20px 26px; }
.adv-logo { color: var(--logo-ink, #fff) !important; text-decoration: none; font-family: var(--logo-font); font-weight: 700; font-size: 24px; letter-spacing: -.5px; }
.adv-hero { max-width: 990px; margin: 0 auto; padding: 0 20px; }
.adv-label { margin: 0 0 23px; font-size: 9px; font-weight: 600; letter-spacing: 1.1px; line-height: 12px; text-transform: uppercase; }
.adv-hero h1 { max-width: 921px; margin: 0 0 20px; font-size: 30px; font-weight: 700; line-height: 34.5px; letter-spacing: -.21px; }
.adv-byline { margin: 0 0 26px; }
.adv-by { display: block; font-size: 12px; font-weight: 400; letter-spacing: .84px; line-height: 15px; }
.adv-by strong { font-weight: 600; text-decoration: underline; }
.adv-date { display: block; font-size: 9px; letter-spacing: .5px; line-height: 12px; }
.adv-hero-img { display: block; }
.adv-hero-img img { width: 100%; }

/* ---------- Article column ---------- */
.adv-main { max-width: 832px; margin: 0 auto; padding: 0 20px 20px; }
.adv-text { margin: 30px 0; }
.adv-text p, .adv-saving-text p { margin: 0 0 20px; line-height: 24px; }
.adv-text p.gap, .adv-saving-text p.gap { margin: 0; height: 4px; }
.adv-text p:last-child { margin-bottom: 0; }
.adv-text ul, .adv-text ol { margin: 16px 0; padding-left: 20px; line-height: 24px; }
.adv-text li { margin: 0; }
.adv-text h3, .adv-text h4 { margin: 24px 0 12px; font-weight: 600; line-height: 1.3; }
.adv-text a, .adv-saving-text a, .adv-review-text a { color: var(--accent); font-weight: 600; }
.adv-text blockquote { margin: 20px 0; padding: 0 0 0 16px; border-left: 3px solid var(--accent); font-style: italic; }
.adv-text img { margin: 20px 0; width: 100%; }
.adv-title { margin: 21.58px 0 10px; color: var(--title); font-size: 26px; font-weight: 400; line-height: 32px; }
.adv-image { margin: 20px 0; }
.adv-image img { width: 100%; }

/* ---------- Reviews ---------- */
.adv-reviews { margin: 60px 0 80px; }
.adv-reviews-head { padding-bottom: 32px; border-bottom: 1px solid #e6e6e6; }
.adv-reviews h2, .adv-review h3 { margin: 0 0 12px; font-size: 24px; font-weight: 500; line-height: 32px; color: #000; }
.adv-rating { display: flex; align-items: center; gap: 10px; margin: 0; }
.adv-rating-num { font-size: 35px; font-weight: 500; letter-spacing: 1.6px; }
.adv-rating-note { font-size: 12px; }
.adv-stars { color: var(--accent); font-size: 16px; letter-spacing: 1px; }
.adv-review { padding: 40px 0 60px; border-bottom: 1px solid #e6e6e6; }
.adv-review .adv-stars { display: block; margin-bottom: 8px; }
.adv-review-text { line-height: 24px; }
.adv-review-text p { margin: 0 0 12px; }

/* ---------- Special savings box ---------- */
.adv-saving {
  margin: 0 -59px 30px; padding: 40px 39px; border-radius: 10px;
  background: var(--frame);
}
.adv-saving-inner { background: #fff; padding: 40px; }
.adv-saving h2 { margin: 0 0 30px; color: var(--title); font-size: 26px; font-weight: 400; line-height: 32px; }
.adv-saving-text p { line-height: 28px; margin: 0; }
.adv-saving-text p.gap { height: 28px; }

/* ---------- Button ---------- */
.adv-button { margin: 40px 0; }
.adv-button a {
  display: block; padding: 24px 11px; border: 1px solid var(--accent); border-radius: 500px;
  background: var(--accent-soft); color: var(--accent); text-align: center; text-decoration: none;
  font-size: 20px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
}
.adv-button a:hover { background: var(--accent); color: #fff; }

/* ---------- Disclaimers + footer ---------- */
.adv-disclaimer { margin: 0 0 12px; font-size: 9px; font-weight: 700; line-height: 1.2; color: #000; }
.adv-foot { background: var(--foot); color: #fff; padding: 48px 20px; margin-top: 20px; }
.adv-foot-inner { max-width: 950px; margin: 0 auto; }
.adv-foot .adv-logo, .adv-sticky .adv-logo { color: #fff !important; }
.adv-foot .adv-logo { display: inline-block; margin-bottom: 28px; font-size: 26px; }
.adv-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 14px; }
.adv-foot nav a { color: #fff; font-size: 8px; font-weight: 700; letter-spacing: 1.1px; line-height: 24px; text-transform: uppercase; text-decoration: none; }
.adv-foot nav a:hover { text-decoration: underline; }
.adv-company, .adv-copy { margin: 0; color: rgba(255, 255, 255, .7); font-size: 8px; letter-spacing: .9px; line-height: 20px; text-transform: uppercase; }

/* ---------- Small screens ---------- */
@media (max-width: 990px) {
  .adv-saving { margin-left: -20px; margin-right: -20px; border-radius: 0; padding: 20px; }
  .adv-saving-inner { padding: 24px 20px; }
}
@media (max-width: 600px) {
  .adv-hero h1 { font-size: 24px; line-height: 28px; }
  .adv-title, .adv-saving h2 { font-size: 22px; line-height: 28px; }
  .adv-button a { font-size: 16px; padding: 18px 11px; }
  .adv-band { height: 420px; }
}

/* ---------- Sticky bottom bar (wellwellwell, beautysaver and hoom themes) ---------- */
.adv-sticky { display: none; }
.theme-techetc .adv-sticky, .theme-wellwellwell .adv-sticky, .theme-beautysaver .adv-sticky, .theme-hoom .adv-sticky {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 10;
  width: min(1000px, calc(100% - 24px)); padding: 10px 12px 10px 24px; border-radius: 500px;
  background: color-mix(in srgb, var(--accent) 32%, rgba(255, 255, 255, .55));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}
.adv-sticky .adv-logo { font-size: 20px; }
.adv-sticky a.adv-sticky-btn {
  padding: 10px 22px; border-radius: 500px; background: rgba(255, 255, 255, .4); color: #fff; text-decoration: none;
  font-size: 11px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; white-space: nowrap;
}
.adv-sticky a.adv-sticky-btn:hover { background: #fff; color: var(--accent); }
.theme-techetc .adv-foot, .theme-wellwellwell .adv-foot, .theme-beautysaver .adv-foot, .theme-hoom .adv-foot { padding-bottom: 100px; }

/* ---------- Generic html blocks and FAQ (used by themes copied from other page families) ---------- */
.adv-html { margin: 30px 0; line-height: 24px; }
.adv-html p { margin: 0 0 20px; }
.adv-html h2 { margin: 30px 0 12px; color: var(--title); font-size: 26px; font-weight: 400; line-height: 32px; }
.adv-html h3, .adv-html h4 { margin: 24px 0 10px; font-weight: 600; line-height: 1.3; }
.adv-html ul, .adv-html ol { margin: 16px 0; padding-left: 20px; }
.adv-html img { width: 100%; margin: 16px 0; }
.adv-html table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.adv-html th, .adv-html td { padding: 10px 12px; border: 1px solid #e3e3e3; text-align: left; vertical-align: top; }
.adv-html th { background: #f6f6f6; font-weight: 600; }
.adv-html a, .adv-faq a { color: var(--accent); font-weight: 600; }
/* Store-style overlay hero ('hero_layout' => 'overlay'): headline + first blocks laid over the hero photo */
.adv-hero--overlay { max-width: 1040px; }
.adv-overlay { position: relative; display: flex; align-items: center; min-height: 500px; overflow: hidden; border-radius: 4px; margin: 0 0 18px; }
.adv-overlay-img { position: absolute; inset: 0; display: block; }
.adv-overlay-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Readability: a light panel behind the text side of the photo, fading out toward the picture. */
.adv-overlay::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .88) 44%, rgba(255, 255, 255, .55) 56%, rgba(255, 255, 255, 0) 68%);
}
.adv-overlay-text { position: relative; z-index: 2; width: 50%; padding: 36px 0 36px 40px; }
.adv-overlay-text h1, .adv-overlay-text .adv-html { text-shadow: 0 1px 2px rgba(255, 255, 255, .7); }
.adv-overlay-text .adv-label { margin-bottom: 14px; }
.adv-overlay-text h1 { margin-bottom: 14px; }
.adv-overlay-text .adv-html { margin: 0 0 12px; }
.adv-overlay-text .adv-button { margin: 18px 0 10px; }
.adv-overlay-text .adv-button a { display: inline-block; padding: 18px 44px; }
@media (max-width: 800px) {
  .adv-overlay { display: block; min-height: 0; }
  .adv-overlay-img { position: static; }
  .adv-overlay-img img { height: auto; }
  .adv-overlay-text { width: auto; padding: 20px 0 0; }
  .adv-overlay::before { display: none; }
}

/* Split hero ('hero_layout' => 'split'): text left, photo right, side by side, no text over the photo */
.adv-hero--split .adv-overlay { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; min-height: 0; overflow: visible; }
.adv-hero--split .adv-overlay::before { display: none; }
.adv-hero--split .adv-overlay-img { position: static; order: 2; }
.adv-hero--split .adv-overlay-img img { height: auto; object-fit: contain; }
.adv-hero--split .adv-overlay-text { width: auto; padding: 0; text-shadow: none; }
.adv-hero--split .adv-overlay-text h1, .adv-hero--split .adv-overlay-text .adv-html { text-shadow: none; }
@media (max-width: 800px) { .adv-hero--split .adv-overlay { display: block; } }

/* Headline highlights from the original page ('headline_html' in a landing file) */
.adv-hero h1 mark { background: var(--mark, #ffe866); color: inherit; padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.adv-hero h1 .x-red { color: #e3262f; }
.adv-hero h1 .x-alt { color: var(--alt, #f39200); }

/* "What I Love About …" box (GU platform love-section) */
.adv-html.x-love { margin: 40px -59px; padding: 50px 69px; background: #fff; border: 10px solid var(--accent); border-radius: 20px; line-height: 21px; font-size: 14px; }
.adv-html.x-love h3 { margin: 0 0 28px; font-size: 24px; font-weight: 700; color: #000; }
.adv-html.x-love p { margin: 0 0 16px; }
@media (max-width: 990px) { .adv-html.x-love { margin-left: 0; margin-right: 0; padding: 28px 22px; } }
.adv-faq { margin: 40px 0; }
.adv-faq details { border-bottom: 1px solid #e3e3e3; padding: 14px 0; }
.adv-faq summary { cursor: pointer; font-weight: 600; line-height: 24px; }
.adv-faq-a { padding-top: 10px; line-height: 24px; }
.adv-faq-a p { margin: 0 0 12px; }
.adv-hero h1 .x-bold { font-weight: 800; }
