/* Old checkout delivery UI + old payment method cards.
 * Loaded in wp_footer right after cart_checkout.css, only while fg_delivery_choice_enabled() is false
 * (inc/checkout/delivery_choice.php). These rules were moved out of cssjs/cart_checkout.css on 2026-11-05
 * for the delivery choice merge (tasks/shipping-unify/plan.md section 15).
 * DELETE THIS FILE at go-live of the delivery choice block, together with the gate.
 */

/* Inline styles that payment-method.php used to print on the surcharge span and the Betalen button */
.payment_method_lis label > span.fg-pay-badge {
    min-width: 40px
}

.payment_method_lis label > span.fg-pay-badge.is-free {
    color: #50d3a3
}

.payment_method_lis .inpaymentmethodbutton {
    margin-top: 14px
}

.postnl-co-tr {
    display: none
}

#preview_fields .preview_strong_title {
    color: var(--color-17)
}

.postnl_checkout_container {
    border: none !important
}

#postnl_delivery_day_content .list_title {
    position: absolute;
    right: 5px;
    bottom: 0px;
    z-index: 99;
    border: none;
}

.postnl_content .postnl_list .postnl_sub_list .postnl_sub_radio_label {
    padding: 7px
}

ul.postnl_dropoff_points_list,
ul.postnl_delivery_day_list {
    margin-top: 5px !important
}

.woocommerce-checkout .woocommerce-checkout-payment ul li {
    border-radius: 5px;
}

@media(max-width:768px) {
    .woocommerce-checkout-payment ul li {
        margin-bottom: 8px !important;
        padding: 8px !important
    }
}

.postnl_content .postnl_list>li {
    padding-top: 5px;
    border-bottom: 0px solid var(--color-38)
}

#postnl_delivery_day_content li {
    position: relative;
    text-align: left
}

.postnl_checkout_tab_list>li .postnl_checkout_tab {
    background: white;
    border: 1px solid var(--color-38);
    padding: 12px;
}

.postnl_checkout_tab_list>li.active .postnl_checkout_tab {
    border: 1px solid var(--color-1);
    background: var(--color-20) !important;
    color: black
}

.postnl_content .postnl_list .postnl_sub_list>li:not(.active),
.postnl_content .postnl_list .list_title {
    border: 0px !important;
    background: none !important
}

.postnl_content .postnl_list .postnl_sub_list>li.active {
    background: var(--color-20);
}

.postnl_content .postnl_list .postnl_sub_list>li {
    padding-top: 5px;
    border-radius: 5px
}

[for="postnl_option_dropoff_points"]>span::after {
    content: "";
    display: block;
    background-image: url(https://www.compliment.nl/wp-content/themes/sn/images/leaf%201.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    background-position: right;
    position: absolute;
    top: 2px;
    right: -25px;
}

[for="postnl_option_dropoff_points"]>span {
    position: relative
}

[for="postnl_option_delivery_day"] {
    border-bottom-left-radius: 20px;
    border-top-left-radius: 20px;
}

[for="postnl_option_dropoff_points"] {
    border-bottom-right-radius: 20px;
    border-top-right-radius: 20px;
}

.preview_strong_title {
    margin-top: 20px;
    margin-bottom: 5px;
    display: block
}

#postnl_checkout_option {
    margin: 0;
    margin-top: 0px;
    max-width: 400px;
    max-width: 100% !important;
}

.payment_method_lis {
    border: 1px solid var(--color-12);
    padding: 20px
}

.payment_method_lis.selected {
    background: var(--color-20);
    border: 1px solid var(--color-1) !important
}

.payment_method_lis label:before {
    opacity: 0;
    position: absolute
}

.payment_method_lis img {
    order: -1;
    width: auto !important;
    float: left !important;
    height: 30px !important;
    /* Optional: limits the image height */
    display: inline-block;
}

.payment_method_lis label:not(.checkbox) {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.bezorging_sections hr {
    margin-bottom: 28px;
    margin-top: 28px
}

#postnl_delivery_custom_day_label {
    margin-bottom: 14px;
}

.wc_payment_methods p,
.wc_payment_methods span {
    font-size: 12px
}

.wc_payment_method.payment_method_billink img {
    max-height: 30px !important
}

#postnl_delivery_day_content .postnl_delivery_main_text {
    display: inline;
}

#postnl_delivery_day_content .postnl_delivery_meta {
    float: right;
    display: inline-block;
    font-weight: 700;
    text-align: right;
}

#postnl_delivery_day_content .postnl_delivery_time {
    display: inline-block;
    vertical-align: middle;
}

.postnl_delivery_day_list {
    max-width: 400px;
}

body:not(.step2) .other_date_label,
body:not(.step2) .bezorging_sections,
body:not(.step2) #postnl_delivery_custom_day_label {
    display: none !important;
}
