/* Shared, optional quick-contact controls for all five public pages. */
:root {
  --quick-contact-edge: 24px;
  --quick-contact-height: 52px;
  --quick-contact-gap: 10px;
  --quick-contact-clearance: calc(var(--quick-contact-height) * 2 + var(--quick-contact-gap) + var(--quick-contact-edge) * 2);
}
.quick-contact {
  position: fixed;
  z-index: 30;
  right: max(var(--quick-contact-edge), env(safe-area-inset-right));
  bottom: calc(var(--quick-contact-edge) + env(safe-area-inset-bottom));
  display: grid;
  gap: var(--quick-contact-gap);
  font-family: var(--zto-font-body, "Wanted Sans", sans-serif);
  color: var(--zto-text-primary, #102a43);
  line-height: 1.5;
}
.quick-contact *, .quick-contact *::before, .quick-contact *::after { box-sizing: border-box; }
.quick-contact [hidden] { display: none !important; }
.quick-contact__action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 152px;
  min-height: var(--quick-contact-height);
  padding: 12px 16px;
  border: 1px solid #dbe7ef;
  border-radius: var(--zto-web-action-radius, 13px);
  background: #fff;
  color: #102a43;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 18px #102a4314;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.quick-contact__action svg { flex: none; }
.quick-contact__action::-webkit-details-marker { display: none; }
.quick-contact__action:hover { background: #f2f8fc; border-color: #b4d8f0; }
.quick-contact__action:active { background: #e7f3fb; }
.quick-contact__kakao { background: #fee500; border-color: #fee500; color: #191919; }
.quick-contact__kakao:hover { background: #f5dc00; border-color: #f5dc00; }
.quick-contact__kakao:active { background: #e8d000; border-color: #e8d000; }
.quick-contact__mobile-phone, .quick-contact__desktop-phone > summary { background: #15803d; border-color: #15803d; color: #fff; }
.quick-contact__mobile-phone:hover, .quick-contact__desktop-phone > summary:hover { background: #166534; border-color: #166534; }
.quick-contact__mobile-phone:active, .quick-contact__desktop-phone > summary:active { background: #14532d; border-color: #14532d; }
.quick-contact a:focus-visible, .quick-contact button:focus-visible, .quick-contact summary:focus-visible {
  outline: 3px solid var(--zto-text-action, #0664a6);
  outline-offset: 4px;
}
.quick-contact__mobile-phone { display: none; }
.quick-contact__panel {
  position: absolute;
  right: calc(100% + 12px);
  bottom: 0;
  width: 280px;
  padding: 20px;
  border: 1px solid #dbe7ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px #102a431a;
}
.quick-contact__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quick-contact__heading strong { font-size: 15px; font-weight: 650; }
.quick-contact__close { width: 44px; height: 44px; padding: 0; margin: -12px -12px -8px 0; border: 0; background: none; color: #52677a; font: inherit; font-size: 26px; cursor: pointer; }
.quick-contact__number { display: block; width: fit-content; margin-top: 14px; font-family: var(--zto-font-latin, "Manrope", sans-serif); font-size: 23px; font-weight: 650; letter-spacing: -.025em; color: #102a43; text-decoration: none; user-select: text; }
.quick-contact__number:hover { text-decoration: underline; text-underline-offset: 5px; }
.quick-contact__copy { width: 100%; min-height: 44px; margin-top: 16px; padding: 10px 12px; border: 1px solid #b4d8f0; border-radius: 8px; background: #f2f8fc; color: #102a43; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.quick-contact__copy:hover { background: #e7f3fb; }
.quick-contact__copy:disabled { cursor: wait; opacity: .65; }
.quick-contact .quick-contact__hint, .quick-contact .quick-contact__status { margin: 12px 0 0; font-size: 13px; line-height: 1.65; color: #52677a; }
.quick-contact__status:empty { display: none; }
/* Keep the final content scrollable above the fixed controls. */
body:has(.quick-contact) .site-footer { padding-bottom: var(--quick-contact-clearance); }
/* The hero's existing pause control remains separately reachable. */
body:has(.quick-contact) .hero-motion-toggle { right: 176px; }
body:has(dialog[open], .mobile-nav[open], .menu-toggle[aria-expanded="true"]) .quick-contact { visibility: hidden; pointer-events: none; }
@media (width < 900px) {
  :root { --quick-contact-edge: 16px; --quick-contact-height: 56px; --quick-contact-gap: 8px; }
  .quick-contact__action { width: 56px; padding: 7px 3px; flex-direction: column; gap: 3px; border-radius: 15px; font-size: 11px; line-height: 1.3; }
  .quick-contact__long, .quick-contact__desktop-phone { display: none; }
  .quick-contact__mobile-phone { display: flex; }
  .quick-contact[data-hero-visible="true"] { visibility: hidden; pointer-events: none; }
  body:has(.quick-contact) .hero-motion-toggle { right: 76px; }
  body:has(input:focus, textarea:focus, select:focus, [contenteditable="true"]:focus) .quick-contact { visibility: hidden; pointer-events: none; }
  /* Opt in per page when floating controls would cover a reading/list surface. */
  .quick-contact[data-mobile-placement="inline"] {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-bottom: 24px;
  }
  .quick-contact[data-mobile-placement="inline"] .quick-contact__action {
    width: 100%;
    min-height: 48px;
    padding: 10px 8px;
    flex-direction: row;
    gap: 6px;
    font-size: 13px;
    border-radius: 8px;
    box-shadow: none;
  }
  .quick-contact[data-mobile-placement="inline"] .quick-contact__long { display: inline; }
  body:has(.quick-contact[data-mobile-placement="inline"]) .site-footer { padding-bottom: 24px; }
}
@media print { .quick-contact { display: none; } body:has(.quick-contact) .site-footer { padding-bottom: 24px; } }
