/*
 * ll-holiday-gift-ad.css — the festive holiday mid-post gift ad (creative holiday_festive_midpost_v1, v3 plugin 7.2.0).
 * A faithful port of the owner-approved festive ads in LL-Festive-Midpost-Ads.html (2026-11-15): same copy, portrait,
 * certificate preview, colours, gradients, star field, bows, ribbons, type and buttons. Every class is prefixed ll-hga.
 *
 * The mockup was drawn ~1184 px wide and scales with the viewport (vw). In posts the ad is narrower (928 px on desktop,
 * 360 px on a 390 px phone), so sizes scale with the AD's width instead (container units: cqi = vw / 0.955 at the
 * mockup's width; on phones vw * 1.076), with the mockup's vw values first as a fallback. Breakpoints are the mockup's
 * own (viewport 680 px for the top panel, 600 px for the certificate panel).
 *
 * The blog template styles headings, paragraphs, links and images inside Divi text modules with selectors such as
 * ".llbp-content .et_pb_text_inner h2:not(.ll-dfa *)…" (specificity 0,6,1, some !important) and exempts only the older
 * ads. Every text, button and image declaration below is therefore !important under a scope of 0,7,0 or more (the
 * class repeated), and sizes that change with the layout are custom properties set on .ll-hga, so media/container rules
 * never have to out-rank anything themselves.
 */
