.seosem-wa-widget {
  --seosem-wa-blue: #0072ce;
  --seosem-wa-green: #087f46;
  --seosem-wa-gap: 20px;
  position: fixed;
  right: max(var(--seosem-wa-gap), env(safe-area-inset-right, 0px));
  bottom: max(var(--seosem-wa-gap), env(safe-area-inset-bottom, 0px));
  z-index: 19;
  display: flex;
  justify-content: flex-end;
  width: max-content;
  max-width: calc(100vw - 32px);
  color: #17385a;
  font: 400 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.seosem-wa-widget,
.seosem-wa-widget *,
.seosem-wa-widget *::before,
.seosem-wa-widget *::after {
  box-sizing: border-box;
}

html[data-cookie-modal="open"] .seosem-wa-widget,
.seosem-wa-widget[data-seosem-wa-suspended],
.seosem-wa-widget[data-seosem-wa-consent-blocked] {
  display: none;
}

@supports selector(:has(*)) {
  html:has(dialog#cookie-banner[open], dialog#cookie-settings[open], #cookie-storage-warning:not([hidden]), #main-nav.is-collapsible.is-open, .menu-toggle[aria-expanded="true"]) .seosem-wa-widget {
    display: none;
  }
}

.seosem-wa-widget .seosem-wa-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 60px;
  height: 60px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--seosem-wa-green);
  color: #fff;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  box-shadow: 0 8px 26px rgb(0 67 38 / 24%), 0 2px 6px rgb(0 67 38 / 12%);
  transition: gap 220ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.seosem-wa-widget .seosem-wa-icon {
  display: block;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.seosem-wa-widget .seosem-wa-trigger-label {
  display: block;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  font-size: 14px;
  transition: max-width 220ms ease, opacity 160ms ease;
}

.seosem-wa-widget .seosem-wa-trigger:focus-visible {
  gap: 10px;
}

.seosem-wa-widget .seosem-wa-trigger:focus-visible .seosem-wa-trigger-label {
  max-width: 112px;
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .seosem-wa-widget .seosem-wa-trigger:hover {
    gap: 10px;
    background: #066a3b;
    box-shadow: 0 10px 30px rgb(0 67 38 / 28%), 0 2px 6px rgb(0 67 38 / 12%);
  }

  .seosem-wa-widget .seosem-wa-trigger:hover .seosem-wa-trigger-label {
    max-width: 112px;
    opacity: 1;
  }
}

.seosem-wa-widget .seosem-wa-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(352px, calc(100vw - 32px));
  max-height: calc(100vh - 112px - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 112px - env(safe-area-inset-bottom, 0px));
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgb(0 114 206 / 14%);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 60px rgb(0 44 81 / 18%), 0 3px 12px rgb(0 44 81 / 8%);
  visibility: hidden;
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transform-origin: bottom right;
  transition: opacity 200ms ease, transform 240ms cubic-bezier(.2, .75, .3, 1), visibility 0s linear 240ms;
}

.seosem-wa-widget .seosem-wa-panel[hidden] {
  display: none;
}

.seosem-wa-widget[data-seosem-wa-open] .seosem-wa-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.seosem-wa-widget .seosem-wa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 88px;
  margin: 0;
  padding: 20px 18px 20px 22px;
  background: var(--seosem-wa-blue);
  color: #fff;
}

.seosem-wa-widget .seosem-wa-brand {
  display: block;
  margin: 0;
  color: inherit;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: .01em;
}

.seosem-wa-widget .seosem-wa-channel {
  display: block;
  margin-top: 4px;
  color: inherit;
  font-size: 13px;
  line-height: 1.4;
}

.seosem-wa-widget .seosem-wa-close {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 -5px 0 0;
  padding: 10px;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.seosem-wa-widget .seosem-wa-close:hover {
  background: rgb(255 255 255 / 14%);
}

.seosem-wa-widget .seosem-wa-close svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.seosem-wa-widget .seosem-wa-body {
  padding: 24px;
}

.seosem-wa-widget .seosem-wa-title {
  margin: 0 0 10px;
  padding: 0;
  color: #00579e;
  font: 700 21px/1.3 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.025em;
  text-transform: none;
}

.seosem-wa-widget .seosem-wa-description {
  margin: 0 0 22px;
  color: #405a71;
  font-size: 15px;
  line-height: 1.6;
}

.seosem-wa-widget .seosem-wa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--seosem-wa-green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: background-color 160ms ease;
}

.seosem-wa-widget .seosem-wa-cta:hover {
  background: #066a3b;
  color: #fff;
}

.seosem-wa-widget .seosem-wa-cta .seosem-wa-icon {
  width: 22px;
  height: 22px;
}

.seosem-wa-widget .seosem-wa-phone {
  margin: 12px 0 0;
  color: #52687a;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.seosem-wa-widget .seosem-wa-trigger:focus-visible,
.seosem-wa-widget .seosem-wa-cta:focus-visible {
  outline: 3px solid #004f90;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px #fff;
}

.seosem-wa-widget .seosem-wa-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .seosem-wa-widget {
    --seosem-wa-gap: 16px;
  }

  .seosem-wa-widget .seosem-wa-trigger {
    min-width: 56px;
    height: 56px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .seosem-wa-widget .seosem-wa-body {
    padding: 22px 20px;
  }

  .seosem-wa-widget .seosem-wa-panel {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seosem-wa-widget,
  .seosem-wa-widget * {
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .seosem-wa-widget .seosem-wa-panel {
    transform: none;
  }
}

@media print {
  .seosem-wa-widget {
    display: none !important;
  }
}
