/*
Theme Name: Shoptimizer Child Theme
Theme URI: 
Description: Child theme of Shoptimizer
Author: CommerceGurus
Author URI: 
Template: shoptimizer
Version: 1.2.2
License:         	GNU General Public License v2 or later
License URI:     	http://www.gnu.org/licenses/gpl-2.0.html
*/


/* --- START: Full Width Orders Fix (Targeted Max-Width Reset) --- */

/* 1. Force hide the navigation universally */
.woocommerce-MyAccount-navigation {
    
}

/* 2. Remove the max-width restriction on the main wrapper (.col-full) only for the orders page */
body.full-width-orders .col-full {
    max-width: 100% !important; /* Forces the content area to use full screen width */
    margin-left: 15px !important;
    margin-right: 15px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 3. Ensure internal containers also respect this */
body.full-width-orders #primary,
body.full-width-orders #main,
body.full-width-orders .content-area,
body.full-width-orders .entry-content,
body.full-width-orders .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}


/* 4. Add the requested 20px aesthetic margin back *inside* the content */
body.full-width-orders .woocommerce-MyAccount-content > *,
body.full-width-orders .entry-content > * {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* --- END: Full Width Orders Fix --- */




/* 1. Main Background Wrapper */
body div.dropshipper-reg-form-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px 0 !important;
    background-color: #f8fafc;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

/* 2. Enhanced Wide Form Card */
body div.dropshipper-reg-form {
    width: 95% !important;
    max-width: 1300px !important;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    box-sizing: border-box;
}

/* 3. The Grid Layout - 2 Columns Desktop */
body #dropshipper-registration-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0 40px; /* Horizontal gap only */
}

/* 4. Form Sections (Columns) */
body .form_sec {
    flex: 1;
    min-width: 450px;
    display: block; /* Removed nested flex to prevent vanishing content */
}

/* 5. Modern Fields - Subtle Height Increase */
body div.dropshipper-reg-form-container input:not([type="submit"]):not([type="checkbox"]), 
body div.dropshipper-reg-form-container select {
    width: 100% !important;
    padding: 17px 20px !important; /* Elegant height via padding */
    margin-bottom: 20px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
}

/* 6. Success Message - Centered and Visible */
body div.dropshipper-reg-form-container .se_msg {
    width: 100% !important;
    text-align: center;
    display: block !important;
    font-size: 20px;
    color: #10b981;
    margin: 15px 0 !important;
    font-weight: 700;
}

/* 7. Checkbox (Mark Option) - Restored Position */
body div.dropshipper-reg-form-container .termbox {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 12px;
    margin: 10px 0 20px 0 !important;
}

body div.dropshipper-reg-form-container .termbox input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    cursor: pointer;
}

/* 8. Register Button - Updated with Icon & Animation */
/* 8. Register Button - Bold, Modern, Animated with Sliding Icon */
body div.dropshipper-reg-form-container input[type="submit"]#reg_drop_btn {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 400px;
    margin: 10px auto 0 !important;
    padding: 18px !important;
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative; /* Required for the icon position */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    overflow: hidden;
}

/* Creating the Arrow Icon Animation */
body div.dropshipper-reg-form-container input[type="submit"]#reg_drop_btn::after {
    content: '\2192'; /* Unicode Right Arrow → */
    position: absolute;
    right: 30px; /* Hidden slightly inside the button */
    opacity: 0;
    font-size: 22px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Bouncy animation */
}

/* Button Hover State */
body div.dropshipper-reg-form-container input[type="submit"]#reg_drop_btn:hover {
    background: #222 !important;
    padding-right: 45px !important; /* Makes room for the icon to slide in */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* Triggering Icon Animation on Hover */
body div.dropshipper-reg-form-container input[type="submit"]#reg_drop_btn:hover::after {
    opacity: 1;
    right: 20px; /* Slides into view */
}

/* Shine Effect Animation (Extra Modern Touch) */
body div.dropshipper-reg-form-container input[type="submit"]#reg_drop_btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-25deg);
}

body div.dropshipper-reg-form-container input[type="submit"]#reg_drop_btn:hover::before {
    animation: shineEffect 0.8s;
}

@keyframes shineEffect {
    100% {
        left: 150%;
    }
}


/* Hover Animation: Scale and Glow */
body div.dropshipper-reg-form-container input[type="submit"]#reg_drop_btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #1a1a1a 0%, #444444 100%) !important;
}

/* Add Icon (Right Arrow) using CSS */
body div.dropshipper-reg-form-container input[type="submit"]#reg_drop_btn::after {
    content: ' →'; 
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

body div.dropshipper-reg-form-container input[type="submit"]#reg_drop_btn:hover::after {
    transform: translateX(8px); /* Moves the arrow to the right on hover */
}

/* 8 Shine Effect Animation register now button */
body div.dropshipper-reg-form-container input[type="submit"]#reg_drop_btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-25deg);
    transition: none;
}

body div.dropshipper-reg-form-container input[type="submit"]#reg_drop_btn:hover::before {
    animation: shine 0.75s;
}

@keyframes shine {
    100% {
        left: 125%;
    }
}


/* 9. Mobile Responsive View */
@media (max-width: 800px) {
    body .form_sec {
        min-width: 100%;
    }
    body div.dropshipper-reg-form {
        padding: 25px;
    }
}




/* Force the specific 'Bulk Orders' page to 100% width */
.is-bulk-order-page .woocommerce-MyAccount-navigation {
    display: none !important;
}

.is-bulk-order-page .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
}

/* Fix for themes that use a 'Container' or 'Wrap' inside the account page */
.is-bulk-order-page .woocommerce {
    display: block !important;
    width: 100% !important;
}

/* Ensure your bulk order container itself takes full screen */
.bulk_order-con {
    width: 100% !important;
    display: block !important;
}


.stats-widget-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    min-width: 250px;
    flex: 1;
}

.stat-icon {
    font-size: 2.5rem;
    margin-right: 15px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    color: #2c3e50; /* Adjust to your brand color */
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Tweak */
@media (max-width: 600px) {
    .stat-card {
        min-width: 100%;
    }
}


/**
 * CHECKOUT LOADING ANIMATION STYLES
 * 
 * Purpose: Styles the modern gradient spinner and the "Securing Checkout" 
 *          message overlay for the WooCommerce Checkout page.
 */

/* Loader Overlay Container */
.checkout-loading-overlay { ... }

/* Spinner & Text Styling */
.loader-spinner { ... }
.loader-message { ... }


/* Container styling */
.loader-container {
    text-align: center;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05); /* Soft premium shadow */
}

/* Modern Gradient Spinner */
.loader-spinner {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0,0,0,0.05);
    border-radius: 50%;
    border-top: 4px solid #2563eb; /* Modern Blue - change to your theme color */
    border-right: 4px solid #6366f1; /* Purple tint */
    animation: spin 1s cubic-bezier(0.55, 0.055, 0.675, 0.19) infinite;
}

/* Attractive Message Text */
.loader-message {
    margin-top: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    color: #1e293b;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Sub-text styling */
.loader-subtext {
    margin-top: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
    animation: fadeInOut 2s infinite;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Dot animation */
.loader-message span {
    animation: dotPulse 1.5s infinite;
    opacity: 0;
}
.loader-message span:nth-child(1) { animation-delay: 0.2s; }
.loader-message span:nth-child(2) { animation-delay: 0.4s; }
.loader-message span:nth-child(3) { animation-delay: 0.6s; }

@keyframes dotPulse {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}



