/* Keep the gateway controls in the form for FluentCart, without showing a choice. */
form.fct_checkout:has([name="_fct_pay_method"][value="paddle"]:checked) #fluent_payment_methods .fct_form_section_header,
form.fct_checkout:has([name="_fct_pay_method"][value="paddle"]:checked) .fct_payment_method_paddle > input,
form.fct_checkout:has([name="_fct_pay_method"][value="paddle"]:checked) .fct_payment_method_paddle > label,
form.fct_checkout:has(#order_summary_panel > .sp-paddle-summary-payment) #fluent_payment_methods {
    display: none !important;
}
form.fct_checkout:has([name="_fct_pay_method"][value="paddle"]:checked) .fct_place_order_btn_wrap {
    display: none !important;
}
form.fct_checkout #order_summary_panel > .sp-paddle-summary-payment {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    width: 100%;
}
form.fct_checkout .sp-paddle-summary-payment #paddle-pay-button {
    width: 100%;
}

/* Elementor puts the applied voucher and entry box in the same flex row. */
form.fct_checkout #order_summary_panel [data-fluent-cart-checkout-page-applied-coupon] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}
form.fct_checkout #order_summary_panel [data-fluent-cart-checkout-page-applied-coupon] > * {
    width: 100%;
    min-width: 0;
}
form.fct_checkout #order_summary_panel .fct_coupon_applied_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
}
form.fct_checkout #order_summary_panel .fct_coupon_price {
    flex-shrink: 0;
    white-space: nowrap;
}
