.cookie-consent {
  box-sizing: border-box;
  position: fixed;
  z-index: 10000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: min(920px, calc(100% - 40px));
  margin-inline: auto;
  padding: 18px 20px;
  color: #f8f4eb;
  background: #082c24;
  border: 1px solid rgba(248, 244, 235, 0.22);
  border-top: 4px solid #ff7358;
  border-radius: 14px;
  box-shadow: 0 22px 56px rgba(8, 44, 36, 0.28);
  font-family: Archivo, Arial, sans-serif;
}

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

.cookie-consent-copy strong {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
  line-height: 1.25;
}

.cookie-consent-copy p {
  max-width: 680px;
  margin: 0;
  color: rgba(248, 244, 235, 0.86);
  font-size: 14px;
  line-height: 1.48;
}

.cookie-consent-copy a {
  display: inline-block;
  margin-top: 7px;
  color: #f8f4eb;
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cookie-button,
.cookie-settings-link {
  font: inherit;
}

.cookie-button {
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.cookie-button-primary {
  color: #082c24;
  background: #ff7358;
}

.cookie-button-secondary {
  color: #f8f4eb;
  background: transparent;
  border-color: rgba(248, 244, 235, 0.42);
}

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

.cookie-settings-link {
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 700px) {
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 1fr;
    gap: 15px;
    width: calc(100% - 24px);
    padding: 17px;
  }

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

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

@media (prefers-reduced-motion: no-preference) {
  .cookie-consent:not([hidden]) {
    animation: cookie-consent-enter 220ms ease-out both;
  }
}

@keyframes cookie-consent-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
