.eco-contact-widget {
  position: fixed;
  z-index: 1000;
  inset-inline-start: auto;
  inset-inline-end: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  font-family: "IBM Plex Sans", Arial, sans-serif;
}

.eco-contact-widget *,
.eco-contact-widget *::before,
.eco-contact-widget *::after {
  box-sizing: border-box;
}

.eco-contact-widget__panel {
  position: absolute;
  inset-inline-start: auto;
  inset-inline-end: 0;
  bottom: calc(100% + 12px);
  width: min(286px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.18);
}

.eco-contact-widget__panel[hidden] {
  display: none;
}

.eco-contact-widget__panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.eco-contact-widget__title {
  margin: 2px 0 0;
  color: #17251e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.eco-contact-widget__close {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #526158;
  background: #f2f6f3;
  cursor: pointer;
}

.eco-contact-widget__close svg {
  width: 16px;
  height: 16px;
}

.eco-contact-widget__close:hover {
  color: #087c4b;
  background: #e7f2eb;
}

.eco-contact-widget__close:focus-visible,
.eco-contact-widget__toggle:focus-visible,
.eco-contact-widget__link:focus-visible {
  outline: 3px solid #d08a00;
  outline-offset: 3px;
}

.eco-contact-widget__options {
  display: grid;
  gap: 8px;
}

.eco-contact-widget__link {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 1px solid #e6ece8;
  border-radius: 12px;
  color: #17251e;
  background: #fff;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.eco-contact-widget__link:hover {
  transform: translateY(-1px);
  border-color: #b7d8c4;
  background: #f7fbf8;
}

.eco-contact-widget__link-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: #087c4b;
  background: #eaf5ee;
}

.eco-contact-widget__link-icon--whatsapp {
  color: #fff;
  background: #1fae61;
}

.eco-contact-widget__link-icon svg {
  width: 20px;
  height: 20px;
}

.eco-contact-widget__link-copy {
  display: grid;
  gap: 2px;
}

.eco-contact-widget__link-copy strong {
  font-size: 13px;
  line-height: 1.3;
}

.eco-contact-widget__link-copy small {
  color: #6a756e;
  font-size: 11px;
  line-height: 1.3;
}

.eco-contact-widget__toggle {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #087c4b;
  box-shadow: 0 8px 24px rgba(8, 124, 75, 0.3);
  cursor: pointer;
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.eco-contact-widget__toggle:hover {
  transform: translateY(-2px);
  background: #06673e;
  box-shadow: 0 11px 28px rgba(8, 124, 75, 0.36);
}

.eco-contact-widget__toggle svg {
  width: 27px;
  height: 27px;
}

@media (max-width: 600px) {
  .eco-contact-widget__toggle {
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eco-contact-widget__link,
  .eco-contact-widget__toggle {
    transition: none;
  }

  .eco-contact-widget__link:hover,
  .eco-contact-widget__toggle:hover {
    transform: none;
  }
}
