/**
 * Monogo_UnilayerSalonPlSalonFinder — the salon finder page (USPM-298).
 *
 * Compiled by hand from the legacy salon finder LESS (Orbico_SalonFinder 1.0.17: _general, _sidebar,
 * _sidebar-filters, _sidebar-details) on top of Amasty Store Locator's own styles. Colours: red #af0236,
 * greys #575757, #323745, #afb1b7, #4a4a4a, #e8e7e8, #e8e8e8. Breakpoint: 768px (Luma @screen__m).
 * The font comes from the salon theme of Monogo_UnilayerNativeChrome (Fira Sans).
 */

/*
 * Luma's base size: Amasty's styles are in rem for Luma's `html { font-size: 62.5% }` (10px), which the header and
 * footer sheet of the native chrome sets to 16px (as on the CMS pages, see salon-native-chrome.css).
 */
html:has(body.amlocator-index-index) {
    font-size: 62.5%;
}

body.amlocator-index-index {
    font-size: 1.4rem;
    line-height: 1.42857143;
}

/* ---- General ---- */

.amlocator-main-container .amlocator-map-container .amlocator-block.-map {
    box-sizing: border-box;
}

.amlocator-map-container {
    padding: 20px;
    position: relative;
}

/* ---- Search results column ---- */

.amlocator-search-container {
    background-color: #ffffff;
    margin-bottom: 25px;
    padding: 0;
}

.amlocator__search-title-wrapper {
    margin-bottom: 10px;
}

.amlocator__search-title-wrapper .amlocator__search-title {
    font-size: 16px;
    font-weight: 600;
}

.amlocator__filters--trigger {
    font-size: 14px;
    margin-bottom: 25px;
}

.amlocator__filters--trigger span {
    display: inline-block;
}

.amlocator__filters--trigger span::after {
    background-image: url('../images/icon-search-salon.svg');
    background-position: 0 0;
    background-repeat: no-repeat;
    content: '';
    display: inline-block;
    height: 12px;
    line-height: 12px;
    margin: 0 0 0 8px;
    vertical-align: middle;
    width: 12px;
}

.amlocator-filters-container {
    background-color: #ffffff;
}

.amlocator-filters__close {
    display: inline-block;
    position: absolute;
    right: 0;
    top: 0;
}

.amlocator-filters__close::after {
    background-image: url('../images/icon-close.svg');
    background-position: 0 0;
    background-repeat: no-repeat;
    content: '';
    display: inline-block;
    height: 16px;
    line-height: 16px;
    margin: 0;
    vertical-align: middle;
    width: 16px;
}

.amlocator__filters--trigger,
.amlocator-filters__close {
    cursor: pointer;
}

.amlocator-current-location .amlocator-text {
    border-color: #323745;
}

.amlocator-current-location .amlocator-search,
.amlocator-current-location .amlocator-search:hover {
    background: url('../images/icon-search.svg');
    height: 14px;
    padding: 7px;
    top: 13px;
    width: 14px;
}

.amlocator-stores-wrapper {
    display: flex;
    flex-direction: column;
}

.amlocator-stores-wrapper .amlocator-store-container {
    order: 1;
}

.amlocator-stores-wrapper .amlocator-store-container.-active {
    order: 0;
}

.amlocator-stores-wrapper .amlocator-store-container .amlocator-schedule-container {
    display: none;
}

.amlocator-store-desc {
    background-color: #ffffff;
    font-size: 12px;
}

.amlocator-store-desc .amlocator-block {
    padding: 15px 0;
}

.amlocator-store-desc .amlocator-title {
    font-size: 12px;
}

.amlocator-store-desc .amlocator-title .amlocator-map-pin {
    display: none;
}

.amlocator-store-container.-active .amlocator-store-desc {
    background-color: #ffffff;
    color: #000000;
}

.amlocator-store-container.-active .amlocator-store-desc .amlocator-title,
.amlocator-store-container.-active .amlocator-store-desc .amlocator-title .amlocator-link {
    color: #af0236;
}

/* Map zoom slider */

.amlocator__map-zoom-label {
    margin-bottom: 10px;
}

.amlocator__zoom-slider {
    background: #ffffff;
}

.amlocator__zoom-slider button {
    background: #ffffff;
    border: 1px solid #e8e7e8;
    border-radius: 0;
    box-shadow: none;
    color: #575757;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    line-height: 6px;
    margin: 0;
    padding: 9px;
}

.amlocator__zoom-slider .amlocator__zoom-range {
    width: calc(100% - 70px);
}

