.customer-mode-item {
    margin-left: 14px;
}

.customer-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(239, 68, 68, .28);
    border-radius: 6px;
    background: rgba(239, 68, 68, .09);
    color: #dc2626;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .055em;
}

.customer-mode-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef3434;
    box-shadow: none;
}

@media (max-width: 767px) {
    .customer-mode-item {
        margin-left: 8px;
    }

    .customer-mode-badge {
        padding: 6px 9px;
        font-size: 10.5px;
    }
}

@media (max-width: 420px) {
    .customer-mode-dot {
        display: none;
    }
}
/* Live customer messages and file-status notifications */
body.portal-customer-page .header-container .portal-header-dropdown {
    width: min(390px, calc(100vw - 24px)) !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 9px !important;
}

body.portal-customer-page .header-container .portal-dropdown-title {
    display: flex;
    min-height: 46px;
    padding: 0 14px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid #e9edf2;
    color: #202b41;
    background: #fff;
}

body.portal-customer-page .header-container .portal-dropdown-title strong {
    font-size: 13px;
    font-weight: 600;
}

body.portal-customer-page .header-container .portal-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #26a269;
}

body.portal-customer-page .header-container #portal-notification-read-all {
    display: inline-grid;
    width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border: 1px solid #d8dee8;
    border-radius: 6px;
    color: #667085;
    background: #fff;
    cursor: pointer;
}

body.portal-customer-page .header-container #portal-notification-read-all:hover {
    border-color: #efb7b7;
    color: #b42318;
    background: #fff3f3;
}

body.portal-customer-page .header-container .portal-dropdown-list {
    max-height: 330px;
    padding: 5px;
    overflow-y: auto;
    scrollbar-width: thin;
}

body.portal-customer-page .header-container .portal-dropdown-list .dropdown-item {
    display: grid;
    min-height: 60px;
    padding: 8px !important;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border-radius: 7px !important;
}

body.portal-customer-page .header-container .portal-dropdown-list .dropdown-item + .dropdown-item {
    margin-top: 1px;
}

body.portal-customer-page .header-container .portal-dropdown-icon {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 7px;
    color: #b42318;
    background: #fff1f1;
    font-size: 15px;
}

body.portal-customer-page .header-container .portal-dropdown-icon.is-file {
    color: #157a55;
    background: #ecf8f3;
}

body.portal-customer-page .header-container .portal-dropdown-copy {
    display: block;
    min-width: 0;
}

body.portal-customer-page .header-container .portal-dropdown-copy strong,
body.portal-customer-page .header-container .portal-dropdown-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.portal-customer-page .header-container .portal-dropdown-copy strong {
    color: #202b41;
    font-size: 12.5px;
    font-weight: 600;
}

body.portal-customer-page .header-container .portal-dropdown-copy small,
body.portal-customer-page .header-container .portal-dropdown-list time {
    color: #667085;
    font-size: 11px;
    font-weight: 400;
}

body.portal-customer-page .header-container .portal-dropdown-list time {
    align-self: start;
    padding-top: 2px;
    white-space: nowrap;
}

body.portal-customer-page .header-container .portal-dropdown-arrow {
    color: #98a2b3;
    font-size: 11px;
}

body.portal-customer-page .header-container .portal-dropdown-footer {
    display: flex;
    min-height: 42px;
    padding: 0 14px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e9edf2;
    color: #b42318;
    background: #fafbfc;
    font-size: 12px;
    font-weight: 600;
}

body.portal-customer-page .header-container .portal-dropdown-footer:hover {
    color: #8f1d16;
    background: #fff3f3;
}

body.portal-customer-page .chat-send-feedback {
    min-height: 0;
    padding: 0 14px;
    color: #667085;
    font-size: 12px;
}

body.portal-customer-page .chat-send-feedback.is-error {
    padding-top: 8px;
    color: #b42318;
}

.portal-mobile-nav a {
    position: relative;
}

.portal-mobile-nav .portal-mobile-count {
    position: absolute;
    top: 2px;
    right: calc(50% - 21px);
    display: inline-grid;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #d92d2d;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
}

/* Versioned customer update notice */
body.portal-customer-page .portal-update-notice {
    position: fixed;
    z-index: 1025;
    top: 84px;
    right: 24px;
    display: grid;
    width: min(620px, calc(100vw - 303px));
    padding: 18px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    border: 1px solid #e3e8f0;
    border-left: 4px solid #d92d2d;
    border-radius: 10px;
    color: #172033;
    background: #fff;
    box-shadow: 0 10px 28px rgba(23, 32, 51, .12);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease;
}

body.portal-customer-page .portal-update-notice[hidden] {
    display: none !important;
}

body.portal-customer-page .portal-update-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.portal-customer-page .portal-update-notice.is-leaving {
    opacity: 0;
    transform: translateY(-6px);
}

body.portal-customer-page .portal-update-notice-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    color: #b42318;
    background: #fff1f1;
    font-size: 19px;
}

body.portal-customer-page .portal-update-notice-content {
    min-width: 0;
}

body.portal-customer-page .portal-update-notice-eyebrow,
body.portal-customer-page .portal-update-notice-content > strong {
    display: block;
}

body.portal-customer-page .portal-update-notice-eyebrow {
    margin-bottom: 3px;
    color: #b42318;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .035em;
    text-transform: uppercase;
}

body.portal-customer-page .portal-update-notice-content > strong {
    color: #172033;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

body.portal-customer-page .portal-update-notice-content p {
    margin: 7px 0 14px;
    color: #526078;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.55;
}

body.portal-customer-page .portal-update-notice-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

body.portal-customer-page .portal-update-notice-actions a,
body.portal-customer-page .portal-update-notice-actions button {
    display: inline-flex;
    min-height: 36px;
    padding: 0 13px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 7px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

body.portal-customer-page .portal-update-support-link {
    border: 1px solid #e4a5a1;
    color: #a52820;
    background: #fff;
}

body.portal-customer-page .portal-update-support-link:hover,
body.portal-customer-page .portal-update-support-link:focus-visible {
    border-color: #d92d2d;
    color: #8f1d16;
    background: #fff7f7;
}

body.portal-customer-page #portal-update-notice-confirm {
    border: 1px solid #172033;
    color: #fff;
    background: #172033;
}

body.portal-customer-page #portal-update-notice-confirm:hover,
body.portal-customer-page #portal-update-notice-confirm:focus-visible {
    border-color: #29364b;
    background: #29364b;
}

@media (max-width: 991px) {
    body.portal-customer-page .portal-update-notice {
        top: 78px;
        right: 14px;
        left: 14px;
        width: auto;
    }
}

@media (max-width: 575px) {
    body.portal-customer-page .portal-update-notice {
        top: 72px;
        right: 10px;
        left: 10px;
        max-height: calc(100dvh - 150px);
        padding: 15px;
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 11px;
        overflow-y: auto;
        border-radius: 8px;
    }

    body.portal-customer-page .portal-update-notice-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    body.portal-customer-page .portal-update-notice-content > strong {
        font-size: 15px;
    }

    body.portal-customer-page .portal-update-notice-content p {
        margin-bottom: 12px;
        font-size: 13px;
    }

    body.portal-customer-page .portal-update-notice-actions a,
    body.portal-customer-page .portal-update-notice-actions button {
        flex: 1 1 140px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.portal-customer-page .portal-update-notice {
        transition: none;
    }
}
