/***** RETAILER SEARCH FORM PAGE *****/
.retailers_search_form__wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 2500px;
    min-height: 800px;
    background-color: var(--shale);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    background-image: url('../img/background/1920x1300.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
@media(max-width: 767.98px) {
    .retailers_search_form__wrapper {
        background-image: url('../img/background/767x1080.jpg');
    }
}
.retailers_search_form__wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    z-index: 3;
    background: #1C2F35;
    background: -webkit-linear-gradient(180deg, rgba(28, 47, 53, 1) 0%, rgba(28, 47, 53, 0) 100%);
    background: -moz-linear-gradient(180deg, rgba(28, 47, 53, 1) 0%, rgba(28, 47, 53, 0) 100%);
    background: linear-gradient(180deg, rgba(28, 47, 53, 1) 0%, rgba(28, 47, 53, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#1C2F35", endColorstr="#1C2F35", GradientType=0);
}
.retailers_search_form__wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    z-index: 3;
    background: #1C2F35;
    background: -webkit-linear-gradient(0deg,rgba(28, 47, 53, 1) 0%, rgba(28, 47, 53, 0) 100%);
    background: -moz-linear-gradient(0deg,rgba(28, 47, 53, 1) 0%, rgba(28, 47, 53, 0) 100%);
    background: linear-gradient(0deg,rgba(28, 47, 53, 1) 0%, rgba(28, 47, 53, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(
            startColorstr="#1C2F35",
            endColorstr="#1C2F35",
            GradientType=0
    );
}

.retailers_search_form__wrapper #viewportLottie {
    height: 120%;
    width: 120%;
    min-height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}


.retailers_search_form__wrapper .search_form__background {
    width: 900px;
    max-width: calc(100% - 60px);
    background-color: var(--off-white);
    padding: 90px;
    margin-top: var(--mobile-menu-height);
    z-index: 10;
    position: relative;
}

.retailers_search_form__wrapper .search_form__background .form__buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.retailers_search_form__wrapper .search_form__background .form__buttons .button.primary {
    margin-bottom: 0;
}


.retailers_search_form__wrapper .search_form__background .form__buttons button.useMyLocation {
    position: relative;
    padding: 0;
    background: transparent;
    outline: none;
    border: 0;
    font-family: "miller-display", sans-serif;
    font-size: 14px;
    text-decoration: underline;
    padding-left: 20px;
    color: var(--deep-cove);
}
.retailers_search_form__wrapper .search_form__background .form__buttons button.useMyLocation::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 14px;
    width: 14px;
    background-image: url("../img/buttons/useMyLocation.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
@media(max-width: 991.98px) {
    .retailers_search_form__wrapper .search_form__background {
        padding: 50px;
    }
}
@media(max-width: 575.98px) {
    .retailers_search_form__wrapper .search_form__background {
        max-width: calc(100% - 32px);
    }
    .retailers_search_form__wrapper .search_form__background {
        padding: 30px;
    }
    .retailers_search_form__wrapper .search_form__background .form__buttons {
        flex-direction: column;
    }
    .retailers_search_form__wrapper .search_form__background .form__buttons .button.primary {
        width: 100%;
        margin: 0;
        margin-bottom: 20px;
    }
}


/*****/

.nearby_retailers_map {
    padding-top: 90px;
}

.nearby_retailers_map #map-box {
    height: 100%;
    width: 100%;
    padding-bottom: 28%;
}
@media(max-width: 1599.98px) {
    .nearby_retailers_map {
        padding-top: 40px;
    }
}



.postcodeOrAddressContainer {
    position: relative;
}
#deleteSearch {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 59px;
    right: 20px;
    background-image: url('../img/deleteSearch.svg');
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
    display: none;
}
#deleteSearch.show {
    display: block;
}

form#postcode-search .loader {
    border: 8px solid #ccc;
    border-radius: 50%;
    border-top: 8px solid #E21B23;
    width: 28px;
    height: 28px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 15px;
    right: 20px;
}
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0)
    }
    100% {
        -webkit-transform: rotate(360deg)
    }
}
@keyframes spin {
    0% {
        transform: rotate(0)
    }
    100% {
        transform: rotate(360deg)
    }
}




img.retailerPin {
    width: 30px;
}

div.error-message {
    background-color: var(--shale);
    padding: 3px 13px;
    font-size: 14px;
    color: #FFFFFF;
}
div.error-message:not(:empty) {
    display: inline-block;
    -ms-flex-item-align: start;
    align-self: flex-start;
}
div.error-message:empty {
    display: none;
}

.overflow-box {
    overflow-y: scroll;
}


/*** Retailer Search Results Page ***/


.retailer-subheading {
    opacity: .6;
}

