.jse.jse-black-friday {
  --jse-button-bg: var(--jse-surface);
  --jse-button-color: var(--jse-ink);
  --jse-button-hover: var(--jse-accent);
  --jse-bf-contrast: #111410;
  --jse-bf-border: #ffffff26;
}
.jse.jse-black-friday {
  --jse-accent: #f6a7aa;
  --jse-ink: #fff;
  --jse-surface: #211a20;
  --jse-section: #f6a7aa;
  --jse-radius: 18px;
}
.jse.jse-black-friday-02 { --jse-section: #100d11; }
.jse.jse-black-friday-03 { --jse-section: #151015; }
.jse.jse-black-friday-04 { --jse-section: #000; --jse-surface: #161014; }
.jse.jse-black-friday-01 { background: var(--jse-section); }
.jse.jse-black-friday-02 {
  --jse-bf-contrast: #15090b;
  background: radial-gradient(ellipse at 100% 0%, #a32c3a45, transparent 55%), var(--jse-section);
}
.jse.jse-black-friday-03 {
  background: linear-gradient(125deg, #c9a76a18, transparent 55%), var(--jse-section);
}
.jse.jse-black-friday.jse-skin-plain {
  padding: clamp(16px, 3vw, 38px);
  padding: clamp(16px, 3cqi, 38px);
  border: 1px solid var(--jse-bf-border);
  border-radius: calc(var(--jse-radius) + 8px);
}
.jse-black-friday .jse-heading {
  padding-block-end: 18px;
  margin-block-end: 16px;
  border-block-end: 1px solid var(--jse-bf-border);
}
.jse-black-friday .jse-title {
  color: var(--jse-ink);
  font-size: clamp(24px, 4vw, 44px);
  font-size: clamp(24px, 4cqi, 44px);
  font-weight: 900;
  line-height: 1.25;
}
.jse-black-friday .jse-subtitle { --jse-subtitle-default: var(--jse-ink); margin-top: 10px; }
.jse-black-friday-01 .jse-title { border-inline-start: 4px solid var(--jse-accent); padding-inline-start: 13px; }
.jse-black-friday-02 .jse-title { color: var(--jse-accent); }
.jse-black-friday-03 .jse-title {
  display: inline-block;
  padding-block-end: 6px;
  border-block-end: 2px solid var(--jse-accent);
}
.jse-black-friday-03 .jse-heading { border-block-end-style: double; }
.jse.jse-black-friday .jse-card {
  border: 1px solid var(--jse-bf-border);
  overflow: hidden;
}
.jse.jse-black-friday .jse-image {
  background: #f4f4f0;
  margin: 12px 12px 0;
  padding: 8px;
  border-radius: max(4px, calc(var(--jse-radius) - 6px));
}
.jse.jse-black-friday-02 .jse-image { background: #f5e9e9; }
.jse.jse-black-friday-03 .jse-image { background: #f5f0e7; }
.jse.jse-black-friday .jse-detail { padding-inline: clamp(8px, 1.25cqi, 18px); }
.jse.jse-black-friday .jse-product-title { color: var(--jse-ink); }
.jse.jse-black-friday { --jse-price-default: #fff; --jse-old-price-default: #b9b4ba; }
.jse.jse-black-friday .jse-stock { --jse-stock-default: #f6a9a9; }
.jse.jse-black-friday .jse-price .jse-toman-mark { filter: brightness(0) invert(1); }
@supports (mask: url("toman.svg")) and selector(:has(*)) {
  .jse.jse-black-friday .jse-price .woocommerce-Price-currencySymbol:has(.jse-toman-mark) {
    position: relative;
  }
  .jse.jse-black-friday .jse-price .woocommerce-Price-currencySymbol:has(.jse-toman-mark)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    mask: url("toman.svg") center / contain no-repeat;
    pointer-events: none;
  }
  .jse.jse-black-friday .jse-price .jse-toman-mark { opacity: 0; }
}
.jse.jse-black-friday .jse-badge { color: var(--jse-bf-contrast); font-weight: 800; }
.jse.jse-black-friday .jse-actions {
  position: static;
  transform: none;
  border-block-start: 1px solid var(--jse-bf-border);
  min-height: 60px;
  padding-block: 10px;
}
.jse.jse-black-friday .jse-card:is(:hover,:focus-within) .jse-actions { transform: none; }
.jse-black-friday .jse-view, .jse-black-friday .jse-more { border-color: var(--jse-bf-border); }
.jse-black-friday :is(.jse-icon-button,.jse-button):hover,
.jse-black-friday .jse-pagination [aria-current=page],
.jse-black-friday .jse-favorite[aria-pressed=true] { color: var(--jse-bf-contrast); background: var(--jse-accent); }
.jse.jse-black-friday .jse-empty { color: var(--jse-ink); background: var(--jse-surface); }
.jse-black-friday :focus-visible { outline-color: var(--jse-accent); }
@container jse-bf-widget (max-width: 767px) {
  .jse.jse-black-friday .jse-image { height: auto; aspect-ratio: 1; margin: 7px 7px 0; padding: 5px; }
  .jse.jse-black-friday .jse-badge { top: 8px; padding-inline: 7px; }
  .jse-black-friday .jse-heading-tools { gap: 6px; }
}

.jse.jse-black-friday-04 {
  --jse-bf-contrast: #000;
  --jse-bf-border: #ffffff26;
}
@supports (color:color-mix(in srgb, red, transparent)) {
  .jse.jse-black-friday-04 { --jse-bf-border: color-mix(in srgb, var(--jse-accent) 30%, transparent); }
}
.jse.jse-black-friday-04 { background: var(--jse-section); }
.jse-black-friday-04 .jse-title { color: var(--jse-accent); }
.jse.jse-black-friday-04 .jse-image { background: #fce8ea; }
.jse-black-friday-01 { --jse-bf-art: url("black-friday/01.webp"); }
.jse-black-friday-02 { --jse-bf-art: url("black-friday/02.webp"); }
.jse-black-friday-03 { --jse-bf-art: url("black-friday/03.webp"); }

/* Keep the themed header legible on light templates and when a different frame is selected. */
.jse.jse-black-friday .jse-title { color: var(--jse-bf-heading, var(--jse-ink)); }
.jse.jse-black-friday-02, .jse.jse-black-friday-04 { --jse-bf-heading: var(--jse-accent); }
.jse.jse-black-friday.jse-skin-stack { background: var(--jse-section); }
.jse.jse-black-friday .jse-nav:has(button:disabled):not(:has(button:enabled)) { visibility: hidden; }

.jse.jse-black-friday:has(.jse-bf-tag) { --jse-bf-tag-width: clamp(55px, 9cqi, 110px); }
.jse-black-friday:has(.jse-bf-tag) .jse-heading { padding-inline-end: calc(var(--jse-bf-tag-width) + 8px); }
.jse-black-friday .jse-bf-tag {
  position: absolute;
  z-index: 3;
  inset-block-start: -12px;
  inset-inline-end: 8px;
  width: var(--jse-bf-tag-width, 90px);
  transform-origin: 50% 8%;
  transform: rotate(var(--jse-tag-angle, -5deg));
  filter: drop-shadow(0 8px 8px #0006);
}
.jse-black-friday .jse-bf-tag img { width: 100%; height: auto; pointer-events: none; }
@container jse-bf-widget (max-width: 767px) {
  .jse-black-friday:has(.jse-bf-tag) .jse-heading { padding-inline-end: min(25%, calc(var(--jse-bf-tag-width) + 8px)); }
}
@media (prefers-reduced-motion: reduce) {
  .jse-black-friday .jse-bf-tag { transform: none; }
}
/* Campaign layouts use the existing heading and product stage. */
.jse-black-friday-04 { --jse-bf-art: url("black-friday/04.webp"); }
.jse.jse-black-friday {
  background: var(--jse-section);
  gap: 22px;
}
.jse.jse-black-friday:is(.jse-black-friday-01,.jse-black-friday-02,.jse-black-friday-04).jse-skin-plain {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.35fr);
  align-items: stretch;
}
.jse.jse-black-friday-02.jse-skin-plain { grid-template-columns: minmax(0,1fr) minmax(0,1.85fr); }
.jse.jse-black-friday .jse-stage { min-width: 0; align-self: center; }
.jse.jse-black-friday .jse-heading {
  --panel-default: #21151d;
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: clamp(16px,3vw,32px);
  padding: clamp(16px,3cqi,32px);
  min-height: 170px;
  height: auto;
  background: var(--jse-bf-panel,var(--panel-default));
  border: 1px solid var(--jse-bf-border);
  border-radius: calc(var(--jse-radius) - 2px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: end;
}
.jse.jse-black-friday-01 .jse-heading { --panel-default:#f7b4b8; --jse-bf-heading:#1b1117; }
.jse.jse-black-friday-02 .jse-heading { --panel-default:#22151f; --jse-bf-heading:var(--jse-ink); }
.jse.jse-black-friday-03 .jse-heading { --panel-default:#25161e; justify-content:center; }
.jse.jse-black-friday-04 .jse-heading { --panel-default:#170e16; justify-content:center; }
.jse.jse-black-friday .jse-heading > div { position:relative; z-index:1; }
.jse.jse-black-friday .jse-heading-tools { flex-wrap:wrap; max-width:100%; }
.jse.jse-black-friday .jse-heading-tools:empty { display:none; }
.jse.jse-black-friday .jse-title { font-size:clamp(24px,4vw,52px); font-size:clamp(24px,4cqi,52px); overflow-wrap:anywhere; }
.jse.jse-black-friday .jse-more { background:var(--jse-button-bg,var(--jse-accent)); color:var(--jse-button-color,#171015); }
.jse.jse-black-friday.jse-bf-graphic-on .jse-heading { min-height:clamp(240px,32vw,365px); min-height:clamp(240px,32cqi,365px); }
.jse.jse-black-friday.jse-bf-graphic-on .jse-heading::before {
  content:""; position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none;
  filter:drop-shadow(0 4px 12px var(--jse-bf-art-color,transparent));
  background:var(--jse-bf-art) center / contain no-repeat;
  opacity:var(--jse-bf-art-opacity,1);
}
.jse.jse-black-friday-01.jse-bf-graphic-on .jse-heading::before {
  background-position:left top; background-size:auto 112%;
  opacity:var(--jse-bf-art-opacity,.62);
  -webkit-mask-image:linear-gradient(#000 35%,transparent 95%);
  mask-image:linear-gradient(#000 35%,transparent 95%);
}
.jse.jse-black-friday-02.jse-bf-graphic-on .jse-heading { padding-inline-start:48%; }
.jse.jse-black-friday-02.jse-bf-graphic-on .jse-heading::before { inset-inline-end:auto; width:46%; }
.jse.jse-black-friday-03.jse-bf-graphic-on .jse-heading { min-height:218px; padding-inline-end:48%; }
.jse.jse-black-friday-03.jse-bf-graphic-on .jse-heading::before {
  inset-inline-start:auto; width:62%; background-size:cover;
  -webkit-mask-image:linear-gradient(90deg,#000 55%,transparent);
  mask-image:linear-gradient(90deg,#000 55%,transparent);
}
.jse.jse-black-friday-03 .jse-stage { width:min(100%,850px); margin:16px auto 0; }
.jse.jse-black-friday-04.jse-bf-graphic-on .jse-heading { padding-block-end:115px; }
.jse.jse-black-friday-04.jse-bf-graphic-on .jse-heading::before { inset:auto 8% 8px; width:84%; height:106px; }
.jse.jse-black-friday .jse-bf-tag { inset-block-start:2px; inset-inline-end:7px; }
.jse.jse-black-friday-01 .jse-bf-tag { inset-inline-start:6px; inset-inline-end:auto; }
@container jse-bf-widget (max-width: 767px) {
  .jse.jse-black-friday { align-content:start; grid-auto-rows:max-content; gap:12px; }
  .jse.jse-black-friday .jse-heading { align-self:start; flex-wrap:nowrap; min-height:0; }
  .jse.jse-black-friday .jse-heading::before { flex:none; }

  .jse.jse-black-friday:is(.jse-black-friday-01,.jse-black-friday-02,.jse-black-friday-04).jse-skin-plain { grid-template-columns:minmax(0,1fr); }
  .jse.jse-black-friday.jse-skin-side { grid-template-columns:minmax(0,1fr); }
  .jse.jse-black-friday .jse-heading { height:auto; margin-block-end:0; }
  .jse.jse-black-friday.jse-bf-graphic-on .jse-heading {
    min-height:0; padding:12px; gap:8px; justify-content:flex-start;
  }
  .jse.jse-black-friday.jse-bf-graphic-on .jse-heading::before {
    position:relative; display:block; inset:auto; width:100%; height:clamp(76px,25cqi,125px);
    background-position:center; background-size:contain; -webkit-mask-image:none; mask-image:none;
  }
  .jse.jse-black-friday.jse-skin-notch .jse-nav { position:static; pointer-events:auto; }
  .jse.jse-black-friday .jse-stage { margin-block-start:0; max-width:100%; }
  .jse.jse-black-friday .jse-heading-tools { width:100%; min-width:0; gap:6px; }
  .jse.jse-black-friday .jse-actions { flex-wrap:wrap; gap:4px; padding-inline:4px; }
  .jse.jse-black-friday .jse-actions .jse-view { flex-basis:100%; min-width:0; padding-inline:4px; white-space:normal; text-align:center; overflow-wrap:anywhere; }
  .jse.jse-black-friday .jse-actions .jse-icon-button { width:28px; flex-basis:28px; min-height:28px; padding:4px; }
  .jse.jse-black-friday .jse-actions .jse-icon-button svg { width:16px; height:16px; }
}

/* Use the actual widget width for layout in both the canvas and the published page. */
:is(.elementor-widget-jse-black-friday-01,.elementor-widget-jse-black-friday-02,.elementor-widget-jse-black-friday-03,.elementor-widget-jse-black-friday-04) {
  container: jse-bf-widget / inline-size;
}
.jse.jse-black-friday .jse-stage { container: jse-bf-products / inline-size; }
.jse.jse-black-friday .jse-stage :is(.jse-rail,.jse-grid) {
  --jse-cols: var(--jse-bf-config-cols, 4);
}
@container jse-bf-products (max-width: 680px) {
  .jse.jse-black-friday .jse-stage :is(.jse-rail,.jse-grid) {
    --jse-cols: var(--jse-bf-config-cols, 2);
  }
}
@container jse-bf-products (max-width: 420px) {
  .jse.jse-black-friday .jse-stage :is(.jse-rail,.jse-grid) { --jse-gap: 10px; --jse-cols: min(var(--jse-bf-config-cols, 2), 2); }
}
@container jse-bf-widget (max-width: 700px) {
  .jse.jse-black-friday:is(.jse-black-friday-01,.jse-black-friday-02,.jse-black-friday-04).jse-skin-plain {
    grid-template-columns: minmax(0,1fr);
  }
}

.jse.jse-black-friday {
  --jse-control-default-hover-color: var(--jse-bf-button-hover-ink,var(--jse-bf-contrast));
}
.jse.jse-black-friday :is(.jse-more,.jse-pagination .jse-button) {
  --jse-control-default-background: var(--jse-button-bg);
}
.jse.jse-black-friday .jse-actions .jse-icon-button {
  --jse-control-default-color: var(--jse-bf-icon-ink,var(--jse-button-color));
  --jse-control-default-background: var(--jse-bf-icon-bg,var(--jse-button-bg));
  --jse-control-default-hover-color: var(--jse-bf-icon-hover-ink,var(--jse-bf-button-hover-ink,var(--jse-bf-contrast)));
  --jse-control-default-hover-background: var(--jse-bf-icon-hover-bg,var(--jse-button-hover));
}
.jse.jse-black-friday .jse-nav .jse-icon-button {
  --jse-control-default-color: var(--jse-bf-arrow-ink,var(--jse-button-color));
  --jse-control-default-background: var(--jse-bf-arrow-bg,var(--jse-button-bg));
  --jse-control-default-hover-color: var(--jse-bf-arrow-hover-ink,var(--jse-bf-button-hover-ink,var(--jse-bf-contrast)));
  --jse-control-default-hover-background: var(--jse-bf-arrow-hover-bg,var(--jse-button-hover));
}
.jse .jse-bf-progress {
  height:var(--jse-bf-track-height,4px); margin:0 8px 12px; border-radius:8px; overflow:hidden;
  background:var(--jse-bf-track,#8885);
}
.jse .jse-bf-progress span {
  display:block; height:100%; width:var(--jse-progress-thumb,100%);
  transform:translateX(var(--jse-progress-offset,0%)); background:var(--jse-bf-thumb,var(--jse-accent)); border-radius:inherit;
}
.jse.jse-black-friday .jse-rail { scroll-padding-inline:4px; }

.jse.jse-black-friday .jse-bf-dots {
  display:flex; justify-content:center; flex-wrap:wrap;
  gap:var(--jse-bf-dot-gap,4px); margin-block:8px;
}
.jse.jse-black-friday .jse-bf-dots button {
  display:grid; place-items:center; padding:0; border:0;
  width:max(24px,var(--jse-bf-dot-size,9px)); height:max(24px,var(--jse-bf-dot-size,9px));
  border-radius:50%; background:transparent !important;
}
.jse.jse-black-friday .jse-bf-dots button::before {
  content:""; width:var(--jse-bf-dot-size,9px); aspect-ratio:1; border-radius:50%;
  background:var(--jse-bf-dot,#8889);
}
.jse.jse-black-friday .jse-bf-dots button[aria-current=true]::before { background:var(--jse-bf-dot-active,var(--jse-accent)); }
.jse.jse-black-friday .jse-bf-dots button:is(:hover,:focus-visible)::before { background:var(--jse-bf-dot-hover,var(--jse-accent)); }

.jse.jse-black-friday .jse-nav .jse-icon-button {
  width:var(--jse-bf-arrow-box,36px);
  min-height:var(--jse-bf-arrow-box,36px);
  flex-basis:var(--jse-bf-arrow-box,36px);
}

/* Mobile baseline also applies when the Elementor wrapper cannot establish containment. */
@media (max-width: 767px) {
  .jse.jse-black-friday {
    display:block;
  }
  .jse.jse-black-friday:is(.jse-black-friday-01,.jse-black-friday-02,.jse-black-friday-04).jse-skin-plain,
  .jse.jse-black-friday.jse-skin-side { grid-template-columns:minmax(0,1fr); }
  .jse.jse-black-friday .jse-heading {
    align-self:start; flex-wrap:nowrap; height:auto; min-height:0; margin-block-end:10px;
  }
  .jse.jse-black-friday.jse-bf-graphic-on .jse-heading {
    min-height:0; padding:10px; gap:6px; justify-content:flex-start;
  }
  .jse.jse-black-friday.jse-bf-graphic-on .jse-heading::before {
    position:relative; display:block; flex:none; inset:auto;
    width:100%; height:clamp(68px,20vw,105px);
    background-position:center; background-size:contain; -webkit-mask-image:none; mask-image:none;
  }
  .jse.jse-black-friday.jse-skin-notch .jse-nav { position:static; pointer-events:auto; }
  .jse.jse-black-friday .jse-bf-tag { max-width: clamp(44px,16vw,82px); }
  .jse.jse-black-friday .jse-title { line-height:1.25; }
  .jse.jse-black-friday.jse-bf-mobile-title-auto .jse-title { font-size:clamp(21px,6vw,30px) !important; }
  .jse.jse-black-friday .jse-rail { padding-block:4px 8px; }
  .jse.jse-black-friday .jse-card { min-height:0; padding-block-end:0; }
  .jse.jse-black-friday .jse-detail { padding-block-end:6px; }
  .jse.jse-black-friday .jse-price { min-height:0; }
  .jse.jse-black-friday .jse-stage { margin-block-start:0; max-width:100%; }
  .jse.jse-black-friday .jse-heading-tools { width:100%; min-width:0; gap:6px; }
  .jse.jse-black-friday .jse-image { height:auto; aspect-ratio:1; margin:7px 7px 0; padding:5px; }
  .jse.jse-black-friday .jse-badge { top:8px; padding-inline:7px; }
  .jse.jse-black-friday .jse-actions { flex-wrap:wrap; gap:4px; min-height:0; padding:5px 4px 7px; }
  .jse.jse-black-friday .jse-actions .jse-view {
    flex-basis:100%; min-width:0; padding-inline:4px;
    white-space:normal; text-align:center; overflow-wrap:anywhere;
  }
  .jse.jse-black-friday .jse-actions .jse-icon-button { width:28px; flex-basis:28px; min-height:28px; padding:4px; }
  .jse.jse-black-friday .jse-actions .jse-icon-button svg { width:16px; height:16px; }
}
@supports not (container-type:inline-size) {
  @media (max-width: 680px) {
    .jse.jse-black-friday .jse-stage :is(.jse-rail,.jse-grid) { --jse-cols:var(--jse-bf-config-cols,2); }
  }
  @media (max-width: 420px) {
    .jse.jse-black-friday .jse-stage :is(.jse-rail,.jse-grid) { --jse-gap:10px; --jse-cols:min(var(--jse-bf-config-cols,2),2); }
  }
}

@media (max-width: 767px) {
  /* Let the Elementor flex item measure the actual mobile content. */
  :is(.elementor-widget-jse-black-friday-01,.elementor-widget-jse-black-friday-02,.elementor-widget-jse-black-friday-03,.elementor-widget-jse-black-friday-04) {
    container-type:normal;
    min-height:max-content;
    height:auto;
    flex:none;
  }
  .jse.jse-kind-offers.jse-black-friday:is(.jse-skin-plain,.jse-skin-side) {
    display:block;
  }
  .jse.jse-black-friday .jse-stage :is(.jse-rail,.jse-grid) {
    --jse-cols:min(var(--jse-bf-config-cols,2),2);
  }
}

/* Keep the anchor in the widget for responsive positioning without painting it. */
.jse-black-friday .jse-bf-tag-anchor {
  visibility:hidden;
  transform:none;
}
.jse-bf-tag-layer {
  position:fixed;
  z-index:40;
  transform-origin:50% 8%;
  transform:rotate(var(--jse-tag-angle,-5deg));
  filter:drop-shadow(0 8px 8px #0006);
  pointer-events:none;
}
.jse-bf-tag-layer[data-bf-hover=yes] { pointer-events:auto; }
.jse-bf-tag-layer[hidden] { display:none !important; }
.jse-bf-tag-layer img { display:block; width:100%; height:auto; pointer-events:none; }
@media (prefers-reduced-motion:reduce) {
  .jse-bf-tag-layer { transform:none; }
}
