/*
    Member portal fixes from the 2026-10-20 end-to-end test (CR-12). Kept in its own file so these
    rules do not collide with other edits to rw-layout.css. Linked after rw-layout.css in
    Views/Shared/Themes/ElevanceHealth/_Layout.cshtml.
*/

/* E2E-13: a type="search" field draws the browser's own clear (x) next to our clear button. */
.rw-feature-search input[type="search"]::-webkit-search-cancel-button,
.rw-feature-search input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

/* E2E-11: empty notifications list. */
.rw-notification-empty {
    margin: 0;
    padding: 14px 16px;
    color: #49556a;
    font-size: 14px;
}

/* E2E-20: a switched-off primary action must not look like the main call to action. */
.rw-learning-soon {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.rw-learning-soon .rw-btn[disabled] {
    background: #eef1f6;
    border-color: #c9d2df;
    color: #49556a;
    cursor: not-allowed;
    opacity: 1;
}

.rw-learning-soon__badge {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #b9d3fb;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d3f78;
    font-size: 13px;
    font-weight: 600;
}

/* E2E-16: "Saved: ..." line beside the Add time form. */
.jst-page .jst-saved {
    margin: 0 0 10px;
    color: #14532d;
    font-weight: 600;
}

.jst-page .jst-saved:empty {
    display: none;
}

.jst-page [aria-invalid="true"] {
    border-color: #b42318;
    box-shadow: 0 0 0 1px #b42318;
}

/* E2E-17: "Applied" / "Saved" on an opportunity card. */
.rw-volunteering-card__tag--mine {
    border: 1px solid #14532d;
    background: #e8f5ec;
    color: #14532d;
    font-weight: 700;
}

/* E2E-18: the plain-words recognition note at the top of the details drawer. */
.rw-volunteering-drawer__recognition {
    margin: 8px 0 0;
    padding: 8px 12px;
    border-left: 4px solid #1d3f78;
    background: #f4f7fb;
    font-size: 14px;
}

/* E2E-26: the phone/tablet drawer - 14px text and 44px rows (the desktop sidebar stays compact). */
@media (max-width: 1199.98px) {
    .rw-member-enabled summary.rw-nav-group__title {
        min-height: 44px;
        font-size: 14px;
    }

    .rw-member-enabled .rw-nav-link {
        min-height: 44px;
        font-size: 14px;
    }
}

/* E2E-14: on phones the bottom navigation bar owns the bottom edge; messages and the chat button
   sit above it instead of covering it. */
@media (max-width: 680px) {
    #toast-container {
        bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .rd-toast {
        bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* E2E-14: the "Need Help?" bubble shows once per session; later pages keep only the round button. */
html.rw-chat-hint-off #chatbot-artie .chatbot-tooltip {
    display: none !important;
}

/* CR-10 leftover: while an offcanvas fly-in is open Bootstrap sets overflow:hidden on the body, but a site rule
   forces overflow-y:auto, so the page behind kept scrolling on desktop. */
body[style*="overflow: hidden"] {
    overflow-y: hidden !important;
}
