/* ==========================================================================
   Cookie consent — atvila.lt branding
   Library: vanilla-cookieconsent 3.1.0 (assets/vendor/cookieconsent/, loaded before this
   file). Config: assets/js/cookieconsent-init.js. Themed through the library's own --cc-*
   variables where it has one; the rest overrides stock rules of the same specificity, so it
   relies on load order. Sizes are px: the theme's rem follows the viewport width (html 0.79vw).
   Brand (app.css): orange #ffa200 / hover #e39000, text #434343, greys #9c9c9c #e5e5e5,
   headings Geogrotesque, text Roboto, .btn = filled orange, uppercase, 4px radius;
   .btn--inv = orange outline.
   ========================================================================== */
#cc-main {
  --cc-font-family: Roboto, sans-serif;
  --cc-bg: #fff;
  --cc-primary-color: #434343;
  --cc-secondary-color: #434343;
  --cc-link-color: #ffa200;
  --cc-modal-border-radius: 5px;
  --cc-btn-border-radius: 4px;
  --cc-separator-border-color: #e5e5e5;
  --cc-overlay-bg: rgba(54, 63, 77, .6);

  --cc-btn-primary-bg: #ffa200;
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-border-color: #ffa200;
  --cc-btn-primary-hover-bg: #e39000;
  --cc-btn-primary-hover-color: #fff;
  --cc-btn-primary-hover-border-color: #e39000;
  --cc-btn-secondary-bg: #fff;
  --cc-btn-secondary-color: #ffa200;
  --cc-btn-secondary-border-color: #ffa200;
  --cc-btn-secondary-hover-bg: #ffa200;
  --cc-btn-secondary-hover-color: #fff;
  --cc-btn-secondary-hover-border-color: #ffa200;

  --cc-cookie-category-block-bg: #f8f8f8;
  --cc-cookie-category-block-border: #e5e5e5;
  --cc-cookie-category-block-hover-bg: #f1f1f1;
  --cc-cookie-category-block-hover-border: #e5e5e5;
  --cc-cookie-category-expanded-block-bg: #fff;
  --cc-cookie-category-expanded-block-hover-bg: #fff;

  --cc-toggle-on-bg: #ffa200;
  --cc-toggle-off-bg: #9c9c9c;
  --cc-toggle-on-knob-bg: #fff;
  --cc-toggle-off-knob-bg: #fff;
  --cc-toggle-readonly-bg: #e5e5e5;
  --cc-toggle-readonly-knob-bg: #fff;
  --cc-toggle-readonly-knob-icon-color: #9c9c9c;

  --cc-footer-bg: #f8f8f8;
  --cc-footer-color: #434343;
  --cc-footer-border-color: #e5e5e5;
}
#cc-main a:focus-visible,
#cc-main button:focus-visible,
#cc-main .section__toggle:focus-visible ~ .toggle__icon { outline: 2px solid #ffa200; outline-offset: 2px; }

/* buttons: the site's .btn (Geogrotesque, uppercase, 1px border) */
#cc-main .cm__btn,
#cc-main .pm__btn {
  border-width: 1px;
  font-family: Geogrotesque, Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: background-color .3s, color .3s, border-color .3s;
}

/* the settings dialog inverts primary/secondary: "accept all" / "necessary" stay outlined, "save" is filled */
#cc-main [data-role="all"].pm__btn,
#cc-main [data-role="necessary"].pm__btn {
  background: var(--cc-btn-secondary-bg);
  border-color: var(--cc-btn-secondary-border-color);
  color: var(--cc-btn-secondary-color);
}
#cc-main [data-role="all"].pm__btn:hover,
#cc-main [data-role="necessary"].pm__btn:hover {
  background: var(--cc-btn-secondary-hover-bg);
  border-color: var(--cc-btn-secondary-hover-border-color);
  color: var(--cc-btn-secondary-hover-color);
}
#cc-main [data-role="save"].pm__btn {
  background: var(--cc-btn-primary-bg);
  border-color: var(--cc-btn-primary-border-color);
  color: var(--cc-btn-primary-color);
}
#cc-main [data-role="save"].pm__btn:hover {
  background: var(--cc-btn-primary-hover-bg);
  border-color: var(--cc-btn-primary-hover-border-color);
  color: var(--cc-btn-primary-hover-color);
}

/* banner */
#cc-main .cm { box-shadow: 0 0 48px rgba(0, 0, 0, .12); }
#cc-main .cm__title { font-family: Geogrotesque, Roboto, sans-serif; font-size: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: #363f4d; }
#cc-main .cm__desc { font-size: 14px; line-height: 1.5; color: #434343; }
#cc-main .cm__footer a { text-decoration: underline; }

/* settings dialog */
#cc-main .pm { box-shadow: 0 0 48px rgba(0, 0, 0, .12); }
#cc-main .pm__title { font-family: Geogrotesque, Roboto, sans-serif; font-size: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: #363f4d; }
#cc-main .pm__section-title { font-family: Geogrotesque, Roboto, sans-serif; font-weight: 500; color: #363f4d; }
#cc-main .pm__section-desc { color: #434343; line-height: 1.5; }
#cc-main .pm__badge { background: #ffa200; color: #fff; font-weight: 500; }
#cc-main .pm__table-head > tr { border-bottom: 1px solid #e5e5e5; }

/* ==========================================================================
   Cookie settings revisit button — CookieYes-style round floating button, bottom-left
   at every width. Created by addConsentRevisitButton() in cookieconsent-init.js.
   Hidden while the banner or the settings dialog is open: the library sets
   show--consent / show--preferences on <html>.
   ========================================================================== */
/* html prefix: the theme reset html [type=button] { background-color: transparent } is (0,1,1) */
html .cc-revisit {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 7; /* above the page, below the site modals and mobile filter (8) and #cc-main */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #ffa200;
  color: #fff;
  box-shadow: 0 0 60px rgba(0, 0, 0, .18);
  cursor: pointer;
  transition: background-color .2s, transform .2s, opacity .2s, visibility .2s;
}
.cc-revisit * { cursor: inherit; }
html .cc-revisit:hover { background-color: #e39000; transform: scale(1.06); }
.cc-revisit:focus-visible { outline: 2px solid #363f4d; outline-offset: 3px; }
.cc-revisit__icon { display: block; }
.cc-revisit__cookie { fill: currentColor; }

/* tooltip to the right of the button, as CookieYes shows it */
.cc-revisit__tip {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  padding: 6px 10px;
  background-color: #363f4d;
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-4px, -50%);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.cc-revisit__tip:before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  margin-top: -5px;
  border: 5px solid transparent;
  border-right-color: #363f4d;
}
.cc-revisit:hover .cc-revisit__tip,
.cc-revisit:focus-visible .cc-revisit__tip { opacity: 1; visibility: visible; transform: translate(0, -50%); }

.show--consent .cc-revisit,
.show--preferences .cc-revisit { opacity: 0; visibility: hidden; pointer-events: none; }

/* mobile: the whole control 30% smaller (64 -> 44.8px circle, 36 -> 25.2px icon) */
@media only screen and (max-width: 768px) {
  html .cc-revisit { width: 44.8px; height: 44.8px; box-shadow: 0 0 42px rgba(0, 0, 0, .18); }
  .cc-revisit__icon { width: 25.2px; height: 25.2px; }
}
@media (hover: none) {
  .cc-revisit__tip { display: none; } /* touch: no hover, the tooltip would stick */
  html .cc-revisit:hover { transform: none; }
}
@media print {
  html .cc-revisit,
  #cc-main { display: none; } /* catalogue print layouts */
}
