.cookie-consent {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 5000;
  display: none;
  justify-content: center;
  pointer-events: none;
}

.cookie-consent.show {
  display: flex;
}

.cookie-card {
  width: min(720px, 100%);
  border: 1px solid rgba(108, 194, 166, .26);
  border-radius: 22px;
  background: rgba(19, 22, 24, .96);
  color: #f4f2ec;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
  padding: 18px;
  pointer-events: auto;
  backdrop-filter: blur(18px);
}

.cookie-card h2 {
  margin: 0 0 8px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 24px;
  line-height: 1.1;
  color: #f4f2ec;
}

.cookie-card p {
  margin: 0;
  color: #c8d1ce;
  font-size: 13.5px;
  line-height: 1.55;
}

.cookie-card a,
.cookie-link {
  color: #6cc2a6;
  text-decoration: none;
}

.cookie-card a:hover,
.cookie-link:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

.cookie-actions button,
.cookie-link {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(108, 194, 166, .32);
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-accept {
  background: #6cc2a6;
  color: #102019;
  border-color: #6cc2a6;
}

.cookie-reject,
.cookie-manage {
  background: rgba(255, 255, 255, .045);
  color: #f4f2ec;
}

.cookie-preferences {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(244, 242, 236, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
}

.cookie-consent.manage .cookie-preferences {
  display: block;
}

.cookie-pref-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cookie-pref-row input {
  margin-top: 4px;
  accent-color: #6cc2a6;
}

.cookie-pref-row strong {
  display: block;
  color: #f4f2ec;
  margin-bottom: 4px;
}

@media (max-width: 600px) {
  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .cookie-card {
    border-radius: 18px;
    padding: 15px;
  }

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

  .cookie-actions button,
  .cookie-link {
    width: 100%;
  }
}
