/* Shared overflow guards; phone layouts reflow content instead of hiding it. */
.store-main, .store-main .row > *, .store-header-brand, .store-profile-menu {
    min-width: 0;
    overflow-wrap: anywhere;
}
.store-breadcrumb {

    flex-wrap: wrap;

}
.store-rich-copy :is(img, video, iframe), .tab-content img {

    max-width: 100%;

}
.store-rich-copy :is(img, video), .tab-content img {

    height: auto;

}
.store-rich-copy table {

    width: 100% !important;

    table-layout: fixed;

}
.store-rich-copy :is(td, th) {

    overflow-wrap: anywhere;

}
.store-body .btn {

    white-space: normal;

}
.checkout-shipping-option {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    width: 100%;
    min-height: 2.75rem;
    cursor: pointer;
}
.checkout-shipping-option input {

    flex: 0 0 auto;

    margin-top: .25rem;

}
.checkout-shipping-option span {

    min-width: 0;

}
.store-body .store-checkout :is(input[type="radio"], input[type="checkbox"]) {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--km-purple);
}

@media (max-width: 991.98px) {
    .store-category-rail {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: minmax(0, 1fr);
        overflow: visible;
    }
}

@media (max-width: 767.98px) {
    .store-shell, .store-content-frame, .footer-inner {

        width: calc(100% - 1.5rem);

    }
    .store-header-nav {

        gap: .75rem;

        padding: .85rem;

    }
    .store-header-brand .store-logo-image {

        width: 150px;

        max-width: 100%;

    }
    .store-account-actions {

        gap: .45rem;

    }
    .store-profile-menu {

        max-width: calc(100vw - 2rem);

    }
    .store-category-nav {

        padding-inline: 0;

        gap: .25rem .75rem;

    }
    .store-category-nav .store-category-toggle {

        min-height: 2.75rem;

        white-space: normal;

        text-align: left;

    }
    .store-category-dropdown:has(.show) {

        flex-basis: 100%;

    }
    .store-category-menu.show {
        position: static !important;
        transform: none !important;
        width: 100%;
        max-width: none;
        margin-block: .25rem .75rem !important;
    }
    .store-body :is(.form-control, .form-select, .store-header-search input) {
        font-size: 1rem;
        min-width: 0;
        max-width: 100%;
    }
    .store-body .btn-sm {

        min-height: 2.75rem;

    }
    .store-main > .card > .card-body, .store-main .card-body.p-4 {
        padding: 1rem !important;
    }
    .store-section-card, .store-products-panel, .store-callout-band {

        padding: 1rem;

    }
    .store-product-grid, .store-grid-compact .store-product-grid {

        grid-template-columns: minmax(0, 1fr);

    }
    .store-product-warning-card {

        align-items: flex-start;

        flex-wrap: wrap;

    }
    .store-promo-strip-inner {

        padding: 1.5rem 1rem;

    }
    .hero-slide-frame, .hero-slide-content {

        min-height: 0;

    }
    .hero-slide-content {

        padding: 2rem 2.5rem 3.5rem;

    }
    .store-home-carousel .carousel-control-prev, .store-home-carousel .carousel-control-next {

        width: 2rem;

    }
    .store-home-carousel .carousel-control-prev-icon, .store-home-carousel .carousel-control-next-icon {

        width: 1.75rem;

        height: 2.5rem;

    }
    .store-footer-inner {

        padding: 1.5rem 0;

    }
    .store-footer-form-card {

        padding: 1rem;

    }
    .store-footer-contact-link {

        overflow-wrap: anywhere;

    }
    .store-body .store-checkout {

        padding-block: 1.25rem;

    }
    .store-body .store-checkout fieldset {

        padding: 1rem;

    }
    .store-body .store-checkout .page-title {

        font-size: 1.65rem;

    }
    .store-body .store-checkout .col-form-label {

        padding-bottom: .35rem;

    }
    .store-body .store-checkout #divItems {

        overflow: visible;

    }
    .checkout-actions {

        align-items: stretch;

    }
    .checkout-actions > *, .checkout-actions .btn {

        width: 100%;

        justify-content: center;

    }
    .checkout-actions .submit-button {

        flex-wrap: wrap;

    }
    .checkout-section-table .row {

        row-gap: .75rem;

    }
    .store-body .store-checkout .checkout-section-table tr:has(.information) {

        display: block;

    }
    .store-body .store-checkout .checkout-section-table tr:has(.information) td {
        display: block;
        width: 100% !important;
        padding: .5rem 1rem;
    }
    .store-body .store-checkout .checkout-section-table tr:has(.information) td:first-child {

        border-bottom: 0;

        padding-top: 1rem;

    }
    .store-body .store-checkout .checkout-section-table tr:has(.information) td:last-child {

        padding-bottom: 1rem;

    }
    .store-body .store-checkout .checkout-section-table td:has(#chkTerms) {

        width: 2.75rem;

    }
    .store-checkout #card-element {

        padding: .75rem .5rem !important;

    }
    .store-body .modal-dialog {

        margin: .75rem;

    }
    .store-body .modal-header h1 {

        font-size: 1.4rem;

    }

    /* The same markup is used for initial checkout and AJAX-refreshed totals. */
    .store-body .store-order-table, .store-body .store-order-table tbody, .store-body .store-order-table tfoot {
        display: block;
        width: 100%;
        margin: 0;
    }
    .store-order-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .store-body .store-order-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        padding: .75rem;
        border-bottom: 1px solid var(--line);
    }
    .store-body .store-order-table tr:last-child {

        border-bottom: 0;

    }
    .store-body .store-order-table tr > :is(td, th) {
        display: block;
        width: auto;
        min-width: 0;
        padding: .5rem;
        border: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: left !important;
    }
    .store-body .store-order-table [data-label]::before {
        content: attr(data-label);
        display: block;
        color: var(--muted);
        font-size: .75rem;
        font-weight: 700;
        margin-bottom: .25rem;
    }
    .store-body .store-order-table .product {

        grid-column: 1 / -1;

        font-weight: 700;

    }
    .store-order-table .product::before {

        display: none !important;

    }
    .store-order-table .product .d-flex > div {

        min-width: 0;

    }
    .store-body .store-order-table [data-label="Quantity"] {

        grid-column: 1 / -1;

    }
    .store-body .store-order-table [data-label="Total"] {

        grid-column: 2;

        grid-row: 2;

        text-align: right !important;

    }
    .store-body .store-order-table .cart-remove {

        grid-column: 1 / -1;

    }
    .store-order-table .cart-remove .btn {

        width: 100%;

    }
    .store-body .store-order-table tr:has(.total-quantity), .store-body .store-order-table tfoot tr {
        grid-template-columns: minmax(0, 1fr) minmax(6rem, auto);
        align-items: center;
    }
    .store-body .store-order-table tr:has(.total-quantity) > :last-child,
    .store-body .store-order-table tfoot th:nth-child(2) {

        text-align: right !important;

    }
    .store-order-table tfoot th:empty {

        display: none !important;

    }
}
