.silup-header-preview {
  --header-gap: 28px;
  position: sticky; top: 0; z-index: 10000;
  padding: 16px 48px; background: #fff; border: 0;
}
.admin-bar .silup-header-preview { top: 32px; }
.silup-header-preview *, .silup-header-preview *::before { box-sizing: border-box; }
.silup-header-preview .silup-v62-part-header-inner {
  position: relative; display: flex; flex-wrap: nowrap; align-items: center;
  gap: var(--header-gap); margin: 0 auto; max-width: 1184px; height: 72px;
  padding: 0 16px 0 32px; border: 1px solid #d9e1dc; border-radius: 20px;
  background: #fff; box-shadow: 0 4px 16px rgb(20 34 29 / 6%);
}
.silup-header-preview :is(figure, p) { margin: 0; }
.silup-header-preview a { color: inherit; text-decoration: none; white-space: nowrap; }
.silup-header-preview a:hover { text-decoration: underline; }
.silup-header-preview :is(a, summary):focus-visible { outline: 2px solid #17493a; outline-offset: 3px; }
.silup-header-preview .silup-v62-part-logo img { width: 120px; height: auto; display: block; }
.silup-header-preview .silup-v62-part-header-inner > * { flex: none; }
.silup-header-preview .silup-v62-part-nav { display: flex; align-items: center; flex-wrap: nowrap; gap: 30px; margin-left: auto; font-weight: 500; }
.silup-header-preview .silup-v62-part-language { display: flex; font-size: 15px; font-weight: 600; }
.silup-header-preview .silup-v62-part-language a { display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.silup-header-preview [aria-current="page"] { color: #17493a; text-decoration: underline; text-underline-offset: 5px; }
.silup-header-preview .silup-v62-part-cta a {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 20px; border-radius: 12px; background: #17493a; color: #fff; font-weight: 700;
}
.silup-header-preview summary { cursor: pointer; }
.silup-header-preview .silup-v62-part-mobile { display: none; }
.silup-header-preview .silup-v62-services { position: relative; white-space: nowrap; }
.silup-header-preview .silup-v62-part-nav .silup-v62-service-links {
  position: absolute; top: calc(100% + 8px); left: -12px; padding: 10px 12px;
  background: #fff; border: 1px solid #d9e1dc; border-radius: 12px;
}
.silup-header-preview .silup-v62-service-links a { display: block; padding: 8px 0; }
.silup-header-preview .silup-v62-part-mobile > summary {
  display: flex; align-items: center; min-height: 44px; min-width: 44px;
  padding: 0 12px; list-style: none; font-weight: 600;
}
.silup-header-preview .silup-v62-part-mobile > summary::-webkit-details-marker { display: none; }
.silup-header-preview .silup-v62-part-mobile-links {
  position: absolute; top: calc(100% + 8px); inset-inline: 0; max-height: calc(100dvh - 106px);
  overflow: auto; overscroll-behavior: contain; padding: 8px 20px 20px;
  background: #fff; border: 1px solid #d9e1dc; border-radius: 16px; box-shadow: 0 8px 24px rgb(20 34 29 / 10%);
}
.silup-header-preview .silup-v62-part-mobile-links > :is(p, details) {
  border-bottom: 1px solid #e6efea;
}
.silup-header-preview .silup-v62-part-mobile-links > p > a,
.silup-header-preview .silup-v62-part-mobile-links > details > summary {
  display: flex; align-items: center; min-height: 44px; padding: 14px 0; font-weight: 600;
}
.silup-header-preview .silup-v62-part-mobile-links .silup-v62-part-cta { display: none; }

.silup-header-preview.is-compact { padding: 12px 20px; }
.silup-header-preview.is-compact .silup-v62-part-header-inner { height: 64px; padding: 0 8px 0 20px; border-radius: 16px; gap: 12px; }
.silup-header-preview.is-compact .silup-v62-part-header-inner > :is(.silup-v62-part-nav, .silup-v62-header-language-desktop) { position: absolute; width: max-content; visibility: hidden; }
.silup-header-preview.is-compact .silup-v62-part-header-inner > .silup-v62-part-cta { margin-left: auto; }
.silup-header-preview.is-compact .silup-v62-part-header-inner > .silup-v62-part-cta a { height: 44px; }
.silup-header-preview.is-compact .silup-v62-part-mobile { display: block; }
.silup-header-preview.is-compact .silup-v62-part-mobile-links .silup-v62-part-language { margin-top: 12px; }
@media (max-width: 1200px) {

.silup-header-preview:not(.is-fluid) { padding: 12px 20px; }
.silup-header-preview:not(.is-fluid) .silup-v62-part-header-inner { height: 64px; padding: 0 8px 0 20px; border-radius: 16px; gap: 12px; }
.silup-header-preview:not(.is-fluid) .silup-v62-part-header-inner > :is(.silup-v62-part-nav, .silup-v62-header-language-desktop) { position: absolute; width: max-content; visibility: hidden; }
.silup-header-preview:not(.is-fluid) .silup-v62-part-header-inner > .silup-v62-part-cta { margin-left: auto; }
.silup-header-preview:not(.is-fluid) .silup-v62-part-header-inner > .silup-v62-part-cta a { height: 44px; }
.silup-header-preview:not(.is-fluid) .silup-v62-part-mobile { display: block; }
.silup-header-preview:not(.is-fluid) .silup-v62-part-mobile-links .silup-v62-part-language { margin-top: 12px; }
}
@media (max-width: 559px) {

.silup-header-preview:is(.is-compact, :not(.is-fluid)) { padding: 10px 12px; }
.silup-header-preview:is(.is-compact, :not(.is-fluid)) .silup-v62-part-header-inner > .silup-v62-part-cta { position: absolute; width: max-content; visibility: hidden; }
.silup-header-preview:is(.is-compact, :not(.is-fluid)) .silup-v62-part-mobile { margin-left: auto; }
.silup-header-preview:is(.is-compact, :not(.is-fluid)) .silup-v62-part-mobile-links .silup-v62-part-cta { display: block; margin-top: 16px; }
.silup-header-preview:is(.is-compact, :not(.is-fluid)) .silup-v62-part-mobile-links .silup-v62-part-cta a { width: 100%; height: 52px; }
}

.silup-header-preview .silup-v62-part-mobile > summary {
  justify-content: center;
  padding: 0;
}
.silup-header-preview .silup-menu-icon {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #3e846e;
  box-shadow: 0 -7px #3e846e, 0 7px #3e846e;
}
.silup-header-preview { font: 16px/1.4 Arial, sans-serif; color: #222; }
.silup-header-preview .silup-v62-part-cta :is(.wp-block-buttons,.wp-block-button) { margin: 0; }
.silup-header-preview .silup-v62-part-logo a { display: flex; align-items: center; min-height: 44px; }
.silup-header-preview .silup-v62-part-nav .silup-v62-service-links { min-width: max-content; z-index: 2; }
.silup-header-preview .silup-v62-part-mobile-links .silup-v62-service-links a { min-height: 44px; white-space: normal; }
@media (max-width: 782px) { .admin-bar .silup-header-preview { top: 46px; } }
@media (max-width: 600px) { .admin-bar .silup-header-preview { top: 0; } }

/* Soften the edge where content scrolls behind the sticky header. */
.silup-header-preview::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: clamp(14px, 2vw, 28px);
  background: linear-gradient(to bottom, #fff, rgb(255 255 255 / 0));
  pointer-events: none;
  z-index: -1;
}

/* At phone widths desktop-only controls must not contribute to scrollable overflow. */
@media (max-width: 559px) {
  .silup-header-preview { padding: 10px 12px; }
  .silup-header-preview .silup-v62-part-header-inner { height: 64px; padding: 0 8px 0 20px; border-radius: 16px; gap: 12px; }
  .silup-header-preview .silup-v62-part-header-inner > :is(.silup-v62-part-nav, .silup-v62-header-language-desktop, .silup-v62-part-cta) { display: none; }
  .silup-header-preview .silup-v62-part-mobile { display: block; margin-left: auto; }
  .silup-header-preview .silup-v62-part-mobile-links .silup-v62-part-language { margin-top: 12px; }
  .silup-header-preview .silup-v62-part-mobile-links .silup-v62-part-cta { display: block; margin-top: 16px; }
  .silup-header-preview .silup-v62-part-mobile-links .silup-v62-part-cta a { display: flex; width: 100%; height: 52px; white-space: normal; text-align: center; }
}
