#checkout .modal .modal-dialog .modal-content{
    padding: 30px;
}
#checkout .modal .modal-dialog .modal-content .close{
    position: absolute;
    right: 15px;
    top: 15px;
}

.js-address-form .two_columns_field{
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.js-address-form .two_columns_field .form-group.row:first-child{
    width: 100%;
}

.js-address-form .two_columns_field .form-group.row label{
    /*flex-basis: 56%;*/
    white-space: nowrap;
}

#address .js-address-form .two_columns_field{
    justify-content: unset;
}

#address .js-address-form .two_columns_field .form-group.row:first-child{
    width: calc(58% + 8px);
}

#address .js-address-form .two_columns_field .form-group.row label{
    width: 323px;
}

#address .js-address-form .two_columns_field .form-group.row:nth-child(2) label{
    width: 75px;
}

.payment-option img{
    height: 40px;
    object-fit: contain;
}

body#checkout section.checkout-step .payment-options label{
    width: calc(100% - 26px) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

#checkout .js-address-form .form-group.row label {
    width: 125px!important;
}

#checkout .js-address-form .two_columns_field .form-group.row:nth-child(2) label{
    width: 75px!important;
}

#checkout .js-address-form .two_columns_field .form-group.row:nth-child(2) label + .col-md-6{
    width: calc(100% - 75px) !important;
}



section.checkout-step #delivery-address .form-fields .form-group>.col-md-6, section.checkout-step #invoice-address .form-fields .form-group>.col-md-6{
    width: calc(100% - 125px) !important;
}

.payment-options .payment-option.clearfix{
    display: flex;
    align-items: center;
}

body#checkout section.checkout-step .payment-options .custom-radio{
    margin-top: 0!important;
}

.order-confirmation-table .details.my-auto, .order-confirmation-table .qty.my-auto, .order-confirmation-table .qty.my-auto .col-xs-4.text-sm-left.text-xs-left.my-auto,
.order-confirmation-table .qty.my-auto .col-xs-3.my-auto,
.order-confirmation-table .qty.my-auto .col-xs-5.text-xs-right.bold.my-auto{
    margin-top: 0;
    display: flex;
    flex-direction: column;
}

.order-confirmation-table .qty.my-auto .col-xs-4.text-sm-left.text-xs-left.my-auto, .order-confirmation-table .qty.my-auto .row.row-eq-height,
.order-confirmation-table .qty.my-auto .col-xs-3.my-auto,
.order-confirmation-table .qty.my-auto .col-xs-5.text-xs-right.bold.my-auto{
    height: 100%;
}

.name_for_summary_prod{
    margin-bottom: auto;
    font-weight: 700;
}

.is_required_field_text{
    color: red;
}

.form-control-label.required.label_psgdpr:after{
    content: none;
}

label.required + .col-md-6 .custom-checkbox:before{
    content: "*";
    color: red;
    position: relative;
    left: -8px;
    top: -9px;
    display: block;
    height: 0;
}

.contact-form .form-control-label{
    text-align: left;
}

#checkout .js-address-form #use_same_address + label{
    text-align: left;
    width: unset !important;
}

.js-address-form .form-group.row:has(#use_same_address) .col-md-9.col-md-offset-3{
    display: flex;
    align-items: baseline;
    gap: 5px;
}

#checkout .is_required_text .col-md-3{
    display: none;
}

label[for="delivery_message"]{
    text-align: left;
}

@media (max-width: 1300px){
    #address .js-address-form .two_columns_field .form-group.row label{
        width: 300px;
    }

    #address .js-address-form .two_columns_field .form-group.row:first-child{
        width: calc(57% + 3px);
    }
}

@media (max-width: 1200px){
    #address .js-address-form .two_columns_field .form-group.row label{
        width: 240px;
    }

    #address .js-address-form .two_columns_field .form-group.row:first-child{
        width: calc(52% + 7px);
    }
}

@media (max-width: 992px){
    #address .js-address-form .two_columns_field .form-group.row label{
        width: 181px;
    }

    #address .js-address-form .two_columns_field .form-group.row:first-child{
        width: calc(52% + 7px);
    }
}

@media (max-width: 768px){
    #address .js-address-form .two_columns_field{
        justify-content: space-between;
    }

    #address .js-address-form .two_columns_field .form-group.row:first-child{
        width: 70%;
    }

    #address .js-address-form .two_columns_field .form-group.row:nth-child(2){
        width: 30%;
    }

    body#checkout section.checkout-step .payment-options label{
        width: calc(100% - 26px);
        display: inline-flex;
        justify-content: space-between;
    }

    #checkout .js-address-form .form-group.row label{
        width: unset !important;
    }
    section.checkout-step #delivery-address .form-fields .form-group>.col-md-6, section.checkout-step #invoice-address .form-fields .form-group>.col-md-6{
        width: 100% !important;
    }

    #checkout .js-address-form .two_columns_field .form-group.row:nth-child(2) label{
        width: unset!important;
    }

    #checkout .js-address-form .two_columns_field .form-group.row:nth-child(2) label+.col-md-6{
        width: 100% !important;
    }
}

@media (min-width: 576px) {
    #checkout .modal .modal-dialog{
        max-width: 900px;
    }
}
@media (max-width: 500px){
    #checkout .modal .modal-dialog .modal-content h1{
        font-size: 30px;
    }
    #checkout .modal .modal-dialog .modal-content{
        padding-left: 15px;
        padding-right: 15px;
    }

    .js-address-form .two_columns_field{
        display: block;
    }

    .js-address-form .two_columns_field .form-group.row:first-child{
        width: unset;
    }

    #address .js-address-form .two_columns_field .form-group.row:first-child{
        width: 100%;
    }

    #address .js-address-form .two_columns_field .form-group.row:nth-child(2){
        width: 100%;
    }
}
@media (max-width: 400px){
    #checkout .modal .modal-dialog .modal-content h1{
        font-size: 24px;
    }
    #checkout .modal .modal-dialog .modal-content{
        padding-left: 15px;
        padding-right: 15px;
    }
    #checkout .modal .modal-dialog{
        margin-left: 0!important;
        margin-right: 0!important;
    }
}