#mc-customer-service {
    --mc-service-ink: #123b34;
    --mc-service-accent: #67e2bf;
    --mc-service-text: #193c35;
    --mc-service-muted: #537067;
    --mc-service-surface: #f4f8f6;
    position: fixed;
    left: 20px;
    bottom: 24px;
    z-index: 1040;
    width: 52px;
    height: 154px;
    margin: 0;
    padding: 0;
    color: var(--mc-service-text);
    font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    text-align: left;
    letter-spacing: normal;
}
#mc-customer-service, #mc-customer-service * { box-sizing: border-box; }
#mc-customer-service [hidden] { display: none !important; }
#mc-customer-service button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    line-height: 1.5;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
    touch-action: manipulation;
}
#mc-customer-service button:focus-visible {
    outline: 3px solid #168d72;
    outline-offset: 4px;
}
#mc-customer-service p, #mc-customer-service h2 { margin: 0; padding: 0; color: inherit; }
#mc-customer-service svg { display: block; flex-shrink: 0; vertical-align: middle; fill: none; }
#mc-customer-service svg path { fill: none; }
#mc-customer-service .mc-service-launcher {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 52px;
    height: 154px;
    padding: 10px 8px;
    border: 1px solid rgba(103, 226, 191, .8);
    border-radius: 27px;
    background: linear-gradient(155deg, #184b41, #102f2a);
    color: #b8fce5;
    box-shadow: 0 7px 24px rgba(15, 55, 43, .2), inset 0 0 0 3px rgba(112, 229, 189, .055);
    transition: transform .18s ease, box-shadow .18s ease;
}
#mc-customer-service .mc-service-launcher:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(15, 55, 43, .26); }
#mc-customer-service .mc-service-launcher:active { transform: translateY(0); }
#mc-customer-service .mc-service-launcher:focus-visible { outline-color: var(--mc-service-accent); }
#mc-customer-service .mc-service-launcher-text { writing-mode: vertical-rl; text-orientation: upright; font-size: 15px; font-weight: 600; letter-spacing: 3px; line-height: 1; }
#mc-customer-service .mc-service-launcher-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--mc-service-accent); opacity: .75; }
#mc-customer-service[data-open="true"] .mc-service-launcher { visibility: hidden; pointer-events: none; }
#mc-customer-service .mc-service-panel {
    position: absolute;
    left: 0;
    bottom: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 360px;
    max-width: calc(100vw - 40px);
    max-height: min(80vh, calc(100vh - 48px));
    max-height: min(80dvh, calc(100dvh - 48px));
    overflow: hidden;
    border: 1px solid #d4e6de;
    border-radius: 20px;
    background: var(--mc-service-surface);
    box-shadow: 0 16px 55px rgba(16, 46, 34, .22), 0 3px 10px rgba(16, 46, 34, .08);
    animation: mc-service-enter .18s ease-out;
}
#mc-customer-service .mc-service-header { display: flex; align-items: center; gap: 11px; min-height: 80px; padding: 14px 8px 14px 18px; background: var(--mc-service-ink); color: #f4fff9; }
#mc-customer-service .mc-service-avatar { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid rgba(130, 231, 198, .45); border-radius: 14px; background: rgba(126, 234, 195, .08); color: #b8fce5; }
#mc-customer-service .mc-service-heading { flex: 1; min-width: 0; }
#mc-customer-service .mc-service-heading h2 { font-size: 17px; font-weight: 650; line-height: 1.5; }
#mc-customer-service .mc-service-heading p { margin-top: 2px; font-size: 12px; line-height: 1.6; color: #c0ded1; }
#mc-customer-service .mc-service-close, #mc-customer-service .mc-service-qr-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; }
#mc-customer-service .mc-service-close:hover { background: rgba(255, 255, 255, .1); }
#mc-customer-service .mc-service-close:focus-visible { outline-color: var(--mc-service-accent); outline-offset: -3px; }
#mc-customer-service .mc-service-messages { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 17px 18px 20px; scrollbar-width: thin; scrollbar-color: #bdd4c9 transparent; }
#mc-customer-service .mc-service-message-label { margin: 0 0 7px 3px; font-size: 12px; color: var(--mc-service-muted); }
#mc-customer-service .mc-service-bubble { padding: 13px 15px; border: 1px solid #e0ebe5; border-radius: 3px 15px 15px 15px; background: #fff; font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
#mc-customer-service #mc-service-greeting { min-height: 54px; }
#mc-customer-service .mc-service-cursor { display: inline-block; width: 2px; height: 15px; margin-left: 4px; background: #238c70; vertical-align: -2px; animation: mc-service-cursor 1s step-end infinite; }
#mc-customer-service .mc-service-contacts { margin-top: 11px; padding-top: 9px; padding-bottom: 9px; }
#mc-customer-service .mc-service-contacts p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; min-height: 30px; }
#mc-customer-service .mc-service-contacts p span { flex: 0 0 64px; color: var(--mc-service-muted); font-size: 13px; }
#mc-customer-service .mc-service-contacts strong { font-size: 15px; font-weight: 650; color: #165f4b; }
#mc-customer-service .mc-service-qr-message { margin-top: 11px; }
#mc-customer-service .mc-service-qr-message > p:first-child { margin-bottom: 10px; font-size: 13px; color: var(--mc-service-text); }
#mc-customer-service .mc-service-qr-open { display: block; width: 152px; max-width: 100%; overflow: hidden; border: 1px solid #e2eae5; border-radius: 10px; background: #fff; }
#mc-customer-service .mc-service-qr-open img { display: block; width: 100%; height: auto; max-width: 100%; margin: 0; border: 0; border-radius: 0; }
#mc-customer-service .mc-service-qr-hint { display: flex; align-items: center; gap: 5px; margin-top: 8px; color: var(--mc-service-muted); font-size: 12px; }
#mc-customer-service .mc-service-footer { padding: 10px 16px; border-top: 1px solid #e0ebe5; background: #eef5f0; color: var(--mc-service-muted); font-size: 12px; text-align: center; }
#mc-customer-service .mc-service-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#mc-customer-service .mc-service-qr-dialog {
    position: fixed;
    inset: 0;
    width: min(520px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 12px 20px 18px;
    overflow-y: auto;
    border: 1px solid #d8e6dd;
    border-radius: 20px;
    background: #fff;
    color: var(--mc-service-text);
    font: inherit;
    text-align: center;
    box-shadow: 0 22px 80px rgba(0, 0, 0, .3);
}
#mc-customer-service .mc-service-qr-dialog:not([open]) { display: none; }
#mc-customer-service .mc-service-qr-dialog::backdrop { background: rgba(12, 27, 22, .7); }
#mc-customer-service .mc-service-qr-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#mc-customer-service .mc-service-qr-dialog-header h2 { padding-left: 4px; font-size: 16px; font-weight: 650; }
#mc-customer-service .mc-service-qr-close:hover { background: #edf5f0; }
#mc-customer-service #mc-service-qr-large { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); margin: 8px auto 12px; border: 0; border-radius: 0; object-fit: contain; }
#mc-customer-service .mc-service-qr-dialog > p { font-size: 14px; color: var(--mc-service-muted); }
#mc-customer-service .mc-service-qr-backdrop { position: fixed; inset: 0; z-index: 2147483646; background: rgba(12, 27, 22, .7); }
#mc-customer-service .mc-service-dialog-fallback { z-index: 2147483647; }
@keyframes mc-service-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mc-service-cursor { 50% { opacity: 0; } }
@media (max-width: 767px) {
    #mc-customer-service { left: 12px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 145px; }
    #mc-customer-service .mc-service-launcher { width: 48px; height: 145px; gap: 10px; }
    #mc-customer-service .mc-service-cat { width: 28px; height: 28px; }
    #mc-customer-service .mc-service-launcher-text { font-size: 14px; }
    #mc-customer-service .mc-service-panel { width: 360px; max-width: calc(100vw - 24px); max-height: min(80vh, calc(100vh - 104px)); max-height: min(80dvh, calc(100dvh - 104px - env(safe-area-inset-bottom, 0px))); border-radius: 18px; }
    #mc-customer-service .mc-service-messages { padding: 14px; }
    #mc-customer-service .mc-service-bubble { font-size: 15px; }
    #mc-customer-service .mc-service-qr-dialog { padding: 10px 12px 16px; }
}
@media (max-height: 480px) {
    #mc-customer-service .mc-service-header { min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
    #mc-customer-service .mc-service-footer { padding-top: 6px; padding-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    #mc-customer-service .mc-service-launcher { transition: none; }
    #mc-customer-service .mc-service-panel, #mc-customer-service .mc-service-cursor { animation: none; }
}
