/**
 * Payment Methods Component
 *
 * Styles for payment section (betaling).
 *
 * @package Hafo\Checkout
 * @version 1.0.0
 */


/* Payment Container (The Card) */

.hafo-multistep-checkout .woocommerce-checkout-payment {
    margin-top: 0;
    padding: 0;
    background-color: transparent;
    border: 0;
    border-radius: 0;
    margin-bottom: var(--hafo-checkout-spacing-xl);
    position: relative;
}

/* Add 'Betaalmethode' Title inside the box */
.hafo-multistep-checkout .woocommerce-checkout-payment::before {
    content: "Betaalmethode";
    display: block;
    font-size: 20px;
    font-weight: var(--hafo-checkout-font-weight-bold);
    line-height: 30px;
    color: #1e315e;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #bcc8d9;
    font-family: var(--hafo-checkout-font-family);
}

/* Hide default step title for payment step */
.hafo-multistep-checkout .hafo-checkout-step--payment .hafo-checkout-step__title {
    display: none;
}


/* Payment Methods List */

.hafo-multistep-checkout .wc_payment_methods {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}


/* Individual Payment Method */

.hafo-multistep-checkout .wc_payment_method {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}


/* Payment Method Radio Input */

.hafo-multistep-checkout .wc_payment_method input[type="radio"].input-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}


/* Payment Method Label (Clean List Style) */

.hafo-multistep-checkout .wc_payment_method label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: var(--hafo-checkout-font-weight-semibold);
    line-height: 24px;
    color: #1e315e;
    min-height: 28px;
    width: 100%;
}

.hafo-multistep-checkout .wc_payment_method label:hover {
    background-color: transparent;
}


/* Custom Radio Button Indicator */

.hafo-multistep-checkout .wc_payment_method input[type="radio"].input-radio+label::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    min-width: 14px;
    border: 1px solid #bcc8d9;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.hafo-multistep-checkout .wc_payment_method input[type="radio"].input-radio:checked+label::before {
    border-color: #1e315e;
    background-color: #1e315e;
    box-shadow: inset 0 0 0 3px #fff;
}

.hafo-multistep-checkout .wc_payment_method input[type="radio"].input-radio:checked+label {
    background-color: transparent;
}

.hafo-multistep-checkout .wc_payment_method input[type="radio"].input-radio:focus-visible+label::before {
    outline: 2px solid rgb(30 49 94 / 28%);
    outline-offset: 2px;
}


/* Payment Method Title and Icon Container */

.hafo-multistep-checkout .wc_payment_method label>span:first-child {
    display: inline-flex;
    align-items: center;
}


/* Payment Method Icons */

.hafo-multistep-checkout .wc_payment_method label img {
    height: 22px;
    max-width: 74px;
    margin-left: 8px;
    object-fit: contain;
    width: auto;
}

.hafo-multistep-checkout .wc_payment_method label img:first-of-type {
    margin-left: 8px;
}


/* Payment Method Title */

.hafo-multistep-checkout .payment_method_title {
    font-weight: var(--hafo-checkout-font-weight-semibold);
    color: #1e315e;
    font-size: 16px;
    line-height: 24px;
}


/* Payment Method Description */

.hafo-multistep-checkout .payment_method_description {
    margin-top: var(--hafo-checkout-spacing-md);
    padding: var(--hafo-checkout-spacing-md);
    background-color: var(--hafo-checkout-background, #f9fafb);
    border-radius: var(--hafo-checkout-radius-md);
    font-size: var(--hafo-checkout-font-size-sm);
    color: var(--hafo-checkout-text-light);
}

.hafo-multistep-checkout .payment_method_description p {
    margin: 0;
    line-height: 1.6;
}


/* Place Order Section */

.hafo-multistep-checkout .woocommerce-checkout-payment .form-row.place-order {
    margin-top: var(--hafo-checkout-spacing-xl);
    padding-top: var(--hafo-checkout-spacing-xl);
    border-top: 1px solid var(--hafo-checkout-border);
}


/* Terms and Conditions */

.woocommerce-checkout-payment .form-row.place-order .woocommerce-terms-and-conditions-wrapper {
    margin-bottom: var(--hafo-checkout-spacing-lg);
}

.woocommerce-checkout-payment .form-row.place-order .woocommerce-terms-and-conditions-wrapper label {
    display: flex;
    align-items: flex-start;
    gap: var(--hafo-checkout-spacing-sm);
    font-size: var(--hafo-checkout-font-size-sm);
    color: var(--hafo-checkout-text);
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
    min-height: auto;
}

.woocommerce-checkout-payment .form-row.place-order .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.woocommerce-checkout-payment .form-row.place-order .woocommerce-terms-and-conditions-wrapper a {
    color: var(--hafo-checkout-primary);
    text-decoration: underline;
}

.woocommerce-checkout-payment .form-row.place-order .woocommerce-terms-and-conditions-wrapper a:hover {
    color: var(--hafo-checkout-primary-hover);
}


/* No Payment Methods Message */

.wc_payment_methods .woocommerce-info,
.wc_payment_methods .woocommerce-notice {
    padding: var(--hafo-checkout-spacing-md);
    background-color: var(--hafo-checkout-background, #f9fafb);
    border: 1px solid var(--hafo-checkout-border);
    border-radius: var(--hafo-checkout-radius-md);
    color: var(--hafo-checkout-text);
    font-size: var(--hafo-checkout-font-size-sm);
    margin: 0;
}


/* Payment Icons - Enhanced Styling */

/* Payment icon wrappers (if present) */

.hafo-multistep-checkout .wc_payment_methods .payment_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    background-color: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-left: 8px;
}

.hafo-multistep-checkout .wc_payment_methods .payment_icon img {
    max-width: 74px;
    max-height: 22px;
    object-fit: contain;
}


/* Mobile Responsive */

@media (max-width: 768px) {
    .hafo-multistep-checkout .woocommerce-checkout-payment {
        padding: 0;
    }

    .hafo-multistep-checkout .wc_payment_method label {
        padding: 0;
    }

    .hafo-multistep-checkout .wc_payment_method label img {
        max-width: 64px;
    }

    .hafo-multistep-checkout .payment_method_title {
        font-size: var(--hafo-checkout-font-size-sm);
    }
}
