@import url("https://fonts.googleapis.com/css2?family=Aboreto&display=swap");

/* ========================================================================== 
   Horoh WhatsApp Setores | Frontend
   ========================================================================== */

.horoh-wa-widget {
  --horoh-wa-toggle-size: 52px;
  --horoh-wa-toggle-icon-size: 26px;
  --horoh-wa-panel-width-desktop: 320px;
  --horoh-wa-panel-width-mobile: 315px;
  --horoh-wa-panel-radius: 0px;
  --horoh-wa-panel-bg: #002816;
  --horoh-wa-header-bg: #002816;
  --horoh-wa-list-bg: #002816;
  --horoh-wa-text-color: #f4efe7;
  --horoh-wa-subtitle-color: #f4efe7;
  --horoh-wa-button-bg: #002816;
  --horoh-wa-button-hover-bg: #f4efe7;
  --horoh-wa-button-hover-border-color: #f4efe7;
  --horoh-wa-button-hover-text-color: #002816;
  --horoh-wa-button-hover-action-color: #002816;
  --horoh-wa-button-border-color: #f4efe7;
  --horoh-wa-button-text-color: #f4efe7;
  --horoh-wa-button-action-color: #f4efe7;
  --horoh-wa-title-font: "Aboreto", var(--horoh-font-title, serif);
  --horoh-wa-body-font: "RNS Sanz", var(--horoh-font-body, Arial, sans-serif);
  --horoh-wa-sector-font: "Aboreto", var(--horoh-font-title, serif);
  --horoh-wa-title-font-size: 18px;
  --horoh-wa-subtitle-font-size: 12px;
  --horoh-wa-sector-font-size: 14px;
  --horoh-wa-action-font-size: 10px;
  --horoh-wa-title-letter-spacing: 0.06em;
  --horoh-wa-sector-letter-spacing: 0.18em;
  --horoh-wa-action-letter-spacing: 0.18em;
  --horoh-wa-header-text-align: center;
  --horoh-wa-button-text-align: center;
  --horoh-wa-button-align-items: center;
  --horoh-wa-header-padding: 18px 18px 14px 18px;
  --horoh-wa-list-padding: 14px;
  --horoh-wa-button-height: 58px;
  --horoh-wa-button-width: 100%;
  --horoh-wa-button-padding-x: 16px;
  --horoh-wa-button-border-width: 1px;
  --horoh-wa-button-radius: 0px;
  --horoh-wa-button-gap: 4px;
  --horoh-wa-button-hover-lift: -1px;
  --horoh-wa-item-gap: 10px;
  --horoh-wa-close-size: 40px;
  --horoh-wa-close-radius: 0px;

  position: fixed;
  right: var(--horoh-wa-right-desktop, 22px);
  bottom: var(--horoh-wa-bottom-desktop, 104px);
  z-index: var(--horoh-wa-z-index, 99998);
  font-family: var(--horoh-wa-body-font);
}

.horoh-wa-toggle {
  position: relative;
  width: var(--horoh-wa-toggle-size) !important;
  height: var(--horoh-wa-toggle-size) !important;
  min-width: var(--horoh-wa-toggle-size) !important;
  min-height: var(--horoh-wa-toggle-size) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18) !important;
  cursor: pointer;
  overflow: visible;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horoh-wa-toggle::before,
.horoh-wa-toggle::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: rgba(37, 211, 102, 0.12);
  pointer-events: none;
  z-index: -1;
  animation: horoh-wa-pulse 2.2s ease-out infinite;
}

.horoh-wa-toggle::after {
  animation-delay: 1.1s;
}

.horoh-wa-toggle:hover,
.horoh-wa-toggle:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22) !important;
}

.horoh-wa-toggle:focus-visible,
.horoh-wa-panel__close:focus-visible,
.horoh-wa-panel__link:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 4px;
}

.horoh-wa-toggle__image {
  width: var(--horoh-wa-toggle-icon-size) !important;
  height: var(--horoh-wa-toggle-icon-size) !important;
  display: block !important;
  object-fit: contain;
  pointer-events: none;
}

