:root {
  --ye-cookie-navy: #0b2b63;
  --ye-cookie-navy-2: #153d7a;
  --ye-cookie-yellow: #ffbd16;
  --ye-cookie-yellow-dark: #eba900;
  --ye-cookie-text: #10234f;
  --ye-cookie-muted: #64748b;
  --ye-cookie-border: #dbe5f1;
  --ye-cookie-surface: #f4f7fb;
  --ye-cookie-white: #ffffff;
  --ye-cookie-success: #17b26a;
}

.ye-cookie-root,
.ye-cookie-root * { box-sizing: border-box; }

.ye-cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 999999;
  width: min(720px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px 18px;
  padding: 22px;
  color: var(--ye-cookie-text);
  background: rgba(255,255,255,.98);
  border: 1px solid var(--ye-cookie-border);
  border-top: 4px solid var(--ye-cookie-yellow);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(11,43,99,.20);
  backdrop-filter: blur(16px);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ye-cookie-banner__mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--ye-cookie-yellow);
  background: linear-gradient(145deg, var(--ye-cookie-navy), var(--ye-cookie-navy-2));
  box-shadow: 0 10px 24px rgba(11,43,99,.20);
}
.ye-cookie-banner__mark svg { width: 30px; height: 30px; }

.ye-cookie-eyebrow {
  margin-bottom: 5px;
  color: var(--ye-cookie-yellow-dark);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .14em;
}

.ye-cookie-banner__title,
.ye-cookie-modal__title {
  margin: 0;
  color: var(--ye-cookie-navy);
  font-weight: 850;
  letter-spacing: -.025em;
}
.ye-cookie-banner__title { font-size: 22px; line-height: 1.2; }
.ye-cookie-modal__title { font-size: 26px; line-height: 1.15; }

.ye-cookie-banner__text,
.ye-cookie-modal__intro,
.ye-cookie-option p,
.ye-cookie-banner__links,
.ye-cookie-modal__links {
  color: var(--ye-cookie-muted);
  font-size: 14px;
  line-height: 1.6;
}
.ye-cookie-banner__text { margin: 8px 0 8px; }
.ye-cookie-banner__links { margin: 0; }

.ye-cookie-banner a,
.ye-cookie-modal a {
  color: var(--ye-cookie-navy);
  font-weight: 800;
  text-decoration: none;
}
.ye-cookie-banner a:hover,
.ye-cookie-modal a:hover { color: var(--ye-cookie-yellow-dark); }

.ye-cookie-banner__actions,
.ye-cookie-modal__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.ye-cookie-banner__actions { padding-top: 4px; }
.ye-cookie-modal__actions { margin-top: 18px; }

.ye-cookie-btn {
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.ye-cookie-btn:focus-visible,
.ye-cookie-modal__close:focus-visible,
.ye-cookie-floating:focus-visible,
.ye-cookie-option:has(input:focus-visible) {
  outline: 3px solid rgba(255,189,22,.45);
  outline-offset: 3px;
}

.ye-cookie-btn--primary {
  color: #0b2b63;
  background: var(--ye-cookie-yellow);
  border-color: var(--ye-cookie-yellow);
  box-shadow: 0 8px 22px rgba(255,189,22,.25);
}
.ye-cookie-btn--primary:hover {
  background: #ffc936;
  border-color: #ffc936;
  transform: translateY(-1px);
}
.ye-cookie-btn--outline {
  color: var(--ye-cookie-navy);
  background: #fff;
  border-color: #b9c9dd;
}
.ye-cookie-btn--outline:hover {
  border-color: var(--ye-cookie-navy);
  background: #f8fafc;
}
.ye-cookie-btn--ghost {
  color: var(--ye-cookie-navy);
  background: #eef4fb;
  border-color: #eef4fb;
}
.ye-cookie-btn--ghost:hover { background: #e3edf8; }

.ye-cookie-modal[hidden],
.ye-cookie-root[hidden],
.ye-cookie-banner[hidden],
.ye-cookie-floating[hidden] { display: none !important; }

.ye-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 20px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.ye-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,20,48,.58);
  backdrop-filter: blur(5px);
}
.ye-cookie-modal__panel {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--ye-cookie-border);
  border-top: 5px solid var(--ye-cookie-yellow);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(3,25,61,.35);
}
.ye-cookie-modal__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 42px;
}
.ye-cookie-modal__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--ye-cookie-navy);
  font-size: 21px;
  font-weight: 900;
}
.ye-cookie-modal__intro { margin: 14px 0 0; }
.ye-cookie-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ye-cookie-border);
  border-radius: 50%;
  color: var(--ye-cookie-navy);
  background: #f4f7fb;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.ye-cookie-modal__close:hover { background: #eaf0f7; }

.ye-cookie-options {
  display: grid;
  gap: 12px;
  margin: 22px 0 18px;
}
.ye-cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 17px;
  border: 1px solid var(--ye-cookie-border);
  border-radius: 15px;
  background: var(--ye-cookie-surface);
  cursor: pointer;
}
.ye-cookie-option:first-child { cursor: default; }
.ye-cookie-option strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ye-cookie-navy);
  font-size: 15px;
}
.ye-cookie-option p { margin: 0; font-size: 13px; }
.ye-cookie-option__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ye-cookie-option__badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #087a49;
  background: #e7f8ef;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.ye-cookie-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ye-cookie-switch {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #cbd7e5;
  box-shadow: inset 0 0 0 1px rgba(11,43,99,.06);
  transition: background .18s ease;
}
.ye-cookie-switch span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(11,43,99,.18);
  transition: transform .18s ease;
}
.ye-cookie-option input:checked + .ye-cookie-switch,
.ye-cookie-switch--locked { background: var(--ye-cookie-navy); }
.ye-cookie-option input:checked + .ye-cookie-switch span,
.ye-cookie-switch--locked span { transform: translateX(22px); }

.ye-cookie-modal__links {
  padding-top: 3px;
  margin: 0;
}

.ye-cookie-floating {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 999998;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.88);
  border-radius: 50%;
  color: var(--ye-cookie-yellow);
  background: var(--ye-cookie-navy);
  box-shadow: 0 12px 28px rgba(11,43,99,.28);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.ye-cookie-floating svg { width: 29px; height: 29px; }
.ye-cookie-floating:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 34px rgba(11,43,99,.34);
}

@media (max-width: 760px) {
  .ye-cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    padding: 17px;
    border-radius: 17px;
  }
  .ye-cookie-banner__mark { width: 44px; height: 44px; border-radius: 13px; }
  .ye-cookie-banner__mark svg { width: 25px; height: 25px; }
  .ye-cookie-banner__title { font-size: 19px; }
  .ye-cookie-banner__actions,
  .ye-cookie-modal__actions { flex-direction: column; }
  .ye-cookie-btn { width: 100%; }
  .ye-cookie-modal { padding: 10px; }
  .ye-cookie-modal__panel {
    max-height: calc(100vh - 20px);
    padding: 21px 18px 18px;
    border-radius: 18px;
  }
  .ye-cookie-modal__title { font-size: 22px; }
  .ye-cookie-option { padding: 14px; gap: 12px; }
  .ye-cookie-floating { left: 16px; bottom: 16px; }
}

@media (max-width: 480px) {
  .ye-cookie-banner { grid-template-columns: 1fr; }
  .ye-cookie-banner__mark { display: none; }
  .ye-cookie-banner__text,
  .ye-cookie-banner__links,
  .ye-cookie-modal__intro { font-size: 13px; }
  .ye-cookie-option { grid-template-columns: 1fr auto; }
}
