/* The support launcher stays bottom-right. Native modal dialogs remain above it. */
.customer-contact {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  color: #211e1b;
  font: 14px/1.5 Arial, sans-serif;
}
.customer-contact *, .customer-contact *::before, .customer-contact *::after { box-sizing: border-box; }
.customer-contact__launcher {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 22px; border: 1px solid #117b4c;
  border-radius: 30px; background: #138b59; color: #fff;
  font: 600 15px/1.5 Arial, sans-serif; list-style: none; cursor: pointer;
  box-shadow: 0 6px 20px #138b5933; user-select: none;
}
.customer-contact__launcher::-webkit-details-marker { display: none; }
.customer-contact__launcher:hover { background: #10794d; }
.customer-contact__launcher:focus-visible, .customer-contact__link:focus-visible, .customer-contact__close:focus-visible { outline: 3px solid #138b59; outline-offset: 4px; }
.customer-contact__icon { display: block; width: 22px; height: 22px; flex-shrink: 0; }
.customer-contact__menu {
  position: absolute; right: 0; bottom: calc(100% + 14px);
  width: min(320px, calc(100vw - 40px));
  max-height: calc(100vh - 120px - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 120px - env(safe-area-inset-bottom, 0px));
  overflow: auto; overscroll-behavior: contain;
  border: 1px solid #e7e3de; border-radius: 18px; background: #fff;
  box-shadow: 0 12px 40px #14281c1a;
}
.customer-contact__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 19px 20px; background: #f1f8f4; }
.customer-contact__header h2 { margin: 0 0 7px; color: #211e1b; font: 600 19px/1.3 Arial, sans-serif; letter-spacing: normal; text-transform: none; }
.customer-contact__header p { margin: 0; color: #536359; font: 13px/1.5 Arial, sans-serif; }
.customer-contact__close { display: grid; place-items: center; flex-shrink: 0; width: 44px; min-height: 44px; margin: -10px -10px 0 0; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: #536359; cursor: pointer; }
.customer-contact [hidden] { display: none !important; }
.customer-contact__links { padding: 8px; }
.customer-contact__link { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px; border-radius: 10px; color: #211e1b; text-decoration: none; }
.customer-contact__link:hover { background: #f6f8f5; }
.customer-contact__channel-icon { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: #eaf5ee; color: #137443; }
.customer-contact__copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.customer-contact__copy strong { color: #211e1b; font: 600 15px/1.5 Arial, sans-serif; }
.customer-contact__copy > span { color: #6b716c; font: 12px/1.5 Arial, sans-serif; overflow-wrap: anywhere; }
.customer-contact__icon--arrow { width: 18px; height: 18px; margin-left: auto; color: #858b85; }
/* Only the non-modal reminder moves; the interactive security dialog stays centered. */
body:has(#customer-contact) #browser-verification-panel[open]:not(.is-modal) {
  inset: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) auto auto;
  max-height: calc(100dvh - 32px); overflow: auto;
}
body:has(dialog:modal) .customer-contact { visibility: hidden; pointer-events: none; }
@media (max-width: 480px) {
  .customer-contact { right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .customer-contact__menu { width: min(320px, calc(100vw - 32px)); }
}
@media print { .customer-contact { display: none; } }