.nearby_retailers_map h1:has(+ .row.retailers) {
    margin-bottom: 30px;
}

.retailer-search-results-box .collections-spacer.show-details {
    margin-top: 45px;
}

.retailer-search-result-box .collection-instance {
    margin-bottom: 20px;
}



/*** Retailer Search Results ***/
.retailer-search-result-box {
    padding-bottom: 60px;
    border-bottom: 1px solid var(--grey-border);
    margin-bottom: 60px;
}
.retailer-search-result-box h3 {
    margin-bottom: 35px;
    position: relative;
    margin-right: 20px;
}
.retailer-search-result-box h3:after {
    content: '';
    position: absolute;
    background-image: url('../img/plus-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 15px;
    height: 15px;
    top: 11px;
    right: -20px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.retailer-search-result-box h3.active-state:after {
    transform: rotate(45deg);
    transform-origin: center;
}
.retailer-search-result-box a {
    margin-bottom: 3px;
    display: block;
}
.retailer-search-result-box .see-collection {
    font-family: "miller-display", sans-serif;
    color: var(--black);
    font-size: 16px;
}

.retailer-search-result-box .image-container {
    padding-right: 30px;
}
.retailer-search-result-box .collection-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 30px;
    padding-left: 0;
}
.retailer-search-result-box .collection-info p {
    margin-bottom: 6px;
}

.add-line-separator {
    border-bottom: 1px solid #DCDCDC;
}




@media(max-width: 1599.98px) {
    .retailer-search-result-box .image-container {
        padding-right: 25px;
    }
    .retailer-search-results-box .filter-container {
        margin-bottom: 45px;
    }

    .retailer-subheading {
        margin-bottom: 7px;
    }

    .retailer-search-result-box .collection-info {
        padding: 0;
        padding-right: 20px;
    }
    .retailer-search-result-box .collection-info h5 {
        margin-bottom: 5px;
    }
}

@media(max-width: 1199.98px){
    .retailer-info-section:first-of-type,
    .retailer-info-section:nth-child(2) {
        margin-bottom: 30px;
    }
}
@media(max-width: 991.98px) {
    .nearby_retailers_map #map-box {
        padding-bottom: 75%;
    }
}
@media(max-width: 767.98px){
    .retailer-info-section:nth-child(3) {
        margin-bottom: 30px;
    }
}
@media(max-width: 575.98px) {
    .nearby_retailers_map {
        padding-top: 10px;
    }
    .retailer-search-results-box .filter-container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        margin: 20px 0;
    }
    .retailer-search-results-box .filter-container p {
        margin-bottom: 6px;
    }
    .retailer-search-result-box {
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    .retailer-search-results-box .collections-spacer.show-details {
        margin-top: 25px;
    }
    .retailer-search-result-box h3 {
        margin-bottom: 20px;
    }
    .retailer-info-section {
        margin-bottom: 15px;
    }
    .retailer-info-section:last-of-type {
        margin-bottom: 0px;
    }
    .retailer-search-result-box .image-container {
        padding-right: 16px;
    }
    .retailer-search-result-box .collection-info {
        padding: 0;
    }
}







.distancePin {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.distancePin::before {
    content: "";
    width: 12px;
    height: 16px;
    background-image: url('../img/greyDistancePin.svg');
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
    margin-right: 10px;
}

@media(max-width: 767px) {
    .retailer-search-results-box {
        height: auto;
    }
    .overflow-box {
        overflow-y: auto;
    }
}


body .overflow-box::-webkit-scrollbar {
    width: 8px;                     /* width of the entire scrollbar */
    border-radius: 4px;
}
body .overflow-box::-webkit-scrollbar-track {
    border-radius: 4px;
    background: #F5F5F5;            /* color of the tracking area */
}
body .overflow-box::-webkit-scrollbar-thumb {
    background-color: #B3B3B3;      /* color of the scroll thumb */
    border-radius: 4px;             /* roundness of the scroll thumb */
    border: 0;                      /* creates padding around scroll thumb */
}
body .overflow-box::-webkit-scrollbar-thumb:hover {
    background: #000;
    border-radius: 4px;
    cursor: hover;
}

form input#postcodeOrAddress {
    margin-bottom: 0 !important;
}

.selected-retailer-box,
.highlight-border {
    border: 2px solid #006FFF;
    border-radius: 7px;
}

