/*
Theme Name: Ecomus Child
Theme URI: https://wpecomus.com/
Author: DrFuri
Author URI: http://drfuri.com/
Description: Multipurpose WooCommerce WordPress Theme
Version: 1.0.0
Requires at least: 5.0
Tested up to: 5.8
Requires PHP: 7.0
License: GNU General Public License v2+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecomus
Domain Path: /lang/
Tags: one-column, two-columns, left-sidebar, right-sidebar, full-width-template, post-formats, theme-options, threaded-comments, translation-ready
Template: ecomus
*/
/* --- Custom Order Page Styling - V5 (Final with Tooltip Fix) --- */
.page-template-template-custom-order-php .entry-content {
    padding: 0 !important;
    max-width: 100%;
}

.page-template-template-custom-order-php .custom-order-page-container {
    max-width: 1140px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f7f7f9;
    padding: 30px;
    border-radius: 12px;
}

.page-template-template-custom-order-php .custom-order-page-container form {
    display: flex !important;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Left Column: Form */
.page-template-template-custom-order-php .order-form-column {
    flex: 2;
    min-width: 350px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9e9e9;
}

.page-template-template-custom-order-php .order-form-column h2 {
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 25px;
    color: #111;
    font-weight: 700;
}

.page-template-template-custom-order-php .form-step-icon {
    color: #28a745;
    margin-right: 15px;
    font-size: 30px;
    vertical-align: middle;
}

.page-template-template-custom-order-php .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.page-template-template-custom-order-php .form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-template-template-custom-order-php .form-field label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
    font-size: 14px;
}

.page-template-template-custom-order-php .form-field select,
.page-template-template-custom-order-php .form-field input[type="text"],
.page-template-template-custom-order-php .form-field textarea,
.page-template-template-custom-order-php .form-field input[type="file"] {
    width: 100%;
    padding: 14px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 16px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.page-template-template-custom-order-php .form-field select:focus,
.page-template-template-custom-order-php .form-field input[type="text"]:focus,
.page-template-template-custom-order-php .form-field textarea:focus {
    border-color: #0073e6;
    box-shadow: 0 0 0 2px rgba(0, 115, 230, 0.1);
    outline: none;
}

.page-template-template-custom-order-php .form-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* Right Column: Summary */
.page-template-template-custom-order-php .order-summary-column {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e9e9e9;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    align-self: stretch;
    min-width: 300px;
    position: sticky;
    top: 40px;
}

.page-template-template-custom-order-php .order-summary-column h3 {
    text-align: left;
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 25px;
    color: #111;
}

.page-template-template-custom-order-php .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.page-template-template-custom-order-php .summary-row:last-of-type {
    border-bottom: none;
}

.page-template-template-custom-order-php .summary-row span:first-child { color: #555; }
.page-template-template-custom-order-php .summary-row span:last-child { font-weight: 600; color: #111; }
.page-template-template-custom-order-php .free-item { color: #28a745 !important; font-weight: 600; }
.page-template-template-custom-order-php .discount-row span:last-child { color: #e44d26 !important; }
.page-template-template-custom-order-php .total-row { font-size: 22px; font-weight: 700; padding-top: 15px; margin-top: 10px; border-top: 2px solid #333; }
.page-template-template-custom-order-php .total-row span { color: #111; }

.page-template-template-custom-order-php .order-summary-column button {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(180deg, #ef4d2d 0%, #e3300b 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(227, 48, 11, 0.3);
}

.page-template-template-custom-order-php .order-summary-column button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(227, 48, 11, 0.4);
}

.page-template-template-custom-order-php .secure-payment-info {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #777;
}

/* Tooltip "i" Button Styling - V2 (More Powerful) */
.page-template-template-custom-order-php .info-tooltip {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background-color: #a0a0a0;
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
    font-family: serif;
    cursor: pointer;
    position: relative; /* Yeh zaroori hai */
    margin-left: 8px;
    top: -1px;
}

/* Tooltip ka box aur triangle, jo by default chupay hue hon gay */
.page-template-template-custom-order-php .info-tooltip::before,
.page-template-template-custom-order-php .info-tooltip::after {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

/* Hover karne per inhein show karein */
.page-template-template-custom-order-php .info-tooltip:hover::before,
.page-template-template-custom-order-php .info-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Tooltip ka box */
.page-template-template-custom-order-php .info-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%; 
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: normal;
    width: 220px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Tooltip ka chota sa triangle */
.page-template-template-custom-order-php .info-tooltip::before {
    content: '';
    position: absolute;
    bottom: 130%;
    margin-bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}


/* Responsive Design */
@media (max-width: 991px) {
    .page-template-template-custom-order-php .custom-order-page-container form {
        flex-direction: column;
    }
    .page-template-template-custom-order-php .order-summary-column {
        position: static;
    }
}