/**
 * RS Omnibus: promotional price per the "cena promocyjna wg Omnibus (KO0370)" mock-up.
 * Ink #373A2A, muted text #6B6D5F, promo price and discount #C4161C,
 * campaign label: gold gradient #B79A54 -> #CCAF63 with white text (as the "Konfigurator Obrączek" button).
 */
:root {
  --rs-ink: #373A2A;
  --rs-muted: #6B6D5F;
  --rs-promo: #C4161C;
  --rs-gold-from: #B79A54;
  --rs-gold-to: #CCAF63;
  --rs-display: 'Playfair Display', Georgia, serif;
}

/* ---------- Picture labels ---------- */

.product-flags .product-flag.new,
.product-flags .product-flag.discount {
  font-family: var(--rs-display);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  padding: 5px 12px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Labels inset from the picture edge and spaced apart (theme: flush to the corner in lists). */
.product-flags,
.product-miniature-default .product-flags {
  top: 12px;
  left: 12px;
}

.product-flags .product-flag {
  margin-top: 0;
}

.product-flags .product-flag + .product-flag {
  margin-top: 8px;
}

/* "Nowy": white label, ink text, bottom-left corner with the same 12px inset as the campaign label.
   The flag list spans the whole picture (inset 12px) so the label can sit at its bottom;
   pointer-events keep the picture link clickable through the list. */
.product-flags,
.product-miniature-default .product-flags {
  right: 12px;
  bottom: 12px;
  pointer-events: none;
}

.product-flags .product-flag {
  pointer-events: auto;
}

.product-flags .product-flag.new {
  position: absolute;
  left: 0;
  bottom: 0;
  margin-top: 0 !important;
  background: #fff !important;
  color: var(--rs-ink) !important;
}

/* "Nowy" is out of the flow: the label after it starts at the top. */
.product-flags .product-flag.new + .product-flag {
  margin-top: 0;
}

/* Campaign label, e.g. "Black Week -15%": gold, white text. */
.product-flags .product-flag.discount {
  background: linear-gradient(90deg, var(--rs-gold-from), var(--rs-gold-to)) !important;
  color: #fff !important;
}

/* ---------- Lists: PrestaShop's struck-through regular price is counted from the regular price,
   not from the lowest 30-day price, so it never shows. The module prints the reference price instead. ---------- */

.product-price-and-shipping .regular-price,
.product-price-and-shipping .discount-percentage,
.product-price-and-shipping .discount-amount {
  display: none !important;
}

/* Cart, compare page and any other place: struck regular price and "-15%" counted from it
   announce a reduction without the lowest 30-day price. The product page no longer renders .product-discount. */
.product-discount,
.cart-item .discount-percentage,
.cart-item .discount-amount {
  display: none !important;
}

/* ---------- Promotional price in red (only for an Omnibus reduction) ---------- */

.rs-price--promo,
.rs-price--promo .current-price-value,
.rs-promo-marker ~ .product-price,
.rs-promo-marker ~ a .product-price {
  color: var(--rs-promo) !important;
}

/* ---------- Lowest 30-day price ---------- */

.rs-omnibus {
  margin: 8px 0 0;
  font-family: var(--rs-display);
  font-size: 14px;
  line-height: 1.6;
  color: var(--rs-muted);
  text-align: left;
  /* Playfair defaults to old-style figures; the mock-up uses lining figures. */
  font-variant-numeric: lining-nums;
}

.rs-omnibus p {
  margin: 0;
}

.rs-omnibus__label {
  display: block;
}

.rs-omnibus__value {
  color: var(--rs-ink);
  white-space: nowrap;
}

.rs-omnibus__pct {
  color: var(--rs-promo);
  white-space: nowrap;
}

.rs-omnibus__regular {
  margin-top: 2px !important;
  font-size: 13px;
}

.product-miniature .rs-omnibus--line {
  text-align: inherit;
}

/* ---------- Product page ---------- */

/* The theme's .product-prices-wrapper is a wrapping flex row (price | BRUTTO): the block takes its own full-width row. */
.rs-omnibus--product {
  flex: 0 0 100%;
  margin-top: -12px;
  font-size: 16px;
  text-transform: none;
}

.rs-omnibus--product .rs-omnibus__regular {
  font-size: 14px;
}

.rs-omnibus__saving {
  margin-top: 10px !important;
  color: var(--rs-ink);
}

.rs-omnibus-chip {
  display: inline-block;
  vertical-align: 0.35em;
  margin-left: 16px;
  padding: 3px 10px;
  background: var(--rs-promo);
  color: #fff;
  font-family: var(--rs-display);
  font-size: 18px !important;
  font-weight: 400;
  line-height: 1.3;
  font-variant-numeric: lining-nums;
}

/* ---------- Not in the mock-up: the promotion countdown (iqitcountdown) ---------- */

.price-countdown-wrapper,
.product-miniature .price-countdown {
  display: none !important;
}
