/* 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;
}

/* 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;
}
