/* BaltiCo v0.18 — targeted completion layer. No general redesign. */

:root {
  --baltico-editorial-placeholder: #d7dadd;
}

/* ---------- Uniform editorial image placeholders ---------- */
.editorial-placeholder,
.hero__media.editorial-placeholder,
.service-card__media.editorial-placeholder,
.team-image.editorial-placeholder,
.service-gallery__media.editorial-placeholder,
.news-placeholder,
.article-featured-image--placeholder,
.content-drawer-article__media--placeholder,
.contact-person-card__media.editorial-placeholder {
  background: var(--baltico-editorial-placeholder) !important;
  background-image: none !important;
}

.editorial-placeholder::before,
.editorial-placeholder::after { content: none !important; }

.hero__media.editorial-placeholder {
  position: absolute;
  inset: 0;
}

.team-image.editorial-placeholder {
  display: block;
  min-height: clamp(320px, 42vw, 560px);
}

.service-gallery__media.editorial-placeholder {
  color: transparent;
}

/* ---------- Header language switcher ---------- */
/* TranslatePress' own floater is suppressed: the same language URLs are rendered once in the header. */
#trp-floater-ls,
.trp-floater-ls-names,
.trp-floater-ls-flags { display: none !important; }

.site-header__actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.site-language-slot--desktop {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.site-language-slot--mobile { display: none; }

.site-language {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.site-language__sep { color: var(--color-gray-300); }
.site-language__link {
  display: inline-flex;
  min-width: 28px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: var(--color-gray-500);
  text-decoration: none;
  transition: color .32s cubic-bezier(.22,.68,.2,1), background-color .32s cubic-bezier(.22,.68,.2,1);
}
.site-language__link:hover,
.site-language__link:focus-visible { color: var(--color-primary); background: var(--color-primary-subtle); }
.site-language__link.is-current,
.site-language__link[aria-current="page"] { color: var(--color-primary); }

/* ---------- Service category + product dropdown ---------- */
.service-nav-row {
  display: block;
  min-width: 0;
}

.service-nav-row .service-sibling-nav {
  position: relative;
  z-index: 60;
  min-width: 0;
  overflow: visible;
}

.service-sibling-nav > ul {
  overflow: visible;
}

.service-category-menu {
  position: relative;
  z-index: 1;
}

.service-category-menu.is-open {
  z-index: 80;
}

.service-sibling-nav__link[aria-haspopup="menu"] {
  position: relative;
  gap: 9px;
}

.service-sibling-nav__link[aria-haspopup="menu"]::after {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: .72;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .26s cubic-bezier(.22,.68,.2,1);
}

.service-sibling-nav__link[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

.service-category-menu__panel {
  position: absolute;
  z-index: 100;
  top: calc(100% - 1px);
  left: 0;
  width: min(360px, calc(100vw - 32px));
  transform: translateX(var(--service-category-menu-shift-x, 0px));
  max-height: min(62vh, 480px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--color-divider);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(6,24,38,.15);
}


.service-category-menu__panel[hidden] {
  display: none !important;
}

.service-category-menu__list {
  display: flex !important;
  width: 100%;
  max-width: none;
  flex-direction: column;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.service-category-menu__list > li {
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 0;
  scroll-snap-align: none;
}

.service-category-menu__item {
  display: flex;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  align-items: center;
  padding: 9px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
  cursor: pointer;
}

.service-category-menu__item:hover,
.service-category-menu__item:focus-visible,
.service-category-menu__item.is-current {
  background: var(--color-primary-subtle);
  color: var(--color-primary-active);
  outline: none;
}

/* Invisible overlap between category pill and panel: the pointer can travel
   directly into the submenu without crossing a hover gap. */
.service-category-menu__panel::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 4px;
}

/* ---------- FAQ links ---------- */
.about-deck__faq-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}

/* ---------- Bridge request review ---------- */
.vbk-form__summary-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.vbk-edit-config {
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font: 600 13px/1.3 var(--font-accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1100px) {
  .site-header__actions { gap: 14px; }
  .site-language-slot--desktop { display: none; }
  .site-language-slot--mobile {
    display: block;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--color-divider);
  }
  .site-language-slot--mobile .site-language { display: flex !important; }
  .site-language-slot--mobile .site-language__link {
    min-width: 46px;
    min-height: 46px;
    justify-content: flex-start;
    font-size: 14px;
  }

}

@media (max-width: 820px) {
  .service-sibling-nav__link { min-height: 44px; }
}

@media (max-width: 760px) {
  /* Keep the horizontally scrollable category row, but let touch dropdowns
     escape that scroller by anchoring them to the viewport. */
  .service-nav-row .service-sibling-nav {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .service-category-menu__panel {
    position: fixed;
    z-index: 10000;
    top: var(--service-category-menu-top, 120px);
    right: 16px;
    left: 16px;
    width: auto;
    max-height: min(58vh, 420px);
    transform: none;
  }

  .service-category-menu__item {
    min-height: 48px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-language__link,
  .service-sibling-nav__link[aria-haspopup="menu"]::after { transition: none !important; }
}

/* Off-screen honeypot for the public bridge request. It remains in the POST payload but is not usable by visitors. */
.vbk-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ================================================================
   BaltiCo v1.0.8 – Forminator consent reliability
   ================================================================ */

/* Forminator keeps the real checkbox accessibly hidden and renders the next
   span as its visible control. Let pointer input reach the wrapping label and
   provide a theme-owned checked state even if Forminator's icon font is late
   or unavailable after a migration/cache rebuild. */
.baltico-form-slot label.forminator-checkbox.forminator-consent {
  cursor: pointer !important;
  pointer-events: auto !important;
  user-select: none;
  -webkit-user-select: none;
}

.baltico-form-slot label.forminator-checkbox.forminator-consent .forminator-checkbox-box {
  position: relative !important;
  pointer-events: none !important;
}

.baltico-form-slot label.forminator-checkbox.forminator-consent input[type="checkbox"]:checked + .forminator-checkbox-box::before {
  content: "" !important;
  position: absolute !important;
  top: 2px !important;
  left: 6px !important;
  display: block !important;
  width: 5px !important;
  height: 11px !important;
  border: solid var(--color-primary) !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}

.baltico-form-slot label.forminator-checkbox.forminator-consent input[type="checkbox"]:focus-visible + .forminator-checkbox-box {
  outline: 3px solid #fff !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px rgba(6, 24, 38, .55) !important;
}
