/*
 Theme Name:   Hello Elementor Child
 Template:     hello-elementor
 Author:       Your Name
 Version:      1.0.0
*/
.invoice-mgr-wrap { max-width: 1140px; margin: 20px auto; background: #fff; padding: 25px; border: 1px solid #ddd; border-radius: 8px; font-family: sans-serif; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.btnFontSize {font-size: 0.7rem;}
/* Header Tools Layout */
.header-tools-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    height: 100%;
}

.h-icon {
    color: #ffffff;
    font-size: 30px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    transition: 0.3s ease;
	padding-top:7px;
}

.auth-link span {
    font-size: 13px;
    margin-left: 6px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Search Box - Absolute position to avoid height issues */
#search-overlay-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #8b4513; /* Matching your brown bar */
    z-index: 99;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

#search-overlay-box form {
    display: flex;
    width: 80%;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

#search-overlay-box input {
    flex: 1;
    border: none;
    padding: 8px 15px;
    outline: none;
}

#search-overlay-box button {
    background: #fff;
    border: none;
    padding: 0 10px;
    color: #8b4513;
    cursor: pointer;
}

.s-close {
    color: #fff;
    font-size: 30px;
    margin-left: 15px;
    text-decoration: none;
    line-height: 1;
}

/* FOR SEARCH BAR STYLE */
.custom-search-item form {
    display: flex;
    background: #f1f1f1;
    border-radius: 5px;
    padding: 5px;
}
.custom-search-item input[type="search"] {
    border: none;
    background: transparent;
    width: 100%;
    padding: 8px;
}
.custom-search-item input[type="submit"] {
    background: #8b4513; 
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

/* Styling for the login container within a column */
.custom-login-container {
    max-width: 100%; /* Column ke mutabiq adjust hoga */
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.08); /* Soft brown tint shadow */
}

/* Left side content styling suggestions */
.login-content-side h2 {
    color: #8b4513; /* Your brown color */
    font-size: 32px;
    margin-bottom: 20px;
}

.login-content-side p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}
/** * Fixing menu overflow strictly for the header container 
 * Using English comments
 */

/* Target the container only if it's inside the header */
header .e-con, 
#masthead .e-con {
    max-width: 100% !important;
    overflow: visible !important;
}

/* Ensure the dropdown itself is visible */
.my-custom-menu .sub-menu {
    overflow: visible !important;
}
.page-name-border{border-bottom: 2px solid #844221 !important;}

/**
 * Global fix for horizontal scroll issues
 * Forces everything to stay within the screen width
 * Using English comments as requested
 */

html, body {
    overflow-x: hidden !important;
    position: relative !important;
    width: 100% !important;
}

/* Ensure Elementor containers don't cause overflow */
.elementor-section, .elementor-container, .e-con {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}






/** * Shake animation for specific icon boxes
 * Target by CSS ID: #my-service-card
 * Using English comments
 */

/* Target the icon specifically when the identified card is hovered */
#my-service-card .elementor-icon-box-wrapper:hover .elementor-icon-box-icon i, 
#my-service-card .elementor-icon-box-wrapper:hover .elementor-icon-box-icon svg {
    animation: shake-box 0.6s ease-in-out;
    animation-iteration-count: 1; /* Shakes once on hover */
    display: inline-block; /* Essential for transforms to work on some icons */
}

/* Shake Keyframes */
@keyframes shake-box {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(12deg); }
    30% { transform: rotate(-12deg); }
    45% { transform: rotate(9deg); }
    60% { transform: rotate(-9deg); }
    75% { transform: rotate(5deg); }
    85% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

/* Ensure smooth return to original state */
#my-service-card .elementor-icon-box-icon i, 
#my-service-card .elementor-icon-box-icon svg {
    transition: transform 0.3s ease;
}
/** * Force equal height for icon boxes 
 * Target by CSS ID: #my-service-card
 * Using English comments
 */

/* 1. Make the inner wrapper take 100% height of the column */
#my-service-card .elementor-icon-box-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Keeps content at the top */
    align-items: center; /* Centers content horizontally */
    padding-bottom: 30px; /* Optional: adds space at the bottom */
}

/** * Fixing quote visibility for .my-testimonial 
 * Using English comments 
 */

/* 1. Ensure the container has relative positioning */
.my-testimonial blockquote {
    position: relative !important;
    padding: 10px 50px !important; /* Adding space for quotes */
    display: inline-block;
    border: none !important;
    margin: 0 !important;
}

