/* WEB-314: place field feedback in normal flow and keep mobile overlays below the filter dialog. */
#customer-login-form .ws-login-email-error {
    margin: .375rem 0 0;
    color: #a62020;
    font-size: .875rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
#accountcreate .ws-terms,
#accountcreate .newsletter {
    display: grid;
    grid-template-columns: 17px minmax(0, 1fr);
    align-items: start;
    gap: .25rem 10px;
}
#accountcreate .ws-terms > input,
#accountcreate .newsletter > input {
    grid-area: 1 / 1;
    justify-self: start;
}
#accountcreate .ws-terms > label,
#accountcreate .newsletter > label {
    grid-area: 1 / 2;
}
#accountcreate .ws-terms > .messages,
#accountcreate .newsletter > .messages {
    grid-column: 2;
    position: static;
    width: auto;
    margin: 0;
    overflow-wrap: anywhere;
}
@media (max-width: 767px) {
    /* The third-party chat launcher uses z-index 999999999. Keep this modal on top while it is open. */
    .catalogsearch-result-index .ws-search-mobile-controls .sidebar-main:has(#ws-filter-panel.is-open) {
        z-index: 1000000000;
    }
    .catalogsearch-result-index #ws-filter-panel .ws-filter-panel-footer {
        padding-bottom: max(.75rem, env(safe-area-inset-bottom, 0px));
    }
}
