/* EQUAL HEIGHT PANELS WITH NATURAL PAGE SCROLLING */
.checkout-page-section { padding: 40px 0 !important; }
.inquiry-form-wrapper .section-heading { margin-bottom: 30px !important; }

.inquiry-form-wrapper .checkout.woocommerce-checkout {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
    align-items: stretch !important; /* Equal height panels */
    /* Removed fixed height and overflow hidden for natural scrolling */
}
.inquiry-form-wrapper .checkout.woocommerce-checkout::before,
.inquiry-form-wrapper .checkout.woocommerce-checkout::after { display: none !important; }

/* Panels equal height */
.inquiry-items-summary,
.inquiry-customer-details {
    display: flex !important;
    flex-direction: column !important;
    background: #fff;
    border: 1px solid #eaeaea !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
    /* Removed height: 100% and overflow: hidden */
}

/* Sizing */
.inquiry-items-summary { flex: 1 1 50% !important; }
.inquiry-customer-details { flex: 0 0 450px !important; width: 450px !important; }

/* Headers */
.inquiry-items-summary h2,
.inquiry-customer-details h2 {
    padding: 24px 24px 15px 24px !important;
    margin: 0 !important;
    font-size: 1.25rem !important;
    border-bottom: 1px solid #eee !important;
}

/* Content areas - no internal scrolling */
#order_review,
#customer_details {
    padding: 20px 24px !important;
    flex: 1 1 auto !important;
    /* Removed overflow-y: auto and height: 100% */
}

/* Button and note */
.btn-get-quote {
    margin: 15px 24px 0 24px !important;
    width: calc(100% - 48px) !important;
}
.inquiry-note {
    margin: 10px 24px 20px 24px !important;
    line-height: 1.4 !important;
}

/* Form Fields */
.inquiry-customer-details .form-row { margin-bottom: 20px !important; width: 100% !important; float: none !important; }
.woocommerce-billing-fields__field-wrapper { display: flex; flex-direction: column; }
.woocommerce-billing-fields h3 { display: none !important; }

/* Mobile */
@media (max-width: 991px) {
    .inquiry-form-wrapper .checkout.woocommerce-checkout {
        flex-direction: column !important;
    }
    .inquiry-items-summary,
    .inquiry-customer-details {
        flex: 0 0 auto !important;
        width: 100% !important;
    }
}
/* ========================================================
   MODERN CART LAYOUT REFINEMENT
   ======================================================== */

.cart-page-section {
    padding: 60px 0 !important;
    background-color: #fcfcfc !important;
}

.cart-page-section .section-heading {
    text-align: left !important;
    margin-bottom: 40px !important;
}
.cart-page-section .section-heading h1 {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin-bottom: 8px !important;
}
.cart-page-section .section-heading p {
    font-size: 1.05rem !important;
    color: #666 !important;
}

/* Product List (Left Column) */
.woocommerce-cart-form {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.cart-item-row {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center !important;
    padding: 20px 0 !important;
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    gap: 20px !important;
}
.cart-item-row:last-of-type {
    border-bottom: none !important;
    padding-bottom: 10px !important;
}

/* Image */
.cart-item-image {
    flex: 0 0 100px;
}
.cart-item-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eaeaea !important;
}

/* Details */
.cart-item-details {
    flex: 1;
    min-width: 200px;
}
.cart-item-name {
    margin-bottom: 6px;
}
.cart-item-name a {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.3 !important;
}
.cart-item-meta {
    font-size: 0.9rem !important;
    color: #888 !important;
}

/* Quantity */
.cart-item-qty {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cart-item-qty label {
    font-size: 0.85rem !important;
    color: #999 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px !important;
}
.cart-item-qty input {
    width: 65px !important;
    height: 40px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    text-align: center;
    font-weight: 600;
    color: #333;
    padding: 0 !important;
}

/* Remove Button */
.cart-item-remove {
    flex: 0 0 auto;
}
.cart-item-remove .remove-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    background: #fdf2f2 !important;
    color: #dc3545 !important;
    border-radius: 50% !important;
    border: none !important;
    transition: all 0.2s ease !important;
}
.cart-item-remove .remove-item:hover {
    background: #dc3545 !important;
    color: #fff !important;
    transform: scale(1.05);
}

/* Cart Actions */
.cart-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.cart-form-actions .btn-ghost {
    background: #f8f9fa !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
}
.cart-form-actions .btn-ghost:hover {
    background: #e9ecef !important;
    color: #111 !important;
}

