/**
 * EnviroFALK Conversion Dock – public styles.
 *
 * All selectors are namespaced so the dock can safely be used with arbitrary
 * WordPress themes and page builders.
 */

.efcd-reserve,
.efcd-dock,
.efcd-dock *,
.efcd-dock *::before,
.efcd-dock *::after,
.efcd-sticky-restore,
.efcd-sticky-restore *,
.efcd-sticky-restore-fallback,
.efcd-sticky-restore-fallback * {
  box-sizing: border-box;
}

.efcd-reserve {
  display: block;
  width: 100%;
  height: var(--efcd-reserve-height, 116px);
  pointer-events: none;
  transition: height 220ms ease;
}

.efcd-reserve.efcd-reserve--collapsed {
  height: 0;
}

.efcd-dock {
  --efcd-max-width: 940px;
  --efcd-desktop-bottom: 18px;
  --efcd-columns: 3;
  --efcd-surface: rgba(255, 255, 255, 0.97);
  --efcd-ink: #292929;
  --efcd-blue: #25438d;
  --efcd-line: rgba(37, 67, 141, 0.14);

  position: fixed;
  z-index: 120;
  right: auto;
  bottom: var(--efcd-desktop-bottom);
  left: 50%;
  width: min(
    var(--efcd-max-width),
    calc(
      100vw - 32px - env(safe-area-inset-left, 0px) -
        env(safe-area-inset-right, 0px)
    )
  );
  margin: 0;
  color: var(--efcd-ink);
  font-family: "OpenSans-Regular", "Open Sans", Arial, sans-serif;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 48px));
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 0s linear 220ms;
  will-change: opacity, transform;
}

.efcd-dock[data-efcd-count="1"] {
  width: min(
    var(--efcd-max-width),
    440px,
    calc(
      100vw - 32px - env(safe-area-inset-left, 0px) -
        env(safe-area-inset-right, 0px)
    )
  );
}

.efcd-dock[data-efcd-count="2"] {
  width: min(
    var(--efcd-max-width),
    680px,
    calc(
      100vw - 32px - env(safe-area-inset-left, 0px) -
        env(safe-area-inset-right, 0px)
    )
  );
}

.efcd-dock.efcd-dock--pending {
  transition: none;
}

.efcd-dock.efcd-dock--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

@media (min-width: 769px) {
  .efcd-dock.efcd-dock--visible.efcd-dock--user-collapsed[data-close-side="right"] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(calc(50vw + 24px), 0);
    transition-delay: 0s, 0s, 220ms;
  }

  .efcd-dock.efcd-dock--visible.efcd-dock--user-collapsed[data-close-side="left"] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(calc(-50vw - 100% - 24px), 0);
    transition-delay: 0s, 0s, 220ms;
  }
}

/* CSS is a synchronous fallback while the observer updates ARIA and classes. */
body.modal-open .efcd-dock,
body.cookiedisallow-modal-open .efcd-dock,
body:has(.greensiderbar-panel.is-open) .efcd-dock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 48px));
  transition-delay: 0s, 0s, 220ms;
}

