/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/
Description: Child theme for Hello Elementor.
Author: Antigravity
Author URI: https://google.com/
Template: hello-elementor
Version: 1.0.0
*/

/* Reset select elements under variations */
.variations select {
    display: none !important;
}

/* Variations table stacked display */
.variations {
    width: 100% !important;
    border: none !important;
    margin-bottom: 20px !important;
}
.variations tbody, 
.variations tr, 
.variations td {
    display: block !important;
    width: 100% !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.variations tr {
    margin-bottom: 15px !important;
}
.variations td.label {
    margin-bottom: 8px !important;
}
.variations td.label label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #2c2c2c !important;
    text-transform: capitalize !important;
}

/* Swatches styling */
.attribute-swatches {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 5px !important;
    margin-bottom: 10px !important;
}
.swatch-button {
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #d3d3d3 !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-shadow: none !important;
    line-height: 1.2 !important;
}
.swatch-button.selected {
    background-color: #2D5890 !important;
    color: #fff !important;
    border-color: #2D5890 !important;
}
.swatch-button:hover:not(.selected):not(.disabled) {
    border-color: #2D5890 !important;
    color: #2D5890 !important;
}
.swatch-button.disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    background-color: #f7f7f7 !important;
    color: #999 !important;
    border-color: #e5e5e5 !important;
}

/* WooCommerce reset variations button styling */
.reset_variations {
    display: inline-block !important;
    font-size: 12px !important;
    color: #666 !important;
    text-decoration: underline !important;
    margin-left: 10px !important;
    cursor: pointer !important;
}

/* Custom Quantity input styling */
.quantity {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #d3d3d3 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background: #fff !important;
    margin-right: 15px !important;
    vertical-align: middle !important;
}
.qty-btn {
    width: 35px !important;
    height: 35px !important;
    border: none !important;
    background: #fff !important;
    color: #000 !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s !important;
    outline: none !important;
    user-select: none !important;
}
.qty-btn:hover {
    background: #f2f2f2 !important;
}
.quantity input.qty {
    width: 45px !important;
    height: 35px !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    outline: none !important;
    -moz-appearance: textfield !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #000 !important;
}
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Brand label styling */
.product-brand-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #8c8c8c !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 8px !important;
    font-family: inherit !important;
}

/* Price USD suffix styling */
.price-currency-usd {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #666 !important;
    margin-left: 5px !important;
    vertical-align: baseline !important;
}

/* Shipping calculation disclaimer styling */
.product-shipping-calc {
    font-size: 12px !important;
    color: #666 !important;
    margin-top: -12px !important;
    margin-bottom: 25px !important;
    font-family: inherit !important;
}
.product-shipping-calc a {
    color: #666 !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
}

/* Uncropped image gallery display style & forced opacity */
.woocommerce-product-gallery,
.woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image a,
.woocommerce-product-gallery__image img,
.flex-viewport {
    height: auto !important;
    max-height: none !important;
}
.woocommerce-product-gallery {
    opacity: 1 !important; /* Force visible gallery immediately */
}
.woocommerce-product-gallery__image {
    aspect-ratio: auto !important;
    padding: 0 !important;
}
.woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}
.woocommerce-product-gallery__trigger {
    display: none !important;
}