/* Summary Panel (Right Column) */
.cart-summary-panel {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    border: 1px solid #eaeaea !important;
    position: sticky;
    top: 20px;
}
.cart-summary-panel h3 {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin-bottom: 8px !important;
    border: none !important;
    padding: 0 !important;
}
.cart-summary-panel > p:first-of-type {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-summary-panel .btn-secondary {
    background: #111 !important;
    color: #fff !important;
    font-size: 1.05rem !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
    justify-content: center;
}
.cart-summary-panel .btn-secondary:hover {
    background: #333 !important;
    transform: translateY(-2px);
}

.cart-summary-note {
    font-size: 0.85rem !important;
    color: #888 !important;
    text-align: center;
    margin-bottom: 25px !important;
}

.cart-summary-features {
    background: #fafafa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px !important;
    border: none !important;
}
.cart-summary-features div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem !important;
    color: #444 !important;
    margin-bottom: 10px !important;
}
.cart-summary-features div:last-child {
    margin-bottom: 0 !important;
}
.cart-summary-features i {
    color: #28a745;
    font-size: 1rem;
}

.cart-summary-whatsapp a {
    background: #f2fbf4 !important;
    color: #25D366 !important;
    border: 1px solid #c2e8cd !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

@media (max-width: 768px) {
    .cart-form-actions {
        flex-direction: column;
        gap: 15px;
    }
    .cart-form-actions .btn-ghost {
        width: 100%;
        text-align: center;
    }
    .cart-item-row {
        flex-direction: column;
        align-items: flex-start !important;
        position: relative;
    }
    .cart-item-remove {
        position: absolute;
        top: 20px;
        right: 0;
    }
}
    none !important;
    transition: all 0.2s ease !important;
}
.cart-item-remove .remove-item:hover {
    background: #dc3545 !important;
    color: #fff !important;
    transform: scale(1.05);
}

/* Cart Actions */
.cart-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.cart-form-actions .btn-ghost {
    background: #f8f9fa !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
}
.cart-form-actions .btn-ghost:hover {
    background: #e9ecef !important;
    color: #111 !important;
}

/* Summary Panel (Right Column) */
.cart-summary-panel {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    border: 1px solid #eaeaea !important;
    position: sticky;
    top: 20px;
}
.cart-summary-panel h3 {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin-bottom: 8px !important;
    border: none !important;
    padding: 0 !important;
}
.cart-summary-panel > p:first-of-type {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-summary-panel .btn-secondary {
    background: #111 !important;
    color: #fff !important;
    font-size: 1.05rem !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
    justify-content: center;
}
.cart-summary-panel .btn-secondary:hover {
    background: #333 !important;
    transform: translateY(-2px);
}

.cart-summary-note {
    font-size: 0.85rem !important;
    color: #888 !important;
    text-align: center;
    margin-bottom: 25px !important;
}

.cart-summary-features {
    background: #fafafa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px !important;
    border: none !important;
}
.cart-summary-features div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem !important;
    color: #444 !important;
    margin-bottom: 10px !important;
}
.cart-summary-features div:last-child {
    margin-bottom: 0 !important;
}
.cart-summary-features i {
    color: #28a745;
    font-size: 1rem;
}

.cart-summary-whatsapp a {
    background: #f2fbf4 !important;
    color: #25D366 !important;
    border: 1px solid #c2e8cd !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

@media (max-width: 768px) {
    .cart-form-actions {
        flex-direction: column;
        gap: 15px;
    }
    .cart-form-actions .btn-ghost {
        width: 100%;
        text-align: center;
    }
    .cart-item-row {
        flex-direction: column;
        align-items: flex-start !important;
        position: relative;
    }
    .cart-item-remove {
        position: absolute;
        top: 20px;
        right: 0;
    }
}

/* ==========================================================================
   Modern Form & Checkout Field Styling
   ========================================================================== */

/* Flexbox wrapper for the fields */
.woocommerce form .woocommerce-billing-fields__field-wrapper,
.woocommerce form .woocommerce-shipping-fields__field-wrapper,
.woocommerce form .checkout_coupon,
.woocommerce form.checkout {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.woocommerce form .form-row {
    margin-bottom: 15px !important;
    padding: 0 !important;
    width: 100%;
    float: none !important;
}

/* 50/50 Split for First/Last rows (e.g., First Name / Last Name) */
.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
    width: calc(50% - 7.5px) !important;
}

/* Modern Input Styling */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 8px !important;
    background-color: #fbfbfb !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
    color: #333 !important;
    height: auto !important;
    line-height: normal !important;
}

/* Focus State */
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: #222 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(34,34,34,0.05) !important;
    outline: none !important;
}

