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

.cookie-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9998;
  padding: 18px;
  color: #ffffff;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  pointer-events: none;
}

.cookie-consent-card {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 22px;
  background: rgba(21, 16, 14, 0.98);
  border: 1px solid rgba(212, 175, 55, 0.58);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  pointer-events: auto;
  backdrop-filter: blur(12px);
}

.cookie-consent-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.cookie-consent-copy h2 {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.3;
}

.cookie-consent-copy p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.65;
}

.cookie-consent-copy a {
  color: #e5c253;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-actions,
.cookie-consent-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.cookie-consent-actions {
  justify-content: flex-end;
}

.cookie-consent-button {
  min-height: 42px;
  padding: 9px 15px;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease,
    transform 160ms ease;
}

.cookie-consent-button:hover,
.cookie-consent-button:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.62);
  outline: none;
  transform: translateY(-1px);
}

.cookie-consent-button-primary {
  color: #15100e;
  background: #d4af37;
  border-color: #d4af37;
}

.cookie-consent-button-primary:hover,
.cookie-consent-button-primary:focus-visible {
  color: #15100e;
  background: #e5c253;
  border-color: #e5c253;
}

.cookie-consent-settings {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.cookie-consent-settings h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1rem;
}

.cookie-consent-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.cookie-consent-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  cursor: pointer;
}

.cookie-consent-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #d4af37;
}

.cookie-consent-option strong,
.cookie-consent-option span {
  display: block;
}

.cookie-consent-option strong {
  margin-bottom: 3px;
  color: #ffffff;
  font-size: 0.88rem;
}

.cookie-consent-option span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  line-height: 1.45;
}

.cookie-preferences-button {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-preferences-button:hover,
.cookie-preferences-button:focus-visible {
  color: #d4af37;
  outline: none;
}

.gallery-cta-box > .cookie-preferences-button {
  display: block;
  margin: 18px auto 0;
  color: #d4af37;
  font-size: 0.88rem;
}

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

  .cookie-consent-card {
    max-height: calc(100vh - 20px);
    padding: 17px;
    overflow-y: auto;
  }

  .cookie-consent-main {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .cookie-consent-actions {
    justify-content: flex-start;
  }

  .cookie-consent-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cookie-consent-actions,
  .cookie-consent-settings-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

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