/* SUNRISE Core – UI CSS (sklep) */
/* Uwaga: ten plik jest ładowany tylko na stronach WooCommerce (produkt/listingi/koszyk/checkout). */

/* (global header tweak – jeśli chcesz tylko globalnie, przenieś do Customizer) */
.wd-header-nav span{ display:none !important; }

/* Anchory / nagłówki (TOC + zakładki) */
.toc-anchor{ display:block; scroll-margin-top:160px; }
.woocommerce-Tabs-panel h2, .woocommerce-Tabs-panel h3{ scroll-margin-top:160px; }

/* Short lead */
.sr-shortlead{ margin:0 0 10px; line-height:1.35; }

/* Cutoff countdown box */
.sr-cutoff{
  margin:10px 0 12px;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.1);
  border-radius:10px;
  background:#fff;
  min-height:58px;
}
.sr-cutoff__row{
  display:flex;
  flex-wrap:nowrap;
  align-items:baseline;
  column-gap:6px;
  font-weight:700;
  white-space:nowrap;
  line-height:1.25;
}
.sr-cutoff__timer, .sr-cutoff__msg{ display:inline-block; white-space:nowrap; }
.sr-cutoff__timer{ font-variant-numeric:tabular-nums; letter-spacing:.4px; }
.sr-cutoff__note{ margin-top:6px; font-size:12.5px; opacity:.8; line-height:1.25; }

/* Cutoff – responsywność (żeby nie wyjeżdżało poza ramkę) */
@media (max-width:1100px){
  .sr-cutoff__row{ flex-wrap:wrap !important; white-space:normal !important; }
  .sr-cutoff__msg{ white-space:normal !important; }
}
@media (max-width:600px){
  .sr-cutoff__row{ row-gap:4px; }
  .sr-cutoff__timer{ flex:0 0 auto; white-space:nowrap !important; }
  .sr-cutoff__msg{ flex:1 1 100%; }
}
@media (max-width:360px){
  .sr-cutoff__row{ flex-wrap:wrap; white-space:normal; }
}

