/* O’Natur-EL Vente spécial promo — front-end styles */
.onws-banner,
.onws-popup,
.onws-landing,
.onws-consent,
.onws-single-offer,
.onws-product-limited {
  box-sizing: border-box;
  font-family: inherit;
}

.onws-banner *,
.onws-popup *,
.onws-landing *,
.onws-consent * {
  box-sizing: border-box;
}

.onws-banner {
  position: relative;
  z-index: 99990;
  width: 100%;
  color: #fff;
  background: var(--onws-primary);
  background:
    radial-gradient(circle at 12% 0%, rgba(197,154,61,.26), transparent 28%),
    linear-gradient(120deg, color-mix(in srgb, var(--onws-primary) 88%, #000), var(--onws-primary));
  border-bottom: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 5px 22px rgba(17,42,31,.16);
}

.onws-banner.is-sticky {
  position: sticky;
  top: 0;
}

.admin-bar .onws-banner.is-sticky { top: 32px; }

.onws-banner__inner {
  width: min(1440px, 100%);
  min-height: 64px;
  margin: 0 auto;
  padding: 9px clamp(16px, 3vw, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 34px);
}

.onws-banner__message {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 12px;
}

.onws-banner__message strong {
  color: #fff;
  font-size: clamp(.78rem, 1vw, .92rem);
  line-height: 1.15;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.onws-banner__message span {
  color: #fff;
  font-size: clamp(.95rem, 1.35vw, 1.12rem);
  font-weight: 750;
}

.onws-banner__message small {
  flex-basis: 100%;
  color: rgba(255,255,255,.78);
  font-size: .72rem;
  line-height: 1.2;
}

.onws-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--onws-primary);
  border-radius: 10px;
  background: var(--onws-primary);
  color: #fff !important;
  font-size: .92rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none !important;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(13,79,59,.18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.onws-button:hover,
.onws-button:focus-visible {
  color: #fff !important;
  background: color-mix(in srgb, var(--onws-primary) 86%, #000);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(13,79,59,.24);
}

.onws-button--light {
  min-height: 40px;
  padding: 9px 18px;
  border-color: #fff;
  background: #fff;
  color: var(--onws-primary) !important;
  box-shadow: none;
}

.onws-button--light:hover,
.onws-button--light:focus-visible {
  background: var(--onws-accent);
  border-color: var(--onws-accent);
  color: #fff !important;
}

.onws-button--small {
  min-height: 38px;
  padding: 9px 16px;
  font-size: .84rem;
}

.onws-button--outline {
  background: transparent;
  color: var(--onws-primary) !important;
  box-shadow: none;
}

.onws-button--outline:hover,
.onws-button--outline:focus-visible {
  color: #fff !important;
}

.onws-countdown {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 7px;
  margin: 9px 0 22px;
}

.onws-countdown > span {
  min-width: 62px;
  padding: 9px 8px 7px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(13,79,59,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.75);
  box-shadow: 0 8px 22px rgba(40,41,35,.06);
}

.onws-countdown strong {
  color: var(--onws-primary);
  font-size: 1.28rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.onws-countdown small {
  margin-top: 5px;
  color: #665f53;
  font-size: .62rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.onws-countdown > i {
  align-self: center;
  color: var(--onws-accent);
  font-style: normal;
  font-weight: 800;
}

.onws-countdown--compact {
  margin: 0;
  gap: 4px;
}

.onws-countdown--compact > span {
  min-width: 42px;
  padding: 4px 5px;
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  box-shadow: none;
}

.onws-countdown--compact strong {
  color: #fff;
  font-size: .96rem;
}

.onws-countdown--compact small {
  color: rgba(255,255,255,.72);
  font-size: .48rem;
}

.onws-countdown--compact > i { color: rgba(255,255,255,.58); }

.onws-popup[hidden] { display: none !important; }

.onws-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.onws-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,28,21,.66);
  backdrop-filter: blur(8px);
}

.onws-popup__dialog {
  position: relative;
  width: min(960px, 96vw);
  max-height: min(760px, 92vh);
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(350px, 1.05fr);
  overflow: hidden;
  border: 1px solid rgba(197,154,61,.35);
  border-radius: 22px;
  background: var(--onws-bg);
  box-shadow: 0 30px 90px rgba(0,0,0,.32);
  animation: onwsPopupIn .35s cubic-bezier(.2,.75,.2,1) both;
}

@keyframes onwsPopupIn {
  from { opacity: 0; transform: translateY(18px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.onws-popup__visual {
  min-height: 520px;
  overflow: hidden;
  background: #eee4d5;
}

.onws-popup__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.onws-popup__content {
  padding: clamp(30px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #2b2a26;
  background:
    radial-gradient(circle at 100% 0%, rgba(197,154,61,.16), transparent 30%),
    var(--onws-bg);
}

.onws-popup__content h2,
.onws-landing h2 {
  margin: 8px 0 14px;
  color: var(--onws-primary);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.onws-eyebrow {
  color: var(--onws-accent);
  font-size: .77rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.onws-popup__lead {
  margin: 0 0 14px;
  color: #4c4a43;
  font-size: 1rem;
  line-height: 1.65;
}

.onws-limited {
  margin: 0 0 6px;
  color: #5b4b2c;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.45;
}

.onws-limited span {
  color: var(--onws-accent);
  font-size: .7rem;
}

.onws-countdown-heading {
  margin: 14px 0 0;
  color: var(--onws-primary);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.onws-popup__content .onws-button { align-self: flex-start; min-width: 190px; }

.onws-continue {
  align-self: flex-start;
  margin: 12px 0 0;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid rgba(13,79,59,.25);
  background: transparent;
  color: #6c685f;
  font: inherit;
  font-size: .78rem;
  cursor: pointer;
}

.onws-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(13,79,59,.12);
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--onws-primary);
  font-family: Arial, sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

body.onws-modal-open { overflow: hidden; }

.onws-landing {
  width: min(1240px, calc(100% - 32px));
  margin: clamp(34px, 6vw, 80px) auto;
  overflow: hidden;
  border: 1px solid rgba(197,154,61,.24);
  border-radius: 24px;
  background: var(--onws-bg);
  box-shadow: 0 22px 70px rgba(44,50,42,.1);
}

.onws-landing__hero {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.1fr);
}

.onws-landing__image { min-height: 520px; overflow: hidden; }
.onws-landing__image img { width: 100%; height: 100%; display: block; object-fit: cover; }

.onws-landing__copy {
  padding: clamp(36px, 7vw, 82px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.onws-landing__copy > p:not(.onws-limited):not(.onws-countdown-heading) {
  max-width: 620px;
  margin: 0 0 15px;
  color: #4c4a43;
  font-size: 1.03rem;
  line-height: 1.65;
}

.onws-landing__products {
  padding: clamp(24px, 4vw, 52px);
  border-top: 1px solid rgba(197,154,61,.22);
  background: rgba(255,255,255,.62);
}

.onws-landing--compact .onws-landing__hero { display: block; }
.onws-landing--compact .onws-landing__copy { align-items: center; text-align: center; padding-bottom: 36px; }
.onws-landing--compact .onws-countdown { justify-content: center; }
.onws-landing--compact .onws-landing__products { padding-top: 10px; }
.onws-landing--compact h2 { font-size: clamp(2rem, 4vw, 3.15rem); }

.onws-landing--ended {
  padding: 50px;
  text-align: center;
}

.onws-product-limited {
  margin: 7px 0 4px !important;
  color: #725b2e !important;
  font-size: .72rem !important;
  font-weight: 650;
  line-height: 1.35;
}

.onws-single-offer {
  margin: 12px 0 16px;
  padding: 13px 15px;
  border-left: 3px solid var(--onws-accent);
  border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--onws-bg) 82%, #fff);
}

.onws-single-offer strong { color: var(--onws-primary); }
.onws-single-offer p { margin: 4px 0 0; color: #6b5a38; font-size: .82rem; }

.onsale.onws-sale-badge {
  min-width: auto !important;
  min-height: auto !important;
  padding: 7px 10px !important;
  border-radius: 999px !important;
  background: var(--onws-primary) !important;
  color: #fff !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: 0 7px 18px rgba(13,79,59,.2);
}

.onws-consent[hidden] { display: none !important; }
.onws-consent {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 999998;
  width: min(680px, calc(100% - 36px));
  margin: 0 auto;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(197,154,61,.32);
  border-radius: 14px;
  background: rgba(255,252,247,.97);
  color: #38362f;
  box-shadow: 0 18px 55px rgba(0,0,0,.2);
  backdrop-filter: blur(8px);
}

.onws-consent p { margin: 0; font-size: .84rem; line-height: 1.45; }
.onws-consent__actions { display: flex; flex-shrink: 0; gap: 8px; }

@media (max-width: 980px) {
  .onws-banner__inner { flex-wrap: wrap; gap: 8px 15px; }
  .onws-banner__message { justify-content: center; text-align: center; }
  .onws-banner__message small { display: none; }
  .onws-popup__dialog { grid-template-columns: .82fr 1.18fr; }
  .onws-popup__visual { min-height: 470px; }
}

@media (max-width: 782px) {
  .admin-bar .onws-banner.is-sticky { top: 46px; }
  .onws-banner.is-sticky { position: relative; top: auto; }
  .onws-banner__inner { padding: 10px 14px; }
  .onws-banner__message { width: 100%; }
  .onws-banner__message strong { font-size: .7rem; }
  .onws-banner__message span { font-size: .92rem; }
  .onws-banner .onws-countdown--compact > span { min-width: 36px; }
  .onws-banner .onws-button--light { min-height: 36px; padding: 8px 13px; font-size: .78rem; }

  .onws-popup { padding: 10px; }
  .onws-popup__dialog {
    width: min(560px, 96vw);
    max-height: 94vh;
    display: block;
    overflow-y: auto;
    border-radius: 17px;
  }
  .onws-popup__visual { height: 230px; min-height: 0; }
  .onws-popup__visual img { object-position: center 42%; }
  .onws-popup__content { padding: 27px 23px 30px; }
  .onws-popup__content h2 { font-size: clamp(1.9rem, 9vw, 2.65rem); }
  .onws-countdown > span { min-width: 53px; }
  .onws-countdown strong { font-size: 1.08rem; }

  .onws-landing { width: min(100% - 20px, 1240px); border-radius: 18px; }
  .onws-landing__hero { display: block; }
  .onws-landing__image { min-height: 0; height: 330px; }
  .onws-landing__copy { padding: 30px 22px 38px; }
  .onws-landing__products { padding: 20px 12px; }

  .onws-consent { align-items: flex-start; flex-direction: column; }
  .onws-consent__actions { width: 100%; }
  .onws-consent__actions .onws-button { flex: 1; }
}

@media (max-width: 460px) {
  .onws-banner .onws-countdown--compact { display: none; }
  .onws-countdown { gap: 4px; }
  .onws-countdown > span { min-width: 49px; padding-inline: 4px; }
  .onws-popup__visual { height: 180px; }
  .onws-popup__content { padding: 23px 18px 27px; }
  .onws-popup__lead { font-size: .92rem; }
  .onws-popup__content .onws-button { width: 100%; }
  .onws-continue { align-self: center; }
  .onws-landing__image { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .onws-popup__dialog { animation: none; }
  .onws-button { transition: none; }
}
