/* Stari vrh — soglasje za piškotke: kompaktna kartica spodaj levo. */
.consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 900;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 1.1rem 1.2rem 1.15rem;
  border: 1px solid var(--line, #dbe6ee);
  border-radius: var(--r-lg, 20px);
  background: #fff;
  color: var(--ink, #0b2233);
  box-shadow: var(--shadow-lg);
  font-family: var(--body);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.consent.is-in {
  opacity: 1;
  transform: none;
}

.consent__head {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .4rem;
}

.consent__ico {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--navy-600, #0a5b8f);
}

.consent__title {
  margin: 0;
  font: 700 1.05rem/1.2 var(--display);
  color: var(--navy-900, #041f33);
}

.consent__text {
  margin: 0;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-soft, #274b64);
}

.consent__text a {
  color: var(--navy-700, #00446f);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent__prefs {
  display: grid;
  gap: .15rem;
  margin: .85rem 0 0;
  padding-top: .45rem;
  border-top: 1px solid var(--line, #dbe6ee);
}

.consent__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  cursor: pointer;
}

.consent__opt b {
  display: block;
  font-size: .875rem;
  color: var(--ink, #0b2233);
}

.consent__opt small {
  display: block;
  margin-top: .1rem;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--ink-muted, #4d6a80);
}

/* stikalo */
.consent__switch {
  appearance: none;
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  margin: 0;
  border-radius: 999px;
  background: var(--line-strong, #c3d4e0);
  cursor: pointer;
  transition: background-color .2s var(--ease);
}

.consent__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s var(--ease);
}

.consent__switch:checked {
  background: var(--navy-700, #00446f);
}

.consent__switch:checked::after {
  transform: translateX(16px);
}

.consent__switch:disabled {
  opacity: .55;
  cursor: default;
}

.consent__switch:focus-visible {
  outline: 3px solid var(--yellow, #ffd600);
  outline-offset: 2px;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
}

.consent__actions .btn {
  flex: 1 1 0;
}

.consent__actions .btn[hidden] {
  display: none;
}

@media (max-width: 520px) {
  .consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: calc(100dvh - 20px);
  }
}

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

/* nadomestek za vsebino brez soglasja (kamere v živo) */
.consent-ph {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 1.2rem;
  background: radial-gradient(120% 90% at 50% 0%, var(--navy-700, #00446f) 0%, var(--navy-900, #041f33) 70%);
  color: rgba(233, 243, 250, .9);
  text-align: center;
}

/* pri kameri pokrije le predvajalnik (16 : 9), napis z imenom ostane viden */
.cam--embed .consent-ph {
  bottom: auto;
  aspect-ratio: 16 / 9;
}

.consent-ph[hidden] {
  display: none;
}

.consent-ph p {
  max-width: 26ch;
  margin: 0;
  font-size: .875rem;
  line-height: 1.45;
}

.consent-ph b {
  color: #fff;
}

.consent-ph > span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem 1rem;
}

.consent-ph__link {
  color: var(--yellow, #ffd600);
  font-size: .8125rem;
  font-weight: 600;
}

/* povezava v nogi */
.ftr__cookies {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.ftr__cookies:hover {
  color: #fff;
}
