/* Story Layers — consent banner.
   Deliberately restrained: a bottom sheet rather than a full-screen interstitial, so it does
   not hide the shop. The three first-layer buttons carry EQUAL visual weight — making
   "Decline" quieter than "Accept" is exactly the deceptive design the Authority's guidance
   calls out, so only the accent fill distinguishes the primary, never the size or contrast. */

.sl-cc {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 9000;
  padding: 0.75rem;
  animation: sl-cc-in 0.25s ease-out;
}
@keyframes sl-cc-in { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sl-cc { animation: none; } }

.sl-cc__card {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  color: #18222e;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(20, 30, 50, 0.18);
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.sl-cc__body { flex: 1 1 320px; min-width: 0; }
.sl-cc__title { font-size: 1.02rem; font-weight: 700; margin: 0 0 0.35rem; }
.sl-cc__text { font-size: 0.87rem; line-height: 1.55; margin: 0 0 0.4rem; color: #3c4c59; }
.sl-cc__link { font-size: 0.82rem; color: #0e7da0; text-decoration: underline; }

.sl-cc__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.sl-cc__actions--modal { margin-top: 1.2rem; justify-content: flex-end; }
.sl-cc__btn {
  font: inherit;
  font-size: 0.87rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  min-height: 44px;               /* touch target */
  border-radius: 999px;
  border: 1px solid #c2cdd5;
  background: #fff;
  color: #18222e;
  cursor: pointer;
  white-space: nowrap;
}
.sl-cc__btn:hover { border-color: #0e7da0; color: #0e7da0; }
.sl-cc__btn--primary { background: #0e7da0; border-color: #0e7da0; color: #fff; }
.sl-cc__btn--primary:hover { filter: brightness(1.08); color: #fff; }
.sl-cc__btn--ghost { border-color: transparent; text-decoration: underline; }
.sl-cc__btn:focus-visible { outline: 2px solid #0e7da0; outline-offset: 2px; }

/* ---- preferences modal ---- */
.sl-cc-ov {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(16, 22, 34, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.sl-cc-modal {
  background: #fff;
  color: #18222e;
  border-radius: 16px;
  padding: 1.5rem;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.sl-cc-cat { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1rem; }
.sl-cc-cat__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  background: #f5f7fa;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  cursor: pointer;
}
.sl-cc-cat__row input { margin-top: 0.15rem; width: 18px; height: 18px; flex: none; accent-color: #0e7da0; }
.sl-cc-cat__row input:disabled { cursor: not-allowed; }
.sl-cc-cat__row strong { display: block; font-size: 0.9rem; }
.sl-cc-cat__row em { font-size: 0.72rem; color: #5a6878; font-style: normal; }
.sl-cc-cat__desc { display: block; font-size: 0.8rem; line-height: 1.5; color: #3c4c59; margin-top: 0.25rem; }

/* ---- persistent re-open control (consent must be withdrawable) ----
   Deliberately small and out of the way of the two corner buttons (WhatsApp at bottom-start,
   accessibility at bottom-end) — centered at the very bottom edge so it never sits on top of
   either. Its z-index only needs to clear ordinary page content, not the banner/modal above it. */
.sl-cc-reopen {
  position: fixed;
  left: 50%;
  bottom: 0.5rem;
  transform: translateX(-50%);
  z-index: 500;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #e1e7ef;
  background: #fff;
  box-shadow: 0 4px 14px rgba(20, 30, 50, 0.16);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}
.sl-cc-reopen:hover { opacity: 1; }
.sl-cc-reopen:focus-visible { outline: 2px solid #0e7da0; outline-offset: 2px; }

@media (max-width: 640px) {
  .sl-cc__card { padding: 1rem; gap: 0.9rem; }
  .sl-cc__actions { width: 100%; }
  /* Full width and equal share, so no button is easier to hit than another. */
  .sl-cc__actions .sl-cc__btn { flex: 1 1 0; padding-inline: 0.6rem; }
}
