@import "asterio-payment-confirmation";

.tx-accommodation-payment-plan-wrapper, .tx-accommodation-payment-confirmation-wrapper {

    #optins {
        margin: 60px 0;

        .mandatory-field {
            font-size: 16px;
            font-weight: normal;
            color: #7F7D7D;
        }

        .optinForm {
            .optin_choice {
                padding: 10px 0;

                .checkbox-container {
                    user-select: none;
                    display: block;
                    cursor: pointer;
                    font: normal normal normal 18px/22px 'Newsreader', sans-serif;
                    color: #7F7D7D;
                    position: relative;
                    padding-left: 35px;

                    a {
                        font: normal normal normal 18px/22px 'Newsreader', sans-serif;
                    }

                    input {
                        position: absolute;
                        opacity: 0;
                        cursor: pointer;
                        height: 0;
                        width: 0;

                        &:checked {
                            ~ .custom-checkbox {
                                background-color: #00503C;
                                border-color: #00503C;

                                &:after {
                                    display: block;
                                }
                            }
                        }
                    }

                    .custom-checkbox {
                        position: absolute;
                        top: 0;
                        left: 0;
                        height: 21px;
                        width: 21px;
                        background-color: #fff;
                        border: 1px solid #fff;
                        border-radius: 5px;

                        &:after {
                            content: '';
                            position: absolute;
                            display: none;
                            width: 13px;
                            height: 14px;
                            left: 3px;
                            top: 5px;
                            background: url("/static_assets/wabs_accommodation/Icons/check.svg") no-repeat;
                            background-size: contain;
                        }
                    }
                }

                &:nth-child(2) {
                    display: none;
                }
            }
        }
    }


    .tx-accommodation-cart {
        max-width: unset;
        width: 100%;

        .cart_nights {
            display: none;
        }

        .ast-cart-heading {
            font: normal normal bold 29px/37px 'TFArrow', sans-serif;
        }

        .form-cart {
            padding: 30px 40px 50px 40px;
        }

        .book_id {
            display: none;
        }

        .book_total {
            margin-right: 0;
            display: flex;
            flex-flow: row wrap;

            .book_total_label {
                width: 100%;
                margin-bottom: 13px;
            }

            .persons-total {
                width: 100%;
            }

            @media (min-width: 576px) {
                .book_total_label {
                    width: auto;
                    margin-bottom: 0;
                }

                margin-right: 15px;
            }
        }

        .cart-item-container {
            margin-right: 0;

            .cart-item {
                padding-top: 30px;

                .cart_item_room {
                    width: 100%;
                    max-width: unset;
                }

                .cart_item_dates {
                    width: 100%;
                    order: 1;
                    border: none;
                }

                .price_value {
                    order: 3;
                    width: 100%;
                    text-align: right;
                    padding-bottom: 20px;
                }

                .stay_extra_prod_items {
                    .stay_extra_prod {
                        width: 100%;
                        flex-wrap: wrap;

                        .extra_prod_label {
                            margin-bottom: 13px;
                        }

                        .extra_prod_price {
                            width: 100%;
                            text-align: right;
                        }
                    }
                }

                .cart_item_dates {
                    padding-bottom: 10px;
                    display: flex;
                    flex-wrap: wrap;
                    align-items: center;
                    border-bottom: 1px solid #CCCBCB;
                }

                .date {
                    width: 100%;
                    margin-left: 7px;
                    margin-bottom: 5px;
                }

                .pax_item{
                    display: flex;
                    align-items: center;
                    width: 100%;

                    &::before {
                        content: "";
                        height: 30px;
                        width: 35px;
                    }

                    .pax_label {
                        color: #7F7D7D;
                        font: normal normal bold 14px/22px 'Newsreader', sans-serif;
                    }
                    .pax_counter {
                        color: #7F7D7D;
                        font: normal normal bold 14px/22px 'Newsreader', sans-serif;
                        margin-right: 2px;
                    }
                }

                .pax_item:nth-child(2) {
                    &::before {
                        background: url('/static_assets/wabs_accommodation/Icons/dropdown-number-of-visitors-adults.svg');
                        background-repeat: no-repeat;
                        background-position: center;
                    }
                }
                .pax_item:nth-child(3) {
                    &::before {
                        background: url('/static_assets/wabs_accommodation/Icons/dropdown-number-of-visitors-children.svg');
                        background-repeat: no-repeat;
                        background-position: center;
                    }
                }
                .pax_item:nth-child(4) {
                    &::before {
                        background: url('/static_assets/wabs_accommodation/Icons/dropdown-number-of-visitors-babies.svg');
                        background-repeat: no-repeat;
                        background-position: center;
                    }
                }

                @media (min-width: 576px) {
                    .stay_extra_prod_items {
                        .stay_extra_prod {
                            width: unset;
                            flex-wrap: nowrap;

                            .extra_prod_label {
                                margin-bottom: 0;
                            }

                            .extra_prod_price {
                                width: unset;
                                text-align: unset;
                            }
                        }
                    }

                    .cart_item_room {
                        width: 80%;
                        max-width: 80%;
                    }

                    .cart_item_dates {
                        width: unset;
                        order: 2;

                    }

                    .price_value {
                        order: 1;
                        width: unset;
                        text-align: unset;
                        border-bottom: 0;
                        padding-bottom: 0;
                    }
                }

                @media (min-width: 768px) {
                    .cart_item_dates {
                        flex-wrap: wrap;

                        .date,
                        .pax_label,
                        .pax_counter {
                            font-size: 16px;
                        }
                        .pax_item {
                            width: auto;
                            margin-right: 10px;
                        }
                    }
                }
            }

        }

        .book_total {
            width: unset;

            .book_total_label {
                font-size: 24px;
                color: #4D4D4D;
            }
            .book_total_price {
                justify-content: left;
                margin-left: unset;
            }
        }

        @media (min-width: 768px) {
            .book_total {
                .book_total_price {
                    justify-content: right;
                    margin-left: auto;
                }
            }
        }

    }

    .tx-accommodation-navigation.nav-to-details {
        margin-top: 30px;
    }

    .tx-accommodation-payment {
        padding: 30px 40px 50px 40px;
        margin-bottom: 18px;
        background: #FFFFFF;
        border-radius: 4px;
        margin-top: 20px;

        #be-payment-plan {
            @media (min-width: 576px) {
                margin-right: 15px;
            }

            .payment_table {
                width: 100%;

                tr {
                    background: none;
                    border-bottom: 1px solid #CCCBCB;

                    .cc_deadline {
                        display: none;
                    }
                }

                th {
                    width: 100%;
                }

                th, td {
                    padding: 20px 0;

                    &.payment_deadline_details_price {
                        text-align: right;
                        font: normal normal 800 16px/19px 'Newsreader', sans-serif;
                        color: #AFAAAA;
                        width: 100%;

                        @media (min-width: 576px) {
                            width: unset;
                        }
                    }

                    &.payment_deadline_details_date {
                        font-size: 20px;
                    }
                }

                .payment_desc_title {
                    color: #4D4D4D;
                    font: normal normal 900 23px/28px 'Newsreader', sans-serif;
                }
            }
        }
    }

    .bottom-button-bar {

        .process-payment {
            width: 100%;
            border-radius: 6px;
        }
    }
}

.tx-accommodation-payment-plan-wrapper {
    .tx-accommodation-cart .book_promo {
        padding: 24px 0 75px 0;
        display: flex;
        justify-content: space-between;
        .book_promo_label {
            color: #4D4D4D;
            font-weight: bold;
        }
        .book_promo_value {
            border: 1px solid #4D4D4D;
        }
    }
}