.efcd-dock__inner {
  display: grid;
  grid-template-columns: repeat(var(--efcd-columns), minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--efcd-line);
  border-radius: 24px;
  background: var(--efcd-surface);
  box-shadow:
    0 14px 42px rgba(21, 38, 76, 0.18),
    0 3px 12px rgba(21, 38, 76, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.efcd-dock__close {
  display: none;
}

.efcd-dock__close[hidden] {
  display: none !important;
}

@media (min-width: 769px) {
  .efcd-dock__close {
    position: absolute;
    z-index: 3;
    top: -18px;
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(37, 67, 141, 0.2);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(21, 38, 76, 0.18);
    color: var(--efcd-blue);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition:
      background-color 160ms ease,
      box-shadow 160ms ease,
      color 160ms ease,
      transform 160ms ease;
  }

  .efcd-dock__close--right {
    right: 14px;
  }

  .efcd-dock__close--left {
    left: 14px;
  }

  .efcd-dock__close > svg {
    display: block;
    width: 18px;
    height: 18px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2.2;
  }

  .efcd-dock__close:hover {
    background: var(--efcd-blue);
    box-shadow: 0 7px 20px rgba(21, 38, 76, 0.24);
    color: #ffffff;
    transform: scale(1.06);
  }

  .efcd-dock__close:active {
    transform: scale(0.96);
  }

  .efcd-dock__close:focus-visible {
    outline: 3px solid var(--efcd-blue);
    outline-offset: 3px;
  }
}

.efcd-dock__link,
.efcd-dock__link:link,
.efcd-dock__link:visited {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 10px 16px;
  overflow: hidden;
  border: 1px solid rgba(37, 67, 141, 0.16);
  border-color: color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 17px;
  background: var(--efcd-bg, #ffffff);
  box-shadow: 0 3px 10px rgba(21, 38, 76, 0.07);
  color: var(--efcd-color, var(--efcd-blue));
  font: inherit;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease,
    transform 160ms ease;
}

.efcd-dock__link.efcd-image--top,
.efcd-dock__link.efcd-image--bottom {
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  text-align: center;
}

.efcd-dock__link.efcd-image--right .efcd-dock__copy {
  order: 1;
}

.efcd-dock__link.efcd-image--right .efcd-dock__media {
  order: 2;
}

.efcd-dock__link.efcd-image--bottom .efcd-dock__copy {
  order: 1;
}

.efcd-dock__link.efcd-image--bottom .efcd-dock__media {
  order: 2;
}

.efcd-dock__media {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.efcd-image--left .efcd-dock__media,
.efcd-image--right .efcd-dock__media {
  width: clamp(24px, var(--efcd-image-size, 38px), 96px);
  height: clamp(24px, var(--efcd-image-size, 38px), 96px);
  border-radius: 50%;
}

.efcd-image--top .efcd-dock__media,
.efcd-image--bottom .efcd-dock__media {
  width: 100%;
  height: clamp(34px, var(--efcd-image-size, 54px), 140px);
  border-radius: 12px;
}

.efcd-dock__media > img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

.efcd-dock__copy {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  overflow-wrap: anywhere;
}

.efcd-image--top .efcd-dock__copy,
.efcd-image--bottom .efcd-dock__copy {
  width: 100%;
  align-items: center;
}

.efcd-dock__copy > strong,
.efcd-dock__copy > small {
  display: block;
  max-width: 100%;
  margin: 0;
  color: inherit;
  text-align: inherit;
}

.efcd-dock__copy > strong {
  font-family: "FiraSans-SemiBold", "Fira Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
}

.efcd-dock__copy > small {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  opacity: 0.78;
}

@media (hover: hover) and (pointer: fine) {
  .efcd-dock__link:hover {
    border-color: currentColor;
    box-shadow:
      0 8px 20px rgba(21, 38, 76, 0.15),
      inset 0 0 0 1px color-mix(in srgb, currentColor 12%, transparent);
    filter: brightness(0.98) saturate(1.04);
    transform: translateY(-2px);
  }
}

.efcd-dock__link:active {
  box-shadow: 0 2px 7px rgba(21, 38, 76, 0.12);
  transform: translateY(0);
}

.efcd-dock__link:focus-visible {
  z-index: 1;
  outline: 3px solid var(--efcd-blue);
  outline-offset: 2px;
}

/* The legacy bar slides away only while an opted-in dock is actually open. */
body.efcd-dock-runtime .sticky-navbar {
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 0s linear 220ms;
}

body.efcd-dock-runtime:not(.efcd-hide-legacy):not(.efcd-modal-blocking)
  .sticky-navbar {
  transition-delay: 0s !important;
}

body.efcd-hide-legacy .sticky-navbar,
body.efcd-modal-blocking .sticky-navbar {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(calc(100% + 12px)) !important;
  transition-delay: 0s, 0s, 220ms !important;
}

.sticky-navbar.efcd-sticky-navbar--with-restore {
  top: calc(55% - 28px) !important;
}

.sticky-navbar > .efcd-sticky-restore {
  position: relative !important;
  display: flex !important;
  width: 276px !important;
  height: 56px !important;
  min-height: 56px !important;
  margin: 0 -220px 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 1px solid #e5e5e5 !important;
  background: #ffffff !important;
  color: #97be0d !important;
  list-style: none !important;
  transform: translateX(0);
  transition:
    background-color 300ms linear,
    color 300ms linear,
    transform 300ms linear !important;
}

.sticky-navbar > .efcd-sticky-restore:hover,
.sticky-navbar > .efcd-sticky-restore:focus-within {
  background: #97be0d !important;
  color: #ffffff !important;
  transform: translateX(-220px);
}

.efcd-sticky-restore__button {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 44px;
  align-items: center;
  flex: 1 1 auto;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit !important;
  line-height: 1.2;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.efcd-sticky-restore__icon {
  display: flex;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.efcd-sticky-restore__icon > svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.efcd-sticky-restore__icon > svg > rect {
  fill: currentColor;
  stroke: none;
}

.efcd-sticky-restore__label {
  display: block;
  width: 220px;
  min-width: 0;
  padding: 0 16px 0 0;
  overflow: hidden;
  color: inherit;
  font: inherit;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.efcd-sticky-restore__button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: -4px;
}

.efcd-sticky-restore-fallback {
  position: fixed;
  z-index: 121;
  top: calc(50% - 28px);
  display: flex;
  width: 276px;
  height: 56px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(21, 38, 76, 0.16);
  color: #97be0d;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    left 220ms ease,
    right 220ms ease,
    transform 220ms ease;
}

.efcd-sticky-restore-fallback--right {
  right: -220px;
}

.efcd-sticky-restore-fallback--left {
  left: -220px;
}

.efcd-sticky-restore-fallback--left .efcd-sticky-restore__button {
  flex-direction: row-reverse;
}

.efcd-sticky-restore-fallback:hover,
.efcd-sticky-restore-fallback:focus-within {
  background: #97be0d;
  color: #ffffff;
}

.efcd-sticky-restore-fallback--right:hover,
.efcd-sticky-restore-fallback--right:focus-within {
  right: 0;
}

.efcd-sticky-restore-fallback--left:hover,
.efcd-sticky-restore-fallback--left:focus-within {
  left: 0;
}

body.efcd-modal-blocking .efcd-sticky-restore-fallback--right {
  visibility: hidden;
  pointer-events: none;
  transform: translateX(calc(100% + 12px));
}

body.efcd-modal-blocking .efcd-sticky-restore-fallback--left {
  visibility: hidden;
  pointer-events: none;
  transform: translateX(calc(-100% - 12px));
}

body.efcd-dock-active .scroll-top,
body.efcd-dock-active .grecaptcha-badge {
  bottom: var(--efcd-floating-offset, 124px) !important;
}

@media (max-width: 768px) {
  .efcd-reserve {
    height: var(
      --efcd-reserve-height,
      calc(98px + env(safe-area-inset-bottom, 0px))
    );
  }

  .efcd-dock,
  .efcd-dock[data-efcd-count="1"],
  .efcd-dock[data-efcd-count="2"] {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    transform: translateY(calc(100% + 32px));
  }

  .efcd-dock.efcd-dock--visible {
    transform: translateY(0);
  }

  body.modal-open .efcd-dock,
  body.cookiedisallow-modal-open .efcd-dock,
  body:has(.greensiderbar-panel.is-open) .efcd-dock {
    transform: translateY(calc(100% + 32px));
  }

  .efcd-dock__inner {
    gap: 4px;
    padding-top: 7px;
    padding-right: calc(7px + env(safe-area-inset-right, 0px));
    padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px));
    padding-left: calc(7px + env(safe-area-inset-left, 0px));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 30px rgba(21, 38, 76, 0.16);
  }

  .efcd-dock__link,
  .efcd-dock__link:link,
  .efcd-dock__link:visited {
    min-height: 66px;
    gap: 6px;
    padding: 7px 6px;
    border-radius: 14px;
  }

  .efcd-dock__link.efcd-image--top,
  .efcd-dock__link.efcd-image--bottom {
    gap: 5px;
    padding: 5px;
  }

  .efcd-image--left .efcd-dock__media,
  .efcd-image--right .efcd-dock__media {
    width: clamp(24px, var(--efcd-image-size, 30px), 50px);
    height: clamp(24px, var(--efcd-image-size, 30px), 50px);
  }

  .efcd-image--top .efcd-dock__media,
  .efcd-image--bottom .efcd-dock__media {
    height: clamp(30px, var(--efcd-image-size, 44px), 72px);
    border-radius: 9px;
  }

  .efcd-dock__copy {
    gap: 0;
  }

  .efcd-dock__copy > strong {
    font-size: 12px;
    line-height: 1.12;
  }

  .efcd-dock__copy > small {
    display: none;
  }
}

@media (max-width: 768px) {
  .efcd-dock__close,
  .efcd-sticky-restore,
  .efcd-sticky-restore-fallback {
    display: none !important;
  }

  .efcd-reserve.efcd-reserve--collapsed {
    height: var(
      --efcd-reserve-height,
      calc(98px + env(safe-area-inset-bottom, 0px))
    );
  }
}

@media (max-width: 480px) {
  .efcd-dock[data-efcd-count="3"] .efcd-dock__link,
  .efcd-dock[data-efcd-count="4"] .efcd-dock__link {
    gap: 4px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .efcd-dock[data-efcd-count="4"] .efcd-dock__inner {
    gap: 3px;
    padding-right: calc(4px + env(safe-area-inset-right, 0px));
    padding-left: calc(4px + env(safe-area-inset-left, 0px));
  }

  .efcd-dock[data-efcd-count="4"] .efcd-dock__copy > strong {
    font-size: 10.5px;
  }

  .efcd-dock[data-efcd-count="4"] .efcd-image--left .efcd-dock__media,
  .efcd-dock[data-efcd-count="4"] .efcd-image--right .efcd-dock__media {
    width: clamp(22px, var(--efcd-image-size, 26px), 32px);
    height: clamp(22px, var(--efcd-image-size, 26px), 32px);
  }

  .efcd-dock[data-efcd-count="4"] .efcd-image--top .efcd-dock__media,
  .efcd-dock[data-efcd-count="4"] .efcd-image--bottom .efcd-dock__media {
    height: clamp(26px, var(--efcd-image-size, 34px), 46px);
  }
}

@media (max-width: 360px) {
  .efcd-dock__copy > strong {
    font-size: 11px;
  }

  .efcd-dock[data-efcd-count="4"] .efcd-dock__copy > strong {
    font-size: 9.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .efcd-reserve,
  .efcd-dock,
  .efcd-dock__close,
  .efcd-dock__link,
  .sticky-navbar,
  .efcd-sticky-restore,
  .efcd-sticky-restore-fallback,
  body.efcd-dock-active .scroll-top,
  body.efcd-dock-active .grecaptcha-badge {
    scroll-behavior: auto;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .efcd-dock__inner {
    border: 1px solid CanvasText;
    background: Canvas;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .efcd-dock__link,
  .efcd-dock__link:link,
  .efcd-dock__link:visited {
    border: 2px solid ButtonText;
    background: Canvas;
    box-shadow: none;
    color: ButtonText;
    filter: none;
  }

  .efcd-dock__link:focus-visible {
    outline-color: Highlight;
  }

  .efcd-dock__close,
  .efcd-sticky-restore,
  .efcd-sticky-restore-fallback,
  .efcd-sticky-restore__button {
    border-color: ButtonText !important;
    background: Canvas !important;
    box-shadow: none !important;
    color: ButtonText !important;
  }

  .efcd-dock__close:focus-visible,
  .efcd-sticky-restore__button:focus-visible {
    outline-color: Highlight;
  }
}

@media print {
  .efcd-dock,
  .efcd-reserve,
  .efcd-sticky-restore,
  .efcd-sticky-restore-fallback {
    display: none !important;
  }

  body.efcd-dock-active .scroll-top,
  body.efcd-dock-active .grecaptcha-badge {
    bottom: auto !important;
  }
}