/* PECB Logo single page badge container styling (moved above thumbnail on left) */
.single-product .cg-pecb-single-badge-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 20px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
}
.single-product .cg-pecb-single-badge {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.single-product .cg-pecb-single-logo {
    max-width: 140px !important;
    height: auto !important;
    display: block !important;
    margin: 0 0 10px 0 !important;
}
.single-product .cg-pecb-single-text {
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #8c8c8c !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: block !important;
    margin-bottom: 5px !important;
}

/* Flex layout columns and wrap styling for single product pages */
@media (min-width: 768px) {
    html body.single-product div.product {
        display: grid !important;
        grid-template-columns: 45% 50% !important;
        gap: 0 5% !important;
        align-items: start !important;
    }
    html body.single-product div.product .cg-pecb-single-badge-container {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    html body.single-product div.product .woocommerce-product-gallery {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    html body.single-product div.product .summary {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-top: 0 !important;
    }
    html body.single-product div.product .woocommerce-tabs {
        grid-column: 1 / span 2 !important;
        grid-row: 3 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 40px !important;
    }
    html body.single-product div.product .related.products {
        grid-column: 1 / span 2 !important;
        grid-row: 4 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 50px !important;
    }
}



/* ==========================================================================
   Overrides for conformity-globe-widgets plugin CSS
   ========================================================================== */

/* 1. Gallery Container & Image Overrides (Force natural proportions and remove grey borders/shadow box) */
html body.single-product div.product div.images {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    margin-bottom: 30px !important;
}
html body.single-product div.product div.images img {
    border-radius: 0 !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* 2. Title Styling Overrides (Force bold black, remove navy blue) */
html body.single-product .product_title {
    color: #000000 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.5px !important;
    margin-top: 5px !important;
    margin-bottom: 15px !important;
}

/* 3. Price Styling Overrides (Force bold black, remove accent green) */
html body.single-product p.price {
    color: #000000 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
html body.single-product p.price ins {
    color: #000000 !important;
    background: transparent !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}
html body.single-product p.price del {
    font-size: 16px !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* 4. Add to Cart Button Overrides (Force clean black button, remove green background/shadow) */
html body.single-product form.cart .button.single_add_to_cart_button {
    background-color: #2D5890 !important;
    color: #ffffff !important;
    border: 1px solid #2D5890 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 12px 24px !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    transition: background-color 0.2s ease !important;
    height: auto !important;
    width: auto !important;
    display: inline-block !important;
}
html body.single-product form.cart .button.single_add_to_cart_button:hover {
    background-color: #1A3E6D !important;
    border-color: #1A3E6D !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Remove grey background and padding from variation labels */
html body.single-product table.variations td.label {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}
html body.single-product table.variations td.label label {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Align quantity selector and add to cart button side-by-side */
html body.single-product form.cart .woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    margin-top: 20px !important;
}
html body.single-product form.cart .quantity {
    margin-right: 0 !important; /* Reset margin because gap is used */
}

/* 5. Quantity Box & Button Overrides (Force clean layout and override widget dimensions) */
html body.single-product form.cart .quantity {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #d3d3d3 !important;
    border-radius: 4px !important;
    padding: 0 !important;
    background: #fff !important;
    margin-right: 15px !important;
    height: 35px !important;
}
html body.single-product form.cart .quantity input.qty {
    border: none !important;
    background: transparent !important;
    width: 45px !important;
    height: 35px !important;
    text-align: center !important;
    font-weight: 500 !important;
    color: #000000 !important;
    font-size: 15px !important;
    padding: 0 !important;
    margin: 0 !important;
}
html body.single-product form.cart .quantity .qty-btn {
    width: 35px !important;
    height: 35px !important;
    font-size: 18px !important;
}


/* ==========================================================================
   Checkout Page Premium Styling (Mockup Replica)
   ========================================================================== */

/* 1. Layout Structure */
.woocommerce-checkout .site-main {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
}
.woocommerce-checkout h1.entry-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 32px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    margin-bottom: 25px !important;
    text-transform: none !important;
    letter-spacing: -0.5px !important;
}

/* Two-column layout grid on desktop */
@media (min-width: 992px) {
    .woocommerce-checkout form.checkout {
        display: grid !important;
        grid-template-columns: 55% 40% !important;
        gap: 0 5% !important;
        align-items: start !important;
        position: relative !important;
    }
    .woocommerce-checkout #customer_details {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        float: none !important;
    }
    .woocommerce-checkout #payment {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        float: none !important;
        margin-top: 30px !important;
    }
    .woocommerce-checkout #order_review {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
        width: 100% !important;
        float: none !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
    .woocommerce-checkout #order_review_heading {
        grid-column: 2 !important;
        grid-row: 1 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 15px !important;
        border: none !important;
    }
}

/* 2. Customer Details Form & Fields */
.woocommerce-checkout #customer_details h3,
.woocommerce-checkout #payment h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #8c8c8c !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 12px !important;
    margin-bottom: 25px !important;
    margin-top: 0 !important;
}

.woocommerce-checkout .form-row {
    margin-bottom: 18px !important;
}
.woocommerce-checkout .form-row label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #8c8c8c !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
    display: block !important;
}
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    width: 100% !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease !important;
}
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    border-color: #2D5890 !important; /* Brand Blue */
}

