/* =========================================================================
   Makalu Fund Management — Cookie Consent styles
   Matches the site's frosted-glass / dark video-background aesthetic.
   ========================================================================= */

.mcc-banner,
.mcc-modal,
.mcc-modal * {
  box-sizing: border-box;
}

/* ---------- Banner ---------- */
.mcc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11000;
  padding: 18px 16px;
  background: rgba(12, 18, 26, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: 'Century Gothic', Arial, sans-serif;
  transform: translateY(110%);
  transition: transform 0.4s ease;
}
.mcc-banner.mcc-visible {
  transform: translateY(0);
}

.mcc-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.mcc-banner-text {
  flex: 1 1 420px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}
.mcc-banner-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mcc-link {
  color: #fff;
  text-decoration: underline;
}
.mcc-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Buttons: all three equal weight (GDPR: no dark patterns) ---------- */
.mcc-btn {
  font-family: 'Century Gothic', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 4px;
  border: 1px solid #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.mcc-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}
.mcc-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---------- Preference center modal ---------- */
.mcc-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'Century Gothic', Arial, sans-serif;
}
.mcc-modal.mcc-visible {
  display: flex;
}
.mcc-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.mcc-modal-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  background: rgba(16, 22, 30, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 32px;
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.mcc-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.mcc-close:hover { opacity: 1; }

.mcc-modal-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
}
.mcc-modal-intro {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.mcc-cat {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.mcc-cat:first-child { border-top: none; }
.mcc-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mcc-cat-name {
  font-size: 16px;
  font-weight: 700;
}
.mcc-cat-desc {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}
.mcc-always-on {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

/* ---------- Toggle switch ---------- */
.mcc-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  cursor: pointer;
}
.mcc-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.mcc-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 26px;
  transition: all 0.25s ease;
}
.mcc-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 50%;
  transition: all 0.25s ease;
}
.mcc-switch input:checked + .mcc-slider {
  background: rgba(255, 255, 255, 0.55);
  border-color: #fff;
}
.mcc-switch input:checked + .mcc-slider::before {
  left: 25px;
}
.mcc-switch input:focus-visible + .mcc-slider {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.mcc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mcc-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.mcc-modal-actions .mcc-btn {
  flex: 1 1 auto;
  text-align: center;
}

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

/* ---------- Footer "Cookie Settings" link (matches .disclaimers-link) ---------- */
.cookie-settings-link {
  cursor: pointer;
}

/* ---------- Honeypot anti-spam field: hidden from humans, not focusable ---------- */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .mcc-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .mcc-banner-actions {
    flex-direction: column;
  }
  .mcc-banner-actions .mcc-btn {
    width: 100%;
  }
  .mcc-modal-actions {
    flex-direction: column;
  }
  .mcc-modal-card {
    padding: 24px 20px;
  }
}
