/**
 * Store Locator
 *
 * This module provides functionality for locating and displaying stores on a map.
 * It includes features such as displaying store details, ratings, reviews, and more.
 *
 * @author    Michał Grzesik <mgrzesik@refix.pl>
 * @copyright REFIX 2025 - https://refix.pl
 * @license   Commercial
 * @version   1.0.0
 *
 */

:root {
    --primary-color: #d01216;
}

/* Controller: ourstores */
.refix-sl-top-heading {
    padding: 0 0 25px 0;
}
.refix-sl-heading {
    font-weight: 800;
}
#refix-sl-loader {
    display: flex;
    justify-content: center;
    align-items: center;
}
#refix-sl-loader i {
    animation: spin 2s linear infinite;
}
#map {
    margin: 0 0 4em;
    height: 600px;
}
.leaflet-tile-pane {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}
.refix-sl-upcoming-holidays,
.refix-sl-no-store-selected {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px;
    margin-bottom: 0.5em;
}
.refix-sl-store-item-container {
    border: 1px solid #f4f4f4;
    border-radius: 3px;
    padding: 20px;
}
.refix-sl-store-picture {
    padding: 0;
}
.refix-sl-store-name {
    font-weight: 800;
    font-size: 15px;
    margin: 0;
    color: #222;
}
.refix-sl-rating-average,
.refix-sl-rating-count {
    font-size: 12px;
    line-height: 13px !important;
    margin: 0 !important;
}
address {
    margin-top: 9px;
    margin-bottom: 9px;
    font-size: 14px;
    line-height: 17px;
}
.refix-sl-store-contact {
    display: flex;
    flex-direction: column;
}
.refix-store-contact-item {
    font-size: 12px;
}
.refix-sl-contact-button {
    display: block;
    margin-top: 25px;
}
.refix-sl-contact-button a {
    padding: 12px 50px;
    background: #222;
    border-radius: 5px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
}
.refix-sl-contact-button a:hover {
    background: var(--primary-color);
}
.fa-caret-right {
    color: #15ab00;
}
.refix-sl-store-temporarily-closed {
    border: 2px solid #f78d06;
    color: #f78d06;
    font-size: 12px;
    text-align: center;
    padding: 5px;
    margin-bottom: 5px;
}
.refix-sl-shopping-sundays {
    border: 2px solid var(--primary-color);
    padding: 5px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 12px;
    margin-bottom: 10px;
}
.refix-sl-store-opening-date {
    border: 2px solid #15ab00;
    color: #15ab00;
    font-size: 12px;
    text-align: center;
    padding: 5px;
    margin-bottom: 5px;
}
.refix-sl-opening-hours thead tr th,
.refix-sl-opening-hours tbody tr td {
    border: none !important;
    padding: 0.5rem;
    line-height: 5px !important;
    font-size: 12px;
}
.refix-sl-today {
    color: #15ab00;
}
.refix-sl-divide-left {
    border-left: #f4f4f4 1px solid;
}
.refix-sl-pagination .pagination {
    justify-content: center;
}
.page-item.active .page-link,
.page-item.active .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
@media (max-width: 575.98px) {
    #map {
        height: 400px;
    }
}
@media (max-width: 767.98px) {
    .refix-sl-store-picture,
    .refix-sl-store-description {
        margin-bottom: 20px;
        padding: 0;
    }
    .refix-sl-opening-hours thead tr th,
    .refix-sl-opening-hours tbody tr td {
        padding: 8px 0 8px;
    }
}
@media only screen and (min-device-width: 768px) and (max-device-width: 992px) {
    .refis-sl-store-picture {
        display: none;
    }
}
/* Controller: ourstores */