/* 2. Opening Quote */
.my-testimonial blockquote::before {
    content: "\201C" !important; /* Unicode for open quote */
    font-family: "arial" !important;
    position: absolute !important;
    left: 0 !important;
    top: -10px !important;
    font-size: 80px !important;
    color: #ffffff !important; /* Your brown color */
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 3. Closing Quote */
.my-testimonial blockquote::after {
    content: "\201D" !important; /* Unicode for close quote */
    font-family: "arial" !important;
    position: absolute !important;
    right: 0 !important;
    bottom: -40px !important;
    font-size: 80px !important;
    color: #ffffff !important;
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.premium-testimonial-lower-quote {display:none;}

/** * Final Combined Flexbox Form Styling (Quote & Contact)
 * Using English comments
 */

/* 1. Container setup */
.custom-cf7-container {
    padding: 30px;
    border-radius: 5px;
}

/* 2. Flexbox Row & Column setup */
.flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px !important;
}

.flex-col {
    flex: 1;
    min-width: 150px; /* Adjust based on your design */
}

/* Create Invoice */
/* Full Width Container for Invoice Form */
.custom-cf7-container, 
.custom-invoice-container {
    width: 100% !important;
    max-width: 100% !important; /* Force to full width */
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Ensure the form uses available space */
#dynamic-invoice-form {
    width: 100% !important;
}

/* Table styling for better field visibility */
#invoice-items-table, 
#dynamic-invoice-form table {
    width: 100% !important;
    table-layout: auto !important; /* Allow columns to breathe */
    margin-top: 20px;
}

/* Adjusting column widths */
#invoice-items-table th:nth-child(2),
#dynamic-invoice-form td:nth-child(2) {
    width: 35% !important; /* Description gets more space */
}

/* Make inputs fill their cells */
#invoice-items-table input, 
#invoice-items-table select,
#dynamic-invoice-form input,
#dynamic-invoice-form select {
    width: 100% !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    border: 1px solid #ccc !important;
    border-radius: 4px;
}
/* Styling the service list in dashboard for better alignment */
#mgrTable td div div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#mgrTable td div span:first-child {
    padding-right: 15px; /* Space between text and amount */
}

#mgrTable td div span:last-child {
    font-family: 'Courier New', monospace; /* Professional price look */
    white-space: nowrap;
}
/* Responsive fix for smaller screens */
@media screen and (max-width: 768px) {
    #invoice-items-table {
        display: block;
        overflow-x: auto; /* Adds scrollbar on mobile */
        white-space: nowrap;
    }
}
table td {padding:3 !important;}
/* Styling the Grand Total section */
#final_grand_total_display_container {
    text-align: right;
    padding: 20px;
    background: #fdfdfd;
    border-top: 2px solid #8b4513;
}
/* Force CF7 spans to behave within flex layout */
.flex-col span.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Utility for 100% width fields */
.full-width {
    flex: 0 0 100% !important;
}

/* 3. Input, Select, and Textarea Base Styling */
.custom-cf7-container input[type="text"],
.custom-cf7-container input[type="email"],
.custom-cf7-container input[type="tel"],
.custom-cf7-container input[type="number"],
.custom-cf7-container input[type="date"],
.custom-cf7-container select,
.custom-cf7-container textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #ffffff;
    color: #555;
    font-size: 16px;
    border-radius: 0;
    height: 55px;
    appearance: none;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

/* Specific height for message box */
.custom-cf7-container textarea {
    height: 150px;
    font-family: inherit;
    resize: vertical;
}

/* 4. Focus State Logic (The Brown Effect) */
.custom-cf7-container input:focus,
.custom-cf7-container select:focus,
.custom-cf7-container textarea:focus {
    background-color: #8b4513 !important; /* Brown color */
    color: #ffffff !important;
    border-color: #8b4513 !important;
}

/* Placeholder color on focus */
.custom-cf7-container input:focus::placeholder,
.custom-cf7-container textarea:focus::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* 5. Button Styling */
.form-submit-btn {
    background-color: #8b4513 !important; 
    color: #fff !important;
    width: 100%;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    height: 55px;
}

.form-submit-btn:hover {
    background-color: #a0522d !important;
}


/* Remove borders from the Pay for Order table */
.woocommerce-checkout #order_review table.shop_table,
.woocommerce-checkout #order_review table.shop_table td,
.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table tr {
    border: none !important;
    border-bottom: 1px solid #8b4513 !important;
}

/* Optional: Add a little padding to make it look cleaner without borders */
.woocommerce-checkout #order_review table.shop_table td {
    padding: 12px 0 !important;
}

/* Remove the background header color if needed */
.woocommerce-checkout #order_review table.shop_table thead th {
    background: transparent !important;
    border-bottom: 2px solid #8b4513 !important; /* Single thin brown line under header instead of borders */
}
/* Hide product quantity (x 1) on the Pay for Order page */
.woocommerce-checkout #order_review .product-quantity {
    color: #ffffff !important;
}
/* English Comment: Styling table headings for better clarity */
.woocommerce-checkout #order_review table.shop_table thead th {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    color: #8b4513 !important; /* Brown color to match your theme */
}

/* 6. Mobile adjustments */
@media (max-width: 768px) {
    .flex-col {
        flex: 0 0 100%; /* Force stack on smaller screens */
    }
    .flex-row {
        gap: 15px;
    }
}