/* Label Styling */
.woocommerce form .form-row label {
    display: block !important;
    font-weight: 500 !important;
    margin-bottom: 6px !important;
    font-size: 0.9rem !important;
    color: #444 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Required Asterisk */
.woocommerce form .form-row label .required {
    color: #dc3545 !important;
    text-decoration: none !important;
    border: none !important;
}

/* Textarea height */
.woocommerce form .form-row textarea {
    min-height: 120px !important;
    resize: vertical !important;
}

/* Mobile Fallback: Make everything 100% width on small screens */
@media (max-width: 768px) {
    .woocommerce form .form-row-first,
    .woocommerce form .form-row-last {
        width: 100% !important;
    }
}

/* ==========================================================================
   WooCommerce Input Wrapper & Form Control Specific Overrides
   ========================================================================== */

/* Ensure the wrapper takes full width of its column */
.woocommerce-input-wrapper {
    display: block !important;
    width: 100% !important;
}

/* Explicitly target the .form-control classes overriding our styles */
.woocommerce-input-wrapper .input-text.form-control,
.woocommerce-input-wrapper select.form-control,
.woocommerce-input-wrapper textarea.form-control {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 8px !important;
    background-color: #fbfbfb !important;
    font-size: 0.95rem !important;
    color: #333 !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: none !important; /* Strips out bulky theme/Bootstrap shadows */
    height: auto !important;
    appearance: none !important; /* Removes native OS styling for cleaner look */
}

/* Hover State */
.woocommerce-input-wrapper .input-text.form-control:hover,
.woocommerce-input-wrapper select.form-control:hover,
.woocommerce-input-wrapper textarea.form-control:hover {
    border-color: #bbb !important;
}

/* Focus / Active State */
.woocommerce-input-wrapper .input-text.form-control:focus,
.woocommerce-input-wrapper select.form-control:focus,
.woocommerce-input-wrapper textarea.form-control:focus {
    border-color: #222 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(34,34,34,0.05) !important;
    outline: none !important;
}

/* Special handling for textareas in these wrappers */
.woocommerce-input-wrapper textarea.form-control {
    min-height: 120px !important;
    resize: vertical !important;
}

/* ==========================================================================
   Restructured Side-by-Side Cart List
   ========================================================================== */

/* Cart Form Container */
.woocommerce-cart-form {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* Base Restructuring for the Item Row */
.cart-item-row {
    display: flex;
    align-items: center; /* Side by side vertical alignment */
    justify-content: space-between; /* Spread elements */
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 20px;
}

/* Target the FIRST row to not have huge spacing */
.cart-item-row:first-child {
    padding-top: 0;
}

/* Target the LAST row to remove border */
.cart-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Image Wrapper */
.cart-item-image {
    flex: 0 0 100px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.cart-item-image img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.cart-item-image:hover img {
    transform: scale(1.05);
}

/* Details Section */
.cart-item-details {
    flex: 1; /* Take up remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cart-item-name {
    font-size: 1.1rem !important;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
}
.cart-item-name a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}
.cart-item-name a:hover {
    color: #047DFF;
}

.cart-item-meta {
    font-size: 0.9rem;
    color: #777;
}

/* Quantity Controls */
.cart-item-qty {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center side-by-side */
    background: #fbfbfb;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}
.cart-item-qty label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}
.cart-item-qty input {
    width: 60px !important;
    height: 35px !important;
    text-align: center;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-weight: 600;
    color: #333;
    padding: 0 !important;
}

/* Remove Button */
.cart-item-remove {
    flex: 0 0 40px;
    display: flex;
    justify-content: flex-end;
}
.cart-item-remove .remove-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fdf2f2;
    color: #dc3545;
    text-decoration: none;
    transition: all 0.2s ease;
}
.cart-item-remove .remove-item:hover {
    background: #dc3545;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220,53,69,0.2);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .cart-item-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
    }
    .cart-item-image {
        margin-bottom: 15px;
    }
    .cart-item-details {
        margin-bottom: 20px;
        align-items: center;
    }
    .cart-item-remove {
        position: absolute;
        top: 20px;
        right: 0;
    }
}

/* ==========================================================================
   Cart Page Layout - Enforced Side-by-Side
   ========================================================================== */

/* Force the main inner row to split side-by-side rather than stacking */
.cart-page-section .row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 40px !important;
    margin: 0 !important;
}

/* Left side: The List/Details (Taking up 65% of the screen) */
.cart-page-section .col-lg-8 {
    flex: 0 0 calc(65% - 20px) !important;
    max-width: calc(65% - 20px) !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Right side: The Summary/Action Form (Taking up 35% of the screen) */
.cart-page-section .col-lg-4 {
    flex: 0 0 calc(35% - 20px) !important;
    max-width: calc(35% - 20px) !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Ensure the individual cart items also NEVER break into top-and-bottom */
.cart-item-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

/* Safe fallback: only stack into top-and-bottom if they are on a mobile device */
@media (max-width: 991px) {
    .cart-page-section .row {
        flex-direction: column !important;
        gap: 30px !important;
    }
    .cart-page-section .col-lg-8,
    .cart-page-section .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}
