/* ================================================================== */
/* FLASH SALE — flashsale.css — BigVapoteur — 3 kolumny               */
/* ================================================================== */

:root {
  --fsc-red:       #e50046;
  --fsc-red-dark:  #b8003a;
  --fsc-red-light: #fff0f5;
  --fsc-red-bg:    #ffd6e5;
  --fsc-green:     #1db954;
  --fsc-dark:      #111111;
}

/* ================================================================== */
/* OUTER                                                               */
/* ================================================================== */

.flashsale-outer {
  width: 100%;
  box-sizing: border-box;
  max-width: 1550px;
  margin: 0 auto;
}

@media screen and (max-width: 1600px) { .flashsale-outer { width: 1200px; } }
@media screen and (max-width: 1250px) { .flashsale-outer { width: 969px; } }
@media screen and (max-width: 980px)  { .flashsale-outer { width: 100%; padding: 10px; } }

/* ================================================================== */
/* ANIMOWANA RAMKA                                                     */
/* ================================================================== */

@property --fsc-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes fsc-rotate {
  to { --fsc-angle: 360deg; }
}

/* ================================================================== */
/* WRAPPER — 3 kolumny                                                 */
/* ================================================================== */

.flashsale-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr 1fr;
  align-items: stretch;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
  margin: 28px auto;
  border: none !important;
  isolation: isolate;
  overflow: visible;
  min-height: 320px;
}

.flashsale-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: conic-gradient(
    from var(--fsc-angle),
    #fff0f5, var(--fsc-red), #ff4d8f, #fff, #ff4d8f, var(--fsc-red), #fff0f5
  );
  animation: fsc-rotate 3.5s linear infinite;
  z-index: -1;
}

.flashsale-wrapper--ended::before { background: #ddd; animation: none; }
.flashsale-wrapper--ended { opacity: 0.88; }

/* ================================================================== */
/* KOL 1 — ZDJĘCIE                                                    */
/* ================================================================== */

.flashsale-img-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 16px 24px;
  background: #fff;
  border-right: 1px solid var(--fsc-red-bg);
  border-radius: 12px 0 0 12px;
  box-sizing: border-box;
  gap: 0;
}
.sold{
  font-weight: 900;
  font-size: 28px;
  line-height: 40px;
  text-align: center;
}

.flashsale-badge {
  position: absolute;
  top: -1px;
  left: -1px;
  background: var(--fsc-red);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 12px 0 8px 0;
  text-transform: uppercase;
  z-index: 2;
}

.flashsale-badge__label { font-weight: 800; }

.flashsale-soldout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6);
  border-radius: 12px 0 0 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flashsale-soldout-badge svg {
  fill: #888;
  width: 120px;
  height: 120px;
  transform: rotate(-15deg);
  opacity: 0.25;
}

.flashsale-wrapper--ended .flashsale-img-col > *:not(.flashsale-soldout-overlay):not(.flashsale-badge) {
  filter: grayscale(60%);
  opacity: 0.5;
}

.flashsale-card__image-link { display: block; width: 100%; text-align: center; }

.flashsale-card__image {
  max-width: 180px;
  max-height: 200px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ================================================================== */
/* KOL 2 — NAZWA + CENA + CTA                                         */
/* ================================================================== */

.flashsale-price-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 28px 28px;
  background: var(--fsc-red-light);
  border-right: 1px solid var(--fsc-red-bg);
  box-sizing: border-box;
}

/* Nazwa — teraz w kol 2 */
.flashsale-card__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  line-height: 1.35;
}

.flashsale-card__name:hover { color: var(--fsc-red); }

/* Wariant */
.flashsale-card__variant { display: flex; }

.flashsale-card__variant-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--fsc-red);
  background: #fff;
  border: 1px solid var(--fsc-red-bg);
  padding: 3px 10px;
  border-radius: 20px;
}

/* Cena */
.flashsale-card__prices { display: flex; flex-direction: column; gap: 5px; }

