/* modals */
.modal-backdrop {
    z-index: 100001;
}

.modal {
    z-index: 100002;
}

.modal .modal-header {
    padding: 15px 20px 12px 20px;
    line-height: 1.4;
    border-bottom: solid #d9d9d9 1px;
}

.modal .modal-header h5 {
    font-family: 'Avenir';
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
    color: #000;
    max-width: calc(100% - 50px);
    line-height: 1.3;
}

.modal .modal-header .btn-close {
    margin: 0;
    font-family: "Arial", sans-serif;
    font-size: 13px;
    border: none;
    width: 6px;
    height: 6px;
    display: block;
    float: right;
}

.modal .isLoading {
    display: none;
    margin-top: 7px;
}

.modal .isLoading img {
    width: 60px;
    height: 18px;
}

.modal .modal-footer a.btn-sm {
    padding: 3px 20px;
}

.modal .modal-footer a.btn-footer-close {
    font-family: 'Avenir';
    font-weight: 500;
    font-style: normal;
    font-size: 12px;
    padding: 9px 50px;
    background: #ed1c24;
    text-transform: uppercase;
    outline: none;
    border-radius: unset;
    border: none;
    transition: none;
}

#collectionSliderModal.loading .modal-body {
    height: 200px;
    overflow: hidden;
}

#modalAlert {
    display: block;
    position: fixed;
    top: 25%;
    left: 50%;
    width: 400px;
    height: auto;
    margin-left: -200px;
    padding: 0 0 15px 0;
    line-height: 1.2;
    z-index: 100100;
    background: #fff;
    border: solid #fff 1px;
    border-radius: 4px 4px 4px 4px;
    -moz-border-radius: 4px 4px 4px 4px;
    -webkit-border-radius: 4px 4px 4px 4px;
}

#modalAlert .modal-header {
    padding: 15px 20px 5px 20px;
    line-height: 1.4;
    border-bottom: solid #d9d9d9 1px;
}

#modalAlert .modal-header H3 {
    font-family: 'Avenir';
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
    color: #000;
}

#modalAlert .modal-header .btn-close {
    margin: 0;
    font-family: "Arial", sans-serif;
    font-size: 14px;
    border: none;
    width: 6px;
    height: 6px;
    display: block;
    float: right;
}

#modalAlert #modalAlertBody {
    font-family: 'Avenir';
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    line-height: 1.4;
    color: #2a2a2a;
    padding: 15px 20px 40px 20px;
}

#modalAlert .btn-footer-close {
    font-family: 'Avenir';
    font-weight: 500;
    font-style: normal;
    font-size: 12px;
    padding: 8px 30px;
    width: 120px;
    background: #ed1c24;
    text-transform: uppercase;
    outline: none;
    border-radius: unset;
    border: none;
    transition: none;
}

#modalInfo {
    display: block;
    position: fixed;
    top: 25%;
    left: 50%;
    width: 400px;
    height: auto;
    margin-left: -200px;
    padding: 0 0 15px 0;
    line-height: 1.2;
    z-index: 100100;
    background: #fff;
    border: solid #fff 1px;
    border-radius: 4px 4px 4px 4px;
    -moz-border-radius: 4px 4px 4px 4px;
    -webkit-border-radius: 4px 4px 4px 4px;
}

#modalInfo .modal-header {
    padding: 15px 20px 5px 20px;
    line-height: 1.4;
    border-bottom: solid #d9d9d9 1px;
}

#modalInfo .modal-header H3 {
    font-family: 'Avenir';
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
    color: #000;
}

#modalInfo .modal-header .btn-close {
    margin: 0;
    font-family: "Arial", sans-serif;
    font-size: 14px;
    border: none;
    width: 6px;
    height: 6px;
    display: block;
    float: right;
}

#modalInfo #modalInfoBody {
    font-family: 'Avenir';
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    line-height: 1.4;
    color: #2a2a2a;
    padding: 15px 20px 40px 20px;
}

#modalInfo .btn-footer-close {
    font-family: 'Avenir';
    font-weight: 500;
    font-style: normal;
    font-size: 12px;
    padding: 8px 30px;
    width: 120px;
    background: #059d2e;
    outline: none;
    border-radius: unset;
    border: none;
    transition: none;
    text-transform: uppercase;
}