/* Controller: store */
.refix-sl-store-contact-item:hover {
    color: var(--primary-color);
}
.refix-sl-modal-body-store {
    max-height: 50vh;
    overflow-y: auto;
}
.modal-header .refix-sl-modal-close span {
    margin-top: -17px !important;
    margin-right: -23px;
}
.refix-sl-modal-rating-average-grade {
    font-size: 4em;
    font-weight: 700;
    line-height: 57px;
}
.refix-sl-modal-rating-date,
.refix-sl-modal-rating-comment{
    font-size: 12px;
}
.refix-sl-modal-heading {
    font-size: 14px;
    font-weight: 500;
    padding: 0;
}
.refix-sl-modal-info {
    font-size: 10px;
    color: #ccc;
    margin-bottom: 10px;
}
.refix-sl-modal-footer {
    margin-top: 0 !important;
    text-align: left;
}
/* Controller: store */

/* Leaflet */
.leaflet-popup-content {
    font-family: var(--font-family-base), sans-serif;
    line-height: 1.3;
    width: 200px;
}
.leaflet-popup-content-wrapper {
    border-radius: 3px !important;
}
.leaflet-container a {
    color: #222 !important;
}
.refix-sl-store-cover-img img {
    width: 100%;
}
.refix-sl-store-info {
    font-family: 'Eina', serif;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    padding: 15px;
    width: 250px;
}
.refix-sl-store-info-mail a,
.refix-sl-store-info-phone a {
    font-size: 12px;
    color: #222;
}
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(208, 18, 22, 0.6) !important;
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: rgba(208, 18, 22, 100) !important;
    -webkit-filter: grayscale(100%);
    color: #fff;
}
@media (max-width: 575.98px) {
    .leaflet-popup-content {
        filter: grayscale(100%);
    }
}
@media (max-width: 768px) {
    .refix-sl-store-info {
        width: 43vw;
    }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Leaflet */

/* Rating */
.refix-sl-star {
    display: inline-block;
    width: 1em;
    font-family: 'Font Awesome 5 Free', sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    margin-right: 5px;
    color: #ccc;
}
.refix-sl-star:before {
    content: "\f005";
    position: relative;
    overflow: hidden;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-image: linear-gradient(to right, #e47700 0%, #e47700 var(--fill), #ccc var(--fill), #ccc 100%);
}
/* Rating */

/* My store */
.refix-sl-my-store-open-modal {
    cursor: pointer;
}
.refix-sl-my-store-open-modal {
    font-size: 0.80rem;
    color: #222;
}
.refix-sl-modal-dialog {
    max-width: 500px;
}
.refix-sl-modal-header,
.refix-sl-modal-body,
.refix-sl-modal-footer {
    padding: 30px 50px 30px
}
.refix-sl-close-modal {
    margin-top: -45px;
    margin-right: -35px
}
.refix-sl-header-content {
    display: flex;
}
.refix-sl-header-content img {
    width: 40px;
}
.refix-sl-header-content h5,
.refix-sl-header-content p {
    font-size: 1.25rem;
}
.refix-sl-header-content p,
.refix-sl-modal-body p {
    font-size: 12px;
}
.refix-sl-modal-body p {
    font-weight: 600;
}
.refix-sl-my-store-form label {
    width: 100%;
    text-align: left;
}
.refix-sl-btn-request-location,
.refix-sl-save-location,
.refix-sl-change-location {
    width: 100%;
    background: #222;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
    padding: 15px;
    letter-spacing: 0;
    transition: background 0.3s ease-in-out;
}
.refix-sl-btn-request-location:hover,
.refix-sl-save-location:hover,
.refix-sl-change-location:hover,
.btn-primary:disabled:hover{
    background: #d01216;
}
.refix-sl-chosen-store-name {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
}
.refix-sl-nearest-store {
    line-height: 17px;
}
.refix-sl-nearest-store,
.refix-sl-chosen-store-opening-hours,
.refix-sl-chosen-store-address,
.refix-sl-chosen-store-route a,
.refix-sl-chosen-store-phone a,
.refix-sl-chosen-store-url a {
    font-size: 13px;
    color: #222;
}
.refix-sl-chosen-store-route a:hover,
.refix-sl-chosen-store-phone a:hover,
.refix-sl-chosen-store-url a:hover {
    text-decoration: underline;
    color: #d01216;
}
.refix-sl-chosen-store-route {
    margin-top: 12px;
}
.select2-container--default .select2-selection--single {
    border: 2px solid #222 !important;
}
.select2-container .select2-selection--single,
.select2-search--dropdown .select2-search__field {
    height: 46px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin-top: 6px !important;
    border-color: #222 transparent transparent !important;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #222 !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 42px !important;
    font-size: 13px;
}
.select2-container .select2-results__option--highlighted {
    font-size: 13px !important;
    font-weight: bold;
    color: #ffffff !important;
    background-color: #d01216 !important;
}
.select2-results__option[aria-selected] {
    font-size: 13px;
}
.select2-container--default .select2-search__field:focus {
    border-color: #d01216 !important;
    outline: none !important;
}
/* My store */

/* Product availability */
.refix-sl-product-availability-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 40px;
    border-radius: 10px;
    -webkit-box-shadow: 0 -7px 22px 7px rgba(239, 239, 239, 1);
    -moz-box-shadow: 0 -7px 22px 7px rgba(239, 239, 239, 1);
    box-shadow: 0 -7px 22px 7px rgba(239, 239, 239, 1);
    cursor: pointer;
}
.refix-sl-product-availability {
    margin-right: 15px;
}
.refix-sl-product-availability .refix-sl-product-availability-main-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.525em;
}
.refix-sl-product-availability .refix-sl-product-availability-sub-text {
    font-size: 14px;
    color: #d01216;
    font-weight: bold;
}
.refix-sl-availability-modal-dialog .modal-body {
    display: flex;
}
#refix-sl-product-availability-map {
    width: 500px;
    height: 518px;
}
.refix-sl-no-store-selected {
    margin: 2.500rem 0;
}
.refix-sl-product-availability-info {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}
#refix-sl-product-availability-my-store-select {
    display: flex;
}
#refix-sl-btn-request-location {
    background: #222;
    border: 1px solid #222;
    color: #fff;
    height: 46px;
    border-radius: 3px;
}
.refix-sl-location-icon {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-image: url('/modules/refix_storelocator/views/img/refix-sl-target-wh.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transition: background-image 0.3s ease-in-out;
}
#refix-sl-btn-request-location:hover {
    background: #fff;
    color: #222;
}
#refix-sl-btn-request-location:hover .refix-sl-location-icon {
    background-image: url('/modules/refix_storelocator/views/img/refix-sl-target-bl.svg');
}
.refix-sl-nearest-stores-list .card {
    border: 2px solid #eee;
    border-radius: 3px;
    padding: 10px;
}
.refix-sl-nearest-stores-list-card-content {
    position: relative;
    display: flex;
}
.refix-sl-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 5px;
}
.refix-sl-status-dot.bg-secondary {
    background-color: #eee;
}
.refix-sl-second-store-name,
.refix-sl-second-store-address,
.refix-sl-third-store-name,
.refix-sl-third-store-address {
    margin: 0;
    line-height: 18px;
}
.refix-sl-second-store-distance,
.refix-sl-third-store-distance {
    position: absolute;
    right: 10px;
}
.refix-sl-caret-right {
    position: absolute;
    right: 10px;
    top: 40px;
}
@media (min-width: 576px) {
    .refix-sl-availability-modal-dialog {
        max-width: 900px;
    }
}
.refix-sl-skeleton {
    display: inline-block;
    height: 14px;
    background-color: #eee;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.refix-sl-skeleton.city {
    width: 80px;
}
.refix-sl-skeleton.name {
    width: 200px;
}
.refix-sl-skeleton.address {
    width: 150px;
}
.refix-sl-skeleton.distance {
    width: 20px;
}
.refix-sl-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150px;
    height: 100%;
    width: 150px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}
@keyframes loading {
    to {
        left: 100%;
    }
}
/* Product availability */