/* Links under short description (bazowe) */
.sr-links{
  margin:.5rem 0;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.5rem;
  font-size:13px;
  line-height:1.35;
}
.sr-links__label{ font-weight:600; }
.sr-links__note{ color:#666; margin-left:6px; }

.sr-allegro, .sr-internal{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.4rem .8rem;
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
  transition:background-color .2s ease, transform .1s ease;
}
.sr-allegro{ background-color:#ff5a00; color:#fff; }
.sr-internal{ background-color:#1e7a1c; color:#fff; }
.sr-allegro:hover, .sr-internal:hover{
  background-color:#d64900;
  transform:translateY(-1px);
  text-decoration:underline;
}
.sr-shop__logo, .sr-allegro__logo{ display:block; }

/* Free shipping box w short description */
.sr-freeship{
  margin:8px 0 10px;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.1);
  border-radius:10px;
  background:#fff;
  font-weight:700;
  line-height:1.2;
}
.sr-freeship__note{
  margin-top:4px;
  font-size:12.5px;
  font-weight:400;
  opacity:.85;
  line-height:1.25;
}
.sr-underprice{ margin-top:10px; }

/* Badge na kafelkach – darmowa dostawa (listing) */
li.product, .product-grid-item, .wd-product, .product-wrapper, .product-element-top{ position:relative; }
.onsale.sr-badge-free-ship{ top:40px; }
@media (max-width:768px){ .onsale.sr-badge-free-ship{ top:36px; } }

/* Social proof (Allegro) */
.sr-proof{ margin-top:10px; padding-top:8px; border-top:1px solid rgba(0,0,0,.08); }
.sr-proof__row{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:14px; line-height:1.3; }
.sr-proof__row--small{ margin-top:6px; font-size:13px; opacity:.9; }
.sr-proof__offer{ display:inline-flex; align-items:center; gap:6px; text-decoration:none; }
.sr-proof__score{ font-weight:700; }
.sr-proof__from{ font-size:12px; opacity:.8; }
.sr-proof__sep{ opacity:.35; user-select:none; }
.sr-proof__meta, .sr-proof__seller{ text-decoration:none; border-bottom:1px dotted rgba(0,0,0,.25); }
.sr-proof__meta:hover, .sr-proof__seller:hover{ border-bottom-color:rgba(0,0,0,.55); }
.sr-proof__stars{ display:inline-flex; gap:2px; transform:translateY(1px); }
.sr-star{
  width:14px; height:14px; display:inline-block;
  background:currentColor; opacity:.25;
  clip-path:polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
}
.sr-star.is-on{ opacity:1; }
.sr-proof__recent{ opacity:.9; }

/* Review box */
.sr-review-box{ padding:18px; border:1px solid #eee; border-radius:12px; margin:16px 0; background:#fff; }
.sr-review-btn{ display:inline-block; padding:12px 18px; border-radius:10px; font-weight:700; text-decoration:none; box-shadow:0 8px 18px rgba(0,0,0,.12); }
.sr-review-btn--google{ background:#1a73e8; color:#fff; }
.sr-review-btn--google:hover{ filter:brightness(.95); }
.sr-review-note{ opacity:.75; font-size:13px; margin-top:10px; }

/* ORLEN (BLPaczka) – czerwony przycisk */
.blpaczka-point-modal-btn, #blpaczka-map .blpaczka-point-modal-btn{
  background:#d32f2f !important;
  color:#fff !important;
  border:0 !important;
  border-radius:12px !important;
  padding:14px 18px !important;
  font-weight:800 !important;
  letter-spacing:.2px;
  text-transform:none !important;
  box-shadow:0 10px 18px rgba(0,0,0,.18) !important;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.blpaczka-point-modal-btn:hover, #blpaczka-map .blpaczka-point-modal-btn:hover{
  background:#b71c1c !important;
  transform:translateY(-1px);
  box-shadow:0 14px 24px rgba(0,0,0,.22) !important;
}
.blpaczka-point-modal-btn:active, #blpaczka-map .blpaczka-point-modal-btn:active{
  transform:translateY(0);
  box-shadow:0 8px 14px rgba(0,0,0,.18) !important;
}
.blpaczka-point-modal-btn.hidden-duplicate{ display:none !important; }
#blpaczka-map{ margin:10px 0 !important; }
#blpaczka_pudo_container, .custom_shipping_option_input_container{ margin:0 !important; padding:0 !important; }

/* Add to cart focus */
.single-product .single_add_to_cart_button:focus,
.single-product .single_add_to_cart_button:active{
  background-color:#ff5a00;
  box-shadow:0 0 0 3px rgba(0,0,0,.12);
  outline:none !important;
}

/* Short description links – single product jako “tekstowe linki” */
.single-product .woocommerce-product-details__short-description .sr-links{
  margin:16px 0 8px !important;
  display:grid !important;
  row-gap:6px !important;
  line-height:1.5 !important;
}
.single-product .woocommerce-product-details__short-description .sr-links a{
  display:inline-flex !important;
  align-items:center !important;
  gap:10px !important;
  padding:6px 0 !important;
  background:transparent !important;
  color:#000 !important;
  font-size:16px !important;
  font-weight:700 !important;
  text-decoration:underline !important;
  box-shadow:none !important;
  border-radius:0 !important;
  transform:none !important;
}

/* NOWY BOX Z LICZBAMI */
.sr-socialproof-box{
  margin:24px auto 8px;
  max-width:720px;
  padding:12px 20px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.06);
  background:#fff;
  box-shadow:0 10px 24px rgba(0,0,0,.05);
  display:flex;
  justify-content:space-between;
  gap:16px;
  text-align:center;
}
.sr-sp-col{ flex:1 1 0; }
.sr-sp-icon{
  width:32px; height:32px;
  margin:0 auto 4px;
  border-radius:50%;
  background:#ffb300;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; line-height:1;
}
.sr-sp-num{ font-size:20px; font-weight:800; color:#ff5a00; line-height:1.1; }
.sr-sp-label{ margin-top:2px; font-size:12px; line-height:1.3; color:#555; }

/* Intro */
.sr-intro{ max-width:900px; margin:0 auto 24px; text-align:center; }
.sr-intro__badge{
  display:inline-block;
  padding:4px 12px;
  margin-bottom:10px;
  border-radius:999px;
  background:#38b00010;
  color:#2b7a0b;
  font-size:11px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.sr-intro__badge span{ font-weight:800; }
.sr-intro__title{ font-size:22px; line-height:1.3; margin:0 0 10px; }
.sr-intro__brand img{ height:56px; margin:4px 0 10px; }
.sr-intro__lead{ max-width:780px; margin:0 auto 6px; font-size:14px; line-height:1.6; }

/* Listingi – ukryj linki Allegro/kotwy (za mało miejsca) */
body.woocommerce-page:not(.single-product) .sr-links{ display:none !important; }

/* Fallback: jeśli mimo wszystko pojawi się 2× etykieta promocji jedna pod drugą – ukryj drugą */
.sr-sale-countdown-label + .sr-sale-countdown-label{ display:none !important; }
.sr-sale-countdown-label{ box-sizing:border-box; }
