/* -----------------------------------------------------------------------------
MODAL
----------------------------------------------------------------------------- */
.modal-rs {
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    visibility: hidden;
    transition: all 0.75s;
    overflow: hidden;
}

/* STATES */
.modal-rs.is-open {
    opacity: 1;
    visibility: visible;
    z-index: 10;
    position: fixed;
}

/* DIALOG */
.modal-rs__dialog {
    min-height: 532px;
    max-height: calc(100vh - 100px);
    width: 100%;
    background: white;
    position: relative;

    max-width: 412px;
    height: auto;
    padding: 30px 22px 22px;
}

/* CLOSE BUTTON */
.modal-rs__close {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background-color: transparent;
    background-image: url(../../img/close-modal.svg);
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-position: center;
    transition: color 150ms;
    position: absolute;
    top: 13px;
    right: 16px;
    z-index: 12;
}


/* MODAL SIZE */
.modal-rs-size .modal-rs__dialog {
    max-width: 412px;
    height: auto;
    padding: 30px 22px 22px;
}
.modal-rs-size__flex {
    display: flex;
    justify-content: space-between;
}

.modal-rs-size__product a {
    height: auto;
    border: none;
}

.modal-rs-size__description {
    padding-top: 18px;
}

.modal-rs-size__description h3 {
    margin: 0 0 8px;
    font-family: 'Poppins-Bold';
    font-size: 16px;
    line-height: 20px;
    text-transform: uppercase;
    color: #2E3549;
}

.modal-rs-size__description span {
    display: block;
}

.modal-rs-size__description .color {
    margin-bottom: 10px;
    font-family: 'Poppins-Regular';
    font-size: 14px;
    line-height: 17px;
    letter-spacing: 0.50px;
    color: #000000;
}

.modal-rs-size__description .stock {
    margin-bottom: 14px;
    font-family: 'Poppins-Regular';
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 0.50px;
    color: #40BFFF;
}

.modal-rs-size__description .price {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 21px;
    letter-spacing: 0.50px;
    color: #2E3549;
}

.modal-rs-size__description .price span {
    display: inline;
    color: #FB7181;
}

.modal-rs-size form {
    padding-top: 18px;
    border-top: 1px solid #EEF0F2;
}

.modal-rs-size form legend {
    margin-bottom: 24px;
    border: none;
    font-family: 'Poppins-Regular';
    font-size: 18px;
    line-height: 22px;
    color: #20326380;
}

.modal-rs-size__form-content {
    display: flex;
    flex-wrap: wrap;
}

.modal-rs-field {
    max-width: 91px;
    margin-bottom: 26px;
}

.modal-rs-field:nth-child(3n-1) {
    margin: 0 36px;
}

.modal-rs-field label {
    margin-bottom: 7px;
    font-family: 'Poppins-Regular';
    font-size: 13px;
    line-height: 16px;
    text-align: center;
    color: #20326380;
    display: block;
}

.modal-rs-field__input {
    width: 100%;
    height: 24px;
    padding: 0 4px;
    margin-bottom: 5px;
    border-radius: 4px;
    border: 1px solid #EEF0F2;
    font-family: 'Poppins-Regular';
    font-size: 12px;
    color: #2E3549;
    text-align: center;
    display: block;
}

.modal-rs-field__input:focus-visible {
    outline: none;
}

.modal-rs-field__note {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 13px;
    text-align: center;
    color: #5C61F4;
}

.modal-rs-size .btn {
    margin-bottom: 0;
}

/* MODAL THANKS */
.modal-rs-thanks h2 {
    margin: 0 auto 41px;
    padding-top: 120px;
    font-family: 'Poppins-Bold';
    font-size: 41px;
    line-height: 49px;
    color: #2E3549;
    text-align: center;
    position: relative;
}

.modal-rs-thanks h2 span {
    display: block;
}

