/* White Friday floating offer, shown on every store page except the sale page, cart and checkout.
   promo.js shows it a moment after the page opens, rotates the deal photos and remembers a close.
   It sits under WoodMart's toolbar (z 350) and side panels (z 500), and above its bottom toolbar. */
.icam-wf-promo {
  --promo-gold: var(--wd-primary-color, #f5bc41);
  --promo-night: #0c1420;
  --promo-bottom: 0px;
  --promo-start: 0px;
  position: fixed;
  z-index: 340;
  inset-block-end: calc(var(--promo-bottom) + 24px);
  inset-inline-start: calc(var(--promo-start) + 24px);
  width: 352px;
  max-width: calc(100vw - 32px - var(--promo-start));
  border-radius: 16px;
  background: radial-gradient(ellipse at 100% 100%, #263347 0%, var(--promo-night) 72%);
  box-shadow: 0 18px 44px #0c142059, 0 2px 6px #0c142033;
  color: #e1e9f4;
  font-family: var(--wd-text-font, "Open Sans", Arial, sans-serif);
  line-height: 1.3;
  overflow: hidden;
}
.icam-wf-promo[hidden] { display: none; }
.icam-wf-promo::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--promo-gold) 30%, #ffe3a3 50%, var(--promo-gold) 70%, transparent);
}
.icam-wf-promo-link {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 44px 14px 14px;
  color: inherit;
  text-decoration: none;
}
.icam-wf-promo-link:hover, .icam-wf-promo-link:focus { color: inherit; text-decoration: none; }
.icam-wf-promo-link:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 16px; }
.icam-wf-promo-art {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  background: radial-gradient(ellipse at 55% 40%, #fffdf8 12%, #ffe8aa 79%, #f0c662 100%);
  overflow: hidden;
}
.icam-wf-promo-art img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
  mix-blend-mode: multiply; /* a photo's white background takes the tile's gold */
  opacity: 0;
  transform: scale(.92);
  transition: opacity .6s ease, transform .9s cubic-bezier(.2, .7, .25, 1);
}
.icam-wf-promo-art img.is-on { opacity: 1; transform: none; }
.icam-wf-promo-percent {
  position: absolute;
  inset-block-start: 6px;
  inset-inline-start: 6px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #b3261e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.icam-wf-promo-copy { display: grid; gap: 3px; min-width: 0; }
.icam-wf-promo-eyebrow {
  color: #ffe3a3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.icam-wf-promo-title {
  color: #fff;
  font: 700 22px/1.08 var(--wd-title-font, "Lexend Deca", Arial, sans-serif);
  letter-spacing: -.035em;
}
.icam-wf-promo-title em { color: var(--promo-gold); font-style: normal; }
.icam-wf-promo-detail { color: #b9c6d8; font-size: 12.5px; }
.icam-wf-promo-prefix { display: none; }
/* Letter spacing pulls Arabic letters apart. */
.icam-wf-promo:lang(ar) :is(.icam-wf-promo-eyebrow, .icam-wf-promo-title) { letter-spacing: 0; }
.icam-wf-promo-cta {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  margin-top: 6px;
  padding: 7px 14px;
  border-radius: 35px;
  background: var(--promo-gold);
  color: #211805;
  font-size: 13px;
  font-weight: 700;
}
.icam-wf-promo-link:hover .icam-wf-promo-cta { box-shadow: inset 0 0 0 100px #0000001a; }
.icam-wf-promo-cta span, .icam-wf-promo-short span { font-variant-emoji: text; }
.icam-wf-promo:dir(rtl) :is(.icam-wf-promo-cta, .icam-wf-promo-short) span { display: inline-block; transform: scaleX(-1); }
.icam-wf-promo-short { display: none; }
.icam-wf-promo-close {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #c9d4e3;
  cursor: pointer;
}
.icam-wf-promo-close::before {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  content: "";
  background: #ffffff1a;
  transition: background-color .2s ease;
}
.icam-wf-promo-close:hover::before { background: #ffffff33; }
.icam-wf-promo-close:hover { color: #fff; }
.icam-wf-promo-close:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.icam-wf-promo-close svg { position: relative; width: 14px; height: 14px; }

/* Phones: a slim bar above the bottom toolbar. The scroll-to-top button moves up out of its way. */
@media (max-width: 600px) {
  .icam-wf-promo {
    inset-block-end: calc(var(--promo-bottom) + 10px);
    inset-inline: 10px;
    width: auto;
    max-width: none;
    border-radius: 14px;
  }
  .icam-wf-promo-link { grid-template-columns: 48px minmax(0, 1fr); gap: 11px; padding: 8px 46px 8px 8px; }
  .icam-wf-promo-art { border-radius: 10px; }
  .icam-wf-promo-art img { inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
  .icam-wf-promo-percent, .icam-wf-promo-eyebrow, .icam-wf-promo-detail, .icam-wf-promo-cta { display: none; }
  .icam-wf-promo-copy { gap: 1px; }
  .icam-wf-promo-title { font-size: 16px; }
  .icam-wf-promo-prefix { display: inline; }
  .icam-wf-promo-short { display: block; color: var(--promo-gold); font-size: 12.5px; font-weight: 700; }
  .icam-wf-promo-close { inset-block-start: 50%; margin-top: -18px; inset-inline-end: 6px; }
  body.icam-wf-promo-on .scrollToTop { bottom: calc(67px + 72px); }
}

@media (prefers-reduced-motion: no-preference) {
  .icam-wf-promo.is-in { animation: icam-wf-promo-in .7s cubic-bezier(.2, .7, .25, 1) backwards; }
  .icam-wf-promo.is-in .icam-wf-promo-art { animation: icam-wf-promo-pop .6s cubic-bezier(.3, 1.45, .5, 1) .25s backwards; }
  .icam-wf-promo.is-in::before { animation: icam-wf-promo-shine 1.4s ease .5s backwards; }
  .icam-wf-promo.is-out { animation: icam-wf-promo-out .3s ease-in forwards; }
  body.icam-wf-promo-on .scrollToTop { transition: bottom .3s ease, opacity .25s, visibility .25s; }
  @keyframes icam-wf-promo-in { from { opacity: 0; transform: translateY(28px) scale(.96); } }
  @keyframes icam-wf-promo-pop { from { opacity: 0; transform: scale(.6) rotate(-6deg); } }
  @keyframes icam-wf-promo-shine { from { transform: translateX(-100%); } }
  @keyframes icam-wf-promo-out { to { opacity: 0; transform: translateY(24px) scale(.96); } }
}
