/* CookieYes banner and preference center in the Coloring Panda look.
   CookieYes writes its colours as inline styles, so colour rules need !important. */

body .cky-consent-container,
body .cky-modal,
body .cky-btn-revisit-wrapper{ font-family: var(--body); }

/* Notice */
body .cky-consent-bar .cky-notice-content-wrapper{ padding: 26px 26px 14px; }
body .cky-consent-container{ width: min(440px, calc(100vw - 32px)); }
body .cky-consent-container.cky-box-bottom-left{ bottom: 24px; left: 24px; }
body .cky-consent-container .cky-consent-bar{
  padding: 0;
  border: 2px solid var(--ink) !important;
  border-radius: 24px;
  background-color: var(--paper) !important;
  box-shadow: 7px 8px 0 var(--pink);
}
body .cky-consent-container .cky-notice .cky-title{
  margin: 0 0 10px;
  color: var(--ink) !important;
  font-family: var(--display);
  font-size: 1.4375rem;
  font-weight: 800;
  line-height: 1.1;
}
body .cky-consent-container .cky-notice-des,
body .cky-consent-container .cky-notice-des p{
  color: rgba(17,17,17,.72) !important;
  font-size: 0.90625rem;
  line-height: 1.55;
}
body .cky-notice-des a.cky-policy,
body .cky-notice-des button.cky-policy{
  color: var(--ink) !important;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Buttons: Accept and Reject look the same so refusing is as easy as agreeing */
body .cky-consent-container .cky-notice-btn-wrapper{ gap: 8px; margin-top: 18px; }
body .cky-consent-container .cky-btn,
body .cky-modal .cky-btn{
  min-height: 46px;
  margin: 0;
  padding: 10px 16px;
  border: 2px solid var(--ink) !important;
  border-radius: var(--r-kontrola, 14px);
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
body .cky-btn-accept,
body .cky-btn-reject,
body .cky-btn-preferences{
  background-color: var(--ink) !important;
  color: #fff !important;
}
body .cky-btn-customize{
  background-color: transparent !important;
  color: var(--ink) !important;
}
body .cky-consent-container .cky-btn:hover,
body .cky-modal .cky-btn:hover,
body .cky-consent-container .cky-btn:focus-visible,
body .cky-modal .cky-btn:focus-visible{
  opacity: 1;
  transform: translate(-2px,-2px);
  box-shadow: 4px 4px 0 var(--pink);
}
body .cky-btn-customize:hover,
body .cky-btn-customize:focus-visible{ background-color: #fff !important; }
body .cky-consent-container .cky-btn:active,
body .cky-modal .cky-btn:active{ transform: translate(1px,1px); box-shadow: none; }

/* Focus rings in brand colour instead of CookieYes blue */
body .cky-notice-des a.cky-policy:focus-visible,
body .cky-notice-des button.cky-policy:focus-visible,
body .cky-preference-content-wrapper .cky-show-desc-btn:focus-visible,
body .cky-accordion-header .cky-accordion-btn:focus-visible,
body .cky-preference-header .cky-btn-close:focus-visible,
body .cky-switch input[type="checkbox"]:focus-visible,
body .cky-footer-wrapper a:focus-visible,
body [data-cky-tag="powered-by"] a:focus-visible,
body [data-cky-tag="detail-powered-by"] a:focus-visible,
body .cky-btn:focus-visible{ outline: 2px solid var(--ink); outline-offset: 3px; }

/* "Powered by" strip (required on the free plan) */
body .cky-consent-container [data-cky-tag="powered-by"],
body .cky-modal [data-cky-tag="detail-powered-by"]{
  background-color: transparent !important;
  color: rgba(17,17,17,.5) !important;
}

/* Preference center */
body .cky-overlay{ background: rgba(17,17,17,.56); backdrop-filter: blur(3px); opacity: 1; }
body .cky-modal .cky-preference-center{
  overflow: hidden;
  border: 2px solid var(--ink) !important;
  border-radius: 28px;
  background-color: var(--paper) !important;
  color: var(--ink) !important;
  box-shadow: 0 24px 60px rgba(17,17,17,.28);
}
/* CookieYes wraps the panel in a white box with square-ish corners; hide it so only our card shows */
body .cky-modal{
  border-radius: 28px;
  background: transparent !important;
  box-shadow: none !important;
}
body .cky-preference-header{ padding: 22px 26px; border-bottom: 1px solid rgba(17,17,17,.12); }
body .cky-preference-header .cky-preference-title{
  color: var(--ink) !important;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}
body .cky-preference-header .cky-btn-close{
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  transition: background-color .2s;
}
body .cky-preference-header .cky-btn-close:hover{ background: #f1eade; }
body .cky-preference-body-wrapper{ padding: 0 26px; }
body .cky-preference-content-wrapper,
body .cky-preference-content-wrapper p,
body .cky-accordion-header-des,
body .cky-accordion-header-des p,
body .cky-audit-table,
body .cky-empty-cookies-text{
  color: rgba(17,17,17,.72) !important;
  font-size: 0.90625rem;
  line-height: 1.55;
}
body .cky-preference-content-wrapper .cky-show-desc-btn{
  color: var(--ink) !important;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
body .cky-horizontal-separator,
body .cky-accordion{ border-color: rgba(17,17,17,.12) !important; }
body .cky-accordion-header .cky-accordion-btn{
  color: var(--ink) !important;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 800;
}
body .cky-accordion-chevron{ color: var(--ink); }
body .cky-audit-table{
  border-radius: 16px;
  background: #fff !important;
  border: 1px solid rgba(17,17,17,.1);
}
body .cky-always-active{
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink) !important;
  font-size: 0.8125rem;
  font-weight: 700;
}
body .cky-switch input[type="checkbox"]{ background: rgba(17,17,17,.2); }
body .cky-switch input[type="checkbox"]:checked{ background: var(--ink) !important; }
body .cky-footer-wrapper{ border-top: 1px solid rgba(17,17,17,.12); background: var(--paper); }
body .cky-footer-shadow{ background: linear-gradient(180deg, rgba(255,253,248,0) 0%, var(--paper) 100%); }
body .cky-prefrence-btn-wrapper{ gap: 8px; padding: 18px 26px; }
body .cky-prefrence-btn-wrapper .cky-btn{ flex: 1; }

/* No floating "change consent" button: consent is changed from the Kolačići page (button with .cky-banner-element) */
body .cky-btn-revisit-wrapper{ display: none !important; }

@media (max-width: 576px) {
  body .cky-consent-container,
  body .cky-consent-container.cky-box-bottom-left{ right: 12px; bottom: 12px; left: 12px; width: auto; }
  body .cky-consent-container .cky-consent-bar{ border-radius: 22px;
  }
  body .cky-consent-bar .cky-notice-content-wrapper{ padding: 22px 18px 12px; }
  body .cky-consent-container .cky-consent-bar{ box-shadow: 5px 6px 0 var(--pink); }
  body .cky-consent-container .cky-notice .cky-title{ font-size: 1.3125rem; }
  body .cky-consent-container .cky-notice-btn-wrapper{ display: grid; grid-template-columns: 1fr 1fr; flex-direction: unset; }
  body .cky-consent-container .cky-notice-btn-wrapper .cky-btn{ width: 100%; order: 0; margin: 0; }
  body .cky-consent-container .cky-notice-btn-wrapper .cky-btn-reject{ grid-row: 1; grid-column: 1; }
  body .cky-consent-container .cky-notice-btn-wrapper .cky-btn-accept{ grid-row: 1; grid-column: 2; }
  body .cky-consent-container .cky-notice-btn-wrapper .cky-btn-customize{ grid-row: 2; grid-column: 1 / -1; }
  /* full-screen sheet on phones: no frame */
  body .cky-modal .cky-preference-center{ border: 0 !important; border-radius: 0; box-shadow: none; }
  body .cky-modal{ border-radius: 0; }
  body .cky-preference-header,
  body .cky-preference-body-wrapper{ padding-right: 18px; padding-left: 18px; }
  body .cky-prefrence-btn-wrapper{ flex-direction: column; padding: 14px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body .cky-consent-container .cky-btn,
  body .cky-modal .cky-btn{ transition: none; }
  body .cky-consent-container .cky-btn:hover,
  body .cky-modal .cky-btn:hover{ transform: none; }
}
