#communication-center,.comm-auto{--comm-bg:#f8fafc;--comm-card:#fff;--comm-ink:#172b44;--comm-muted:#5e7085;--comm-line:#d6e0eb;--comm-blue:#245b99;color:var(--comm-ink)}
html[data-theme=dark] #communication-center,html[data-theme=dark] .comm-auto{--comm-bg:#0e1c2e;--comm-card:#13263c;--comm-ink:#eef5fc;--comm-muted:#a5b7cb;--comm-line:#30465f;--comm-blue:#a4caff}
#communication-center [hidden] { display: none !important; }

.comm-rail {
    position: fixed;
    z-index: 65;
    inset-block: var(--comm-rail-top, calc(var(--desktop-header-height, 121px) + 8px)) 8px;
    inset-inline-end: 0;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    gap: 5px;
    padding-inline-start: 7px;
    overflow: auto;
    scrollbar-width: thin;
    pointer-events: none;
}

.comm-rail > :is(.comm-tab, .quick-quote-tab, .security-alert__trigger) {
    position: static;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    width: 44px;
    min-height: 0;
    padding: 10px 6px;
    border: 1px solid var(--tab-edge, transparent);
    border-right: 0;
    border-radius: 9px 0 0 9px;
    background: var(--accent);
    color: var(--tab-ink, #fff);
    box-shadow: 0 3px 11px #10233e24;
    font: inherit;
    font-size: .83rem;
    font-weight: 780;
    letter-spacing: 0;
    line-height: 1.15;
    white-space: nowrap;
    writing-mode: vertical-rl;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
}

.comm-rail > :is(.comm-tab, .quick-quote-tab, .security-alert__trigger):hover {
    background: var(--accent);
    filter: brightness(.92);
    transform: none;
}

#communication-center .comm-rail > :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
}