.ll-hga {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  container-name: ll-hga;
  display: block;
  padding: 0;
  margin: 28px 0 32px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #736087;
  background:
    radial-gradient(ellipse at 83% 27%, #205748 0%, transparent 53%),
    radial-gradient(ellipse at 22% 88%, #123b36 0%, transparent 59%),
    #071e1b;
  color: #fff8ed;
  box-shadow: 0 21px 52px #2116302b;
  font: 16px/1.55 "DM Sans", Arial, sans-serif;
  text-align: left;

  --hga-h: clamp(2.65rem, 5.45vw, 4.85rem);
  --hga-h3: clamp(2.15rem, 4.8vw, 4.2rem);
  --hga-session: clamp(1rem, 2vw, 1.28rem);
  --hga-session-mt: 20px;
  --hga-included: .92rem;
  --hga-delivery: .9rem;
  --hga-btn: .94rem;
  --hga-btn-px: 23px;
  --hga-btn-gap: 15px;
  --hga-pad-y: clamp(26px, 5vw, 64px);
  --hga-pad-x: clamp(26px, 5vw, 64px);
  --hga-cert-gap: clamp(22px, 5vw, 60px);
  --hga-cert-pad: clamp(25px, 4.5vw, 54px);
  --hga-bow-hero: clamp(54px, 9vw, 108px);
  --hga-bow-cert: clamp(46px, 8vw, 94px);
}
@supports (width: 1cqi) {
  .ll-hga {
    --hga-h: clamp(2.65rem, 5.71cqi, 4.85rem);
    --hga-h3: clamp(2.15rem, 5.03cqi, 4.2rem);
    --hga-session: clamp(1rem, 2.09cqi, 1.28rem);
    --hga-pad-y: clamp(26px, 5.24cqi, 64px);
    --hga-pad-x: clamp(26px, 5.24cqi, 64px);
    --hga-cert-gap: clamp(22px, 5.24cqi, 60px);
    --hga-cert-pad: clamp(25px, 4.71cqi, 54px);
    --hga-bow-hero: clamp(54px, 9.42cqi, 108px);
    --hga-bow-cert: clamp(46px, 8.38cqi, 94px);
  }
}
.ll-hga *, .ll-hga *::before, .ll-hga *::after { box-sizing: border-box; }
/* Star field over the whole ad. */
.ll-hga::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 15px 22px, #fff6db 1px, transparent 2px),
    radial-gradient(circle at 66px 49px, #e8ddff 1.7px, transparent 2.8px),
    radial-gradient(circle at 28px 89px, #f7d1aa .8px, transparent 2px);
  background-size: 91px 115px, 163px 143px, 83px 107px;
  opacity: .9;
  -webkit-mask-image: linear-gradient(82deg, transparent 5%, black 78%);
  mask-image: linear-gradient(82deg, transparent 5%, black 78%);
}

/* The in-post box: the blog template's rule for the in-post ads (ll-blog-template-compat), applied to this ad. */
.llbp-content .ll-hga { --ll-btc-w: calc(100vw - 30px); width: var(--ll-btc-w) !important; max-width: none !important; left: calc((100% - var(--ll-btc-w)) / 2); }
@media (min-width: 981px) { .llbp-content .ll-hga { --ll-btc-w: min(calc((100vw - 30px) * .7425), 928.125px); } }
@supports (width: 1cqw) {
  .llbp-content .ll-hga { --ll-btc-w: calc(100cqw - 30px); }
  @media (min-width: 981px) { .llbp-content .ll-hga { --ll-btc-w: min(calc((100cqw - 30px) * .7425), 928.125px); } }
}

/* ---- top panel: copy + portrait ---- */
.ll-hga .ll-hga__top {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 0;
  padding: 0; min-height: 430px;
}
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga .ll-hga__copy {
  position: relative; z-index: 1;
  min-width: 0 !important; margin: 0 !important;
  padding: var(--hga-pad-y) 0 var(--hga-pad-y) var(--hga-pad-x) !important;
}
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga .ll-hga__h,
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga .ll-hga__h3 {
  margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; text-shadow: none !important;
  font-family: "Instrument Serif", "P052", Georgia, serif !important;
  font-weight: 400 !important; font-style: normal !important; text-transform: none !important;
  line-height: 1.04 !important;
}
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga .ll-hga__h {
  font-size: var(--hga-h) !important; letter-spacing: -.055em !important; text-align: left !important;
  color: #fff8ed !important; -webkit-text-fill-color: #fff8ed !important;
  text-wrap: initial;
}
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga .ll-hga__h span {
  display: block !important; margin: 0 !important; padding: 0 !important;
  color: #ffda98 !important; -webkit-text-fill-color: #ffda98 !important;
  font: inherit !important; letter-spacing: inherit !important;
}
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga .ll-hga__session,
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga .ll-hga__included,
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga .ll-hga__delivery,
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga .ll-hga__certtext {
  padding: 0 !important; border: 0 !important; background: none !important; text-shadow: none !important;
  font-family: "DM Sans", Arial, sans-serif !important; font-style: normal !important; text-transform: none !important;
  letter-spacing: normal !important;
}
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga .ll-hga__session {
  margin: var(--hga-session-mt) 0 0 !important; max-width: none !important; text-align: left !important;
  font-weight: 750 !important; font-size: var(--hga-session) !important; line-height: 1.55 !important;
  color: #fff8ed !important; -webkit-text-fill-color: #fff8ed !important;
}
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga .ll-hga__included {
  margin: 8px 0 7px !important; max-width: 460px !important; text-align: left !important;
  font-weight: 400 !important; font-size: var(--hga-included) !important; line-height: 1.55 !important;
  color: #f4eee2 !important; -webkit-text-fill-color: #f4eee2 !important;
}
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga .ll-hga__delivery {
  margin: 0 0 16px !important; max-width: 340px !important; text-align: left !important;
  font-weight: 400 !important; font-size: var(--hga-delivery) !important; line-height: 1.4 !important;
  color: #f4eee2 !important; -webkit-text-fill-color: #f4eee2 !important;
}
/* Both buttons (top panel and certificate panel). */
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga a.ll-hga__btn,
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga a.ll-hga__btn:visited {
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: var(--hga-btn-gap) !important;
  padding: 13px var(--hga-btn-px) !important; min-height: 48px !important; margin: 0 !important; width: auto !important;
  background: linear-gradient(120deg, #fff1b8, #eeb859) !important; color: #29172f !important; -webkit-text-fill-color: #29172f !important;
  border: 0 !important; border-radius: 999px !important; box-shadow: 0 4px 16px #efb76735 !important; text-shadow: none !important;
  font-family: "DM Sans", Arial, sans-serif !important; font-size: var(--hga-btn) !important; font-weight: 750 !important;
  font-style: normal !important; line-height: 1.2 !important;
  text-decoration: none !important; text-transform: none !important; letter-spacing: normal !important;
  cursor: pointer;
}
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga a.ll-hga__btn span { color: inherit !important; -webkit-text-fill-color: inherit !important; text-decoration: none !important; font: inherit !important; }
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga a.ll-hga__btn:hover { background: #ffe1a0 !important; color: #29172f !important; text-decoration: none !important; }
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga a.ll-hga__btn:focus-visible { outline: 3px solid #a776c8 !important; outline-offset: 4px !important; }
.ll-hga .ll-hga__frame {
  height: 100%; min-width: 0; align-self: end;
  display: flex; align-items: flex-end; justify-content: center; position: relative;
  background: radial-gradient(ellipse at 54% 53%, #6cbba045, transparent 69%);
}
.ll-hga .ll-hga__frame picture, .ll-hga .ll-hga__certfig picture { display: contents; }
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga .ll-hga__portrait {
  display: block !important; width: min(100%, 430px) !important; height: auto !important; max-width: 100% !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important; object-fit: contain;
  -webkit-mask-image: linear-gradient(black 82%, transparent 100%);
  mask-image: linear-gradient(black 82%, transparent 100%);
}

/* ---- bows and ribbons (decoration only) ---- */
.ll-hga .ll-hga__bowwrap { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; overflow: clip; }
.ll-hga .ll-hga__certwrap { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; overflow: clip; border-radius: 8px; }
.ll-hga .ll-hga__bowwrap::before,
.ll-hga .ll-hga__certwrap::before {
  content: ""; position: absolute; top: 15px; right: -41px; width: 138px; height: 17px; transform: rotate(39deg);
  background: linear-gradient(#ff7569, #d20c24 55%, #f44742);
  border-top: 1px solid #ffd09d; border-bottom: 1px solid #ffd09d;
  box-shadow: 0 2px 4px #410726a8;
}
.ll-hga .ll-hga__bow {
  position: absolute; width: 1em; height: .77em; pointer-events: none; z-index: 3;
  filter: drop-shadow(0 4px 4px #2403188c);
}
.ll-hga .ll-hga__bow--hero { font-size: var(--hga-bow-hero); top: 2px; right: 2px; transform: rotate(19deg); }
.ll-hga .ll-hga__bow--cert { font-size: var(--hga-bow-cert); top: 0; right: 0; transform: rotate(19deg); }
.ll-hga .ll-hga__bow i {
  position: absolute; display: block; margin: 0; padding: 0;
  background: linear-gradient(155deg, #ff9389 0%, #ed1d30 33%, #a2071b 68%, #f13a3e 100%);
  border: 1px solid #ffb2a3;
}
.ll-hga .ll-hga__bow .ll-hga__loop { width: .47em; height: .30em; top: .07em; border-radius: 46% 58% 27% 45%; box-shadow: inset 0 -.055em .06em #760814; }
.ll-hga .ll-hga__bow .ll-hga__loop--l { left: .043em; transform: rotate(23deg); }
.ll-hga .ll-hga__bow .ll-hga__loop--r { right: .043em; transform: rotate(-23deg) scaleX(-1); }
.ll-hga .ll-hga__bow .ll-hga__tail { width: .22em; height: .42em; top: .28em; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
.ll-hga .ll-hga__bow .ll-hga__tail--l { left: .29em; transform: rotate(23deg); }
.ll-hga .ll-hga__bow .ll-hga__tail--r { right: .29em; transform: rotate(-23deg); }
.ll-hga .ll-hga__bow .ll-hga__knot { width: .20em; height: .17em; left: .40em; top: .24em; border-radius: 37%; background: linear-gradient(135deg, #ffaaa1, #bd0819 68%, #fa464b); }

/* ---- certificate panel ---- */
.ll-hga .ll-hga__cert {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center;
  gap: var(--hga-cert-gap); padding: var(--hga-cert-pad);
  border-top: 1px solid #e1ab7778;
  background: linear-gradient(120deg, #0b2624f2, #15463de8);
}
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga .ll-hga__certfig {
  position: relative; isolation: isolate;
  display: block !important; width: auto !important; max-width: none !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
  transform: rotate(-2deg);
}
.ll-hga .ll-hga__certfig::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -13%;
  background: radial-gradient(ellipse at center, #ffd48073 33%, #ffc76c38 57%, transparent 73%);
  filter: blur(12px);
}
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga .ll-hga__certimg {
  display: block !important; width: 100% !important; height: auto !important; max-width: none !important;
  margin: 0 !important; padding: 0 !important;
  border: 1px solid #f6ca82 !important; border-radius: 8px !important;
  box-shadow: 0 14px 36px #020d0db3, 0 0 28px #f0c47a72 !important;
}
.ll-hga .ll-hga__certcopy { min-width: 0; }
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga .ll-hga__h3 {
  font-size: var(--hga-h3) !important; letter-spacing: -.046em !important; text-align: inherit !important;
  color: #fff2df !important; -webkit-text-fill-color: #fff2df !important;
}
.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga .ll-hga__certtext {
  margin: 10px 0 17px !important; max-width: 290px !important; text-align: inherit !important;
  font-weight: 400 !important; font-size: 16px !important; line-height: 1.55 !important;
  color: #f0e0f2 !important; -webkit-text-fill-color: #f0e0f2 !important;
}

/* The mockup's phone layout (viewport max-width 680px). */
@media (max-width: 680px) {
  .ll-hga {
    --hga-h: clamp(1.8rem, 6.6vw, 3.15rem);
    --hga-session: .92rem; --hga-session-mt: 10px;
    --hga-included: .77rem; --hga-delivery: .77rem;
    --hga-btn: .78rem; --hga-btn-px: 12px; --hga-btn-gap: 6px;
    --hga-bow-hero: clamp(51px, 12vw, 86px);
  }
  .ll-hga .ll-hga__top { grid-template-columns: minmax(0, 1fr) minmax(0, .63fr); min-height: 0; }
  .ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga .ll-hga__copy { padding: 25px 0 25px 17px !important; }
  .ll-hga .ll-hga__frame { height: auto; }
  .ll-hga .ll-hga__bow--hero { top: 3px; right: 3px; }
  .ll-hga .ll-hga__bowwrap::before, .ll-hga .ll-hga__certwrap::before { top: 12px; right: -41px; }
}
@supports (width: 1cqi) {
  @media (max-width: 680px) {
    .ll-hga { --hga-h: clamp(1.8rem, 7.1cqi, 3.15rem); --hga-bow-hero: clamp(51px, 12.9cqi, 86px); }
  }
}
/* The mockup's narrow certificate layout (viewport max-width 600px). */
@media (max-width: 600px) {
  .ll-hga .ll-hga__cert { grid-template-columns: minmax(0, 1fr); text-align: center; padding: 25px 19px; }
  .ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga .ll-hga__certfig { width: min(100%, 420px) !important; justify-self: center; }
  .ll-hga.ll-hga.ll-hga.ll-hga.ll-hga.ll-hga .ll-hga__certtext { margin-left: auto !important; margin-right: auto !important; }
}
