/* ==========================================================================
   Cookie Consent — overlay banner card, settings modal, footer link
   Matches the site's dark navy/blue palette (styles.css variables).
   ========================================================================== */

/* -------------------------------------------------------------------------
   Shared utilities
   ------------------------------------------------------------------------- */
.cc-hidden,
[hidden] {
  display: none !important;
}

body.cc-modal-open {
  overflow: hidden;
}

/* -------------------------------------------------------------------------
   Banner — full-screen backdrop with centered compact card
   The user sees the website behind through the semi-transparent overlay.
   ------------------------------------------------------------------------- */
#cc-banner {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* The card sitting on top of the backdrop */
.cc-card {
  background: #04142e;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  width: 100%;
  max-width: 400px;
  padding: 28px 28px 20px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.70);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cc-card-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.cc-card-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  margin: 0;
}

.cc-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.cc-card-policy-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.cc-card-policy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.cc-card-policy:hover {
  color: rgba(255, 255, 255, 0.65);
}

.cc-card-policy-sep {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  margin: 0 6px;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.cc-btn {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 7px;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-align: center;
}

/* Accept all — gold primary CTA */
.cc-btn-accept-all {
  background: linear-gradient(180deg, #f5c518 0%, #c89010 100%);
  border-color: rgba(25, 18, 0, 0.22);
  color: rgba(40, 28, 0, 0.92);
}
.cc-btn-accept-all:hover {
  background: linear-gradient(180deg, #ffd040 0%, #d4a020 100%);
}

/* More choices — ghost outline */
.cc-btn-more {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.20);
  color: rgba(255, 255, 255, 0.70);
}
.cc-btn-more:hover {
  border-color: rgba(255, 255, 255, 0.50);
  color: #fff;
}

/* Modal: Confirm choices — outlined */
.cc-btn-confirm {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.80);
  flex: 1;
}
.cc-btn-confirm:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

/* Modal: Accept all — gold */
.cc-btn-accept-all-modal {
  background: linear-gradient(180deg, #f5c518 0%, #c89010 100%);
  border-color: rgba(25, 18, 0, 0.22);
  color: rgba(40, 28, 0, 0.92);
  flex: 1;
}
.cc-btn-accept-all-modal:hover {
  background: linear-gradient(180deg, #ffd040 0%, #d4a020 100%);
}

/* -------------------------------------------------------------------------
   Settings modal overlay
   ------------------------------------------------------------------------- */
#cc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#cc-policy-overlay {
  position: fixed;
  inset: 0;
  z-index: 9600;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.cc-modal {
  background: #04142e;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.70);
  display: flex;
  flex-direction: column;
}

.cc-policy-modal {
  background: #04142e;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  width: 100%;
  max-width: 760px;
  max-height: min(88vh, 900px);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.70);
  display: flex;
  flex-direction: column;
}

/* Modal header */
.cc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.cc-modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 4px;
  transition: color 0.15s;
  font-family: inherit;
}
.cc-modal-close:hover {
  color: #fff;
}

/* Modal body */
.cc-modal-body {
  padding: 8px 24px;
}

.cc-policy-body {
  padding: 12px 24px 24px;
  overflow: auto;
}

.cc-policy-body .article-body {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.cc-policy-body .article-body h2 {
  color: #fff;
  font-size: 21px;
  margin: 28px 0 10px;
}

.cc-policy-body .article-body p {
  margin-bottom: 14px;
}

.cc-policy-body .article-body ul {
  margin: 0 0 14px 20px;
  padding: 0;
}

.cc-policy-body .article-body li {
  margin-bottom: 4px;
}

.cc-policy-body .article-body a {
  color: #9fc4ff;
}

/* Category row — toggle on the LEFT, text on the right (like Clay) */
.cc-category {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cc-category:last-child {
  border-bottom: none;
}

.cc-category-info {
  flex: 1;
  padding-top: 1px;
}
.cc-category-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.cc-category-info p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.45;
  margin: 0;
}

/* Toggle switch */
.cc-toggle {
  position: relative;
  flex-shrink: 0;
  display: inline-block;
  width: 42px;
  height: 24px;
  margin-top: 1px;
  cursor: pointer;
}
.cc-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.cc-toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  transition: background 0.2s;
}
.cc-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.cc-toggle input:checked + .cc-toggle-track {
  background: #f5c518;
}
.cc-toggle input:checked + .cc-toggle-track::after {
  transform: translateX(18px);
  background: rgba(40, 28, 0, 0.88);
}
.cc-toggle input:focus-visible + .cc-toggle-track {
  outline: 2px solid #f5c518;
  outline-offset: 2px;
}

/* Disabled toggle (Essential — always on) */
.cc-toggle-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* Modal footer */
.cc-modal-footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Make modal footer buttons inline (not full-width) */
.cc-modal-footer .cc-btn {
  width: auto;
}

/* -------------------------------------------------------------------------
   "Cookie settings" footer link
   Rendered alongside other .footer-links anchors; inherits their base style.
   ------------------------------------------------------------------------- */
.footer-links a.cookie-settings-link {
  /* Inherits all styling from .footer-links a — no extra decoration needed */
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .cc-card {
    padding: 22px 18px 16px;
  }

  .cc-policy-body {
    padding: 12px 18px 18px;
  }

  .cc-modal-footer {
    flex-direction: column;
  }

  .cc-modal-footer .cc-btn {
    width: 100%;
  }
}
