/* Final shared overrides: retain the existing colors, typography and components. */
html body :is(.row > *, .card, .card-body, .modal-content, .input-group,
    .admin-store-nav-row, .admin-store-nav, .member-store-nav) {
    min-width: 0;
}
html body :is(p, h1, h2, h3, h4, dd, .alert, .modal-title, .dropdown-item) {
    overflow-wrap: anywhere;
}
html body :is(img, video) { max-width: 100%; }
html body :is(.table-responsive, [data-ui-style~='scroll-horizontal']) {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}
html body .modal-dialog { max-width: calc(100% - 1rem); }
@media (min-width: 576px) {
    html body .modal-dialog { max-width: var(--bs-modal-width, 500px); }
}
html body .modal-body { overflow-wrap: anywhere; }
html body #cartLiveToast { max-width: calc(100vw - 32px); }
@media (max-width: 575px) {
    html body .department-hero h1 { font-size: clamp(1.75rem, 8vw, 2.6rem); }
    html body .qa-group { display: flex; flex-wrap: wrap; gap: .5rem; }
    html body .qa-group > .qa-btn {
        flex: 1 1 calc(50% - .5rem);
        margin-left: 0;
        border-radius: var(--bs-border-radius);
        white-space: normal;
    }
    html body .card-body.p-5 { padding: 1.25rem !important; }
    html body :is(.form-control, .form-select) { font-size: 16px; }
    html body :is(.btn, .navbar-toggler, .nav-link, .dropdown-item) { min-height: 44px; }
    html body .dropdown-menu { max-width: calc(100vw - 32px); }
    html body .dropdown-item { white-space: normal; }
    html body .modal-footer { gap: .5rem; }
    html body .modal-footer > * { margin: 0; }
    html body .pagination { flex-wrap: wrap; gap: .25rem; }
    html body .admin-store-action { width: 100%; margin-left: 0; }
    html body .admin-store-action .btn { width: 100%; }
    html body .member-store-nav a.member-store-link { height: auto; min-height: 46px; }
    html body :is(.admin-store-nav .btn, .member-store-nav a.member-store-link) {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 375px) {
    html body .cp-method dl { grid-template-columns: minmax(0, 1fr); margin-left: 0; }
    html body .cp-method dt { margin-top: .5rem; }
}
