.cookie-consent[hidden],
.cookie-options[hidden],
.cookie-save[hidden] {
  display: none !important;
}

.cookie-consent {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1500;
  width: min(520px, calc(100% - 48px));
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 30px;
  background: #081d3a;
  box-shadow: 0 28px 80px rgba(2, 14, 30, 0.32);
  color: #ffffff;
  font-family: Arial, sans-serif;
  letter-spacing: 0;
}

.cookie-close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.cookie-close:hover {
  border-color: #b9e827;
  color: #b9e827;
}

.cookie-kicker {
  margin: 0 55px 13px 0;
  color: #b9e827;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cookie-consent h2 {
  margin: 0 48px 18px 0;
  color: #ffffff;
  font-size: 1.72rem;
  line-height: 1.15;
}

.cookie-consent > p:not(.cookie-kicker):not(.cookie-links) {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1.65;
}

.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cookie-button {
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 4px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
}

.cookie-reject {
  background: #ffffff;
  color: #081d3a;
}

.cookie-accept {
  border-color: #b9e827;
  background: #b9e827;
  color: #081d3a;
}

.cookie-reject:hover,
.cookie-accept:hover {
  transform: translateY(-1px);
}

.cookie-settings-toggle {
  width: 100%;
  border: 0;
  margin-top: 13px;
  padding: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookie-options {
  display: grid;
  gap: 0;
  border-block: 1px solid rgba(255, 255, 255, 0.17);
  margin: 22px 0;
}

.cookie-option {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  cursor: pointer;
}

.cookie-option:last-child {
  border-bottom: 0;
}

.cookie-option strong,
.cookie-option small {
  display: block;
}

.cookie-option strong {
  font-size: 1rem;
}

.cookie-option small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.45;
}

.cookie-option input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  accent-color: #b9e827;
}

.cookie-option-locked {
  cursor: default;
}

.cookie-save {
  width: 100%;
  border-color: #b9e827;
  background: #b9e827;
  color: #081d3a;
}

.cookie-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 17px 0 0;
}

.cookie-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.87rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-announcement {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 580px) {
  .cookie-consent {
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    max-height: calc(100svh - 24px);
    padding: 25px 20px 22px;
  }

  .cookie-consent h2 {
    font-size: 1.48rem;
  }

  .cookie-actions {
    grid-template-columns: 1fr;
  }

  .cookie-button {
    font-size: 0.92rem;
  }
}