a#showOrHideMap,
a#showOrHideMap:hover,
a#showOrHideMap:active,
a#showOrHideMap:visited {
    color: #FFFFFF;
}
/*Accordions*/
.retailer-search-result-box {
    transition: 0.3s ease-in-out;
}
.retailer-search-result-box .collections-spacer,
.retailer-search-result-box .collections-details {
    opacity: 0;
    height: 0;
}
.retailer-search-result-box .collections-spacer.show-details,
.retailer-search-result-box .collections-details.show-details {
    opacity: 1;
    animation-name: fadeInOpacity;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 1s;
    height: auto;
}
@keyframes fadeInOpacity {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@media(max-width: 1599.98px){
    .retailer-search-result-box h3:after {
        top: 5px;
    }
}

/* Popup Filters */
.collection-category-popup {
    background-color: var(--white);
    width: fit-content;
    padding: 30px;
    position: absolute;
    z-index: 9;
    top: 110px;
    border: 1px solid var(--grey-border);
    border-radius: 3px;
    opacity: 0;
    visibility: hidden;
}
.collection-category-popup.show {
    opacity: 1;
    visibility: visible;
}
.collection-category-popup .close-subtray {
    display: none;
}
.collection-category-popup p:not(.subheading) {
    display: flex;
    width: fit-content;
    justify-content: center;
    margin-bottom: 7px;
    line-height: 26px;
}
.collection-category-popup p:not(.subheading):last-of-type {
    margin-bottom: 0;
}
.collection-category-popup p:not(.subheading) * {
    margin: 0;
}
.collection-category-popup p label {
    order: 2;
    font-size: 18px;
    font-style: normal;
    flex-direction: row-reverse;
    display: flex;
    padding-bottom: 5px;
}
.collection-category-popup p input[type="checkbox"] {
    order: 1;
    width: 27px;
    height: 24px;
    line-height: 24px;
    -webkit-appearance: none;
    background: white;
    border-radius: 2px;
    border: 1px solid var(--grey-border);
    vertical-align: middle;
    margin-right: 12px;
}
.collection-category-popup p input[type="checkbox"]:checked {
    background-image: url("../img/checked-box.svg");
    background-size: 100%;
    background-position: right center;
    background-repeat: no-repeat;
    border: 0px;
}
.collection-category-popup button.button.secondary:after {
    display: none;
}
.collection-category-popup button.button.secondary {
    padding: 10px 20px;
    line-height: 1.1;
}
.collection-category-popup p.subheading {
    margin-bottom: 15px;
}
.retailer-search-results-box .filter-container button.button.tag.active {
    background-color: #EBE8E1;
    border-color: var(--mid-grey);
    color: var(--deep-cove);
}
.retailer-search-results-box .filter-container button.button.tag.active::after {
    transform: translateY(-50%) rotate(180deg);
    transform-origin: center;
}
@media(max-width: 575.98px) {
    .retailer-search-results-box .filter-container button.button.tag {
        margin-bottom: 10px;
    }
    .retailer-search-result-box h3 {
        margin-right: 30px;
    }
}
@media(max-width: 575.98px){
    .collection-category-popup {
        /*top: 140px;*/
    }
}



/***** MAP INFO WINDOWS ******/
.gm-style-iw.gm-style-iw-c {
    padding: 0;
    max-width: 373px !important;
    border: 0;
    box-shadow: unset;
}
.gm-style .gm-style-iw-d {
    padding: 0px 30px 30px;
    max-height: unset !important;
}
.gm-style .gm-style-iw-d h3 {
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 8px;
}
.gm-style .gm-style-iw-d p.small.distance {
    margin-bottom: 20px;
    opacity: 0.8;
}
.gm-style .gm-style-iw-d p.small.address {
    margin-bottom: 12px;
}
.gm-style .gm-style-iw-d p.tel {
    font-weight: 600;
    margin-bottom: 0px;
}
@media(max-width: 575.98px) {
    .gm-style-iw.gm-style-iw-c {
        max-width: 300px!important;
    }
}

span.nwFilterCounter {
    margin-left: 5px;
}




.retailer-search-results-box .filter-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    /*justify-content: flex-start;*/
    flex-wrap: wrap;
    margin-top: 45px;
    margin-bottom: 45px;
    justify-content: flex-end;
}
.retailer-search-results-box .filter-container p {
    margin-right: 15px;
    color: var(--dark-grey);
}
.retailer-search-results-box .filter-container p.filterByParagraph {
    margin: 0;
    margin-right: 15px;
    opacity: .6;
}
.retailer-search-results-box .filter-container button.button.tag {
    position: relative;
    padding-right: 35px;
    margin-bottom: 0;
}
.retailer-search-results-box .filter-container button.button.tag::after {
    content: '';
    display: block;
    height: 5px;
    width: 8px;
    background-image: url("../img/buttons/filterDropdown.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}
.retailer-search-results-box .filter-container form {
    width: 100%;
}
.filter-container button.mobile-close {
    display: none;
}
.retailer-search-results-box .mobile-open-filter-tray,
.retailer-search-results-box .mobile-clear-filters {
    display: none;
}

.retailer-search-results-box .mobile-open-filter-tray,
.retailer-search-results-box .mobile-clear-filters {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gold);
    color: var(--text-black);
    background-color: transparent;
    font-size: 16px;
    margin-bottom: 5px;
}
.retailer-search-results-box .mobile-open-filter-tray {
    margin-top: 20px;
}
.retailer-search-results-box .mobile-clear-filters {
    border: none;
}

/*#vanityFittedFurniturePopup {*/
/*    margin-left: 270px;*/
/*}*/
.collection-category-popup {
    right: 0px;
}
#calypsoFittedFurniturePopup {
    right: 170px;
}
.retailer-search-results-box .filter-container button.button.tag:last-of-type {
    margin-right: 0px;
}
.retailer-search-results-box a#nwClearFilters {
    margin-left: 15px;
}
/*** When pop out menu kicks in ***/
@media(max-width: 767.98px) {
    #vanityFittedFurniturePopup {
        margin-left: 0;
    }
    .filter-container button.mobile-close,
    .filter-container div.close-subtray {
        display: block;
        font-size: 0;
        border: none;
        width: calc(100% + 60px);
        margin-left: -30px;
        height: 60px;
        min-height: 60px;
        border-bottom: 1px solid #BCBAB4;
        background-color: transparent;
        background-image: url('../img/close/close.svg');
        background-repeat: no-repeat;
        background-position: 20px center;
        background-size: 18px;
    }
    .filter-container button.mobile-close:hover,
    .filter-container button.mobile-close:focus,
    .filter-container div.close-subtray:hover,
    .filter-container div.close-subtray:focus {
        background-color: transparent;
    }
    .retailer-search-results-box .mobile-filter-margin {
        width: 100%;
        margin-bottom: 35px;
    }

    .retailer-search-results-box .mobile-open-filter-tray,
    .retailer-search-results-box .mobile-clear-filters {
        display: block;
    }

    .retailer-search-results-box .filter-container {
        position: fixed;
        height: 100%;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        top: 0;
        left: 0;
        background-color: var(--off-white);
        z-index: 20000;
        margin-top: 0;
        transform: translateX(100%);

        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 30px;
        padding-top: 0;

        opacity: 0;
        visibility: hidden;
        transition: ease all .3s;
    }

    .retailer-search-results-box .filter-container p.filterByParagraph {
        display: none;
    }

    .retailer-search-results-box .filter-container.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(0%);
    }

    .retailer-search-results-box .filter-container .buttons-container {
        flex-direction: column;
        align-items: flex-start !important;
        justify-content:flex-start;
        width: 100%;
    }

    .retailer-search-results-box .filter-container button.button.tag {
        width: 100%;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid #BCBAB4;
        text-align: left;
        padding: 20px 0;

        font-family: miller-display, serif;
        font-size: 18px;
        line-height: 1.2;
    }

    .collection-category-popup {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: translateX(100%);
        background-color: var(--off-white);
        transition: ease all .3s;
        padding-top: 0;


        display: flex;
        flex-direction: column;
    }
    .collection-category-popup.show {
        transform: translateX(0%);
    }


    /* Hide scrollbar for Chrome, Safari and Opera */
    .inside-scroller::-webkit-scrollbar {
        display: none;
    }
    /* Hide scrollbar for IE, Edge and Firefox */
    .inside-scroller {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    .collection-category-popup .inside-scroller {
        padding-bottom: 100px;
        overflow-y: auto;
    }

    .collection-category-popup .button-bottom {
        position: fixed;
        bottom: 0;
        width: 100%;
        padding-bottom: 20px;
    }
    .collection-category-popup .button-bottom button.button.secondary {
        margin: 0;
        margin-bottom: 10px;
        background-color: var(--deep-cove);
        color: white;
        width: calc(100% - 60px);
    }

    .retailer-search-results-box .filter-container button.button.tag::after {
        background-image: url("../img/buttons/filterNext.svg");
        height: 20px;
        width: 20px;
        right: 0;
    }

    .retailer-search-results-box .filter-container a#nwClearFilters,
    .retailer-search-results-box .filter-container .nwFilterCounter {
        display: none;
    }

    .collection-category-popup .close-subtray {
        display: block;
    }


    .collection-category-popup p.subheading {
        margin-top: 30px;
    }

}

@media(max-width: 575.98px) {
    .retailer-search-results-box .mobile-open-filter-tray,
    .retailer-search-results-box .mobile-clear-filters {
        padding: 7px;
    }
}

.popup-error-message {
    background-color: red;
    color: white;
}
.popup-status-message {
    background-color: green;
    color: white;
}
.popup-error-message,
.popup-status-message {
    display: block;
    font-style: normal;
}

button.findRetailersPopupButton {
    margin-bottom: 0 !important;
}