.flashsale-card__price-30days { font-size: 11px; color: #999; }

.flashsale-card__price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.flashsale-card__price-promo {
  font-size: 36px;
  font-weight: 800;
  color: var(--fsc-green);
  line-height: 1;
}

.flashsale-card__savings {
  display: inline-block;
  background: var(--fsc-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Stock */
.flashsale-card__stock { width: 100%; }

.flashsale-stock-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
  font-weight: 600;
}

.flashsale-stock-labels__remaining { color: var(--fsc-red); }

.flashsale-stock-bar {
  width: 100%;
  height: 6px;
  background: #f0dde5;
  border-radius: 3px;
  overflow: hidden;
}

.flashsale-stock-bar__fill {
  height: 100%;
  background: var(--fsc-red);
  border-radius: 3px;
  transition: width 0.4s ease;
  min-width: 3px;
}

/* Countdown */
.flashsale-cd-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: #bbb;
  margin-bottom: 6px;
}

.flashsale-countdown {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.flashsale-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flashsale-countdown__value {
  display: inline-block;
  background: #fff;
  color: var(--fsc-dark);
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1.5px solid var(--fsc-red-bg);
  min-width: 50px;
  text-align: center;
  line-height: 1;
}

.flashsale-countdown__label {
  font-size: 10px;
  color: #bbb;
  margin-top: 3px;
  text-transform: lowercase;
  text-align: center;
  border: none;
  padding: 0;
  letter-spacing: 0;
}

.flashsale-countdown__sep {
  font-size: 20px;
  font-weight: 800;
  color: var(--fsc-red);
  line-height: 1;
  padding-top: 7px;
}

.flashsale-countdown--expired .flashsale-countdown__value {
  background: #eee;
  border-color: #ddd;
  color: #aaa;
}

/* CTA */
.flashsale-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 12px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 8px;
  background: var(--fsc-red);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
}

.flashsale-card__btn:hover    { background: var(--fsc-red-dark); color: #fff; }
.flashsale-card__btn:disabled,
.flashsale-card__btn--loading { opacity: 0.7; pointer-events: none; }

.flashsale-card__ended-msg {
  font-size: 15px;
  color: #aaa;
  font-weight: 700;
  text-align: center;
  padding: 8px 0;
}

.flashsale-limit-note {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  min-height: 14px;
  color: var(--fsc-red-dark);
}

/* ================================================================== */
/* KOL 3 — BENEFITY                                                   */
/* ================================================================== */

.flashsale-benefits-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 28px 28px 24px;
  background: #fff;
  border-radius: 0 12px 12px 0;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.flashsale-benefits-col__eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--fsc-red);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.flashsale-benefits-col__eyebrow svg { stroke: var(--fsc-red); flex-shrink: 0; }

.flashsale-benefits-col__headline {
  font-size: 20px;
  font-weight: 800;
  color: var(--fsc-dark);
  line-height: 1.2;
  margin: 0 0 16px;
}

.flashsale-marketing__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.flashsale-marketing__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f5f5f5;
}

.flashsale-marketing__benefits li:first-child { border-top: 1px solid #f5f5f5; }

.flashsale-marketing__icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--fsc-red-light);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flashsale-marketing__icon svg { stroke: var(--fsc-red); display: block; }

.flashsale-marketing__benefits strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--fsc-dark);
  margin-bottom: 2px;
}

.flashsale-marketing__benefits p {
  font-size: 12px;
  color: #888;
  margin: 0;
  line-height: 1.5;
}

.flashsale-marketing__urgency {
  font-size: 12px;
  color: var(--fsc-red);
  font-weight: 700;
  padding: 10px 14px;
  background: var(--fsc-red-light);
  border-radius: 8px;
  border-left: 3px solid var(--fsc-red);
  margin-top: 14px;
  display: none;
}

