.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2147483000;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.85rem 3rem 0.85rem 1rem;
  color: #334155;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.16);
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent__text {
  min-width: 0;
}

.cookie-consent__text strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.3;
}

.cookie-consent__text p {
  margin: 0;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.45;
}

.cookie-consent__details {
  margin-left: 0.25rem;
}

.cookie-consent__text a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

.cookie-consent__text a:hover,
.cookie-consent__text a:focus-visible {
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
}

.cookie-consent__button,
.cookie-consent__close {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.cookie-consent__button {
  min-height: 2.25rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.cookie-consent__button--primary {
  color: #ffffff;
  background: #1d4ed8;
}

.cookie-consent__button--primary:hover,
.cookie-consent__button--primary:focus-visible {
  background: #1e40af;
}

.cookie-consent__button--secondary {
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.cookie-consent__button--secondary:hover,
.cookie-consent__button--secondary:focus-visible {
  color: #0f172a;
  background: #f8fafc;
}

.cookie-consent__close {
  position: absolute;
  top: 0.45rem;
  right: 0.6rem;
  width: 1.85rem;
  height: 1.85rem;
  color: #64748b;
  background: transparent;
  border-radius: 999px;
  font-size: 1.25rem;
  line-height: 1;
}

.cookie-consent__close:hover,
.cookie-consent__close:focus-visible {
  color: #0f172a;
  background: #f1f5f9;
}

@media (max-width: 720px) {
  .cookie-consent {
    left: 0.5rem;
    right: 0.5rem;
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    padding: 0.75rem 0.85rem 0.85rem;
    border-radius: 0.65rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  }

  .cookie-consent__content {
    align-items: stretch;
    flex-direction: column;
    gap: 0.65rem;
  }

  .cookie-consent__text {
    padding-right: 2.35rem;
  }

  .cookie-consent__text strong {
    margin-bottom: 0.15rem;
    font-size: 0.84rem;
  }

  .cookie-consent__text p {
    font-size: 0.75rem;
    line-height: 1.32;
  }

  .cookie-consent__description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .cookie-consent__details {
    display: inline-block;
    margin: 0.1rem 0 0;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.45rem;
  }

  .cookie-consent__button {
    width: 100%;
    min-height: 2.4rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.74rem;
    white-space: normal;
  }

  .cookie-consent__close {
    top: 0.35rem;
    right: 0.35rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.35rem;
  }
}
