/* Main order container */
.order_container{
    padding-top: 70px;
    padding-bottom: 130px;
}

/* Order header container */
.order_header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
}

/* Order information container */
.order_information_container{
    display: flex;
    gap: 60px;
}

/* Header logo */
.order_header a:first-child img{
    width: 125px;
    height: 40px;
}

/* Block icon */
.order_header a:last-child img{
    width: 22px;
    height: 22px;
}

/* Section titles */
.order_information_container .h2{
    border-bottom: 2px solid var(--purple1);
    border-image: linear-gradient(to right, var(--purple1) 50%, transparent 50%) 100% 1;
    padding-bottom: 10px;
    width: fit-content;
}

/* Contact information */
.order_contact_information{
    max-width: 590px;
    width: 100%;
}

/* Order details */
.order_details{
    width: 100%;
}

/* Contact information + delivery titles */
.order_contact_information > .h2 , .order_details > .h2{
    margin-bottom: 30px;
}

/* Informational error message */
.order_contact_fields .user_error_message, .order_delivery_info .user_error_message{
    margin-top: -15px;
}

/* Order contact input fields */
.order_contact_fields{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Contact input fields */
.order_contact_fields > input{
    font-weight: 500;
}

/* Delivery + payment info radio buttons div */
.order_delivery_options, .order_payment_options{
    display: flex;
    gap: 7px;
    align-items: center;
    height: 21px;
}

/* Order delivery container */
.order_payment_info{
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
}

.order_delivery_info{
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

/* Radio buttons + it's labels */
.order_delivery_options input, .order_delivery_options label, .order_payment_options input, .order_payment_options label{
    cursor: pointer;
}

/* Delivery price */
.delivery_price{
    margin-left: 7px;
    color: var(--purple1);
}

/* Delivery container + payment info text  */
.order_payment_options .body3, .order_delivery_options .body3{
    font-weight: 500;
}

/* Order payment details */
.order_payment_details{
    display: flex;
    flex-wrap: wrap;
}

/* Order payment details */
.order_payment_details > div{
    display: flex;
    flex-direction: column;
    flex-basis: 33%;
    padding-bottom: 15px;
}

.order_payment_details > div:first-child{
    padding-right: 50px;
}

/* Payment details grey text */
.order_payment_details .body3{
    color: var(--grey1);
}

/* End order button */
#end-order{
    margin-bottom: 20px;
    margin-top: 5px;
    width: 100%;
}

/* Site politics text */
.order_site_politics{
    font-weight: 400;
}

/* Site politics link */
.order_site_politics a{
    color: var(--purple1);
}

/* DPD input div */
#dpd-posts-div{
    position: relative;
}

/* DPD input icon */
#dpd-posts-div img{
    position: absolute;
    bottom: 22px;
    right: 20px;
}

/* DPD input */
#dpd-posts-input{
    width: 100%;
    padding: 10px 40px 10px 20px;
    font-weight: 500;
    cursor: pointer;
}

/* Main container for DPD posts input */
#dpd-posts-main-container{
    display: none;
    margin-bottom: 15px;
}

/* DPD specific post */
.select-list-group__list li {
    padding: 0.6rem 1rem;
    margin: 0;
}

/* DPD specific post */
#dpd-posts-main-container li {
    position: relative;
}
   
/* Main container for DPD posts input */
#dpd-posts-main-container ul {
    list-style: none;
    padding: 0;
}

/* Hovered DPD post  */
li .select-list-group__list li:hover {
    background-color: var(--grey2);
    cursor: pointer;
}

/* wrapper for DPD posts input */
.select-list-group{
    width: 100%;
}

/* DPD posts list */
.select-list-group .select-list-group__search + .select-list-group__toggle:after {
    font-family: sans-serif;
    position: absolute;
    top: 0.6rem;
    right: 0.7rem;
    width: 2rem;
    padding: 0.6rem;
    text-align: center;
}

/* DPD post input */
.select-list-group [data-toggle=false] {
    display: none;
}

/* Not displayed DPD post */
.select-list-group li[data-display=false] {
    display: none;
}

/* Displayed DPD post */
.select-list-group li[data-display=true] {
    display: inherit;
}

/* Not chosen DPD post with keyboard keys */
.select-list-group li[data-highlight=false] {
    border-left: 5px solid transparent;
}

/* Chosen DPD post with keyboard keys */
.select-list-group li[data-highlight=true] {
    border-left: 5px solid darkslateblue;
}

/* DPD posts list */
.select-list-group__list{
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    background-color: white;
    border-bottom: 1px solid var(--purple1);
    border-left: 1px solid var(--purple1);
    border-right: 1px solid var(--purple1);
    font-weight: 500;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* Disabled payment method (payment in place) */
.disabled_option{
    color: var(--grey1);
    cursor: auto !important;
}

/* DPD input (when focused) */
.dpd-input-active{
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

/* Active input icon + inactive input icon */
.dpd-input-active + .inactive_dpd_image, .dpd-input-active ~ .chosen_dpd_image{
    display: none;
}

/* Active input icon + focus input icon */
#dpd-posts-input ~ .active_dpd_image, #dpd-posts-input ~ .chosen_dpd_image{
    display: none;
}

/* Focus input icon + active input icon */
#dpd-posts-input.dpd-input-active ~ .active_dpd_image, input#dpd-posts-input:not(:placeholder-shown) ~ .chosen_dpd_image{
    display: block;
}

/* Active input icon */
input#dpd-posts-input.dpd-input-active:not(:placeholder-shown) ~ .chosen_dpd_image{
    display: none;
}

/* Gray input icon */
input#dpd-posts-input:not(:placeholder-shown) ~ .inactive_dpd_image{
    display: none;
}

@media screen and (max-width:1100px) {

    /* Main order container */
    .order_container{
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media screen and (max-width:767px) {

    /* Main order container */
    .order_container{
        padding: 50px 20px
    }

    /* Order information container */
    .order_information_container{
        flex-direction: column;
        gap: 40px;
    }

    /* Header logo */
    .order_header a:first-child img{
        width: 94px;
        height: 30px;
    }

    /* Block icon */
    .order_header a:last-child img{
        width: 16px;
        height: 16px;
    }

    /* Section titles */
    .order_information_container .h2 {
        font-size: 18px;
        line-height: 20px;
        margin-bottom: 20px;
    }

    /* Contact information */
    .order_contact_information{
        max-width: unset;
    }

    /* Contact information fields */
    .order_contact_fields {
        gap: 12px;
    }

    /* Payment section */
    .order_payment_info {
        margin-bottom: 40px;
    }

    /* Delivery method section */
    .order_delivery_info{
        margin-bottom: 25px;
    }

    /* DPD posts main container */
    #dpd-posts-main-container{
        margin-bottom: 15px;
    }

    /* DPD input icon */
    #dpd-posts-div img {
        bottom: 20px;
    }

    /* "End" order button */
    #end-order{
        height: 45px;
        font-size: 14px;
        line-height: 21px;
        margin-bottom: 10px;
    }

    /* "Payment information" gray text */
    .order_payment_details .body3 {
        font-size: 12px;
        line-height: 18px;
    }

    /* "Payment information" text */
    .order_payment_details .body2 {
        font-size: 14px;
        line-height: 21px;
    }

    /* Site politics div */
    .order_site_politics_div{
        display: flex;
        justify-content: center;
        text-align: center;
    }

    /* Site politics text */
    .order_site_politics{
        font-size: 12px;
        line-height: 18px;
    }

    /* Informational error message */
    .order_contact_fields .user_error_message, .order_delivery_info .user_error_message{
        margin-top: -5px;
    }
}