.text-center {
    text-align: center;
}

.checkout-section .page-title__text {
    max-width: 1000px;
    margin: 0 auto 25px;
}

.checkout-section .offers__text {
    margin: 0 auto 16px;
}
.checkout-section .offers__text.error {
    color: red;
}

.form-checkout {
    width: 100%;
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
}

.tabs__content {
    max-width: 400px;
    width: 100%;
    margin: 0 6px 14px 0;
    border: 10px solid #36a683;
    border-radius: 20px;
    padding: 30px 25px;
}


.tabs__content:last-child {
    margin: 0 0 14px;
}


.tabs__caption {
    width: 100%;
    list-style: none;
    display: none;
    align-items: stretch;
    justify-content: center;
    margin: 0;
    padding: 0;
    font-weight: 600;
    line-height: normal;
}

.tabs__caption li {
    border-radius: 10px 10px 0 0;
    padding: 5px 15px;
    flex: 1;
    text-align: center;
    background: #329D7B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tabs__caption li.active {
    background: #fff;
    color: #000;
}

.form-checkout .form-group {
    width: 100%;
}


.form-checkout .form-group h3 {
    font-weight: 800;
    text-align: center;
    margin: 0 auto 17px;
    font-size: 24px;
}


.checkbox-my {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 5px 9px;
    position: relative;
    font-size: 20px;
    cursor: pointer;
}

.input-check {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.input-check:checked {
    background: #D2D3D6;
}

.input-check:checked ~ .input-check__custom:before {
    opacity: 1;
}

.checkbox-my__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px 0 0;
    width: 33px;
    height: 33px;
    background: #36a683
}

.input-check__custom {
    position: relative;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    min-width: 19px;
    border: 1px solid #36a683;
}

.input-check__custom:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 15px;
    height: 15px;
    background: url('../img/modal-checkout/check.svg') no-repeat center;
    -webkit-background-size: 100%;
    background-size: 100%;
    opacity: 0;
    transition: .3s ease;
}

.modal_label
{
   font-size: 20px;
}

.modal-checkout {
    border: 10px solid #36a683;
    max-width: 727px;
}

.modal-checkout .fancybox-button {
    padding: 0;
    transform: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 20px;
    right: 20px;
    border: 1px solid #197A5B;
}

.modal-checkout .fancybox-button:before, .modal-checkout .fancybox-button:after {
    background: #197A5B;
    width: 12px;
    height: 1px;
}

.modal-checkout .fancybox-button svg {
    display: none;
}

.form-modal {
    width: 100%;
}

.form-modal label {
    width: 100%;
    margin: 0 0 35px;
    display: block;
}

.form-modal input {
    height: 30px;
    border-bottom: 2px solid #D2D3D6;
    width: 100%;
    font-size: 16px;
}

.form-modal textarea {
    width: 100%;
    height: 130px;
    border: 2px solid #D2D3D6;
}

.input-title {
    display: block;
    margin: 0 0 10px;
    width: 100%;
    text-align: left;
    line-height: normal;
}

.modal_spaces
{
    padding: 80px 0 80px 0;
}

.form-modal .btn {
    width: fit-content;
    max-width: none;
    min-width: auto;
    padding: 0 50px;
}

.form-modal .consent-checkbox {
    display: flex;
}

.consent-checkbox {
    display: flex;
    align-items: center;
    font-size: 14px;
    text-align: left;
    line-height: normal;
}

.consent-checkbox input {
    display: none;
}

.checkbox-custom {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 0 16px 0 0;
    border: 1px solid #197A5B;
    position: relative;
}

.checkbox-custom:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 12px;
    height: 12px;
    background: url('../img/modal-checkout/check.svg') no-repeat center;
    -webkit-background-size: 100%;
    background-size: 100%;
    opacity: 0;
    transition: .3s ease;
}

.checkbox-text {
    display: block;
}

.consent-checkbox input:checked ~ .checkbox-custom:before {
    opacity: 1;
}

#formCheckout label.error {
    color:red;
}

@media (max-width: 1023px) {
    .modal-checkout .fancybox-button {
        left: auto;
    }
}
@media (max-width: 900px) {
    .tabs__content {
        max-width: 300px;
        padding: 20px;
    }

    .checkbox-my {
        font-size: 16px;
    }
}

@media (max-width: 680px) {
    .tabs__caption {
        display: flex;
    }

    .form-checkout .form-group h3 {
        display: none;
    }

    .tabs__content {
        display: none;
        border: none;
        margin: 0;
        max-width: none;
        background: #fff;
        border-radius: 0;
    }

    .tabs__content.active {
        display: block;
    }

.form-checkout .btn {
    margin: 30px auto 0;
}
}
#error_checkout_form {color: red;}