body.has-customer-contact {
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

#customerContact,
body.home-page > #customerContact {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 900;
  max-width: calc(100vw - 32px);
  font-family: var(--font-sans, sans-serif);
  line-height: 1.4;
  letter-spacing: 0;
}

.customer-contact [hidden] {
  display: none !important;
}

body:has(.modal-host.show, .loading-overlay.show) > #customerContact {
  visibility: hidden;
}

.customer-contact-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid #1b734d;
  border-radius: 999px;
  background: #126542;
  color: #fff;
  font: 600 15px/1.4 var(--font-sans, sans-serif);
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .24);
  transition: background-color .15s ease;
}

.customer-contact-toggle:hover {
  background: #0e5135;
}

.customer-contact-toggle img,
.customer-contact-channel img {
  flex: none;
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.customer-contact-toggle span {
  min-width: 0;
}

.customer-contact-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(272px, calc(100vw - 32px));
  max-height: calc(100dvh - 110px - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  padding: 16px;
  border: 1px solid #d4ded8;
  border-radius: 8px;
  background: #fff;
  color: #172a21;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
}

.customer-contact-panel h2 {
  margin: 0 0 8px;
  font: 600 16px/1.5 var(--font-sans, sans-serif);
  letter-spacing: 0;
}

.customer-contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 0;
  border-bottom: 1px solid #e3eae6;
  color: #172a21;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.customer-contact-link:last-child {
  border-bottom: 0;
}

.customer-contact-link:hover {
  color: #126542;
}

.customer-contact-channel {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.customer-contact-line { background: #087b40; }
.customer-contact-instagram { background: #b62a68; }

.customer-contact-toggle:focus-visible,
.customer-contact-link:focus-visible {
  outline: 3px solid #e7c873;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .customer-contact-toggle {
    min-height: 48px;
    padding: 10px 14px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-contact-toggle { transition: none; }
}

@media print {
  body.has-customer-contact { padding-bottom: 0; }
  #customerContact { display: none !important; }
}
