/* SAKK Einwilligung: Banner. Läuft auf allen Seiten, auch ohne sakk-v2.css (Warenkorb, Kasse, Rechtstexte).
   Deshalb eigene Werte statt der v2-Tokens. Beide Hauptknöpfe sind bewusst gleich gestaltet. */

.v2-consent {
  --c-yellow: var(--bs-primary, #ffed00);
  position: fixed; left: 20px; bottom: 20px; z-index: 2147483000;
  width: min(440px, calc(100vw - 40px));
  font-family: inherit; font-size: 15px; line-height: 1.55; font-style: normal; text-transform: none; letter-spacing: 0;
  color: #fff; text-align: left;
  opacity: 0; transform: translateY(16px);
  transition: opacity .28s ease, transform .28s ease;
}
.v2-consent[hidden] { display: none !important; }
.v2-consent.is-open { opacity: 1; transform: none; }

.v2-consent-box {
  background: #0b0b0b; border: 1px solid rgba(255, 255, 255, .16); border-top: 3px solid var(--c-yellow);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
  padding: 22px 22px 16px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto;
  outline: none;
}
.v2-consent-box:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 2px; }

.v2-consent .v2-consent-title {
  margin: 0 0 10px; padding: 0; color: #fff;
  font-size: 19px; line-height: 1.2; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.01em;
}
.v2-consent .v2-consent-text { margin: 0 0 10px; color: rgba(255, 255, 255, .86); font-size: 15px; line-height: 1.55; }
.v2-consent .v2-consent-small { color: rgba(255, 255, 255, .62); font-size: 13px; }

.v2-consent.has-details .v2-consent-small { display: none; }

.v2-consent-details { margin: 14px 0 4px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
.v2-consent-details[hidden] { display: none !important; }
.v2-consent .v2-consent-row {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  margin: 0 0 14px; padding: 0; cursor: pointer; font-weight: 400; color: rgba(255, 255, 255, .78); font-size: 13.5px; line-height: 1.5;
}
.v2-consent .v2-consent-row b { display: block; color: #fff; font-size: 15px; font-weight: 800; }
.v2-consent .v2-consent-row input {
  appearance: auto; -webkit-appearance: auto; position: static; opacity: 1;
  width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--c-yellow); cursor: pointer;
}
.v2-consent .v2-consent-row input:disabled { cursor: default; }

.v2-consent-actions { display: flex; gap: 10px; margin: 16px 0 12px; }
.v2-consent .v2-consent-btn {
  flex: 1 1 0; min-height: 48px; padding: 10px 14px; margin: 0;
  background: var(--c-yellow); color: #000; border: 2px solid var(--c-yellow); border-radius: 0; box-shadow: none;
  font: inherit; font-size: 15px; font-weight: 800; font-style: normal; text-transform: uppercase; letter-spacing: .04em; line-height: 1.1;
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.v2-consent .v2-consent-btn:hover { background: #fff; border-color: #fff; color: #000; }
.v2-consent .v2-consent-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.v2-consent .v2-consent-btn-line { display: block; width: 100%; background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.v2-consent .v2-consent-btn-line:hover { background: #fff; color: #000; }

.v2-consent .v2-consent-foot {
  display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; font-size: 13px; line-height: 1.4;
}
.v2-consent .v2-consent-foot a,
.v2-consent .v2-consent-link {
  background: none; border: 0; padding: 6px 0; margin: 0; min-height: 0;
  color: rgba(255, 255, 255, .78); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.v2-consent .v2-consent-foot a:hover,
.v2-consent .v2-consent-link:hover { color: var(--c-yellow); }
.v2-consent .v2-consent-foot a:focus-visible,
.v2-consent .v2-consent-link:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 2px; }

/* Ersatz-Link, falls das Fußmenü „Rechtliches“ nicht gefunden wird */
.v2-consent-reopen {
  display: block; margin: 0; padding: 14px 16px; background: #000; color: rgba(255, 255, 255, .78);
  text-align: center; font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .v2-consent { left: 0; right: 0; bottom: 0; width: 100%; }
  .v2-consent-box {
    border-left: 0; border-right: 0; border-bottom: 0;
    padding: 18px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    max-height: 86vh; max-height: 86dvh;
  }
  .v2-consent .v2-consent-text { font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .v2-consent { transition: none; transform: none; }
}