.horoh-wa-panel {
  position: absolute;
  right: 0;
  bottom: calc(var(--horoh-wa-toggle-size) + 12px);
  width: min(var(--horoh-wa-panel-width-desktop), calc(100vw - 36px));
  overflow: hidden;
  border-radius: var(--horoh-wa-panel-radius);
  background: var(--horoh-wa-panel-bg);
  color: var(--horoh-wa-text-color);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

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

.horoh-wa-panel__header {
  position: relative;
  display: block;
  padding: var(--horoh-wa-header-padding);
  background: var(--horoh-wa-header-bg);
  color: var(--horoh-wa-text-color);
  text-align: var(--horoh-wa-header-text-align);
}

.horoh-wa-panel__content {
  width: 100%;
  box-sizing: border-box;
  padding-right: calc(var(--horoh-wa-close-size) + 10px);
  padding-left: calc(var(--horoh-wa-close-size) + 10px);
  text-align: var(--horoh-wa-header-text-align);
}

.horoh-wa-panel__title {
  display: block;
  font-family: var(--horoh-wa-title-font);
  font-size: var(--horoh-wa-title-font-size);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: var(--horoh-wa-title-letter-spacing);
  text-transform: uppercase;
  color: var(--horoh-wa-text-color);
  text-align: var(--horoh-wa-header-text-align);
}

.horoh-wa-panel__subtitle {
  display: block;
  margin-top: 6px;
  font-family: var(--horoh-wa-body-font);
  font-size: var(--horoh-wa-subtitle-font-size);
  line-height: 1.35;
  color: var(--horoh-wa-subtitle-color);
  opacity: 0.92;
  text-align: var(--horoh-wa-header-text-align);
}

.horoh-wa-panel__close {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  width: var(--horoh-wa-close-size);
  height: var(--horoh-wa-close-size);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--horoh-wa-text-color) 45%, transparent);
  border-radius: var(--horoh-wa-close-radius);
  background: transparent;
  color: var(--horoh-wa-text-color);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.horoh-wa-panel__list {
  list-style: none;
  margin: 0;
  padding: var(--horoh-wa-list-padding);
  background: var(--horoh-wa-list-bg);
}

.horoh-wa-panel__item {
  margin: 0 0 var(--horoh-wa-item-gap);
  padding: 0;
}

.horoh-wa-panel__item:last-child {
  margin-bottom: 0;
}

.horoh-wa-panel__link {
  display: flex;
  flex-direction: column;
  align-items: var(--horoh-wa-button-align-items);
  justify-content: center;
  gap: var(--horoh-wa-button-gap);
  width: var(--horoh-wa-button-width);
  max-width: 100%;
  min-height: var(--horoh-wa-button-height);
  margin-right: auto;
  margin-left: auto;
  padding: 10px var(--horoh-wa-button-padding-x);
  border: var(--horoh-wa-button-border-width) solid var(--horoh-wa-button-border-color);
  border-radius: var(--horoh-wa-button-radius);
  background: var(--horoh-wa-button-bg);
  color: var(--horoh-wa-button-text-color);
  text-align: var(--horoh-wa-button-text-align);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.horoh-wa-panel__link:hover {
  background: var(--horoh-wa-button-hover-bg);
  transform: translateY(var(--horoh-wa-button-hover-lift));
  border-color: var(--horoh-wa-button-hover-border-color);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  color: var(--horoh-wa-button-hover-text-color);
  text-decoration: none;
}

.horoh-wa-panel__link:hover .horoh-wa-panel__sector {
  color: var(--horoh-wa-button-hover-text-color);
}

.horoh-wa-panel__link:hover .horoh-wa-panel__action {
  color: var(--horoh-wa-button-hover-action-color);
}

.horoh-wa-panel__sector {
  display: block;
  font-family: var(--horoh-wa-sector-font);
  font-size: var(--horoh-wa-sector-font-size);
  line-height: 1.15;
  font-weight: 400;
  color: var(--horoh-wa-button-text-color);
  text-transform: uppercase;
  letter-spacing: var(--horoh-wa-sector-letter-spacing);
  width: 100%;
  text-align: var(--horoh-wa-button-text-align);
}

.horoh-wa-panel__action {
  display: block;
  font-family: var(--horoh-wa-body-font);
  font-size: var(--horoh-wa-action-font-size);
  line-height: 1.25;
  color: var(--horoh-wa-button-action-color);
  text-transform: uppercase;
  letter-spacing: var(--horoh-wa-action-letter-spacing);
  width: 100%;
  text-align: var(--horoh-wa-button-text-align);
}

@media (max-width: 767px) {
  .horoh-wa-widget {
    right: var(--horoh-wa-right-mobile, 18px);
    bottom: var(--horoh-wa-bottom-mobile, 104px);
  }

  .horoh-wa-panel {
    width: min(var(--horoh-wa-panel-width-mobile), calc(100vw - 28px));
  }
}

@keyframes horoh-wa-pulse {
  0% {
    transform: scale(0.98);
    opacity: 0.70;
  }

  70% {
    transform: scale(1.22);
    opacity: 0;
  }

  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}
