.xmc-contact {
  --xc-ink: #0b0b0b;
  --xc-paper: #f1f1ed;
  --xc-line: #d8d8d3;
  --xc-red: #c8102e;
  --xc-muted: #5b5b57;
  --xc-consent-offset: 0px;
  position: fixed;
  right: 20px;
  bottom: max(24px, env(safe-area-inset-bottom), var(--xc-consent-offset));
  z-index: 75;
  font-family: 'Public Sans', sans-serif;
  color: var(--xc-ink);
  color-scheme: light;
  line-height: 1.5;
}
.xmc-contact *, .xmc-contact *::before, .xmc-contact *::after { box-sizing: border-box; }
.xmc-contact button, .xmc-contact a { -webkit-tap-highlight-color: transparent; }
.xmc-contact button { cursor: pointer; font: inherit; }
.xmc-contact svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.xmc-contact :focus-visible { outline: 3px solid var(--xc-red); outline-offset: 4px; }
.xmc-contact-actions { display: grid; gap: 9px; }
.xmc-contact-action { position: relative; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid #ffffff47; border-radius: 50%; color: #fff; box-shadow: 0 3px 14px #0003; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.xmc-contact-whatsapp { background: #087f46; }
.xmc-contact-wechat { background: #087f63; }
.xmc-contact-inquiry { background: var(--xc-red); }
.xmc-contact-action:hover { transform: translateY(-2px); box-shadow: 0 5px 18px #0004; }
.xmc-contact-action span { position: absolute; right: 62px; padding: 7px 12px; border-radius: 4px; background: var(--xc-ink); color: #fff; white-space: nowrap; font-size: 12px; font-weight: 500; opacity: 0; pointer-events: none; transform: translateX(4px); transition: opacity .16s ease, transform .16s ease; }
.xmc-contact-action:hover span, .xmc-contact-action:focus-visible span { opacity: 1; transform: none; }
.xmc-contact-toggle { display: none; }
.xmc-contact-dialog { position: fixed; inset: auto 86px 24px auto; width: min(430px, calc(100vw - 112px)); max-width: none; max-height: calc(100dvh - 48px); margin: 0; padding: 0; border: 1px solid var(--xc-line); border-radius: 14px; background: var(--xc-paper); color: var(--xc-ink); box-shadow: 0 16px 64px #0006; overflow: auto; overscroll-behavior: contain; }
.xmc-contact-dialog::backdrop { background: #0005; }
.xmc-contact-header { position: sticky; top: 0; z-index: 1; padding: 23px 54px 22px 24px; background: var(--xc-ink); color: #fff; border-top: 3px solid var(--xc-red); }
.xmc-contact-eyebrow { margin: 0 0 8px; color: #c4c4bd; font-size: 10px; font-weight: 600; letter-spacing: .16em; }
.xmc-contact-header h2 { margin: 0; color: #fff; font-family: Archivo, sans-serif; font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -.03em; }
.xmc-contact-close { position: absolute; top: 13px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; }
.xmc-contact-close:hover { background: #ffffff1f; }
.xmc-contact-close svg { width: 20px; height: 20px; }
.xmc-contact-body { padding: 20px 24px 22px; }
.xmc-contact [hidden] { display: none !important; }
.xmc-contact-intro { margin: 0 0 15px; font-size: 13px; line-height: 1.6; color: var(--xc-muted); }
.xmc-contact-context { margin: 0 0 16px; padding: 10px 12px; border-left: 2px solid var(--xc-red); background: #fff; }
.xmc-contact-context span { display: block; color: var(--xc-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.xmc-contact-context strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; color: var(--xc-ink); font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.xmc-contact-form label { display: block; margin: 11px 0 5px; font-size: 12px; font-weight: 600; }
.xmc-contact-form label > span { color: var(--xc-red); }
.xmc-contact-form small { color: var(--xc-muted); font-size: 10px; font-weight: 400; }
.xmc-contact-form input:not([type=hidden]), .xmc-contact-form textarea { display: block; width: 100%; min-width: 0; margin: 0; padding: 9px 11px; border: 1px solid #b8b8b1; border-radius: 6px; background: #fff; color: var(--xc-ink); caret-color: var(--xc-ink); font: inherit; font-size: 14px; line-height: 1.4; }
.xmc-contact-form textarea { resize: vertical; min-height: 86px; max-height: 220px; }
.xmc-contact-form input::placeholder, .xmc-contact-form textarea::placeholder { color: var(--xc-muted); opacity: 1; }
.xmc-contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.xmc-contact-fields > div { min-width: 0; }
.xmc-contact-form .xmc-contact-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.xmc-contact-status { margin: 10px 0; font-size: 12px; color: var(--xc-ink); overflow-wrap: anywhere; }
.xmc-contact-status p, .xmc-contact-status a { color: inherit; }
.xmc-contact-status:empty { display: none; }
.xmc-contact-status .text-link { min-height: 36px; font-size: 12px; text-decoration: underline; }
.xmc-contact-send { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 46px; margin-top: 16px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--xc-red); color: #fff; font-weight: 600 !important; font-size: 13px !important; }
.xmc-contact-send:hover { background: #a50d26; }
.xmc-contact-send:disabled { opacity: .65; cursor: wait; }
.xmc-contact-send span { font-size: 18px; line-height: 1; }
.xmc-contact-privacy, .xmc-contact-note { margin: 10px 0 0; font-size: 11px; line-height: 1.6; color: var(--xc-muted); }
.xmc-contact-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.xmc-contact-email { display: inline-flex; align-items: center; min-height: 40px; margin-top: 4px; color: var(--xc-ink); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.xmc-contact-qr { text-align: center; }
.xmc-contact-qr-frame { position: relative; width: 260px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; overflow: hidden; border: 1px solid var(--xc-line); background: #fff; }
/* Original 828 × 1792 image, contact QR crop (189, 849, 450, 450). */
.xmc-contact-qr-frame img { position: absolute; display: block; width: 184%; max-width: none; height: auto; left: -42%; top: -188.666667%; }
.xmc-contact-success { padding-top: 30px; padding-bottom: 26px; text-align: center; }
.xmc-contact-success-icon { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%; background: #e0f2e8; color: #087f46; }
.xmc-contact-success-icon svg { width: 34px; height: 34px; stroke-width: 2.2; }
.xmc-contact-success h3 { margin: 0 0 12px; color: var(--xc-ink); font-size: 28px; line-height: 1.25; letter-spacing: -.03em; }
.xmc-contact-success > p { margin: 0 0 24px; color: var(--xc-muted); font-size: 14px; line-height: 1.7; }
.xmc-contact-success .xmc-contact-send { justify-content: center; }
.xmc-contact-again { margin-top: 16px; min-height: 40px; padding: 4px; border: 0; background: transparent; color: var(--xc-muted); font-size: 12px !important; text-decoration: underline; text-underline-offset: 3px; }
.xmc-contact-number { margin: 16px 0 12px; color: var(--xc-ink); font-size: 17px; font-weight: 600; letter-spacing: .025em; user-select: all; }
.xmc-contact-qr-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
.xmc-contact-qr-actions > * { min-height: 44px; padding: 11px 12px; border: 1px solid #b8b8b1; border-radius: 6px; background: #fff; color: var(--xc-ink); font-size: 12px !important; text-decoration: none; }
.xmc-contact-instructions { margin: 14px 0 0; color: var(--xc-muted); font-size: 11px; line-height: 1.6; }
.xmc-contact-protection:not(:empty) { margin-top: 14px; max-width: 100%; }
.xmc-contact.is-consent-tight .xmc-contact-toggle { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 17px; border: 1px solid #ffffff40; border-radius: 25px; background: var(--xc-ink); color: #fff; box-shadow: 0 3px 14px #0003; font-size: 12px; }
.xmc-contact.is-consent-tight .xmc-contact-actions { display: none; }
@media (max-width: 640px) {
  .xmc-contact { right: 16px; bottom: max(18px, env(safe-area-inset-bottom), var(--xc-consent-offset)); }
  .xmc-contact-toggle { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 17px; border: 1px solid #ffffff40; border-radius: 25px; background: var(--xc-ink); color: #fff; box-shadow: 0 3px 14px #0003; font-size: 12px; }
  .xmc-contact-toggle svg { width: 21px; height: 21px; }
  .xmc-contact-actions { display: none; justify-items: end; margin-bottom: 12px; }
  .xmc-contact.is-expanded .xmc-contact-actions { display: grid; }
  .xmc-contact-action { width: 48px; height: 48px; }
  .xmc-contact-action span { opacity: 1; transform: none; right: 58px; }
  .xmc-contact-dialog { inset: auto 8px max(8px, env(safe-area-inset-bottom)) 8px; width: auto; max-height: calc(100dvh - 24px); border-radius: 12px; }
  .xmc-contact-header { padding: 18px 54px 17px 20px; }
  .xmc-contact-body { padding: 16px 20px 20px; }
  .xmc-contact-form input:not([type=hidden]), .xmc-contact-form textarea { font-size: 16px; }
  .xmc-contact-qr-frame { width: 260px; }
}
@media (max-width: 380px) { .xmc-contact-fields { grid-template-columns: 1fr; gap: 0; } }
.xmc-contact.is-consent-tight.is-expanded .xmc-contact-toggle { width: 48px; padding: 0; justify-content: center; }
.xmc-contact.is-consent-tight.is-expanded .xmc-contact-toggle > span { display: none; }
.xmc-contact.is-consent-tight.is-expanded .xmc-contact-actions { position: absolute; right: 60px; bottom: 0; display: flex; gap: 8px; margin: 0; }
.xmc-contact.is-consent-tight .xmc-contact-action { width: 48px; height: 48px; }
.xmc-contact.is-consent-tight .xmc-contact-action span { display: none; }
@media (prefers-reduced-motion: reduce) {
  .xmc-contact *, .xmc-contact *::before, .xmc-contact *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) { .xmc-contact-action, .xmc-contact-toggle { border-color: ButtonText; } }
@media print { .xmc-contact { display: none; } }
