/* 1kamas: card-payment alert (20/11/2026). A red bar above the site header and a pop-up shown once
   per visitor (text and behaviour: 1k-alert.js). Built from the site's own pieces: the bar has the size of
   the former promo bar, the pop-up is the alert box of /livraison/ in the danger colours, with the site's
   .btn-primary and .btn-ghost. Both themes come from the tokens (--danger, -bg, -border, -text).
   body::before keeps the bar's room from the first paint, so the page does not move when the text
   arrives (pages with the site header only: the checkout, login and account pages have none).
   To take the alert away: remove the 1k-alert <link> and <script> from the pages. */
:root { --k1pay-h: 36px; }
@media (max-width: 767px) { :root { --k1pay-h: 48px; } }
body:has(> header)::before {
  content: ""; display: block; box-sizing: border-box; height: var(--k1pay-h);
  background: rgb(var(--danger-bg)); border-bottom: 1px solid rgb(var(--danger-border));
}
.k1pay {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40; box-sizing: border-box; height: var(--k1pay-h);
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 0; padding: 0 16px;
  border: 0; border-bottom: 1px solid rgb(var(--danger-border)); background: rgb(var(--danger-bg));
  color: rgb(var(--danger-text)); font: 500 14px/20px var(--font-inter), system-ui, sans-serif; text-align: left; cursor: pointer;
}
.k1pay > svg { flex: none; color: rgb(var(--danger)); }
.k1pay__more { flex: none; margin-left: 4px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.k1pay:hover .k1pay__more { text-decoration-thickness: 2px; }
.k1pay:focus-visible { outline: 2px solid rgb(var(--danger)); outline-offset: -4px; }
.k1pay__long { display: none; }
@media (min-width: 1024px) { .k1pay__long { display: inline; } }
@media (max-width: 767px) {
  .k1pay { justify-content: flex-start; font-size: 13px; line-height: 18px; }
  .k1pay__t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .k1pay__more { margin-left: auto; }
}
@media (max-width: 379px) { .k1pay__more { display: none; } }

/* Pop-up: the alert box of /livraison/ (rounded-card, border and background of a status colour, 40px
   icon square at 15 % of that colour, 18/27 bold title, 14/24 text), in red, over the dimmed page */
.k1pm { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgb(22 21 28 / .55); }
@media (prefers-reduced-motion: no-preference) { .k1pm { animation: k1pmf .15s ease-out; } }
@keyframes k1pmf { from { opacity: 0; } }
.k1pm__box {
  position: relative; display: flex; align-items: flex-start; gap: 16px; width: 100%; max-width: 520px; box-sizing: border-box;
  padding: 24px; border-radius: 14px; border: 1px solid rgb(var(--danger-border)); background: rgb(var(--danger-bg));
  box-shadow: 0 1px 2px rgb(31 22 51 / .04), 0 6px 16px rgb(31 22 51 / .06), 0 18px 40px rgb(31 22 51 / .07);
  font-family: var(--font-inter), system-ui, sans-serif; text-align: left;
}
.k1pm__ic { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 14px; background: rgb(var(--danger) / .15); color: rgb(var(--danger)); }
.k1pm__h { margin: 0; padding-right: 28px; font-size: 18px; line-height: 27px; font-weight: 700; color: rgb(var(--danger-text)); }
.k1pm__p { margin: 4px 0 0; font-size: 14px; line-height: 24px; color: rgb(var(--danger-text) / .9); }
.k1pm__act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.k1pm__x {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 9px; background: none; color: rgb(var(--danger-text) / .7); cursor: pointer;
}
.k1pm__x:hover { background: rgb(var(--danger) / .1); }
@media (max-width: 479px) { .k1pm__box { gap: 12px; padding: 20px; } .k1pm__act > * { flex: 1 1 100%; } }
@media print { body:has(> header)::before, .k1pay, .k1pm { display: none !important; } }