#modalConfirm {
    display: block;
    position: fixed;
    top: 25%;
    left: 50%;
    width: 400px;
    height: auto;
    margin-left: -200px;
    padding: 0 0 15px 0;
    line-height: 1.2;
    z-index: 100100;
    background: #fff;
    border: solid #fff 1px;
    border-radius: 4px 4px 4px 4px;
    -moz-border-radius: 4px 4px 4px 4px;
    -webkit-border-radius: 4px 4px 4px 4px;
}

#modalConfirm .modal-header {
    padding: 15px 20px 5px 20px;
    line-height: 1.4;
    border-bottom: solid #d9d9d9 1px;
}

#modalConfirm .modal-header H3 {
    font-family: 'Avenir';
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
    color: #000;
}

#modalConfirm .modal-header .btn-close {
    margin: 0;
    font-family: "Arial", sans-serif;
    font-size: 14px;
    border: none;
    width: 6px;
    height: 6px;
    display: block;
    float: right;
}

#modalConfirm #modalConfirmBody {
    font-family: 'Avenir';
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    line-height: 1.4;
    color: #2a2a2a;
    padding: 15px 20px 40px 20px;
}

#modalConfirm .btn-footer-confirm {
    font-family: 'Avenir';
    font-weight: 500;
    font-style: normal;
    font-size: 12px;
    padding: 8px 30px;
    margin: 0 5px 0 0;
    width: 120px;
    background: #059d2e;
    outline: none;
    border-radius: unset;
    border: none;
    transition: none;
    text-transform: uppercase;
}

#modalConfirm .btn-footer-cancel {
    font-family: 'Avenir';
    font-weight: 600;
    font-style: normal;
    font-size: 12px;
    padding: 7px 30px;
    margin: 0;
    width: 120px;
    background: #fff;
    color: #545454;
    outline: none;
    border-radius: unset;
    border: solid #e4e4e4 1px;
    transition: none;
    text-transform: uppercase;
}

#productRealizationModal .step:not(:last-child) {
    background: url("../img/about-product-realization-next.png") no-repeat top 50% right 0;
}

#productRealizationModal .step-txt {
    margin: 0 0 30px 0;
    text-align: center;
    font-family: 'Avenir';
    font-weight: 600;
    font-style: normal;
    font-size: 15px;
}

#productRealizationModal .about-realization {
    text-align: center;
    font-family: 'Avenir';
    font-weight: 600;
    font-style: normal;
    font-size: 16px;
    background: url("../img/about-product-realization-arrow.png") no-repeat top 0 right 0;
    padding: 30px 0 0 0;
}

#productRealizationModal ul {
    list-style: none;
}

#productRealizationModal ul li {
    list-style-type: none;
    position: relative;
    padding-left: 12px;
    margin: 0 0 10px 0;
}

#productRealizationModal ul li::before {
    content: ">";
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #ed1c24;
    position: absolute;
    top: 0px;
    left: -10px;
}

