/* klikkie cookie consent branding overrides */

/* Darken backdrop behind consent modal - only when visible */
#cc-main .cm-wrapper {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  align-items: center !important;
  justify-content: center !important;
}

/* When modal is visible, use flex to center it */
#cc-main .cm-wrapper:has(.cm[aria-hidden="false"]) {
  display: flex !important;
}

/* When modal is hidden, hide the overlay */
#cc-main .cm-wrapper:has(.cm[aria-hidden="true"]) {
  display: none !important;
}

/* Modal container */
#cc-main .cm {
  font-family: 'Lato', sans-serif;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  max-width: 640px;
}

/* Title */
#cc-main .cm__title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  color: #333333;
  font-size: 20px;
}

/* Description text */
#cc-main .cm__desc {
  font-family: 'Lato', sans-serif;
  color: #555555;
  font-size: 14px;
  line-height: 1.5;
}

/* Privacy policy link */
#cc-main .cm__desc a {
  color: #18B2BB;
}

/* Accept All button - primary turquoise */
#cc-main .cm__btn[data-role="all"] {
  background: #18B2BB;
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
}

#cc-main .cm__btn[data-role="all"]:hover {
  background: #15a0a8;
}

/* Necessary Only - text link style, no button look */
#cc-main .cm__btn[data-role="necessary"] {
  background: transparent;
  color: #555555;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  font-size: 13px;
  border: none;
  border-radius: 0;
  padding: 10px 16px;
  text-decoration: underline;
}

#cc-main .cm__btn[data-role="necessary"]:hover {
  background: transparent;
  color: #333333;
}

/* Customize / Show Preferences button - mint */
#cc-main .cm__btn[data-role="show"] {
  background: #C3F3E3;
  color: #333333;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
}

#cc-main .cm__btn[data-role="show"]:hover {
  background: #a8e8d0;
}

/* Preferences modal */
#cc-main .pm {
  font-family: 'Lato', sans-serif;
  border-radius: 12px;
}

#cc-main .pm__title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  color: #333333;
}

#cc-main .pm__section-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  color: #333333;
}

#cc-main .pm__section-desc {
  color: #555555;
  font-size: 13px;
}

/* Toggle switch - turquoise when on */
#cc-main .pm__badge {
  background: #C3F3E3;
  color: #333333;
}

#cc-main .section__toggle .toggle__icon {
  background: #ddd;
  border-radius: 50px;
}

#cc-main .toggle__icon-on {
  background: #18B2BB !important;
  border-radius: 50px;
}

/* Round the checkmark/toggle knob */
#cc-main .toggle__icon .toggle__icon-circle {
  border-radius: 50%;
}

#cc-main .section--toggle .section__toggle input:checked + .toggle__icon {
  background: #18B2BB;
  border-radius: 50px;
}

/* Save preferences button */
#cc-main .pm__btn[data-role="save"] {
  background: #C3F3E3;
  color: #333333;
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  border: none;
  border-radius: 50px;
}

/* Accept All in preferences */
#cc-main .pm__btn[data-role="all"] {
  background: #18B2BB;
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  border: none;
  border-radius: 50px;
}

/* Consent modal button order: Necessary (left) → Customize (middle) → Accept All (right) */
#cc-main .cm__btn-group { display: contents; }
#cc-main .cm__btns { justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
#cc-main .cm__btn[data-role="necessary"] { order: 1; }
#cc-main .cm__btn[data-role="show"]      { order: 2; }
#cc-main .cm__btn[data-role="all"]       { order: 3; margin-left: auto; }

/* Mobile: stack buttons full-width for clean alignment */
@media (max-width: 640px) {
  #cc-main .cm__btns { flex-direction: column; align-items: stretch; gap: 10px; }
  #cc-main .cm__btn[data-role="all"],
  #cc-main .cm__btn[data-role="show"],
  #cc-main .cm__btn[data-role="necessary"] {
    width: 100%;
    margin-left: 0;
    padding: 12px 24px;
  }
  #cc-main .cm__btn[data-role="all"]      { order: 1; }
  #cc-main .cm__btn[data-role="show"]     { order: 2; }
  #cc-main .cm__btn[data-role="necessary"]{ order: 3; }
}

/* Decline in preferences - text link style */
#cc-main .pm__btn[data-role="necessary"] {
  background: transparent;
  color: #555555;
  font-family: 'Lato', sans-serif;
  text-transform: none;
  letter-spacing: normal;
  font-size: 13px;
  border: none;
  border-radius: 0;
  text-decoration: underline;
}

#cc-main .pm__btn[data-role="necessary"]:hover {
  background: transparent;
  color: #333333;
}
