/* ==========================================================================
   Cookie Consent Manager — Styles
   Brand colours are injected as CSS variables (see consent.js) so this can
   be reskinned per-site without touching structure. Designer: adjust the
   variables below and typography to match Parklink / Explore Lodges brand
   guidelines. Uses system font stack by default — swap in brand webfont.
   ========================================================================== */ 

:root {
  --ccm-primary: #0B5FFF;
  --ccm-primary-hover: #0A4FD1;
  --ccm-text: #12141A;
  --ccm-bg: #FFFFFF;
  --ccm-border: #E3E6EB;
  --ccm-muted: #5B6270;
  --ccm-radius: 12px;
  --ccm-shadow: 0 8px 30px rgba(16, 20, 30, 0.14);
  --ccm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ccm-hidden { display: none !important; }

/* ---------- Overlay banner ---------- */
#ccm-banner {
  position: fixed;
  z-index: 999999;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ccm-bg);
  color: var(--ccm-text);
  font-family: var(--ccm-font);
  border-top: 1px solid var(--ccm-border);
  box-shadow: var(--ccm-shadow);
  padding: 20px 24px;
  animation: ccm-slide-up 0.35s ease-out;
}

@keyframes ccm-slide-up {
  from { transform: translateY(100%); opacity: 0.4; }
  to { transform: translateY(0); opacity: 1; }
}

.ccm-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.ccm-banner-copy {
  flex: 1 1 420px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ccm-text);
}

.ccm-banner-copy strong { display: block; font-size: 16px; margin-bottom: 4px; }
.ccm-banner-copy a { color: var(--ccm-primary); text-decoration: underline; }

.ccm-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.ccm-btn {
  font-family: var(--ccm-font);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  padding: 11px 18px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.ccm-btn:focus-visible {
  outline: 2px solid var(--ccm-primary);
  outline-offset: 2px;
}

.ccm-btn-primary {
  background: var(--ccm-primary);
  color: #fff;
}


.ccm-btn-secondary {
  background: transparent;
  color: var(--ccm-text);
  border-color: var(--ccm-border);
}
.ccm-btn-secondary:hover, .ccm-btn-primary:hover { background: #38385E;
color: #fff;
}
.ccm-btn ccm-btn-text:hover{
  background-color: unset;
  color: unset;
  
}
.ccm-btn-text {
  background: transparent;
  color: var(--ccm-primary);
  border: none;
  text-decoration: underline;
  padding: 11px 6px;
}

/* ---------- Reopen link (footer shortcode) ---------- */
.ccm-reopen-link {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

/* ---------- Preferences modal ---------- */
#ccm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(12, 14, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#ccm-modal {
  font-family: var(--ccm-font);
  background: var(--ccm-bg);
  color: var(--ccm-text);
  width: 100%;
  max-width: 620px;
  max-height: 86vh;
  overflow-y: auto;
  border-radius: var(--ccm-radius);
  box-shadow: var(--ccm-shadow);
  padding: 28px;
}

.ccm-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ccm-modal-header h2 { font-size: 20px; margin: 0; }

.ccm-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ccm-muted);
  padding: 4px;
}

.ccm-modal-intro {
  font-size: 14px;
  color: var(--ccm-muted);
  line-height: 1.5;
  margin: 8px 0 20px;
}
.ccm-modal-intro a { color: var(--ccm-primary); }

.ccm-category {
  border: 1px solid var(--ccm-border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.ccm-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ccm-category-title {
  font-size: 15px;
  font-weight: 600;
}

.ccm-category-desc {
  font-size: 13px;
  color: var(--ccm-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.ccm-badge-required {
  font-size: 11px;
  font-weight: 600;
  color: var(--ccm-muted);
  border: 1px solid var(--ccm-border);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* ---------- Toggle switch ---------- */
.ccm-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.ccm-switch input { opacity: 0; width: 0; height: 0; }
.ccm-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #D3D7DE;
  transition: 0.2s;
  border-radius: 999px;
}
.ccm-slider::before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.ccm-switch input:checked + .ccm-slider { background-color: var(--ccm-primary); }
.ccm-switch input:checked + .ccm-slider::before { transform: translateX(18px); }
.ccm-switch input:disabled + .ccm-slider { opacity: 0.6; cursor: not-allowed; }

.ccm-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  #ccm-banner { padding: 16px; }
  .ccm-banner-actions { width: 100%; }
  .ccm-btn { flex: 1 1 auto; text-align: center; }
  #ccm-modal { padding: 20px; }
}
