.cookie-consent-shell {
  position: fixed;
  inset: auto 18px 18px 18px;
  z-index: 9997;
  display: none;
}

.cookie-consent-shell.is-visible {
  display: block;
}

.cookie-consent-card,
.cookie-preferences-card {
  background: #fff;
  border: 1px solid rgba(7, 31, 58, 0.12);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(7, 31, 58, 0.18);
}

.cookie-consent-card {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 22px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.cookie-consent-copy strong,
.cookie-preferences-head strong {
  display: block;
  color: #071f3a;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.cookie-consent-copy p,
.cookie-preferences-head p,
.cookie-preference-item small {
  margin: 0;
  color: #5b6d87;
  line-height: 1.6;
}

.cookie-consent-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cookie-consent-links a {
  color: #0b2f57;
  font-weight: 600;
}

.cookie-consent-actions,
.cookie-preferences-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(7, 31, 58, 0.14);
  background: #fff;
  color: #071f3a;
  padding: 0 16px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cookie-btn:hover,
.cookie-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(7, 31, 58, 0.12);
}

.cookie-btn-primary {
  background: linear-gradient(135deg, #f5c542, #f59e0b);
  border-color: rgba(245, 158, 11, 0.36);
  color: #071f3a;
}

.cookie-btn-secondary {
  background: #f7f9fc;
}

.cookie-preferences-panel {
  position: fixed;
  inset: 0;
  background: rgba(7, 31, 58, 0.42);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.cookie-preferences-panel.is-visible {
  display: flex;
}

.cookie-preferences-card {
  width: min(640px, 100%);
  padding: 24px;
}

.cookie-preferences-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
}

.cookie-preferences-close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(7, 31, 58, 0.12);
  background: #f7f9fc;
  color: #071f3a;
}

.cookie-preferences-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.cookie-preference-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid rgba(7, 31, 58, 0.08);
}

.cookie-preference-item strong {
  color: #071f3a;
  display: block;
  margin-bottom: 4px;
}

.cookie-preference-item input[type="checkbox"] {
  width: 22px;
  height: 22px;
}

.site-consent-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 0;
  color: #4f6482;
  line-height: 1.6;
}

.site-consent-check input {
  margin-top: 4px;
}

.site-consent-check a {
  color: #0b2f57;
  font-weight: 600;
}

@media (max-width: 767px) {
  .cookie-consent-card {
    padding: 18px;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-actions,
  .cookie-preferences-actions {
    flex-direction: column;
  }

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

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