/* M&G Capital checkout cleanup - only loaded on WooCommerce cart/checkout/account pages */
body.woocommerce-checkout,
body.woocommerce-cart {
    background: #f6f9fb !important;
}

body.woocommerce-checkout .woocommerce,
body.woocommerce-cart .woocommerce {
    color: #0f172a !important;
}

body.woocommerce-checkout .woocommerce a,
body.woocommerce-cart .woocommerce a {
    color: #00796b !important;
    font-weight: 700;
}

body.woocommerce-checkout .woocommerce-privacy-policy-text,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    background: #ffffff !important;
    border: 1px solid #dbe7ef !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    margin: 14px 0 !important;
    color: #0f172a !important;
    line-height: 1.55 !important;
}

body.woocommerce-checkout .woocommerce-privacy-policy-text p,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper p {
    margin: 0 0 8px !important;
    color: #0f172a !important;
    font-size: 15px !important;
}

body.woocommerce-checkout .woocommerce-form__label-for-checkbox,
body.woocommerce-checkout .form-row.validate-required label.checkbox,
body.woocommerce-checkout label.woocommerce-form__label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #0f172a !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
}

body.woocommerce-checkout input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 2px 0 0 0 !important;
    accent-color: #0f766e !important;
    position: static !important;
    opacity: 1 !important;
}

body.woocommerce-checkout .mg-hidden-legal-duplicate,
body.woocommerce-checkout .mgcapital-hidden-duplicate,
body.woocommerce-checkout .mgcapital-duplicate-legal {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body.woocommerce-checkout .mg-barion-clean-note {
    background: #eefaf7 !important;
    border: 1px solid #b7e4da !important;
    color: #0f172a !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    margin: 12px 0 14px !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
}

body.woocommerce-checkout #payment,
body.woocommerce-checkout .woocommerce-checkout-review-order,
body.woocommerce-cart .cart_totals,
body.woocommerce-cart table.shop_table {
    background: #ffffff !important;
    border-radius: 18px !important;
    border: 1px solid #dbe7ef !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06) !important;
    color: #0f172a !important;
}

body.woocommerce-checkout #payment div.payment_box {
    background: #f2f5fa !important;
    color: #0f172a !important;
    border-radius: 12px !important;
    font-size: 15px !important;
}

/* Hide old floating quick navigation bars that cover the checkout submit area. */
body.woocommerce-checkout .mgcapital-floating-nav,
body.woocommerce-checkout .mgcapital-bottom-nav,
body.woocommerce-checkout .mg-floating-nav,
body.woocommerce-checkout .mg-wc-quicknav,
body.woocommerce-checkout .mg-checkout-nav,
body.woocommerce-checkout .mgcapital-quick-nav,
body.woocommerce-checkout .mgcapital-button-navigation,
body.woocommerce-checkout .mgcapital-nav-fix,
body.woocommerce-checkout .mg-sticky-buttons,
body.woocommerce-checkout .mg-fixed-shop-nav {
    display: none !important;
}

body.woocommerce-checkout {
    padding-bottom: 20px !important;
}

@media (max-width: 768px) {
    body.woocommerce-checkout .woocommerce-privacy-policy-text,
    body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
        padding: 12px !important;
    }

    body.woocommerce-checkout .woocommerce-form__label-for-checkbox,
    body.woocommerce-checkout .form-row.validate-required label.checkbox,
    body.woocommerce-checkout label.woocommerce-form__label {
        font-size: 14px !important;
    }
}
