.gsg-contact-widget {
  --gsg-blue: #3974e5;
  --gsg-navy: #1f4269;
  --gsg-muted: #778399;
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 10000;
  color: var(--gsg-navy);
  font: 13px/1.75 Roboto, "Segoe UI", Arial, sans-serif;
  text-align: left;
}

.gsg-contact-widget *,
.gsg-contact-widget *::before,
.gsg-contact-widget *::after { box-sizing: border-box; }

.gsg-contact-widget button,
.gsg-contact-widget a { -webkit-tap-highlight-color: transparent; }

.gsg-contact-widget svg { display: block; width: 24px; height: 24px; }

.gsg-contact-widget .gsg-contact-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 7px 17px 7px 7px;
  border: 1px solid #e1e8f3;
  border-radius: 999px;
  background: #fff;
  color: var(--gsg-navy);
  box-shadow: 0 8px 28px rgb(10 38 75 / 17%);
  font: 600 15px/1.3 Roboto, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.gsg-contact-widget .gsg-contact-toggle:hover {
  border-color: #bdd0f6;
  background: #fff;
  color: var(--gsg-navy);
  box-shadow: 0 10px 32px rgb(10 38 75 / 23%);
}

.gsg-contact-toggle__icon {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gsg-blue);
  color: #fff;
}

.gsg-contact-toggle__icon svg { width: 22px; height: 22px; }
.gsg-contact-toggle__chevron { margin-left: 3px; transition: transform 180ms ease; }
.gsg-contact-toggle__chevron svg { width: 18px; height: 18px; }
.gsg-contact-toggle[aria-expanded="true"] .gsg-contact-toggle__chevron { transform: rotate(180deg); }

.gsg-contact-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: 390px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 130px);
  max-height: calc(100dvh - 130px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 24px;
  border: 1px solid #e6ecf5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 50px rgb(8 29 57 / 22%);
  scrollbar-width: thin;
  animation: gsg-contact-appear 160ms ease-out;
}

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

.gsg-contact-widget .gsg-contact-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7c899c;
  cursor: pointer;
}

.gsg-contact-widget .gsg-contact-close:hover { background: #edf3fd; color: var(--gsg-navy); }
.gsg-contact-close svg { width: 18px; height: 18px; }

.gsg-contact-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 24px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid #e1e9f6;
}

.gsg-contact-row--phone { padding-top: 0; padding-right: 3px; margin-top: 0; border-top: 0; }
.gsg-contact-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #edf3fd; color: var(--gsg-blue); }
.gsg-contact-icon svg { width: 26px; height: 26px; }
.gsg-contact-content { min-width: 0; }

.gsg-contact-content p,
.gsg-contact-content address { margin: 0; color: var(--gsg-muted); font: inherit; }

.gsg-contact-content .gsg-contact-label { margin: 0 0 1px; color: #465b78; }
.gsg-contact-widget .gsg-contact-phone { display: inline-block; margin-bottom: 3px; color: var(--gsg-blue); font-size: 20px; font-weight: 700; line-height: 1.5; letter-spacing: .2px; text-decoration: none; white-space: nowrap; }
.gsg-contact-widget .gsg-contact-phone:hover { color: #245cc7; text-decoration: underline; text-underline-offset: 4px; }
.gsg-contact-content h3 { margin: 1px 0 7px; color: var(--gsg-navy); font: 700 14px/1.5 Roboto, "Segoe UI", Arial, sans-serif; text-transform: uppercase; }
.gsg-contact-hours { padding: 0; margin: 0; list-style: none; color: var(--gsg-muted); font: inherit; }
.gsg-contact-hours li { padding: 0; margin: 0; }
.gsg-contact-content .gsg-contact-note { margin-top: 13px; }
.gsg-contact-content .gsg-contact-note--appointment { margin-top: 9px; font-size: 13px; }

.gsg-contact-widget .gsg-contact-maps {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  padding: 10px 15px;
  border-radius: 999px;
  background: #edf3fd;
  color: var(--gsg-navy);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.gsg-contact-widget .gsg-contact-maps:hover { background: #e0eafa; color: var(--gsg-navy); }
.gsg-contact-maps > svg { flex-shrink: 0; color: var(--gsg-blue); }
.gsg-contact-maps__external { margin-left: auto; color: #2d69d5; }
.gsg-contact-maps__external svg { width: 15px; height: 15px; }
.gsg-contact-widget button:focus-visible,
.gsg-contact-widget a:focus-visible { outline: 3px solid #73a7ff; outline-offset: 4px; }
.gsg-contact-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@keyframes gsg-contact-appear {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .gsg-contact-widget { right: 16px; bottom: 16px; left: 16px; display: flex; justify-content: flex-end; width: auto; pointer-events: none; }
  .gsg-contact-widget .gsg-contact-toggle { width: auto; min-height: 52px; padding: 6px 12px 6px 6px; gap: 8px; font-size: 13px; pointer-events: auto; }
  .gsg-contact-toggle__icon { flex-basis: 36px; width: 36px; height: 36px; }
  .gsg-contact-toggle__icon svg { width: 20px; height: 20px; }
  .gsg-contact-toggle__chevron { margin-left: 0; }
  .gsg-contact-panel { width: 100%; max-width: none; max-height: calc(100vh - 108px); max-height: calc(100dvh - 108px); padding: 25px 20px; border-radius: 18px; pointer-events: auto; }
  .gsg-contact-row { grid-template-columns: 46px minmax(0, 1fr); gap: 16px; }
  .gsg-contact-icon { width: 46px; height: 46px; }
  .gsg-contact-icon svg { width: 23px; height: 23px; }
  .gsg-contact-widget .gsg-contact-phone { font-size: 19px; }
}

@media (max-width: 360px) {
  .gsg-contact-widget .gsg-contact-phone { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .gsg-contact-panel { animation: none; }
  .gsg-contact-widget *, .gsg-contact-widget *::before, .gsg-contact-widget *::after { transition: none !important; }
}
