/* /Components/Site/ContactWidget.razor.rz.scp.css */
/* Corner "Message us" widget. Sits inside .site, so the --s-* tokens and .s-field / .s-btn styles apply. */
.cw[b-xt9zbhdp5j] {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    font-family: var(--s-font);
}

.cw-launcher[b-xt9zbhdp5j] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 22px 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--s-action);
    color: #fff;
    font: 600 1rem/1 var(--s-font);
    box-shadow: var(--s-shadow-lg);
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
}
.cw-launcher:hover[b-xt9zbhdp5j] { background: var(--s-action-hover); }
.cw-launcher:focus-visible[b-xt9zbhdp5j] { outline: none; box-shadow: var(--s-focus), var(--s-shadow-lg); }
.cw.is-open .cw-launcher[b-xt9zbhdp5j] { width: 56px; padding: 0; justify-content: center; }

.cw-panel[b-xt9zbhdp5j] {
    width: min(380px, calc(100vw - 32px));
    max-height: calc(100vh - 120px);
    overflow: auto;
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius);
    box-shadow: var(--s-shadow-lg);
    animation: cw-in-b-xt9zbhdp5j .16s ease-out;
}

.cw-head[b-xt9zbhdp5j] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 18px 16px 20px;
    background: var(--s-navy);
    color: var(--s-on-navy);
    border-radius: var(--s-radius) var(--s-radius) 0 0;
}
.cw-title[b-xt9zbhdp5j] { margin: 0; font-size: 1.125rem; color: #fff !important; }
.cw-sub[b-xt9zbhdp5j] { margin: 4px 0 0; font-size: .875rem; color: var(--s-on-navy); }
.cw-close[b-xt9zbhdp5j] {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: -6px -6px 0 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.cw-close:hover[b-xt9zbhdp5j] { background: rgba(255, 255, 255, .12); }
.cw-close:focus-visible[b-xt9zbhdp5j] { outline: 2px solid #fff; outline-offset: 2px; }

.cw-body[b-xt9zbhdp5j] { padding: 18px 20px 20px; }
.cw-body[b-xt9zbhdp5j]  form { display: grid; gap: 14px; }
.cw-panel[b-xt9zbhdp5j]  .cw-message { min-height: 104px; }
.cw-done[b-xt9zbhdp5j] { display: grid; gap: 14px; }
.cw-send[b-xt9zbhdp5j] { width: 100%; justify-content: center; }
.cw-error[b-xt9zbhdp5j] { margin: 0; padding: 10px 12px; border-radius: var(--s-radius-sm); background: var(--s-danger-bg); color: var(--s-danger-ink); font-size: .9375rem; }

.cw-done[b-xt9zbhdp5j] { justify-items: center; text-align: center; padding-top: 26px; }
.cw-done p[b-xt9zbhdp5j] { margin: 0; color: var(--s-text); }
.cw-done__icon[b-xt9zbhdp5j] {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--s-green-bg);
    color: var(--s-green-ink);
}

@keyframes cw-in-b-xt9zbhdp5j { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 520px) {
    .cw[b-xt9zbhdp5j] { right: 16px; bottom: 16px; }
    .cw-launcher__text[b-xt9zbhdp5j] { display: none; }
    .cw-launcher[b-xt9zbhdp5j] { width: 56px; padding: 0; justify-content: center; }
    .cw-panel[b-xt9zbhdp5j] { max-height: calc(100vh - 100px); }
}

@media (prefers-reduced-motion: reduce) {
    .cw-panel[b-xt9zbhdp5j] { animation: none; }
    .cw-launcher[b-xt9zbhdp5j] { transition: none; }
}

@media print { .cw[b-xt9zbhdp5j] { display: none; } }