.amlocator__zoom-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: #e8e8e8;
    border: 0;
    border-radius: 16px;
    box-shadow: none;
    cursor: pointer;
    height: 5px;
    outline: none;
    padding: 0;
    vertical-align: middle;
}

.amlocator__zoom-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background-color: #ffffff;
    border: 4px solid #af0236;
    border-radius: 50%;
    height: 15px;
    transition: .2s ease-in-out;
    width: 15px;
}

.amlocator__zoom-slider input[type="range"]::-moz-range-thumb {
    background-color: #ffffff;
    border: 4px solid #af0236;
    border-radius: 50%;
    height: 15px;
    transition: .2s ease-in-out;
    width: 15px;
}

.amlocator-block.amlocator-search-radius {
    display: none;
}

/* Salon cards */

.amlocator-store-container.-active .amlocator-store-information-name {
    color: #af0236;
    display: inline-block;
}

.amlocator-store-container.-active .amlocator-store-information-name::before {
    background-image: url('../images/icon-locator-red.svg');
    background-position: 0 0;
    background-repeat: no-repeat;
    content: '';
    display: inline-block;
    height: 16px;
    line-height: 16px;
    margin: 0 5px 0 0;
    vertical-align: top;
    width: 16px;
}

.amlocator-store-container .amlocator-store-info-navigate {
    color: #4a4a4a;
    display: inline-block;
    font-size: 12px;
    text-decoration: underline;
}

.amlocator-store-container .amlocator-store-information {
    color: #4a4a4a;
    display: flex;
    width: 100%;
}

.amlocator-store-container .amlocator-store-information-wrapper {
    padding-right: 5px;
    width: 80%;
}

.amlocator-store-container .amlocator-store-info-type-images {
    text-align: right;
    width: 20%;
}

.amlocator-store-container .amlocator-store-info-type-images img {
    margin-bottom: 15px;
}

.amlocator-store-container .amlocator-store-information-name {
    color: #000000;
    font-weight: 600;
    margin-bottom: 10px;
}

.amlocator-store-container .amlocator-store-information-address {
    margin-bottom: 10px;
}

.amlocator-store-container .amasty_distance {
    display: inline-block;
    margin-right: 12px;
}

.amlocator-store-container .amasty_distance .amasty_distance_number::after {
    background-color: #000000;
    border-radius: 50%;
    content: '';
    display: inline-block;
    height: 3px;
    margin-left: 12px;
    vertical-align: middle;
    width: 3px;
}

.amlocator-stores-count,
.amlocator-stores-count-wrapper {
    font-size: 12px;
}

.amlocator-store-list {
    border-top: 1px solid #e8e7e8;
    padding-top: 10px;
}

/* Selected filters */

.amlocator-selected-filters {
    font-size: 12px;
    margin-top: 25px;
}

.amlocator-selected-filters .amlocator-selected-filter-name {
    color: #575757;
    margin-right: 5px;
}

.amlocator-selected-filters .amlocator-selected-filter-option:not(:last-child)::after {
    content: ',';
    margin-right: 3px;
}

/* ---- Search and filters sidebar ---- */

.amlocator-block.-filter {
    background: #ffffff;
    box-sizing: border-box;
    left: -100%;
    position: absolute;
    top: 0;
    transition: left .3s ease-in-out;
    z-index: 9;
}

.amlocator-block.-filter.opened {
    left: 0;
}

.amlocator-filters-sidebar-title {
    font-size: 16px;
    font-weight: 600;
}

.amlocator__search-salon-block {
    position: relative;
}

.amlocator__autosuggest-wrapper {
    background-color: #ffffff;
    display: none;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

.amlocator__autosuggest-container {
    border: 1px solid #afb1b7;
    border-top: none;
    font-size: 12px;
    padding: 8px;
}

.amlocator__autosuggest-container .amlocator__autosuggest-item {
    cursor: pointer;
    margin-bottom: 3px;
}

.amlocator-attribute-wrapper .amlocator-label {
    display: block;
    width: 100%;
}

.amlocator-attribute-wrapper:nth-of-type(even) {
    background-color: #ffffff;
}

.amlocator-filters-container .amlocator-attribute-wrapper {
    padding: 10px 0;
}

.amlocator-filters-container .amlocator-attribute-wrapper .amlocator-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.amlocator-filters-container .attributes {
    margin-bottom: 30px;
}

.amlocator-filters-container .amlocator-checkbox-wrapper .label {
    color: #575757;
}

/*
 * The legacy theme's checkboxes (theme-salonprofessional-frontend-shared _inputs.less), limited to the filters: the
 * native input is hidden, the label draws a 12px box and the red tick when checked (the size legacy shows at every
 * width).
 */
.amlocator-filters-container .amlocator-checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    visibility: hidden;
}

