/* Self-hosted reproduction of the CookieYes consent banner styling used on
   the source (banner type "popup", position centre, GDPR law, revisit
   button bottom-left). The markup in cookie-banner.html is the source's
   own rendered DOM; colours come from its inline styles. This sheet is
   CookieYes' standard popup/preference-centre layout. */
/* Stacking contract. The overlay was 99999999 -- an order of magnitude ABOVE
   .cky-consent-container (9999999) -- so the dim layer painted over the popup
   it is meant to dim and caught every click aimed at it: "Accept All" could
   never be reached, the banner never dismissed, and the page stayed dimmed for
   good. The overlay must sit just under the banner:
     overlay 9999998  <  banner 9999999  <  preference centre 999999999
   (the revisit button at 999999 only ever shows once the overlay is hidden). */
.cky-overlay { background: #000; opacity: 0.4; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999998; }
.cky-hide { display: none !important; }

/* Revisit button (bottom-left) */
.cky-btn-revisit-wrapper { display: flex; align-items: center; justify-content: center; background: #0056a7; width: 45px; height: 45px; border-radius: 50%; position: fixed; z-index: 999999; cursor: pointer; }
.cky-revisit-bottom-left { bottom: 15px; left: 15px; }
.cky-revisit-bottom-right { bottom: 15px; right: 15px; }
.cky-btn-revisit-wrapper .cky-btn-revisit { display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; position: relative; margin: 0; padding: 0; }
.cky-btn-revisit-wrapper .cky-btn-revisit img { max-width: fit-content; margin: 0; height: 30px; width: 30px; }
.cky-revisit-bottom-left:hover::before { content: attr(data-tooltip); position: absolute; background: #4e4b66; color: #fff; left: calc(100% + 7px); font-size: 12px; line-height: 16px; width: max-content; border-radius: 4px; padding: 4px 8px; top: 50%; transform: translateY(-50%); }
.cky-revisit-bottom-left:hover::after { position: absolute; content: ""; border: 5px solid transparent; left: calc(100% + 2px); border-left-width: 0; border-right-color: #4e4b66; top: 50%; transform: translateY(-50%); }
.cky-revisit-hide { display: none !important; }

/* Popup banner (centre) */
.cky-consent-container { position: fixed; z-index: 9999999; }
.cky-consent-container .cky-consent-bar { background: #fff; border: 1px solid; padding: 24px; box-shadow: 0 -1px 10px 0 #acabab4d; }
.cky-popup-center { width: 440px; max-width: 90%; max-height: 90vh; left: 50%; top: 50%; transform: translate(-50%, -50%); overflow: auto; }
.cky-popup-center .cky-consent-bar { border-radius: 6px; }
.cky-consent-container .cky-consent-bar .cky-title { color: #212121; font-weight: 700; font-size: 18px; line-height: 24px; margin: 0 0 12px; }
.cky-notice-des { color: #212121; font-size: 14px; line-height: 24px; font-weight: 400; margin: 0 0 16px; }
.cky-notice-des p { margin: 0; font-size: inherit; line-height: inherit; }
.cky-notice-des a.cky-policy { color: #1863dc; text-decoration: underline; }
.cky-notice-btn-wrapper { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.cky-popup-center .cky-notice-btn-wrapper { flex-direction: column; }
.cky-popup-center .cky-notice-btn-wrapper .cky-btn { width: 100%; }
.cky-btn { flex: auto; font-size: 14px; font-family: inherit; line-height: 24px; padding: 8px; font-weight: 500; text-align: center; text-transform: none; min-height: 0; border-radius: 2px; border: 2px solid; cursor: pointer; box-shadow: none; }
.cky-btn-accept { background: #1a3336; color: #fff; border-color: #1a3336; }
.cky-btn-customize, .cky-btn-reject { background: transparent; color: #1a3336; border-color: #1a3336; }
.cky-btn:hover { opacity: 0.8; }
.cky-btn-accept:hover { opacity: 0.8; }

/* Preference centre modal */
.cky-modal { box-shadow: 0 32px 68px rgba(0,0,0,.3); margin: 0 auto; position: fixed; max-width: 845px; width: calc(100% - 16px); display: none; transform: translate(-50%, -50%); top: 50%; left: 50%; z-index: 999999999; border-radius: 6px; }
.cky-modal.cky-modal-open { display: flex; }
.cky-preference-center { max-height: 79vh; overflow-y: hidden; background: #fff; position: relative; width: 100%; border-radius: 6px; border: 1px solid; }
.cky-preference-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid #f4f4f4; }
.cky-preference-title { font-size: 18px; font-weight: 700; line-height: 24px; color: #212121; }
.cky-btn-close { margin: 0; background: none; border: none; cursor: pointer; padding: 4px; line-height: 0; }
.cky-btn-close img { width: 10px; height: 10px; margin: 0; }
.cky-preference-body-wrapper { padding: 0 24px; max-height: calc(79vh - 160px); overflow-y: auto; box-sizing: border-box; }
.cky-preference-content-wrapper { font-size: 14px; line-height: 24px; font-weight: 400; padding: 12px 0; }
.cky-preference-content-wrapper p { margin: 0; font-size: inherit; line-height: inherit; }
.cky-show-desc-btn, .cky-hide-desc-btn { font-size: 14px; font-weight: 400; color: #1863dc; background: none; border: none; padding: 0; cursor: pointer; text-decoration: underline; }
.cky-horizontal-separator { border-top: 1px solid #f4f4f4; }
.cky-accordion { border-bottom: 1px solid #f4f4f4; }
.cky-accordion:last-child { border-bottom: none; }
.cky-accordion-item { display: flex; margin-top: 10px; }
.cky-accordion-chevron { margin-right: 22px; position: relative; cursor: pointer; }
.cky-chevron-right { display: inline-block; width: 8px; height: 8px; margin-top: 12px; border-style: solid; border-width: 0 2px 2px 0; border-color: #212121; transform: rotate(-45deg); transition: transform .2s; }
.cky-accordion-active .cky-chevron-right { transform: rotate(45deg); }
.cky-accordion-header-wrapper { width: 100%; }
.cky-accordion-header { display: flex; justify-content: space-between; align-items: center; }
.cky-accordion-btn { font-size: 16px; font-weight: 700; line-height: 24px; background: none; border: none; padding: 0; cursor: pointer; color: #212121; text-align: left; }
.cky-always-active { color: #008000; font-weight: 600; line-height: 24px; font-size: 14px; }
.cky-accordion-header-des { font-size: 14px; line-height: 24px; margin: 10px 0 16px; }
.cky-accordion-header-des p { margin: 0; font-size: inherit; line-height: inherit; }
.cky-accordion-body { display: none; padding-bottom: 16px; }
.cky-accordion-active .cky-accordion-body { display: block; }
.cky-switch { display: flex; }
.cky-switch input[type=checkbox] { position: relative; width: 44px; height: 24px; margin: 0; background: #d0d5d2; -webkit-appearance: none; appearance: none; border-radius: 50px; cursor: pointer; outline: none; border: none; top: 0; }
.cky-switch input[type=checkbox]:checked { background: #1863dc; }
.cky-switch input[type=checkbox]::before { position: absolute; content: ""; height: 20px; width: 20px; left: 2px; bottom: 2px; border-radius: 50%; background: #fff; transition: transform .4s; }
.cky-switch input[type=checkbox]:checked::before { transform: translateX(20px); }
.cky-audit-table { background: #f4f4f4; border-radius: 6px; padding: 4px 16px; font-size: 14px; line-height: 24px; }
.cky-cookie-des-table { list-style: none; margin: 0; padding: 8px 0; border-bottom: 1px solid #ebebeb; }
.cky-cookie-des-table:last-child { border-bottom: none; }
.cky-cookie-des-table li { display: flex; margin: 0; }
.cky-cookie-des-table li div:first-child { width: 100px; font-weight: 600; flex-shrink: 0; }
.cky-cookie-des-table li div:last-child { word-break: break-word; }
.cky-footer-wrapper { position: relative; }
.cky-footer-shadow { display: block; width: 100%; height: 40px; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 100%); position: absolute; bottom: calc(100% - 1px); }
.cky-prefrence-btn-wrapper { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 22px 24px; border-top: 1px solid #f4f4f4; }
.cky-prefrence-btn-wrapper .cky-btn { flex: auto; max-width: 100%; }
.cky-btn-preferences { background: transparent; color: #1a3336; border-color: #1a3336; }
.cky-preference-center .cky-btn-accept { background: #1a3336; color: #fff; }
.cky-preference-center .cky-btn-reject { background: transparent; color: #1a3336; border-color: #1a3336; }
.cky-footer-wrapper a[href*="cookieyes.com"] { display: none; }

@media (max-width: 576px) {
  .cky-popup-center { width: 100%; max-width: 100%; max-height: 100vh; }
  .cky-consent-container .cky-consent-bar { padding: 16px; }
  .cky-preference-header { padding: 16px; }
  .cky-preference-body-wrapper { padding: 0 16px; }
  .cky-prefrence-btn-wrapper { padding: 16px; }
  .cky-prefrence-btn-wrapper .cky-btn { width: 100%; }
}
