/* ==========================================================================
   Edglow - floating controls
   Scroll-to-top, carousel arrows and the WhatsApp help launcher.
   ========================================================================== */

:root {
  --edg-ui-deep:  #0A2E2A;
  --edg-ui-green: #123F39;
  --edg-ui-gold:  #B88C59;
  --edg-ui-cream: #F8F5EF;
  --edg-ui-wa:    #25D366;
  --edg-ui-wa-dk: #128C7E;
  --edg-ui-bottom: 24px;
}

@media (max-width: 1024px) {
  :root { --edg-ui-bottom: calc(var(--wd-toolbar-h, 60px) + 14px); }
}

/* ------------------------------------------------------- scroll to top --- */

a.scrollToTop {
  right: 20px !important;
  bottom: calc(var(--edg-ui-bottom) + 74px) !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background-color: var(--edg-ui-deep) !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 26px -10px rgba(10, 46, 42, .6) !important;
  opacity: 1 !important;
  transition: background-color .25s ease, transform .25s ease;
}

a.scrollToTop:hover {
  background-color: var(--edg-ui-green) !important;
  transform: translateY(-3px);
}

a.scrollToTop::before,
a.scrollToTop::after {
  color: #FFFFFF !important;
  opacity: 1 !important;
}

/* --------------------------------------------------- carousel controls --- */

.wd-nav-arrows .wd-btn-arrow {
  --wd-arrow-color: #FFFFFF;
  --wd-arrow-bg: var(--edg-ui-deep);
}

.wd-nav-arrows .wd-btn-arrow .wd-arrow-inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--edg-ui-deep);
  border: 1px solid rgba(10, 46, 42, .18);
  color: #FFFFFF;
  box-shadow: 0 8px 22px -12px rgba(10, 46, 42, .7);
  transition: background-color .25s ease, border-color .25s ease;
}

.wd-nav-arrows .wd-btn-arrow .wd-arrow-inner::before,
.wd-nav-arrows .wd-btn-arrow .wd-arrow-inner::after {
  color: #FFFFFF !important;
}

.wd-nav-arrows .wd-btn-arrow:hover .wd-arrow-inner {
  background-color: var(--edg-ui-green);
  border-color: var(--edg-ui-gold);
}

.wd-nav-arrows .wd-btn-arrow.wd-disabled .wd-arrow-inner {
  background-color: rgba(10, 46, 42, .28);
  border-color: transparent;
  opacity: 1;
}

/* Pagination dots */
.wd-nav-pagin li a,
.wd-nav-pagin-wrap .swiper-pagination-bullet {
  background-color: rgba(10, 46, 42, .28) !important;
  border-color: rgba(10, 46, 42, .28) !important;
}

.wd-nav-pagin li.wd-active a,
.wd-nav-pagin-wrap .swiper-pagination-bullet-active {
  background-color: var(--edg-ui-gold) !important;
  border-color: var(--edg-ui-gold) !important;
}

/* ------------------------------------------------- sticky social rail --- */

.wd-sticky-social.wd-sticky-social-right {
  position: fixed !important;
  right: 0 !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 340;
  max-width: none !important;
  border-radius: 6px 0 0 6px;
  overflow: hidden;
  box-shadow: -6px 0 20px -12px rgba(10, 46, 42, .5);
}

.wd-sticky-social.wd-sticky-social-right .wd-social-icon {
  border-radius: 0 !important;
  margin: 0 !important;
}

/* It must not sit on top of the help launcher or the back-to-top button. */
@media (max-width: 1500px) {
  .wd-sticky-social.wd-sticky-social-right {
    top: 42% !important;
  }
}

/* On a phone the rail covers the content and fights the bottom bar. */
@media (max-width: 1024px) {
  .wd-sticky-social.wd-sticky-social-right { display: none !important; }
}

/* ==========================================================================
   WhatsApp help launcher
   ========================================================================== */

.edg-wa {
  position: fixed;
  right: 20px;
  bottom: var(--edg-ui-bottom);
  z-index: 998;
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
}

.edg-wa * { box-sizing: border-box; }

/* ------------------------------------------------------------- button --- */

.edg-wa__launch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--edg-ui-wa);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(18, 63, 57, .65);
  transition: background-color .25s ease, transform .25s ease;
}

.edg-wa__launch:hover { background: var(--edg-ui-wa-dk); transform: translateY(-2px); }

.edg-wa__launch svg { width: 26px; height: 26px; flex: 0 0 26px; }
.edg-wa__icon-x { display: none; }

.edg-wa.is-open .edg-wa__icon-wa { display: none; }
.edg-wa.is-open .edg-wa__icon-x { display: block; }
.edg-wa.is-open .edg-wa__launch { background: var(--edg-ui-deep); }

/* -------------------------------------------------------------- panel --- */

.edg-wa__panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: min(340px, calc(100vw - 40px));
  border-radius: 14px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(10, 46, 42, .12);
  box-shadow: 0 26px 60px -24px rgba(10, 46, 42, .55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.edg-wa.is-open .edg-wa__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.edg-wa__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 14px;
  background: var(--edg-ui-deep);
  color: #FFFFFF;
}

.edg-wa__id { display: flex; align-items: center; gap: 11px; min-width: 0; }

.edg-wa__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: var(--edg-ui-wa);
  color: #FFFFFF;
}

.edg-wa__avatar svg { width: 22px; height: 22px; }

.edg-wa__who { display: flex; flex-direction: column; min-width: 0; }
.edg-wa__who strong { font-size: 15px; font-weight: 600; line-height: 1.25; }
.edg-wa__who span { font-size: 12px; font-weight: 450; color: rgba(255, 255, 255, .72); }

.edg-wa__close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #FFFFFF;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.edg-wa__close:hover { background: rgba(255, 255, 255, .26); }

.edg-wa__body { padding: 16px 14px 6px; background: var(--edg-ui-cream); }

.edg-wa__bubble {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 3px 14px 14px 14px;
  background: #FFFFFF;
  border: 1px solid rgba(10, 46, 42, .10);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.6;
  color: #2C403B;
}

.edg-wa__topics { display: grid; gap: 8px; }

.edg-wa__topic {
  display: block;
  padding: 11px 14px;
  border: 1px solid rgba(18, 63, 57, .28);
  border-radius: 999px;
  background: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--edg-ui-green);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.edg-wa__topic:hover {
  background: var(--edg-ui-green);
  border-color: var(--edg-ui-green);
  color: #FFFFFF;
  text-decoration: none;
}

.edg-wa__foot {
  padding: 14px;
  background: var(--edg-ui-cream);
  text-align: center;
}

.edg-wa__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border-radius: 999px;
  background: var(--edg-ui-wa);
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none !important;
  transition: background-color .2s ease;
}

.edg-wa__cta:hover { background: var(--edg-ui-wa-dk); }
.edg-wa__cta svg { width: 20px; height: 20px; }

.edg-wa__num {
  display: block;
  margin-top: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #5F6D68;
}

/* ------------------------------------------------------------- mobile --- */

@media (max-width: 600px) {
  .edg-wa { right: 14px; left: 14px; }
  .edg-wa__launch { float: right; }
  .edg-wa__panel { width: 100%; right: 0; bottom: 68px; }
  .edg-wa__label { display: none; }
  .edg-wa__launch { padding: 0; width: 54px; justify-content: center; }
  a.scrollToTop { right: 14px !important; }
}

@media print {
  .edg-wa, a.scrollToTop { display: none !important; }
}