.flashsale-marketing__bg-svg {
  position: absolute;
  right: -20px;
  bottom: -10px;
  pointer-events: none;
  opacity: 1;
  z-index: 0;
}

.flashsale-benefits-col > *:not(.flashsale-marketing__bg-svg) { position: relative; z-index: 1; }

/* backward compat */
.flashsale-product-side  { display: none !important; }
.flashsale-marketing-side { display: none !important; }

/* ================================================================== */
/* STRONA PRODUKTU — info box                                          */
/* ================================================================== */

.fsc-product-info {
  border: 2px solid var(--fsc-red);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--fsc-red-light);
  width: 100%;
}

.fsc-product-info__header {
  background: var(--fsc-red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fsc-product-info__header svg { stroke: #fff; }

.fsc-product-info__stock-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px 4px;
  font-size: 13px;
  font-weight: 600;
}

.fsc-remaining { color: var(--fsc-red); }
.fsc-sold      { color: #888; }

.fsc-product-info__bar {
  height: 7px;
  background: #f0dde5;
  margin: 2px 14px 10px;
  border-radius: 4px;
  overflow: hidden;
}

.fsc-product-info__bar-fill {
  height: 100%;
  background: var(--fsc-red);
  border-radius: 4px;
  min-width: 4px;
}

.fsc-product-info__countdown-wrap {
  border-top: 1px solid var(--fsc-red-bg);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.fsc-product-info__countdown-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.fsc-product-info__countdown { display: flex; align-items: flex-start; gap: 4px; }
.fsc-cd-unit { display: flex; flex-direction: column; align-items: center; }

.fsc-cd-unit span {
  color: var(--fsc-dark);
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 4px 8px;
  border-radius: 5px;
  min-width: 38px;
  text-align: center;
  line-height: 1;
  border: 1.5px solid var(--fsc-red-bg);
  background: #fff;
  display: inline-block;
}

.fsc-cd-unit small { font-size: 10px; color: #aaa; margin-top: 2px; text-transform: lowercase; }
.fsc-cd-sep { font-size: 18px; font-weight: 800; color: var(--fsc-red); padding-top: 4px; line-height: 1; }

.fsc-product-info--variant-notice { border: 2px solid var(--fsc-red); background: var(--fsc-red-light); }
.fsc-product-info__variant-notice { display: flex; align-items: center; gap: 12px; padding: 14px; }
.fsc-product-info__variant-icon { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--fsc-red); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.fsc-product-info__variant-content { flex: 1; min-width: 0; }
.fsc-product-info__variant-title { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--fsc-red-dark); margin-bottom: 2px; letter-spacing: 0.4px; }
.fsc-product-info__variant-text { font-size: 13px; color: #333; line-height: 1.35; }
.fsc-product-info__variant-link { display: inline-flex; align-items: center; justify-content: center; background: var(--fsc-red); color: #fff; font-weight: 700; font-size: 12px; padding: 7px 12px; border-radius: 7px; text-decoration: none; white-space: nowrap; }
.fsc-product-info__variant-link:hover { background: var(--fsc-red-dark); color: #fff; text-decoration: none; }

@media (max-width: 480px) {
  .fsc-product-info__variant-notice { align-items: flex-start; flex-wrap: wrap; }
  .fsc-product-info__variant-link { width: 100%; margin-left: 50px; }
}

/* ================================================================== */
/* FLOATING POPUP                                                      */
/* ================================================================== */

.fsc-floating { position: fixed; right: 18px; bottom: 24px; z-index: 9999; font-family: inherit; }

.fsc-floating-tab {
  position: absolute;
  right: -60px; bottom: 100px;
  border: 0;
  background: var(--fsc-red);
  color: #fff;
  border-radius: 16px 16px 0 0;
  padding: 11px 16px;
  font-weight: 800; font-size: 13px; line-height: 1;
  box-shadow: 0 8px 24px rgba(229,0,70,0.28);
  cursor: pointer;
  display: inline-flex; align-items: center;
  transform: rotate(-90deg) translateY(-100%);
  transform-origin: right bottom;
  white-space: nowrap; margin: 0;
}

.fsc-floating-tab__icon { font-size: 15px; }

.fsc-floating-popup {
  width: 380px;
  max-width: calc(100vw - 36px);
  background: #fff;
  border: 2px solid var(--fsc-red);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(229,0,70,0.14);
  overflow: hidden;
  transform: translateY(16px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  margin-right: 48px;
}

.fsc-floating.is-open .fsc-floating-popup { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }

.fsc-floating-popup__close { position: absolute; top: 10px; right: 12px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--fsc-red-light); color: var(--fsc-red); font-size: 20px; line-height: 26px; cursor: pointer; z-index: 2; }
.fsc-floating-popup__top { padding: 14px 44px 10px 16px; background: var(--fsc-red-light); border-bottom: 1px solid var(--fsc-red-bg); }
.fsc-floating-popup__eyebrow { font-size: 11px; font-weight: 800; color: var(--fsc-red); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.fsc-floating-popup__title { font-size: 18px; font-weight: 900; color: #111; }
.fsc-floating-popup__body { display: flex; gap: 12px; padding: 14px; }
.fsc-floating-popup__image { width: 86px; min-width: 86px; height: 110px; border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--fsc-red-light); }
.fsc-floating-popup__image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fsc-floating-popup__content { flex: 1; min-width: 0; }
.fsc-floating-popup__name { display: block; font-size: 14px; font-weight: 800; color: #111; text-decoration: none; line-height: 1.25; margin-bottom: 2px; }
.fsc-floating-popup__name:hover { color: var(--fsc-red); text-decoration: none; }
.fsc-floating-popup__variant { font-size: 12px; color: #888; margin-bottom: 6px; }
.fsc-floating-popup__price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
.fsc-floating-popup__price { font-size: 20px; font-weight: 900; color: var(--fsc-red); }
.fsc-floating-popup__oldprice { font-size: 12px; color: #bbb; text-decoration: line-through; }
.fsc-floating-popup__save { font-size: 12px; color: #555; margin-bottom: 8px; }
.fsc-floating-popup__save strong { color: var(--fsc-red); }
.fsc-floating-popup__stock { margin-bottom: 8px; }
.fsc-floating-popup__stock-labels { display: flex; justify-content: space-between; font-size: 11px; color: #666; margin-bottom: 4px; }
.fsc-floating-popup__bar { width: 100%; height: 6px; background: #f0dde5; border-radius: 99px; overflow: hidden; }
.fsc-floating-popup__bar div { height: 100%; background: var(--fsc-red); border-radius: 99px; }
.fsc-floating-popup__countdown { display: inline-flex; align-items: center; justify-content: center; background: var(--fsc-red-light); border: 1px solid var(--fsc-red-bg); border-radius: 8px; padding: 5px 10px; font-size: 18px; font-weight: 900; color: #111; letter-spacing: .5px; margin-bottom: 8px; }
.fsc-floating-popup__actions { display: flex; flex-direction: column; gap: 7px; }
.fsc-floating-popup__cta { display: flex; align-items: center; justify-content: center; background: var(--fsc-red); color: #fff; border-radius: 9px; padding: 9px 12px; font-size: 14px; font-weight: 700; text-decoration: none; }
.fsc-floating-popup__cta:hover { background: var(--fsc-red-dark); color: #fff; text-decoration: none; }
.fsc-floating-popup__add { display: flex; align-items: center; justify-content: center; width: 100%; background: #111; color: #fff; border: 0; border-radius: 9px; padding: 9px 12px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s ease; }
.fsc-floating-popup__add:hover { background: #333; color: #fff; }
.fsc-floating-popup__add:disabled, .fsc-floating-popup__add.is-loading { opacity: .6; cursor: wait; }
.fsc-floating.is-hidden-by-cart-modal { opacity: 0; visibility: hidden; pointer-events: none; }

@media (max-width: 575px) {
  .fsc-floating { right: 10px; bottom: 14px; }
  .fsc-floating-popup { width: calc(100vw - 20px); max-width: calc(100vw - 20px); margin-right: 0; margin-bottom: 50px; }
  .fsc-floating-tab { transform: none; border-radius: 10px; right: 0; bottom: 0; padding: 10px 14px; }
}

/* ================================================================== */
/* ADMIN                                                              */
/* ================================================================== */

.flashsale-admin .panel { margin-bottom: 20px; }
.flashsale-admin .form-wrapper { padding: 10px 20px; }
.flashsale-admin .form-group { display: flex; align-items: flex-start; margin-bottom: 16px; width: 100%; }
.flashsale-admin .form-group .control-label { width: 260px; min-width: 260px; padding-top: 7px; font-weight: 600; font-size: 13px; color: #555; }
.flashsale-admin .form-group .control-label.required::before { content: '* '; color: var(--fsc-red); }
.flashsale-admin .form-group > div { flex: 1; position: relative; }
.flashsale-admin .form-group .form-control { width: 100%; max-width: 400px; }
.flashsale-admin .form-group .input-group { max-width: 200px; }
.flashsale-admin .form-group .input-group .form-control { max-width: 100%; }
.flashsale-admin .panel-footer { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: #f9f9f9; border-top: 1px solid #eee; flex-direction: row-reverse; }
#product-search-results { position: absolute; top: 100%; left: 0; z-index: 9999; background: #fff; border: 1px solid #ddd; border-radius: 4px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); list-style: none; margin: 2px 0 0; padding: 0; max-height: 280px; overflow-y: auto; min-width: 400px; max-width: 600px; }
#product-search-results li { padding: 9px 14px; cursor: pointer; font-size: 13px; border-bottom: 1px solid #f5f5f5; display: flex; flex-direction: column; gap: 2px; }
#product-search-results li:hover, #product-search-results li.active { background: var(--fsc-red-light); }
#product-search-results li small { color: #aaa; font-size: 11px; }
#product-search-results li.no-results { color: #aaa; font-style: italic; cursor: default; }
#product-search.product-selected { border-color: #28a745; background: #f0fff4; }
.fsa-product-name { font-weight: 600; color: #333; }
#product-search-results li:hover .fsa-product-name { color: var(--fsc-red-dark); }
.flashsale-discount-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.fsa-discount-btn { font-size: 12px; padding: 4px 12px; border-radius: 20px; background: #f5f5f5; border: 1px solid #ddd; color: #555; cursor: pointer; transition: all 0.15s; }
.fsa-discount-btn:hover:not(:disabled) { background: var(--fsc-red-light); border-color: var(--fsc-red); color: var(--fsc-red-dark); }
.fsa-discount-btn.active { background: var(--fsc-red); border-color: var(--fsc-red-dark); color: #fff; font-weight: 600; }
.fsa-discount-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.flashsale-custom-price { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
#savings-preview { margin-top: 5px; font-size: 12px; font-weight: 600; }
.flashsale-duration-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.flashsale-duration-btns .btn { font-size: 11px; padding: 3px 10px; border-radius: 20px; background: var(--fsc-red-light); border: 1px solid var(--fsc-red); color: var(--fsc-red-dark); }
.flashsale-duration-btns .btn:hover { background: var(--fsc-red); color: #fff; }
.flashsale-table th { background: #f5f5f5; font-weight: 600; }
.flashsale-table .badge-success { background: #28a745; }
.flashsale-table .badge-info { background: #17a2b8; }
.flashsale-table .badge-default { background: #aaa; }
.flashsale-actions { white-space: nowrap; }
.flashsale-progress-mini { width: 80px; height: 6px; background: #eee; border-radius: 3px; overflow: hidden; margin-bottom: 3px; }
.flashsale-progress-bar-mini { height: 100%; background: var(--fsc-red); border-radius: 3px; min-width: 2px; }

/* ================================================================== */
/* ADMIN STATS                                                         */
/* ================================================================== */

.fss-wrap { font-family: 'Open Sans', Arial, sans-serif; padding: 0 0 40px; max-width: 100%; }
.fss-tabs { list-style: none; display: flex; gap: 0; margin: 0 0 24px; padding: 0; border-bottom: 3px solid var(--fsc-red); }
.fss-tabs li { margin-bottom: -3px; }
.fss-tabs li a { display: block; padding: 10px 24px; color: #777; font-weight: 600; font-size: 13px; text-decoration: none; background: #f8f8f8; border: 1px solid #ddd; border-bottom: none; border-radius: 4px 4px 0 0; transition: all 0.15s; }
.fss-tabs li a:hover { color: var(--fsc-red); background: #fff; }
.fss-tabs li.active a { background: #fff; color: var(--fsc-red); border-color: var(--fsc-red); border-bottom: 3px solid #fff; font-weight: 700; }
.fss-filter { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 14px 20px; margin-bottom: 24px; }
.fss-filter__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fss-filter__row label { font-size: 13px; color: #555; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.fss-filter__row input[type="date"] { padding: 6px 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 13px; color: #333; background: #fafafa; }
.fss-kpi-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; margin-bottom: 28px; }
@media (max-width: 1400px) { .fss-kpi-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1000px) { .fss-kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width:  700px) { .fss-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.fss-kpi { border-radius: 12px; padding: 20px 16px; text-align: center; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.10); position: relative; overflow: hidden; }
.fss-kpi::after { content: ''; position: absolute; top: -20px; right: -20px; width: 80px; height: 80px; background: rgba(255,255,255,0.08); border-radius: 50%; }
.fss-kpi__val   { font-size: 20px; font-weight: 800; line-height: 1.2; position: relative; z-index: 1; }
.fss-kpi__label { font-size: 10px; font-weight: 700; opacity: 0.88; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.6px; position: relative; z-index: 1; }
.fss-kpi--red    { background: linear-gradient(135deg, #e50046, #b8003a); }
.fss-kpi--green  { background: linear-gradient(135deg, #1db954, #158a3e); }
.fss-kpi--teal   { background: linear-gradient(135deg, #00b894, #00897b); }
.fss-kpi--orange { background: linear-gradient(135deg, #ff6b35, #e55b2a); }
.fss-kpi--purple { background: linear-gradient(135deg, #9b59b6, #7d3c98); }
.fss-kpi--gray   { background: linear-gradient(135deg, #636e72, #4a5568); }
.fss-kpi--blue   { background: linear-gradient(135deg, #00a0e3, #0080b8); }
.fss-kpi--dark   { background: linear-gradient(135deg, #2d3436, #1a1a2e); }
.fss-charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.fss-charts-grid .fss-chart-box:first-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .fss-charts-grid { grid-template-columns: 1fr; } }
.fss-chart-box { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 20px; min-width: 0; }
.fss-chart-box__title { font-size: 13px; font-weight: 700; color: #333; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.fss-section { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 20px; margin-bottom: 20px; overflow-x: auto; }
.fss-table-wrap { overflow-x: auto; }
.fss-section__title { font-size: 14px; font-weight: 700; color: #222; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid #f0f0f0; }
.fss-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.fss-table th { background: #f7f8fa; padding: 10px 12px; text-align: left; font-weight: 700; color: #555; border-bottom: 2px solid #e8e8e8; white-space: nowrap; font-size: 11px; text-transform: uppercase; letter-spacing: 0.3px; }
.fss-table td { padding: 9px 12px; border-bottom: 1px solid #f2f2f2; vertical-align: middle; color: #444; }
.fss-table tbody tr:hover td { background: var(--fsc-red-light); }
.fss-row-active td { background: #f0fff4 !important; }
.fss-mini-bar { width: 56px; height: 6px; background: #eee; border-radius: 3px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 4px; }
.fss-mini-bar__fill { height: 100%; background: var(--fsc-red); border-radius: 3px; }
.fss-badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; color: #fff; }
.fss-badge--green { background: #1db954; }
.fss-badge--gray  { background: #aaa; }
.fss-badge--red   { background: var(--fsc-red); }
.fss-badge--blue  { background: #00a0e3; }
.fss-profit-pos { color: #1db954; font-weight: 700; }
.fss-profit-neg { color: var(--fsc-red); font-weight: 700; }
.fss-empty { color: #bbb; font-style: italic; padding: 30px 0; text-align: center; font-size: 14px; }

/* ================================================================== */
/* MOBILE                                                              */
/* ================================================================== */

.flashsale-benefits-toggle { display: none; }

@media (max-width: 900px) {
  .flashsale-wrapper { grid-template-columns: 1fr; }

  .flashsale-img-col {
    border-right: none;
    border-bottom: 1px solid var(--fsc-red-bg);
    border-radius: 12px 12px 0 0;
    padding: 40px 20px 20px;
  }

  .flashsale-price-col {
    border-right: none;
    border-bottom: 1px solid var(--fsc-red-bg);
    padding: 24px 20px;
  }

  .flashsale-benefits-col {
    border-radius: 0 0 12px 12px;
    padding: 20px;
  }

  .flashsale-benefits-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    border-top: 1px solid var(--fsc-red-bg);
    padding: 12px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--fsc-red);
    cursor: pointer;
    margin-bottom: 0;
  }

  .flashsale-benefits-toggle svg { stroke: var(--fsc-red); transition: transform 0.25s ease; }
  .flashsale-benefits-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

  .flashsale-marketing__benefits { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; margin-bottom: 0; }
  .flashsale-marketing__benefits.is-open { max-height: 600px; margin-bottom: 16px; }
  .flashsale-marketing__benefits li:first-child { border-top: none; }
  .flashsale-benefits-col__headline { font-size: 17px; }
}

@media (max-width: 480px) {
  .flashsale-countdown__value { font-size: 20px; min-width: 42px; padding: 5px 8px; }
  .flashsale-card__price-promo { font-size: 30px; }
}

.flashsale-price-col .flashsale-card__name {
  display: block !important;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 4px;
}

.flashsale-price-col .flashsale-card__name:hover {
  color: var(--fsc-red);
}

body:has(input[placeholder="DD"]):has(input[placeholder="MM"]) .fsc-floating,
body:has(input[placeholder="DD"]):has(input[placeholder="YYYY"]) .fsc-floating,
body:has(input[placeholder="MM"]):has(input[placeholder="YYYY"]) .fsc-floating {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


body:has(input[placeholder="DD"]) .fsc-floating,
body:has(input[placeholder="DD"]) .fsc-floating-tab,
body:has(input[placeholder="DD"]) .fsc-floating-popup {
  display: none !important;
}

/* Naprawa blokowania kliknięć przez floating Gorący Strzał */
.fsc-floating {
  pointer-events: none;
}

.fsc-floating-tab,
.fsc-floating-popup,
.fsc-floating-popup * {
  pointer-events: auto;
}

/* FIX: Gorący Strzał nie może blokować kliknięć na stronie */
.fsc-floating {
  pointer-events: none !important;
}

/* Klikalne mają być tylko realne elementy modułu */
.fsc-floating-tab,
.fsc-floating-popup,
.fsc-floating-popup * {
  pointer-events: auto !important;
}

/* Gdy popup jest zwinięty, sam popup nie może łapać kliknięć */
.fsc-floating.is-collapsed .fsc-floating-popup {
  pointer-events: none !important;
  visibility: hidden;
}

/* Widoczny/otwarty popup ma być normalnie klikalny */
.fsc-floating.is-open .fsc-floating-popup {
  pointer-events: auto !important;
  visibility: visible;
}