.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 950;
  width: calc(100% - 40px);
  max-width: 390px;
  background-color: var(--graphite);
  border: 1px solid var(--graphite-border);
  border-top: 2px solid var(--brand);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  padding: 16px 18px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.cookie-banner__icon {
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
}

.cookie-banner__text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-light-muted);
  margin-bottom: 14px;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner__btn-accept {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 12.5px;
}

.cookie-banner__btn-details {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--graphite-line);
  background-color: var(--graphite-soft);
  color: var(--ink-light);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background-color var(--transition);
}

.cookie-banner__btn-details:hover {
  border-color: var(--brand);
  color: var(--paper);
}

.cookie-prefs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.cookie-pref-card {
  display: block;
  padding: 12px 14px;
  background-color: var(--mineral);
  border: 1px solid var(--line);
}

.cookie-pref-card--toggle {
  cursor: pointer;
  transition: border-color var(--transition);
}

.cookie-pref-card--toggle:hover {
  border-color: var(--brand);
}

.cookie-pref-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.cookie-pref-card__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.cookie-pref-card__badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-deep);
  background-color: var(--brand-soft);
  border: 1px solid var(--brand);
  padding: 2px 8px;
  white-space: nowrap;
}

.cookie-pref-card__desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-muted);
  margin: 0;
}

.cookie-pref-card .checkbox__input {
  background-color: var(--paper);
  border-color: var(--logo-gray-light);
}

.cookie-pref-card .checkbox__input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

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

@media (max-width: 600px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    padding: 14px;
  }

  .cookie-banner__actions,
  .cookie-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