.modal-rs-thanks h2::before {
    content: '';
    width: 99px;
    height: 77px;
    margin: 0 auto;
    background-image: url(../../img/box.svg);
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.modal-rs-thanks p {
    margin-bottom: 50px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #000000;
}

.modal-rs-thanks .modal-rs-field {
    max-width: 100%;
}

.modal-rs-thanks .modal-rs-field__input {
    height: 48px;
    padding-left: 55px;
    padding-right: 25px;
    border-radius: 4px;
    border: 1px solid #EEF0F2;
    background-image: url(../../img/mail.svg);
    background-repeat: no-repeat;
    background-size: 29px 22px;
    background-position: 15px center;
    font-family: 'Poppins-Regular';
    font-size: 18px;
    line-height: 21px;
    color: #9098B1;
}

.modal-rs-thanks .modal-rs-field__input::-webkit-input-placeholder { /* Edge */
    font-family: 'Poppins-Regular';
    font-size: 18px;
    line-height: 21px;
    color: #9098B1;
    text-align: center;
}
  
.modal-rs-thanks .modal-rs-field__input:-ms-input-placeholder { /* Internet Explorer 10-11 */
    font-family: 'Poppins-Regular';
    font-size: 18px;
    line-height: 21px;
    color: #9098B1;
    text-align: center;
}

.modal-rs-thanks .modal-rs-field__input::placeholder {
    font-family: 'Poppins-Regular';
    font-size: 18px;
    line-height: 21px;
    color: #9098B1;
    text-align: center;
}


.modal-rs-thanks .btn {
    margin-bottom: 0;
}


/* MODAL PRODUCT */
.modal-rs-product .modal-rs__dialog {
    overflow: hidden;
    overflow-y: auto;
}


.modal-rs-product h2 {
    margin: 0 auto 41px;
    padding-top: 120px;
    font-family: 'Poppins-Bold';
    font-size: 41px;
    line-height: 49px;
    color: #2E3549;
    text-align: center;
    position: relative;
}

.modal-rs-product h2 span {
    display: block;
}

.modal-rs-product h2::before {
    content: '';
    width: 99px;
    height: 77px;
    margin: 0 auto;
    background-image: url(../../img/box.svg);
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.modal-rs-product p {
    margin-bottom: 32px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #B3B3B3;
}

.modal-rs__card {
    margin-bottom: 40px;
    padding: 16px 26px;
    border-radius: 4px;
    border: 1px solid #E5E5E5;
    background-color: #ffffff;
    box-shadow: 4px 4px 6px #0000001a;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-rs__card__product a {
    min-width: 113px;
    height: auto;
    margin-bottom: 0;
    border: none;
}


.modal-rs__card__description h3 {
    margin: 18px 0 12px;
    font-family: 'Poppins-Bold';
    font-size: 14px;
    line-height: 17px;
    text-transform: uppercase;
    color: #2E3549;
}

.modal-rs__card__description span {
    font-family: 'Poppins-Bold';
    font-size: 15px;
    line-height: 18px;
    text-transform: uppercase;
    color: #53D1B6;
}

.modal-rs-product .btn {
    font-size: 18px;
    line-height: 21px;
    letter-spacing: 0.50px;
}

.modal-rs-product .btn.btn--cart::before {
    display: none;
}

.modal-rs-product .btn.btn--cart::after {
    content: '';
    width: 22px;
    height: 22px;
    background-image: url(../../img/cart.svg);
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    top: 11px;
    right: 12px;
}

.modal-rs-product .btn.btn--continue::after {
    content: '';
    width: 22px;
    height: 22px;
    background-image: url(../../img/bag.svg);
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    top: 11px;
    right: 12px;
}

/* -----------------------------------------------------------------------------
MEDIA QUERIES
----------------------------------------------------------------------------- */
@media (max-width: 990px) {

}


@media (max-width: 500px) {
    .modal-rs__close {
        top: 8px;
    }

    .modal-rs__close:focus {
        outline: none;
    }

    .modal-rs__close > svg {
        display: block;
        width: 34px;
        height: 34px;
    }


    .modal-rs__dialog {
        width: calc(100% - 30px);
        max-height: calc(100vh - 50px);
        padding: 40px 0 22px;
        display: flex;
        flex-direction: column;
    }

    .modal-rs__container {
        width: 100%;
        height: 100vh;
        padding: 0 22px;
        overflow: hidden;
        overflow-y: auto;
        background: #ffffff;
    }

    /* modal size */
    .modal-rs-size .modal-rs__container {
        padding: 0;
    }
    .modal-rs-field:nth-child(3n-1) {
        margin: 0 14px;
    }

}
