/*
 Theme Name:   Astra Child
 Description:  Hides reCAPTCHA badge while keeping functionality
 Template:     astra
 Version:       1.0.0
*/

/* Hide reCAPTCHA badge - still functional, just not visible */
.grecaptcha-badge,
#grecaptcha-badge,
div[class*='grecaptcha-badge'] {
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
/* ===== Cart Page Custom Styles ===== */

/* Cart totals & cross-sells: white bg, bordered, rounded */
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-cart .cart-collaterals .cross-sells,
.tp-cart-page-wrapper .cart_totals,
.tp-cart-page-wrapper .cross-sells {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
/* ===== Cart Page Redesign ===== */

/* --- Two-column layout --- */
.woocommerce-cart .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}
.woocommerce-cart .woocommerce-cart-form {
    flex: 1 1 63%;
    min-width: 0;
}
.woocommerce-cart .cart-collaterals {
    flex: 0 0 34%;
    min-width: 300px;
}
.woocommerce-cart .cross-sells {
    flex: 1 1 100%;
    margin-top: 30px;
    clear: both;
}

/* --- Order Summary card --- */
.woocommerce-cart .cart_totals {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    float: none !important;
    width: 100% !important;
}
.woocommerce-cart .cart_totals h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1e1b4b !important;
    margin: 0 0 16px !important;
    text-align: left !important;
}
.woocommerce-cart .cart_totals table {
    border: none !important;
    width: 100%;
}
.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td {
    border: none !important;
    padding: 4px 0 !important;
    font-size: 14px;
    color: #6b7280;
}
.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
    font-size: 18px;
    font-weight: 700;
    color: #1e1b4b;
    border-top: 1px solid #e5e7eb !important;
    padding-top: 12px !important;
}
.woocommerce-cart .cart_totals .order-total .amount {
    color: #1e1b4b;
}

/* --- Checkout button --- */
.woocommerce-cart .wc-proceed-to-checkout {
    padding: 0 !important;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    display: block !important;
    text-align: center !important;
    background: #7C3AED !important;
    color: #fff !important;
    padding: 14px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    width: 100% !important;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
    background: #6D28D9 !important;
}

/* --- Coupon styling --- */
.woocommerce-cart .coupon {
    display: flex !important;
    gap: 8px;
}
.woocommerce-cart .coupon input {
    flex: 1;
    padding: 10px 12px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    min-width: 0;
}
.woocommerce-cart .coupon button {
    background: transparent !important;
    border: 2px solid #7C3AED !important;
    color: #7C3AED !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    white-space: nowrap;
}
.woocommerce-cart .coupon button:hover {
    background: #7C3AED !important;
    color: #fff !important;
}

/* --- Cart table --- */
.woocommerce-cart table.shop_table {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    overflow: hidden;
}
.woocommerce-cart table.shop_table th {
    background: #f9fafb !important;
    color: #374151 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 12px !important;
    border: none !important;
}
.woocommerce-cart table.shop_table td {
    padding: 16px 12px !important;
    border-top: 1px solid #f3f4f6 !important;
    vertical-align: middle !important;
}
.woocommerce-cart .product-name a {
    color: #7C3AED !important;
    font-weight: 600 !important;
}
.woocommerce-cart .product-remove a {
    color: #ef4444 !important;
    font-size: 18px !important;
}
.woocommerce-cart .product-thumbnail img {
    border-radius: 6px !important;
    max-width: 70px !important;
}

/* --- Quantity stepper --- */
.qty-stepper {
    display: inline-flex !important;
    align-items: center;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}
.qty-stepper button {
    background: #f9fafb;
    border: none;
    width: 32px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}
.qty-stepper button:hover { background: #f3f4f6; }
.qty-stepper .qty {
    width: 44px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    padding: 0;
    -moz-appearance: textfield;
    box-shadow: none !important;
}
.qty-stepper .qty::-webkit-outer-spin-button,
.qty-stepper .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* --- Hide update cart button --- */
.woocommerce-cart button[name="update_cart"] { display: none !important; }

/* --- Trust strip --- */
.cart-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.cart-trust-strip .trust-item {
    text-align: center;
}
.cart-trust-strip .trust-icon {
    font-size: 22px;
    display: block;
    margin-bottom: 6px;
}
.cart-trust-strip .trust-item strong {
    display: block;
    font-size: 13px;
    color: #1e1b4b;
    margin-bottom: 4px;
}
.cart-trust-strip .trust-item p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* --- Benefits bar --- */
.cart-benefits-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: #f8f9fb;
    padding: 30px 24px;
    border-radius: 8px;
}
.cart-benefits-bar .benefit-item {
    text-align: center;
}
.cart-benefits-bar .benefit-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}
.cart-benefits-bar .benefit-item strong {
    display: block;
    font-size: 14px;
    color: #1e1b4b;
    margin-bottom: 6px;
}
.cart-benefits-bar .benefit-item p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* --- Cross-sell cards --- */
.woocommerce-cart .cross-sells ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
}
.woocommerce-cart .cross-sells ul.products li.product {
/* --- Hide Astra/Modern Cart quantity buttons (match the actual body class: woocommerce-js) --- */
.woocommerce-js .quantity .minus,
.woocommerce-js .quantity .plus,
.woocommerce-js .quantity .qty-minus,
.woocommerce-js .quantity .qty-plus,
.ast-qty-plc-holder,
.ast-styled-qty-button,
button.quantity-minus,
button.quantity-plus,
.mc-qty-btn,
.modern-cart-qty-btn,
.elementor-add-to-cart--layout-stacked .e-atc-qty-button-holder .quantity .minus,
.elementor-add-to-cart--layout-stacked .e-atc-qty-button-holder .quantity .plus { display: none !important; }

/* --- Our stepper: purple accent --- */
.qty-stepper {
    border: 1px solid #c4b5fd !important;
    border-radius: 8px !important;
    overflow: hidden;
}
.qty-stepper button {
    background: #7C3AED !important;
    color: #fff !important;
    border-radius: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    width: 36px !important;
    height: 38px !important;
    transition: background 0.15s;
}
.qty-stepper button:hover { background: #6D28D9 !important; }
.qty-stepper .qty {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1e1b4b !important;
    height: 38px !important;
    width: 50px !important;
    border-left: 1px solid #c4b5fd !important;
    border-right: 1px solid #c4b5fd !important;
    background: #fff !important;
}
