/* Brampton Brick dealer portal demo - shared custom sheet (owner: P4 portal shell).
   Loaded last by Custom/DefaultHeadInclude.cshtml, after brand.css. Other packages keep their CSS inline. */

/* --- Sample-data badge (staged data standing in for Dynamics 365) --- */
.bb-sample-badge {
    display: inline-block;
    padding: .125rem .5rem;
    border: 1px solid #8e8e8d;
    background: #ffffff;
    color: #1d1d1b;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
}

/* --- Dealer bar (header top row: account, role, credit, switch customer) --- */
.bb-dealerbar { min-width: 0; color: #1d1d1b; }
.bb-dealerbar__who,
.bb-dealerbar__credit { min-width: 0; }
.bb-dealerbar .dropdown-menu { max-width: calc(100vw - 2rem); }
.bb-dealerbar .dropdown-item { white-space: normal; }
.bb-credit { padding: 0 .375rem; }
.bb-credit--ok { border-left: 4px solid #1eb22d; }
.bb-credit--warn { border-left: 4px solid #ffc107; }
.bb-credit--alert { border-left: 4px solid #e30613; }

/* --- Home greeting --- */
.bb-eyebrow {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #1d1d1b;
}
.bb-eyebrow::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: .5rem;
    background: #e30613;
}
.bb-greeting__account { color: #1d1d1b; overflow-wrap: anywhere; }

/* --- Header for visitors who are not signed in --- */
.bb-anon-header { background: #ffffff; border-bottom: 1px solid #cecece; }
.bb-anon-header__logo { width: 180px; max-width: 46vw; height: auto; }
.bb-anon-header__oaks { width: 90px; max-width: 22vw; height: auto; }

/* --- Header logos: keep both brand logos inside a 390 px screen --- */
[data-dw-itemtype="swift-v2_logo"] figure { max-width: 100%; }
[data-dw-itemtype="swift-v2_logo"] figure svg { max-width: 100%; height: auto; }
@media (max-width: 575.98px) {
    [data-swift-page-header] [data-dw-itemtype="swift-v2_logo"] figure { max-width: 46vw; }
}

/* Desktop header: Oaks logo (paragraph 264) sits right next to the Brampton Brick logo (paragraph 180),
   like the brand switcher on bramptonbrick.com */
[data-swift-page-header] [data-swift-gridcolumn][id="180"] { flex: 0 0 auto !important; }
[data-swift-page-header] [data-swift-gridcolumn][id="264"] { flex: 1 1 auto !important; }
@media (max-width: 575.98px) {
    .bb-anon-header__logo { width: 140px; }
    .bb-anon-header__oaks { width: 72px; }
}