.amlocator-filters-container .amlocator-checkbox-wrapper input + .label {
    cursor: pointer;
    display: inline-block;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    margin: 0;
    min-width: 12px;
    padding: 0 0 0 20px;
    position: relative;
    text-indent: 0;
    white-space: initial;
}

.amlocator-filters-container .amlocator-checkbox-wrapper input + .label::before,
.amlocator-filters-container .amlocator-checkbox-wrapper input + .label::after {
    background-color: transparent;
    border-radius: 0;
    box-sizing: border-box;
    content: '';
    display: block;
    height: 12px;
    left: 0;
    position: absolute;
    top: 2px;
    width: 12px;
    z-index: 0;
}

.amlocator-filters-container .amlocator-checkbox-wrapper input + .label::before {
    border: 1px solid #e8e8e8;
}

.amlocator-filters-container .amlocator-checkbox-wrapper input:hover ~ .label::before {
    border-color: #464646;
}

.amlocator-filters-container .amlocator-checkbox-wrapper input:checked ~ .label::before {
    border-color: #af0236;
}

.amlocator-filters-container .amlocator-checkbox-wrapper input:checked ~ .label::after {
    background: url('../images/check.svg') no-repeat center;
    background-size: cover;
    height: 10px;
    margin: 1px;
    width: 10px;
}

.amlocator-filters-container .amlocator-actions {
    padding: 5px 0;
}

.amlocator-filters-container .amlocator-actions button {
    font-size: 14px;
    padding: 12px;
}

.amlocator-filters-container .amlocator-actions .amlocator-filter-attribute {
    background-color: #af0236;
    border-color: #af0236;
    border-radius: 3px;
    color: #ffffff;
    margin: 0 3% 0 0;
    width: 50%;
}

.amlocator-filters-container .amlocator-actions .amlocator-clear {
    color: #575757;
    width: 47%;
}

.amlocator-filters-container .amlocator-actions .amlocator-clear span {
    display: inline-block;
}

.amlocator-filters-container .amlocator-actions .amlocator-clear span::after {
    background-image: url('../images/icon-close-grey.svg');
    background-position: 0 0;
    background-repeat: no-repeat;
    content: '';
    display: inline-block;
    height: 16px;
    line-height: 16px;
    margin: 0 0 0 5px;
    vertical-align: middle;
    width: 16px;
}

.amlocator-button.-nearby,
.amlocator-button.-nearby:hover,
.amlocator-button.-nearby:focus {
    background-color: #ffffff;
    border: 0;
    box-shadow: none;
    color: #000000;
    display: inline-block;
    font-size: 12px;
    font-weight: 400;
    margin: 10px 0 25px;
    padding: 0;
}

.amlocator-button.-nearby::after {
    background-image: url('../images/icon-locator.svg');
    background-position: 0 0;
    background-repeat: no-repeat;
    content: '';
    display: inline-block;
    height: 16px;
    line-height: 16px;
    margin: 0 0 0 5px;
    vertical-align: middle;
    width: 16px;
}

/* ---- Salon details sidebar ---- */

.am-locator__salon-details-sidebar-modal .modal-inner-wrap {
    display: flex;
    flex-direction: column;
}

.am-locator__salon-details-sidebar-modal .modal-content {
    flex-grow: 1;
}

.am-locator__salon-details-sidebar-modal .am-locator__salon-details-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.am-locator__salon-details-sidebar-modal .modal-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.am-locator__salon-details-sidebar-modal .action-close {
    margin-top: 25px;
}

.am-locator__salon-details-sidebar-modal .am-locator__salon-details-salon-title {
    font-size: 24px;
    font-weight: 600;
}

.am-locator__salon-details-sidebar-modal .am-locator__salon-details-salon-url {
    margin-bottom: 25px;
}

.am-locator__salon-details-sidebar-modal .am-locator__salon-details-salon-type-images {
    margin-bottom: 30px;
}

.am-locator__salon-details-sidebar-modal .am-locator__salon-details-salon-type-images img {
    display: inline-block;
    margin-right: 15px;
    max-width: 65px;
    vertical-align: middle;
}

.am-locator__salon-details-sidebar-modal .am-locator__salon-details-salon-address-wrapper {
    color: #4a4a4a;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 10px;
}

.am-locator__salon-details-sidebar-modal .am-locator__salon-details-address-label {
    font-weight: 600;
    margin-bottom: 15px;
}