/* top search autocomplete modal */
.topDynamicModal {
    display: none;
    position: fixed;
    height: auto;
    overflow: auto;
    padding: 20px 10px;
    font-family: 'Avenir Book';
    font-weight: normal;
    font-style: normal;
    font-size: 13px;
    color: #161616;
    line-height: 1.4;
    border: solid #d9d9d9 1px;
    background: #fff;
    z-index: 100001;
    -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    -webkit-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.topDynamicModal::-webkit-scrollbar {
    display: none;
}

.topDynamicModal h4 {
    font-family: 'Avenir';
    font-weight: 600;
    font-style: normal;
    font-size: 14px;
    color: #000;
}

.topDynamicModal ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.topDynamicModal ul li {
    list-style-type: none;
    position: relative;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

.topDynamicModal ul li.row-item.disabled {
    opacity: 0.50;
    filter: alpha(opacity=50);
}

.topDynamicModal ul.products li {
    padding: 10px;
}

.topDynamicModal ul.groups li {
    padding: 0px;
    margin: 8px 0;
}

.topDynamicModal .img-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0;
}

.topDynamicModal .img-wrapper img {
    max-width: 70px;
    max-height: 70px;
}

.topDynamicModal .prices {
    margin: 5px 0 0;
}

.topDynamicModal .prices.very-top {
    margin: 0;
}

.topDynamicModal .base {
    text-decoration: line-through;
    margin: 0 5px 0 0;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #161616;
}

.topDynamicModal .current {
    margin: 0 0 0;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #ed1c24;
}

.topDynamicModal .base.bigger,
.topDynamicModal .current {
    font-size: 15px;
}

.topDynamicModal a.product-name,
.topDynamicModal a.product-name:active,
.topDynamicModal a.product-name:visited {
    display: block;
    margin: 0;
    color: #161616;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.5;
}

.topDynamicModal .brand-name {
    margin: 5px 0 0;
    color: #aaa;
    font-size: 11px;
}

.topDynamicModal a.product-name:hover {
    color: #ed1c24;
}

.topDynamicModal a.result,
.topDynamicModal a.result:active,
.topDynamicModal a.result:visited {
    color: #161616;
    text-decoration: none;
}

.topDynamicModal a.result:hover {
    color: #ed1c24;
}

.topDynamicModal .btn-basket.btn-outline-danger {
    width: 110px;
    padding: 3px 0;
}

.topDynamicModal .btn-basket.btn-outline-danger .spinner-border {
    height: 12px;
    width: 12px;
    color: #ed1c24 !important;
}

/* only for XX-LARGE */
@media all and (min-width: 1400px) {
    .topDynamicModal {
        top: 70px;
        left: calc(50% - 400px);
        width: 800px;
        max-width: 90%;
        max-height: calc(100% - 120px);
    }
}

/* only for X-LARGE */
@media all and (min-width: 1200px) and (max-width: 1399px) {
    .topDynamicModal {
        top: 70px;
        left: calc(50% - 400px);
        width: 800px;
        max-width: 90%;
        max-height: calc(100% - 120px);
    }
}

/* only for LARGE */
@media all and (min-width: 992px) and (max-width: 1199px) {
    .topDynamicModal {
        top: 70px;
        left: calc(50% - 350px);
        width: 700px;
        max-width: 90%;
        max-height: calc(100% - 120px);
    }
}

/* only for MEDIUM */
@media all and (min-width: 768px) and (max-width: 991px) {
    .topDynamicModal {
        top: 128px;
        left: calc(50% - 297px);
        width: 597px;
        max-width: 90%;
        max-height: calc(100% - 150px);
    }

    .topDynamicModal.floating {
        top: 64px;
        left: calc(50% - 297px);
        width: 597px;
        max-width: 90%;
        max-height: calc(100% - 92px);
    }
}

/* only for SMALL */
@media all and (min-width: 576px) and (max-width: 767px) {
    .topDynamicModal {
        top: 126px;
        left: calc(50% - 207px);
        width: 415px;
        max-width: 90%;
        max-height: calc(100% - 150px);
    }

    .topDynamicModal.floating {
        top: 64px;
        left: calc(50% - 207px);
        width: 415px;
        max-width: 90%;
        max-height: calc(100% - 92px);
    }
}

/* for EXTRA SMALL and SMALL and MEDIUM */
@media all and (max-width: 991px) {
    #productRealizationModal .step img {
        width: 70%;
    }

    #productRealizationModal .step-txt {
        font-size: 13px;
    }

    #productRealizationModal .about-realization {
        font-size: 14px;
    }
}

/* up to X-SMALL */
@media all and (max-width: 575px) {
    #modalAlert,
    #modalInfo,
    #modalConfirm {
        width: 90%;
        margin-left: -45%;
    }

    #productRealizationModal .step img {
        width: 70%;
    }

    #productRealizationModal .step-txt {
        font-size: 12px;
    }

    .topDynamicModal {
        top: 126px;
        left: 12px;
        width: calc(100% - 24px);
        maax-width: 90%;
        max-height: calc(100% - 150px);
    }

    .topDynamicModal.floating {
        top: 64px;
        left: 12px;
        width: calc(100% - 24px);
        maax-width: 90%;
        max-height: calc(100% - 92px);
    }
}
