/**
 * Expirity — Cookie Consent Theme Override v2
 * Slim single-line bar on desktop, readable buttons, Expirity navy/teal palette.
 * Load AFTER: https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@3.1.0/dist/cookieconsent.css
 */

/* ── Colour tokens ─────────────────────────────────────────────────────── */
:root {
  --cc-bg:                     #112240;
  --cc-primary-color:          #F4F7FA;
  --cc-secondary-color:        #B8C4D0;

  --cc-btn-primary-bg:         #2EC4A5;
  --cc-btn-primary-color:      #0B1628;
  --cc-btn-primary-hover-bg:   #22A088;

  --cc-btn-secondary-bg:       transparent;
  --cc-btn-secondary-color:    #B8C4D0;
  --cc-btn-secondary-hover-bg: rgba(255,255,255,0.07);
  --cc-btn-secondary-border-color: rgba(255,255,255,0.15);

  --cc-toggle-on-bg:           #2EC4A5;
  --cc-toggle-off-bg:          rgba(255,255,255,0.12);
  --cc-toggle-readonly-bg:     rgba(46,196,165,0.25);

  --cc-separator-border-color: rgba(255,255,255,0.07);
  --cc-cookie-category-border: rgba(255,255,255,0.07);

  --cc-footer-bg:              #0B1628;
  --cc-footer-color:           #8896A8;
  --cc-footer-border-color:    rgba(255,255,255,0.07);

  --cc-link-color:             #2EC4A5;
  --cc-overlay-bg:             rgba(0,0,0,0.6);

  --cc-modal-border-radius:    12px;
  --cc-btn-border-radius:      7px;
}

/* ═══════════════════════════════════════════════════════════════════
   CONSENT BAR  — slim single-row strip at the bottom
═══════════════════════════════════════════════════════════════════ */

/* Outer wrapper — keep it flush to the bottom edge */
#cc-main .cm--bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -6px 24px rgba(0,0,0,0.4);
  border-radius: 0 !important;
}

/* Inner body: one horizontal flex row on desktop */
#cc-main .cm--bar .cm__body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.5rem;
  flex-wrap: nowrap;
}

/* Text block — takes all remaining space */
#cc-main .cm--bar .cm__texts {
  flex: 1 1 auto;
  min-width: 0;
}

/* Title — inline, small, same line as description */
#cc-main .cm--bar .cm__title {
  display: inline;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #F4F7FA;
  margin-right: 0.35rem;
}

/* Description — inline continuation of title */
#cc-main .cm--bar .cm__desc {
  display: inline;
  font-size: 13px;
  color: #B8C4D0;
  line-height: 1.4;
}

/* Button group — no wrap, sit on the right */
#cc-main .cm--bar .cm__btns {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* All bar buttons — compact */
#cc-main .cm--bar .cm__btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  white-space: nowrap;
  border-radius: 7px;
  line-height: 1.4;
}

/* "Manage preferences" — make sure it never clips */
#cc-main .cm--bar .cm__btn--secondary:last-child {
  white-space: nowrap;
  min-width: max-content;
}

/* Footer (Privacy · Terms) — hide on bar to save vertical space */
#cc-main .cm--bar .cm__footer {
  display: none;
}

/* Cookie Policy inline link */
#cc-main .cc-link {
  color: #2EC4A5;
  text-decoration: underline;
  text-decoration-color: rgba(46,196,165,0.35);
  text-underline-offset: 2px;
}
#cc-main .cc-link:hover { color: #22A088; }

/* ── Mobile: stack vertically below 640 px ─────────────────────── */
@media (max-width: 640px) {
  #cc-main .cm--bar .cm__body {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    gap: 0.75rem;
  }
  #cc-main .cm--bar .cm__btns {
    flex-wrap: wrap;
    width: 100%;
  }
  #cc-main .cm--bar .cm__btn {
    flex: 1 1 auto;
    text-align: center;
  }
  #cc-main .cm--bar .cm__title {
    display: block;
    margin-bottom: 2px;
  }
  #cc-main .cm--bar .cm__desc {
    display: block;
  }
  /* Restore footer links on mobile */
  #cc-main .cm--bar .cm__footer {
    display: block;
    font-size: 11px;
    color: #8896A8;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 0.5rem;
    width: 100%;
  }
  #cc-main .cm--bar .cm__footer a {
    color: #8896A8;
    font-size: 11px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   PREFERENCES MODAL
═══════════════════════════════════════════════════════════════════ */
#cc-main .pm {
  font-family: 'DM Sans', sans-serif;
  border: 1px solid rgba(255,255,255,0.07);
}

#cc-main .pm__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 1.25rem;
  color: #F4F7FA;
}

#cc-main .pm__section-title {
  font-size: 13px;
  font-weight: 600;
  color: #000;
}

#cc-main .pm__section-desc {
  font-size: 13px;
  color: #B8C4D0;
  line-height: 1.65;
}

/* "Always on" badge */
#cc-main .pm__badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(46,196,165,0.12);
  color: #2EC4A5;
  border: 1px solid rgba(46,196,165,0.25);
  border-radius: 99px;
  padding: 2px 9px;
}

/* Preference modal buttons */
#cc-main .pm__btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 7px;
}

/* cc-link inside preferences modal */
#cc-main .pm .cc-link {
  color: #2EC4A5;
  text-decoration: underline;
  text-decoration-color: rgba(46,196,165,0.35);
}