.am-locator__salon-details-sidebar-modal .am-locator__salon-details-contact-info {
    margin-bottom: 26px;
}

.am-locator__salon-details-sidebar-modal .am-locator__salon-details-navigation-url a,
.am-locator__salon-details-sidebar-modal .am-locator__salon-details-phone a {
    color: #4a4a4a;
    display: inline-block;
    margin-bottom: 9px;
}

.am-locator__salon-details-sidebar-modal .am-locator__salon-details-navigation-url a {
    text-decoration: underline;
}

.am-locator__salon-details-sidebar-modal .am-locator__salon-details-navigation-url a::before {
    background-image: url('../images/icon-navigate.svg');
    background-position: 0 0;
    background-repeat: no-repeat;
    content: '';
    display: inline-block;
    height: 24px;
    line-height: 24px;
    margin: 0 10px 0 0;
    vertical-align: middle;
    width: 20px;
}

.am-locator__salon-details-sidebar-modal .am-locator__salon-details-phone a::before {
    background-image: url('../images/icon-telephone.svg');
    background-position: 0 0;
    background-repeat: no-repeat;
    content: '';
    display: inline-block;
    height: 24px;
    line-height: 24px;
    margin: 0 10px 0 0;
    vertical-align: middle;
    width: 24px;
}

.am-locator__salon-details-sidebar-modal .am-locator__salon-details-instagram,
.am-locator__salon-details-sidebar-modal .am-locator__salon-details-facebook {
    display: inline-block;
    margin-right: 15px;
}

.am-locator__salon-details-sidebar-modal .am-locator__salon-details-instagram::before,
.am-locator__salon-details-sidebar-modal .am-locator__salon-details-facebook::before {
    background-position: 0 0;
    background-repeat: no-repeat;
    content: '';
    display: inline-block;
    height: 24px;
    line-height: 24px;
    margin: 0;
    vertical-align: middle;
    width: 24px;
}

.am-locator__salon-details-sidebar-modal .am-locator__salon-details-instagram::before {
    background-image: url('../images/icon-instagram.jpg');
}

.am-locator__salon-details-sidebar-modal .am-locator__salon-details-facebook::before {
    background-image: url('../images/icon-facebook.jpg');
}

.am-locator__salon-details-sidebar-modal .am-locator__salon-details-socials {
    margin-bottom: 10px;
}

/* Brands: hidden until a salon with brands is opened (the script shows the block). */
.am-locator__salon-details-sidebar-modal .am-locator__salon-details-brands-images-wrapper {
    display: none;
    margin-top: auto;
}

.am-locator__salon-details-sidebar-modal .am-locator__salon-details-brands-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.am-locator__salon-details-sidebar-modal .am-locator__salon-details-brands-images-wrapper img {
    display: inline-block;
    margin-right: 15px;
    max-height: 50px;
    vertical-align: middle;
}

/* The details content stays hidden until the modal takes it. */
.amlocator-main-container > .am-locator__salon-details-wrapper {
    display: none;
}

/* ---- Mobile ---- */

@media (max-width: 767px) {
    .amlocator-main-container .amlocator-block.-filter {
        height: 100vh;
        position: fixed;
        z-index: 999;
    }

    .amlocator-main-container .amlocator-block.-filter.opened {
        left: 0;
    }

    .amlocator-index-index .page-title-wrapper .page-title {
        display: none;
    }

    body.amlocator__filters--opened {
        overflow: hidden;
    }

    .amlocator-block.-filter {
        padding: 25px 10px;
    }

    .amlocator-filters-container {
        height: 100%;
        overflow: auto;
        padding: 0 15px;
    }

    .amlocator-block.-filter.opened .amlocator-filters__close {
        right: 25px;
        top: 0;
    }

    .amlocator-block.-filter.opened .amlocator-filters-container {
        position: relative;
    }

    .modal-slide.am-locator__salon-details-sidebar-modal {
        left: 0;
    }
}

/* ---- Desktop ---- */

@media (min-width: 768px) {
    .amlocator-main-container .amlocator-map-container {
        overflow: hidden;
        padding: 0;
    }

    .amlocator-block.-filter {
        height: 100%;
        left: -35%;
    }

    .am-locator__salon-details-sidebar-modal {
        left: initial;
        width: 304px;
    }

    /* Luma's page title, as in legacy; the header and footer web components reset h1 to the body size. */
    .amlocator-index-index .page-title-wrapper .page-title {
        font-family: inherit;
        font-size: 4rem;
        font-weight: 300;
        line-height: 1.1;
        margin: 0 0 4rem;
    }
}