/* 3. Your Order Container (Right Column) */
.woocommerce-checkout #order_review_heading {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #8c8c8c !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 15px 0 !important;
}

/* Hide table headers and default borders */
.woocommerce-checkout-review-order-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
    margin-bottom: 20px !important;
}
.woocommerce-checkout-review-order-table thead {
    display: none !important;
}
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    border: none !important;
    padding: 15px 0 !important;
    background: transparent !important;
    vertical-align: middle !important;
}

/* Product rows styling */
.woocommerce-checkout-review-order-table tr.cart_item {
    border-bottom: 1px solid #f1f5f9 !important;
}
.checkout-item-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}
.checkout-item-media-column {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 0 0 70px !important;
    width: 70px !important;
}
.checkout-item-image img {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    display: block !important;
}
.checkout-item-logo img {
    max-width: 60px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}
.checkout-item-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
.checkout-item-title {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #111111 !important;
    line-height: 1.3 !important;
}

.checkout-item-qty-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    width: 26px !important;
    height: 26px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    background: #ffffff !important;
    margin-left: 10px !important;
    vertical-align: middle !important;
}
.woocommerce-checkout-review-order-table tr.cart_item td.product-total {
    text-align: right !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #111111 !important;
    white-space: nowrap !important;
}

/* Cost Totals Rows styling */
.woocommerce-checkout-review-order-table tr.cart-subtotal,
.woocommerce-checkout-review-order-table tr.shipping,
.woocommerce-checkout-review-order-table tr.fee,
.woocommerce-checkout-review-order-table tr.tax-total {
    border-bottom: 1px solid #f1f5f9 !important;
}
.woocommerce-checkout-review-order-table tr.cart-subtotal th,
.woocommerce-checkout-review-order-table tr.shipping th,
.woocommerce-checkout-review-order-table tr.fee th,
.woocommerce-checkout-review-order-table tr.tax-total th {
    text-align: left !important;
    font-size: 14px !important;
    color: #64748b !important;
    font-weight: 400 !important;
}
.woocommerce-checkout-review-order-table tr.cart-subtotal td,
.woocommerce-checkout-review-order-table tr.shipping td,
.woocommerce-checkout-review-order-table tr.fee td,
.woocommerce-checkout-review-order-table tr.tax-total td {
    text-align: right !important;
    font-size: 14px !important;
    color: #111111 !important;
    font-weight: 500 !important;
}

/* Grand Total Row */
.woocommerce-checkout-review-order-table tr.order-total th {
    text-align: left !important;
    font-size: 15px !important;
    color: #111111 !important;
    font-weight: 600 !important;
}
.woocommerce-checkout-review-order-table tr.order-total td {
    text-align: right !important;
    font-size: 16px !important;
    color: #111111 !important;
    font-weight: 700 !important;
}

/* 4. Payment Details Container (Left Column, Row 2) */
.woocommerce-checkout #payment {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 25px !important;
    box-shadow: none !important;
}
.woocommerce-checkout #payment ul.payment_methods {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 0 20px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 15px !important;
}
.woocommerce-checkout #payment ul.payment_methods li {
    margin-bottom: 15px !important;
}
.woocommerce-checkout #payment ul.payment_methods li label {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #1e293b !important;
    cursor: pointer !important;
}
.woocommerce-checkout #payment .payment_box {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 15px !important;
    font-size: 13px !important;
    color: #475569 !important;
    line-height: 1.5 !important;
    margin-top: 8px !important;
}

/* Place Order Button styling (Brand Blue button) */
.woocommerce-checkout #payment #place_order {
    width: 100% !important;
    background-color: #2D5890 !important; /* Brand Blue */
    color: #ffffff !important;
    border: 1px solid #2D5890 !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 15px 30px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
    height: auto !important;
}
.woocommerce-checkout #payment #place_order:hover {
    background-color: #1A3E6D !important;
    border-color: #1A3E6D !important;
    transform: none !important;
    box-shadow: none !important;
}



