/* REDO – CookieConsent v3 appearance overrides.
   Colours and radius come from the live theme (custom.css): brand red #ac2b24, radius 10px. */
#cc-main {
  /* Explicit: the library sets its own system font stack on :root, so "inherit" would pick that up */
  --cc-font-family: "Be Vietnam Pro", sans-serif;

  /* Text: same colours as the site (headings #000, body text #363a42) */
  --cc-primary-color: #000;
  --cc-secondary-color: #363a42;
  --cc-link-color: #ac2b24;

  /* Primary buttons = site .btn--red */
  --cc-btn-primary-bg: #ac2b24;
  --cc-btn-primary-border-color: #ac2b24;
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-hover-bg: #b81f16;
  --cc-btn-primary-hover-border-color: #b81f16;
  --cc-btn-primary-hover-color: #fff;

  /* Secondary button ("Pasirinkti", "Išsaugoti pasirinkimą") = site .btn--white */
  --cc-btn-secondary-bg: #fff;
  --cc-btn-secondary-border-color: #262626;
  --cc-btn-secondary-color: #262626;
  --cc-btn-secondary-hover-bg: #fff;
  --cc-btn-secondary-hover-border-color: #b2534d;
  --cc-btn-secondary-hover-color: #ac2b24;

  /* Neutral greys from the site instead of the library's bluish ones */
  --cc-separator-border-color: #e6e6e6;
  --cc-footer-bg: #f6f6f6;
  --cc-footer-border-color: #e6e6e6;
  --cc-footer-color: #363a42;
  --cc-cookie-category-block-bg: #f6f6f6;
  --cc-cookie-category-block-border: #f6f6f6;
  --cc-cookie-category-block-hover-bg: #efefef;
  --cc-cookie-category-block-hover-border: #efefef;
  --cc-cookie-category-expanded-block-hover-bg: #efefef;
  --cc-section-category-border: #e6e6e6;

  /* Toggles */
  --cc-toggle-on-bg: #ac2b24;
  --cc-toggle-off-bg: #7a7a7a;
  --cc-toggle-readonly-bg: #e3a6a2; /* always-on toggle ("Būtini"): light tint of the site red */

  /* Shape: site cards use 10px, buttons 6px */
  --cc-modal-border-radius: 10px;
  --cc-btn-border-radius: 6px;
  z-index: 2147483000;
}

/* Theme rules on p/h2/button (e.g. on CMS pages) must not change the banner font */
#cc-main p, #cc-main h2, #cc-main h3, #cc-main div, #cc-main span,
#cc-main button, #cc-main a, #cc-main table, #cc-main th, #cc-main td {
  font-family: var(--cc-font-family);
}

/* Titles like site headings */
#cc-main .cm__title,
#cc-main .pm__title {
  font-size: 18px;
  font-weight: 700;
}
#cc-main .pm__section-title { font-weight: 600; }
#cc-main .cm__desc,
#cc-main .pm__section-desc {
  font-size: 15px;
  line-height: 1.6;
}

/* Buttons like the site's .btn: 600 weight, 6px radius, .3s transition (not uppercase) */
#cc-main .cm__btn,
#cc-main .pm__btn {
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  padding: 9px 16px;
  transition: background-color .3s, border-color .3s, color .3s;
}
#cc-main .cm__btn--secondary,
#cc-main .pm__btn--secondary {
  border-width: 2px;
}

/* Links: no animated underline (library effect); site red, underlined, darker on hover */
#cc-main a,
#cc-main .cc__link {
  color: var(--cc-link-color);
  font-weight: 500;
  background-image: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .3s;
}
#cc-main a:hover,
#cc-main .cc__link:hover {
  color: #b81f16;
  background-size: auto;
}
#cc-main .cm__footer a { font-size: 14px; }

/* Expand arrows share the always-on toggle colour in the library; keep them grey */
#cc-main .pm__section--expandable .pm__section-arrow { background: #dad9d9; }

/* "Visada įjungti" badge: the library takes its colour from the secondary button (now white) */
#cc-main .pm__badge {
  background: #e6e6e6;
  color: #363a42;
  font-weight: 500;
}

/* Map placeholder shown until consent */
.js-consent-map {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1.5rem;
  text-align: center;
  background: #f6f6f6;
  border: 1px solid #ddd;
  border-radius: 10px;
}
.js-consent-map.is-loaded {
  padding: 0;
  border: 0;
  background: none;
  display: block;
}
.js-consent-map p {
  margin: 0;
  max-width: 32rem;
  font-size: 16px;
  line-height: 1.5;
  color: #363a42;
}
.js-consent-map a:not(.btn) {
  font-size: 14px;
  color: #ac2b24;
  text-decoration: underline;
}
.js-consent-map a:not(.btn):hover { color: #b81f16; }

/* "Slapukų nustatymai" link in the subfooter */
#footer .subfooter .cookie-settings-link {
  margin-left: 1rem;
  font-size: 16px;
  line-height: 1.4;
  color: #555555;
  text-decoration: underline;
}
#footer .subfooter .cookie-settings-link:hover { color: #ac2b24; }
/* Map placeholder inside the service pages' map box: fill it */
.sf-map-wrapper .js-consent-map { min-height: 100%; border: 0; border-radius: 0; }
