/* Y5 contact desk: shipping-route details, clear form hierarchy, and calm motion. */
.y5-chat-launcher, .y5-chat-panel, .y5-chat-panel * { box-sizing: border-box; }
.y5-chat-launcher, .y5-chat-panel button, .y5-chat-panel input, .y5-chat-panel textarea { font-family: inherit; }
.y5-chat-launcher {
    position: fixed; right: 28px; bottom: 26px; z-index: 100;
    display: inline-flex; align-items: center; gap: 12px; min-height: 61px;
    padding: 9px 22px 9px 10px; border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 100px; background: #123340; color: #fff;
    box-shadow: 0 6px 16px rgba(7, 29, 37, .15), 0 20px 45px rgba(7, 29, 37, .18);
    font-size: 14px; font-weight: 700; letter-spacing: .01em; line-height: 1.2;
    cursor: pointer; transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}
.y5-chat-launcher:hover { transform: translateY(-3px); background: #1a4957; box-shadow: 0 15px 34px rgba(7, 29, 37, .25); }
.y5-chat-launcher:active { transform: translateY(0); }
.y5-chat-launcher-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; border-radius: 50%; background: #dfae62; color: #112e38; }
.y5-chat-launcher-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.y5-chat-launcher-label { white-space: nowrap; }
.y5-chat-launcher-arrow { width: 13px; height: 13px; opacity: .66; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .24s ease; }
.y5-chat-launcher:hover .y5-chat-launcher-arrow { transform: translate(2px, -2px); }
.y5-chat-launcher:focus-visible, .y5-chat-panel :focus-visible { outline: 3px solid #e5ae56; outline-offset: 3px; }
.y5-chat-panel {
    position: fixed; right: 28px; bottom: 100px; z-index: 101;
    width: min(424px, calc(100vw - 32px)); max-height: min(760px, calc(100dvh - 124px));
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid #d8e2e2; border-radius: 20px;
    background: #fbfcfb; color: #15313b;
    box-shadow: 0 28px 85px rgba(8, 34, 44, .23), 0 4px 16px rgba(8, 34, 44, .08);
    font-size: 14px; line-height: 1.5; isolation: isolate;
    transform-origin: 90% 100%; animation: y5-chat-appear .3s cubic-bezier(.22,1,.36,1) both;
}
.y5-chat-panel[hidden], .y5-chat-receipt[hidden], .y5-chat-status[hidden], .y5-chat-form[hidden], .y5-chat-intro[hidden] { display: none !important; }
.y5-chat-head {
    position: relative; flex: 0 0 auto; overflow: hidden; padding: 23px 26px 26px;
    background: #13323e; color: #fff;
}
.y5-chat-head::before {
    content: ''; position: absolute; pointer-events: none;
    width: 270px; height: 270px; right: -124px; top: -158px; border: 1px solid rgba(219, 172, 93, .16);
    border-radius: 50%; box-shadow: 0 0 0 34px rgba(219, 172, 93, .035), 0 0 0 67px rgba(219, 172, 93, .025);
}
.y5-chat-brand { position: relative; display: flex; align-items: center; gap: 11px; padding-right: 42px; }
.y5-chat-monogram {
    display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, .22); border-radius: 11px;
    background: rgba(255, 255, 255, .08); color: #efc782;
    font-size: 17px; font-weight: 800; letter-spacing: -.045em;
}
.y5-chat-eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #b4ced1; }
.y5-chat-brandline { display: block; margin-top: 2px; font-size: 12px; letter-spacing: .01em; color: #e6f0ef; }
.y5-chat-close {
    position: absolute; z-index: 2; right: 18px; top: 20px;
    display: grid; place-items: center; width: 37px; height: 37px;
    border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%;
    background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.y5-chat-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.y5-chat-close:hover { background: rgba(255, 255, 255, .2); transform: rotate(90deg); }
.y5-chat-route { position: absolute; right: 18px; bottom: -10px; width: 116px; height: 42px; opacity: .64; pointer-events: none; }
.y5-chat-head h2 {
    position: relative; margin: 25px 0 6px; max-width: 300px;
    font-size: clamp(25px, 3.2vw, 29px); font-weight: 750;
    letter-spacing: -.045em; line-height: 1.12; color: #fff;
}
.y5-chat-head > p { position: relative; margin: 0; max-width: 300px; color: #cbdcde; font-size: 13px; line-height: 1.5; }
.y5-chat-content { overflow: auto; overscroll-behavior: contain; padding: 24px 26px 24px; scrollbar-width: thin; scrollbar-color: #b9c9c9 transparent; }
.y5-chat-intro { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; margin-bottom: 22px; }
.y5-chat-intro-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #e7efee; color: #43666d; }
.y5-chat-intro-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.y5-chat-intro p { margin: 1px 0 0; color: #42606a; line-height: 1.58; font-size: 13px; }
.y5-chat-form { display: grid; gap: 15px; margin: 0; }
.y5-chat-field { display: grid; gap: 7px; color: #1c3b46; font-size: 12px; font-weight: 750; letter-spacing: .01em; }
.y5-chat-field input, .y5-chat-field textarea {
    display: block; width: 100%; min-width: 0; margin: 0; padding: 12px 14px;
    border: 1px solid #c8d5d7; border-radius: 10px; outline: none;
    background: #fff; color: #15313b; font-size: 15px; font-weight: 400;
    line-height: 1.5; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.y5-chat-field input { min-height: 47px; }
.y5-chat-field textarea { min-height: 101px; resize: vertical; max-height: 260px; }
.y5-chat-field input::placeholder, .y5-chat-field textarea::placeholder { color: #789098; opacity: 1; }
.y5-chat-field input:hover, .y5-chat-field textarea:hover { border-color: #92b1b4; }
.y5-chat-field input:focus, .y5-chat-field textarea:focus { border-color: #176174; box-shadow: 0 0 0 3px rgba(17, 98, 119, .12); }
.y5-chat-note { display: flex; align-items: start; gap: 7px; margin: 0; color: #607982; line-height: 1.5; font-size: 11.5px; }
.y5-chat-note svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; stroke: #64828a; stroke-width: 1.8; fill: none; }
.y5-chat-submit {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 52px; width: 100%; padding: 13px 17px; margin-top: 1px;
    border: 0; border-radius: 11px; background: #14536a; color: #fff;
    box-shadow: 0 5px 13px rgba(18, 83, 106, .13); font-size: 14px; font-weight: 750; cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.y5-chat-submit:hover:not(:disabled) { background: #0d4054; transform: translateY(-2px); box-shadow: 0 9px 20px rgba(18, 83, 106, .2); }
.y5-chat-submit:active:not(:disabled) { transform: translateY(0); }
.y5-chat-submit svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.y5-chat-submit:hover:not(:disabled) svg { transform: translate(3px, -2px); }
.y5-chat-submit:disabled { opacity: .58; cursor: not-allowed; box-shadow: none; }
.y5-chat-submit[data-busy='true'] svg { animation: y5-chat-spin 1s linear infinite; }
.y5-chat-status { margin: 0 0 14px; border: 1px solid #f0d4a6; border-radius: 10px; padding: 12px 14px; background: #fff7e9; color: #6a431b; font-size: 13px; line-height: 1.55; }
.y5-chat-receipt { display: grid; justify-items: start; gap: 14px; padding: 11px 0 17px; animation: y5-chat-receipt-in .36s ease-out both; }
.y5-chat-receipt-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: #e1f0e7; color: #176445; }
.y5-chat-receipt-mark svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.y5-chat-receipt h3 { margin: 0; font-size: 23px; letter-spacing: -.035em; line-height: 1.2; color: #173946; }
.y5-chat-receipt p { margin: 0; color: #4a666f; line-height: 1.6; }
.y5-chat-receipt-ref { display: block; padding: 9px 12px; background: #edf3f2; border-radius: 9px; color: #32525a; font-size: 12px; font-variant-numeric: tabular-nums; }
.y5-chat-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 16px 26px 18px; border-top: 1px solid #e4eceb; background: #f6f9f8;
    color: #627c83; font-size: 12px;
}
.y5-chat-footer a { color: #1a5a6b; font-weight: 750; text-decoration: none; text-underline-offset: 4px; }
.y5-chat-footer a:hover { text-decoration: underline; }
.y5-chat-footer a + a { color: #6b8389; font-size: 11.5px; font-weight: 500; }
@keyframes y5-chat-appear { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes y5-chat-receipt-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes y5-chat-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
    .y5-chat-launcher { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); min-height: 57px; padding: 7px 17px 7px 7px; }
    .y5-chat-launcher-icon { width: 42px; height: 42px; flex-basis: 42px; }
    .y5-chat-panel { left: 12px; right: 12px; bottom: calc(13px + env(safe-area-inset-bottom)); width: auto; max-height: calc(100dvh - 26px - env(safe-area-inset-bottom)); border-radius: 18px; transform-origin: 100% 100%; }
    .y5-chat-is-open .y5-chat-launcher { visibility: hidden; pointer-events: none; }
    .y5-chat-head { padding: 19px 21px 21px; }
    .y5-chat-head h2 { margin-top: 19px; font-size: 26px; }
    .y5-chat-route { right: 14px; bottom: -12px; width: 91px; }
    .y5-chat-content { padding: 20px 21px 19px; }
    .y5-chat-intro { margin-bottom: 17px; }
    .y5-chat-form { gap: 12px; }
    .y5-chat-footer { padding: 13px 21px 16px; }
}
@media (max-width: 360px) { .y5-chat-panel { left: 7px; right: 7px; } .y5-chat-route { opacity: .3; } .y5-chat-head, .y5-chat-content { padding-left: 17px; padding-right: 17px; } }
@media (max-height: 590px) and (min-width: 601px) { .y5-chat-panel { bottom: 12px; max-height: calc(100dvh - 24px); } }
@media (prefers-reduced-motion: reduce) {
    .y5-chat-panel, .y5-chat-receipt, .y5-chat-submit[data-busy='true'] svg { animation: none !important; }
    .y5-chat-launcher, .y5-chat-launcher-arrow, .y5-chat-close, .y5-chat-submit, .y5-chat-submit svg,
    .y5-chat-field input, .y5-chat-field textarea { transition: none !important; }
}
