/**
 * Custom Youzify Styles
 * Add customizations for Youzify plugin
 *
 * @package StudyHubChild
 */

/* Hide shipping address section but keep the layout intact */
/* Shipping address on the My Account page */
.youzify .woocommerce-MyAccount-content .woocommerce-Addresses .col-2,
.youzify .woocommerce-MyAccount-content .woocommerce-shipping-fields,
.youzify .shipping_address,
.youzify h3:nth-of-type(2) {
    display: none !important;
}

/* Shipping fields in the edit form */
.youzify p[id^="shipping_"],
.youzify label[for^="shipping_"],
.youzify input[name^="shipping_"],
.youzify select[name^="shipping_"],
.youzify .woocommerce-address-fields h3:last-of-type {
    display: none !important;
}

/* Make the billing address section full-width */
.youzify .woocommerce-MyAccount-content .woocommerce-Addresses .u-column1,
.youzify .woocommerce-MyAccount-content .woocommerce-Addresses .col-1,
.youzify .woocommerce-address-fields .col-1 {
    width: 100% !important;
    float: none !important;
    max-width: 100% !important;
}

/* Customize shipping address icon and section on account page */
.youzify .youzify-wc-address-shipping-icon,
.youzify .youzify-wc-address-shipping {
    display: none !important;
}

/* Add custom style to billing address section */
.youzify .youzify-wc-address-billing {
    width: 100% !important;
    margin: 0 auto !important;
}

/* Target specifically the edit address page to hide shipping */
body.woocommerce-edit-address .youzify-wc-main-content .u-column2,
body.woocommerce-edit-address .youzify-wc-main-content .col-2,
.youzify-wc-main-content h3:nth-of-type(2),
.youzify-wc-main-content h3:contains("Shipping Address"),
.youzify-wc-main-content [class*="shipping_"] {
    display: none !important;
}

/* Force full width for billing */
body.woocommerce-edit-address .youzify-wc-main-content .u-column1,
body.woocommerce-edit-address .youzify-wc-main-content .col-1 {
    width: 100% !important;
    float: none !important;
    max-width: 100% !important;
}

/* Hide payment methods and saved cards tabs */
.youzify .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--payment-methods,
.youzify .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--add-payment-method,
.youzify .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--paymob-saved-cards,
.youzify .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--saved-cards,
.youzify .woocommerce-MyAccount-navigation ul li[class*="payment-method"],
.youzify .woocommerce-MyAccount-navigation ul li[class*="saved-card"],
.youzify .woocommerce-MyAccount-navigation ul li[class*="paymob"] {
    display: none !important;
}

/* Hide payment methods content */
.youzify .woocommerce-MyAccount-content .woocommerce-payment-methods,
.youzify .woocommerce-MyAccount-content .woocommerce-add-payment-method,
.youzify .woocommerce-MyAccount-content .paymob-saved-cards,
.youzify .woocommerce-MyAccount-content [class*="payment-method"],
.youzify .woocommerce-MyAccount-content [class*="saved-card"],
.youzify .woocommerce-MyAccount-content [class*="paymob"] {
    display: none !important;
}

/* Hide payment method tables */
.youzify table.account-payment-methods-table,
.youzify .woocommerce-MyAccount-paymentMethods {
    display: none !important;
}
