/*
 * MaterialMatrix Slab Viewer - location chooser popup.
 * Ported from phire-asg theme (newsite.css) so the slab viewer works
 * standalone outside that theme.
 */

.ns-choose-location {
    background: #0000003b;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 99999;
    width: 100vw;
    justify-content: center;
    align-items: center;
    display: none;
}

.ns-choose-location .popup {
    background: white;
    position: relative;
    overflow: scroll;
    max-height: 90vh;
    height: auto;
    width: 75%;
    min-width: 750px;
    max-width: 900px;
}

.ns-choose-location .popup .header {
    background: #e8e6df;
    padding: 20px;
    display: flex;
    position: absolute;
    justify-content: space-between;
    text-align: center;
    height: 65px;
    width: 100%;
    top: 0;
    left: 0;
    box-sizing: border-box;
}

.ns-choose-location .popup .header svg {
    cursor: pointer;
}

.ns-choose-location .popup .header p {
    flex-grow: 1;
    text-align: center;
    margin-bottom: 0;
    font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 25px;
    letter-spacing: -0.375px;
    color: #282828;
}

.ns-choose-location .body {
    columns: 4;
    text-align: left;
    padding: 50px;
    padding-top: 100px;
}

.ns-choose-location .state {
    font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.3px;
    text-transform: uppercase;
    color: #004667;
    margin-bottom: 10px;
}

.ns-choose-location .warehouse {
    font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
    font-style: normal;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.3px;
    color: #282828;
    margin-bottom: 15px;
}

.ns-choose-location .warehouse a {
    color: #282828;
    text-decoration: none;
}

.ns-choose-location .warehouse a:hover {
    text-decoration: underline;
}

.ns-choose-location .body > div {
    break-inside: avoid;
    padding-bottom: 15px;
}

/* Location selector trigger (sits below the product search) */
.mm-slab-viewer-location {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 0;
}

.mm-slab-viewer-location-current {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mm-slab-viewer-location-pin {
    flex-shrink: 0;
    color: #282828;
}

.mm-slab-viewer-location .mm-slab-viewer-location-name {
    font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #282828;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mm-slab-viewer-new-loc-btn {
    flex-shrink: 0;
    background-color: #282828!important;
    border: 1px solid #282828;
    color: #fff!important;
    font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 10px 18px;
    cursor: pointer;
    line-height: 1;
    text-transform: uppercase;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mm-slab-viewer-new-loc-btn:hover,
.mm-slab-viewer-new-loc-btn:focus-visible {
    background: #282828;
    color: #ffffff;
    outline: none;
}

@media only screen and (max-width: 960px) {
    .ns-choose-location .popup {
        min-width: 100%;
        width: 100%;
        max-width: 100%;
    }

    .ns-choose-location .body {
        columns: 1;
        overflow: scroll;
        height: calc(100vh - 120px);
        display: flex;
        flex-direction: column;
    }
}

.slab-gallery li.filter-item.not-textured.not-textured-0:before,
.slab-gallery li.filter-item.textured.textured-0:before {
    display: none;
}