.comm-rail .security-alert__trigger { --accent: var(--ps-color-invoice, #A61B35); }
.comm-tab--holidays, .comm-category--holidays { --accent: var(--ps-color-holiday, #176148); }
.comm-tab--opportunities, .comm-category--opportunities {
    --accent: var(--ps-color-sale, #F5B82E);
    --tab-ink: var(--ps-color-ink, #10233e);
}
.comm-tab--material, .comm-category--material {
    --accent: var(--ps-color-material, #E4EDF5);
    --tab-edge: var(--ps-color-material-border, #8298ae);
    --tab-ink: var(--ps-color-ink, #10233e);
}
.comm-rail .quick-quote-tab { --accent: var(--ps-color-quote, #2563EB); }

.comm-tab__icon { flex: none; width: 17px; height: 17px; }
.comm-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 20px;
    padding: 1px 3px;
    border: 1px solid currentColor;
    border-radius: 99px;
    font-size: .72rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    writing-mode: horizontal-tb;
}

.comm-mobile { display: none; }

.comm-sale-directory {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin-bottom: 16px;
    padding: 8px 12px;
    border: 1px solid var(--ps-color-sale, #F5B82E);
    border-radius: 8px;
    background: var(--ps-color-sale-surface, #FFF6DF);
    color: var(--ps-color-ink, #10233e);
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none;
}

.comm-sale-directory:hover { text-decoration: underline; }
.comm-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(560px,100%);max-width:100%;height:100dvh;max-height:100dvh;border:0;border-left:1px solid var(--comm-line);background:var(--comm-bg);color:var(--comm-ink);padding:32px;overflow:auto;box-sizing:border-box;overscroll-behavior:contain}.comm-drawer::backdrop{background:#07152580;backdrop-filter:blur(2px)}html.comm-open,html.comm-open body{overflow:hidden}.comm-heading{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;border-bottom:1px solid var(--comm-line);padding-bottom:22px;margin-bottom:22px}.comm-kicker,.comm-eyebrow{font-size:10px;font-weight:800;letter-spacing:.12em;color:var(--comm-muted);line-height:1.5}.comm-heading h2{font-size:28px;letter-spacing:-.035em;margin:9px 0 0;line-height:1.15;color:var(--comm-ink)}.comm-close{flex-shrink:0;display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--comm-line);border-radius:8px;background:var(--comm-card);color:var(--comm-ink);font:24px/1 sans-serif;cursor:pointer}.comm-categories{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:26px}.comm-categories button{border:1px solid var(--comm-line);border-radius:6px;padding:8px 10px;background:var(--comm-card);color:var(--comm-muted);font:600 11px/1.2 inherit;font-family:inherit;cursor:pointer}.comm-categories button[aria-pressed=true]{background:var(--comm-ink);color:var(--comm-bg);border-color:var(--comm-ink)}.comm-message{border:1px solid var(--comm-line);border-top:3px solid var(--accent,#527da7);border-radius:10px;padding:22px;background:var(--comm-card);margin-bottom:15px;overflow-wrap:anywhere}.comm-message h3,[data-comm-material] h3,.comm-form h3{font-size:22px;line-height:1.25;letter-spacing:-.025em;margin:10px 0 13px;color:var(--comm-ink)}.comm-message p,[data-comm-material] p{font-size:14px;line-height:1.7;color:var(--comm-muted);margin:0 0 18px;white-space:pre-line}.comm-message a,.comm-message .comm-link{font-family:inherit;font-size:13px;font-weight:750;color:var(--comm-blue);text-decoration:none;background:none;border:0;padding:0;cursor:pointer}.comm-message a:hover{text-decoration:underline}.comm-primary{display:inline-flex;align-items:center;justify-content:center;gap:16px;padding:13px 18px;background:#204f86;border:1px solid #204f86;color:#fff;border-radius:8px;font-family:inherit;font-size:13px;font-weight:750;cursor:pointer;min-height:45px}.comm-primary:disabled{opacity:.6;cursor:wait}.comm-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.comm-fields label{display:grid;gap:7px;font-size:12px;font-weight:700;min-width:0}.comm-fields input,.comm-fields textarea{width:100%;box-sizing:border-box;min-width:0;border:1px solid var(--comm-line);border-radius:7px;background:var(--comm-card);color:var(--comm-ink);padding:10px;font:inherit;font-size:16px;line-height:1.4}.comm-fields input[type=file]{font-size:12px}.comm-fields small,.comm-privacy{color:var(--comm-muted);font-size:11px;font-weight:400;line-height:1.5}.comm-wide{grid-column:1/-1}.comm-privacy{margin:20px 0 12px}.comm-privacy a,.comm-footer a{color:var(--comm-blue)}.comm-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.comm-footer{margin-top:30px;border-top:1px solid var(--comm-line);padding-top:20px;font-size:12px;line-height:1.8;color:var(--comm-muted)}.comm-footer a{display:block;font-weight:750}.comm-auto{position:fixed;z-index:64;right:65px;bottom:26px;width:min(355px,calc(100vw - 100px));color:var(--comm-ink)}.comm-auto .comm-message{box-shadow:0 15px 45px #07152520}.comm-auto .comm-close{float:right;margin:0 0 8px 8px;width:28px;height:28px}.comm-auto--bar{left:25px;right:65px;width:auto}.comm-auto--bar .comm-message{padding:14px 20px}.comm-auto--bar h3{font-size:17px}.comm-auto--bar p{display:inline;margin-right:20px}.comm-auto--inline{position:static;width:auto;margin:20px 0}.comm-auto--inline .comm-message{box-shadow:none}#communication-center :focus-visible{outline:3px solid #74a7da;outline-offset:3px}
@media(max-width:767px){.comm-rail{display:none}.comm-mobile{display:flex;align-items:center;justify-content:center;gap:6px;position:fixed;z-index:65;left:12px;bottom:calc(12px + env(safe-area-inset-bottom) + var(--cookie-banner-height,0px));width:calc(46% - 16px);height:50px;border:1px solid var(--comm-line);border-radius:11px;background:var(--comm-card);color:var(--comm-ink);font:700 13px/1.2 inherit;font-family:inherit;box-shadow:0 8px 24px #07152515}.quick-quote-mobile-cta{left:46%!important;right:12px!important;padding:0 8px!important;font-size:13px!important}.comm-drawer{inset:auto 0 0;width:100%;height:auto;max-height:92dvh;border:1px solid var(--comm-line);border-bottom:0;border-radius:20px 20px 0 0;padding:22px 20px calc(22px + env(safe-area-inset-bottom))}.comm-heading{margin-bottom:16px;padding-bottom:16px}.comm-heading h2{font-size:25px}.comm-kicker{font-size:8px}.comm-message{padding:18px}.comm-fields{grid-template-columns:1fr}.comm-auto{left:12px;right:12px;bottom:calc(76px + env(safe-area-inset-bottom) + var(--cookie-banner-height,0px));width:auto}.comm-auto--inline{margin:15px 0}.comm-auto--bar p{display:block}.comm-categories{gap:6px}.comm-categories button{font-size:11px;padding:8px}}
/* Shared geometry with the existing Quick quote drawer. */
.comm-drawer{width:min(620px,100%);padding:28px;background:#f6f9fd;box-shadow:-20px 0 52px #0f172a38}
html[data-theme=dark] .comm-drawer{background:#0d1b2e}
.comm-close{width:42px;height:42px;border-radius:11px}.comm-heading h2{font-size:29px}
.comm-form{padding:24px;border:1px solid var(--comm-line);background:var(--comm-card);border-radius:15px;margin-top:20px}
.comm-intro{font-size:14px;line-height:1.7;color:var(--comm-muted);margin:0 0 22px}
.comm-fields input:not([type=checkbox]),.comm-fields textarea{padding:12px;border-radius:9px;font-size:15px}
.comm-fields input[type=checkbox]{width:18px;height:18px;padding:0;flex-shrink:0;accent-color:#245b99}
.comm-material-options{border:1px solid var(--comm-line);border-radius:10px;padding:14px;display:flex;gap:10px 20px;flex-wrap:wrap;min-width:0}
.comm-material-options legend{font-size:12px;font-weight:750;padding:0 5px}
.comm-material-options label{display:flex;align-items:center;gap:8px;font-weight:500}
.comm-fields .comm-consent{display:flex;align-items:flex-start;gap:10px;font-size:12px;font-weight:400;line-height:1.6}
.comm-consent input{margin-top:3px}.comm-unsubscribe{font-size:12px;color:var(--comm-blue)}
.comm-primary{border-radius:10px;background:#173e6d;border-color:#173e6d;min-height:48px;font-size:14px}
.comm-auto{right:72px}.comm-auto--bar{right:72px}
@media(max-width:767px){.comm-drawer{width:100%;padding:22px 16px calc(22px + env(safe-area-inset-bottom))}.comm-heading h2{font-size:25px}.comm-form{padding:19px 16px;margin-top:16px}.comm-fields input:not([type=checkbox]),.comm-fields textarea{font-size:16px}.comm-auto,.comm-auto--bar{left:12px;right:12px}.comm-primary{width:100%}.comm-material-options{padding:12px;gap:12px}.comm-material-options label{min-width:calc(50% - 6px)}}

.comm-tab--notices, .comm-category--notices { --accent: #205ba8; --tab-ink: #fff; }
.comm-categories button[class*=comm-category--]:not(.comm-category--all){border-bottom:3px solid var(--accent)}
.comm-categories button[class*=comm-category--][aria-pressed=true]:not(.comm-category--all){background:var(--accent);color:var(--tab-ink);border-color:var(--accent)}
.comm-offer-image{float:right;width:128px;height:104px;object-fit:cover;border-radius:6px;margin:12px 0 12px 16px;border:1px solid var(--comm-line)}
.comm-message:has(.comm-offer-image){display:flow-root}.comm-offer-badges{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}.comm-offer-badge{font-size:9px;font-weight:800;letter-spacing:.04em;padding:4px 6px;border:1px solid var(--comm-line);border-radius:4px;color:var(--comm-ink)}
.comm-offer-badge--promotion{color:#a01d26;background:#fff1f2;border-color:#ecc0c4}.comm-offer-badge--reserved{color:#754409;background:#fff5df;border-color:#e6cb96}
@media(max-width:420px){.comm-offer-image{width:100px;height:90px;margin-left:10px}.comm-message h3{font-size:20px}}

.comm-alert-invite{margin-top:20px;border-top:1px solid var(--comm-line)}
.comm-alert-invite>summary{padding:16px 0;cursor:pointer;color:var(--comm-blue);font-size:14px;font-weight:700;line-height:1.5}
.comm-alert-invite>summary:hover{text-decoration:underline}.comm-alert-invite>.comm-form{margin-top:0}

.comm-fields [aria-invalid=true]{border-color:#b4232b!important;background:#fff6f6;box-shadow:0 0 0 1px #b4232b20}
.comm-field-message{display:block;color:#b4232b;font-size:12px;font-weight:600;line-height:1.5;grid-column:1/-1}
.comm-field-error.comm-material-options{border-color:#b4232b}
html[data-theme=dark] .comm-fields [aria-invalid=true]{background:#321e29;color:#fff}html[data-theme=dark] .comm-field-message{color:#ffb3b8}
.comm-confirmation h3{margin-top:0}.comm-confirmation-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 18px;font-size:14px;line-height:1.5;margin:24px 0}.comm-confirmation-facts dt{color:var(--comm-muted)}.comm-confirmation-facts dd{margin:0;font-weight:750;overflow-wrap:anywhere}

/* Transport uses the existing communication rail. */
.comm-rail .comm-tab--vehicle{background:#edf4fc;color:#174f91;border-left-color:#174f91;font-size:12px;letter-spacing:.02em}
.transport-service-entry{background:#edf4fc;border-radius:8px}.transport-service-entry small{display:block;font-size:11px;line-height:1.5;margin-top:4px;color:var(--muted)}
html:has(.desktop-nav-panel.is-open) .comm-rail,html:has(.mobile-panel.is-open) .comm-rail,html:has(dialog[open]:not(.security-alert)) .comm-rail,html.quick-quote-open .comm-rail,html:has([role="dialog"][aria-hidden="false"]) .comm-rail{visibility:hidden;pointer-events:none}

@media (min-width: 768px) and (max-height: 800px) {
    .comm-rail > :is(.comm-tab, .quick-quote-tab, .security-alert__trigger) {
        justify-content: flex-start;
        width: 152px;
        min-height: 44px;
        padding: 7px 9px;
        writing-mode: horizontal-tb;
    }
}

@media (min-width: 768px) and (max-width: 1100px) and (max-height: 550px) and (pointer: coarse) {
    .comm-rail > .security-alert__trigger { display: none; }
}
