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

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 22, 31, 0.58);
  font-family: Roboto, Arial, sans-serif;
}

.cookie-consent__panel {
  display: flex;
  width: min(100%, 980px);
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.3);
  color: #163040;
}

.cookie-consent__copy {
  max-width: 650px;
}

.cookie-consent__copy h2 {
  margin: 0 0 8px;
  color: #163f57;
  font-size: 1.25rem;
  line-height: 1.25;
}

.cookie-consent__copy p {
  margin: 0;
  color: #435763;
  font-size: 0.95rem;
  line-height: 1.55;
}

.cookie-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.cookie-consent__button,
.cookie-settings-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.cookie-consent__button {
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 9px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cookie-consent__button:hover {
  transform: translateY(-1px);
}

.cookie-consent__button:focus-visible,
.cookie-settings-button:focus-visible {
  outline: 3px solid #f2b705;
  outline-offset: 3px;
}

.cookie-consent__button--primary {
  background: #1e526f;
  color: #fff;
  box-shadow: 0 8px 18px rgba(30, 82, 111, 0.24);
}

.cookie-consent__button--primary:hover {
  background: #163f57;
}

.cookie-consent__button--secondary {
  background: #eaf0f3;
  color: #163f57;
}

.cookie-consent__button--secondary:hover {
  background: #dce7ec;
}

.cookie-settings-button {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 99990;
  padding: 8px 12px;
  border-radius: 8px;
  background: #163f57;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 12px;
}

@media (max-width: 760px) {
  .cookie-consent {
    padding: 12px;
  }

  .cookie-consent__panel {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px;
  }

  .cookie-consent__actions {
    flex-direction: column-reverse;
  }

  .cookie-consent__button {
    width: 100%;
  }
}

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