/* WooCommerce Order Tracking Styles */

:root {
    --primary-color: #8a2be2;
    --primary-dark: #6a1bb2;
    --primary-light: #9d4eed;
    --accent-color: #b370f5;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-dark: #1f2937;
    --text-medium: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(138, 43, 226, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(138, 43, 226, 0.1), 0 2px 4px -1px rgba(138, 43, 226, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(138, 43, 226, 0.1), 0 4px 6px -2px rgba(138, 43, 226, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(138, 43, 226, 0.1), 0 10px 10px -5px rgba(138, 43, 226, 0.04);
}

.wot-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wot-wrapper {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.08);
}

.wot-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    padding: 40px 20px 30px;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Search Form */
.wot-search-form {
    padding: 40px 30px;
    background: linear-gradient(180deg, rgba(138, 43, 226, 0.02) 0%, transparent 100%);
}

#wot-form {
    max-width: 600px;
    margin: 0 auto;
}

.wot-form-group {
    margin-bottom: 24px;
}

.wot-form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 15px;
}

.wot-form-group label svg {
    color: var(--primary-color);
    filter: drop-shadow(0 1px 2px rgba(138, 43, 226, 0.2));
}

.wot-form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background: var(--bg-white);
    color: var(--text-dark);
}

.wot-form-group input:hover {
    border-color: var(--primary-light);
}

.wot-form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.1);
    transform: translateY(-1px);
}

.wot-form-group small {
    display: block;
    margin-top: 8px;
    color: var(--text-medium);
    font-size: 13px;
    line-height: 1.5;
}

.wot-submit-btn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.wot-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.wot-submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #5a0fa2 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px rgba(138, 43, 226, 0.4);
}

.wot-submit-btn:hover::before {
    left: 100%;
}

.wot-submit-btn:active {
    transform: translateY(0);
}

/* Loading State */
.wot-loading {
    text-align: center;
    padding: 80px 20px;
}

.wot-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    border: 4px solid rgba(138, 43, 226, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: wot-spin 0.8s linear infinite;
}

@keyframes wot-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wot-loading p {
    color: var(--text-medium);
    font-size: 16px;
    font-weight: 500;
}

/* Messages */
.wot-message {
    padding: 18px 24px;
    margin: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 500;
    animation: wot-slideIn 0.3s ease;
}

@keyframes wot-slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wot-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid var(--error-color);
    color: #991b1b;
}

.wot-error svg {
    color: var(--error-color);
    flex-shrink: 0;
}

/* Login Required */
.wot-login-required {
    padding: 40px 20px;
    animation: wot-fadeIn 0.5s ease;
}

.wot-login-box {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 50px 40px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-radius: 20px;
    border: 2px solid rgba(138, 43, 226, 0.2);
    box-shadow: var(--shadow-lg);
}

.wot-login-box svg {
    color: var(--primary-color);
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(138, 43, 226, 0.2));
}

.wot-login-box h3 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 12px 0;
}

.wot-login-box p {
    font-size: 16px;
    color: var(--text-medium);
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.wot-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.wot-login-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #5a0fa2 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px rgba(138, 43, 226, 0.4);
    color: #ffffff;
}

.wot-login-btn:active {
    transform: translateY(0);
}

/* Order Details */
.wot-order-details {
    padding: 40px 30px;
    animation: wot-fadeIn 0.5s ease;
}

@keyframes wot-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wot-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid rgba(138, 43, 226, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.wot-order-header h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.wot-order-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.wot-order-date {
    color: var(--text-medium);
    font-size: 14px;
    font-weight: 500;
}

.wot-order-status {
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.wot-back-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e5e7eb 100%);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.wot-back-btn:hover {
    background: var(--bg-white);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Timeline */
.wot-timeline {
    margin-bottom: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(138, 43, 226, 0.1);
}

.wot-timeline-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    position: relative;
}

.wot-timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 70px;
    width: 3px;
    height: calc(100% - 50px);
    background: linear-gradient(180deg, rgba(138, 43, 226, 0.3) 0%, rgba(138, 43, 226, 0.1) 100%);
    border-radius: 2px;
}

.wot-timeline-item.active:not(:last-child)::after {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.wot-timeline-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.wot-timeline-item.active .wot-timeline-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
    transform: scale(1.1);
}

.wot-timeline-content {
    flex: 1;
    padding-top: 10px;
}

.wot-timeline-content h5 {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
}

.wot-timeline-content p {
    margin: 0;
    font-size: 14px;
    color: var(--text-medium);
    font-weight: 500;
}

/* Sections */
.wot-section {
    margin-bottom: 40px;
}

.wot-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 24px 0;
    padding-bottom: 14px;
    border-bottom: 3px solid rgba(138, 43, 226, 0.1);
}

.wot-section-title svg {
    color: var(--primary-color);
    filter: drop-shadow(0 2px 4px rgba(138, 43, 226, 0.2));
}

/* Order Items */
.wot-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wot-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f3f4f6 100%);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.wot-item:hover {
    background: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.wot-item-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    border: 2px solid rgba(138, 43, 226, 0.1);
}

.wot-item-details {
    flex: 1;
}

.wot-item-name {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 16px;
}

.wot-item-meta {
    color: var(--text-medium);
    font-size: 14px;
    font-weight: 500;
}

.wot-item-price {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 18px;
    align-self: center;
}

/* Summary */
.wot-summary {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    padding: 28px;
    border-radius: 16px;
    border: 2px solid rgba(138, 43, 226, 0.1);
}

.wot-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 500;
}

.wot-summary-row:not(:last-child) {
    border-bottom: 1px solid rgba(138, 43, 226, 0.1);
}

.wot-summary-total {
    font-size: 20px;
    padding-top: 18px;
    margin-top: 12px;
    border-top: 3px solid var(--primary-color) !important;
    color: var(--text-dark);
    font-weight: 800;
}

.wot-summary-total strong {
    color: var(--primary-color);
}

/* Addresses */
.wot-addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.wot-address-box {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f3f4f6 100%);
    padding: 28px;
    border-radius: 16px;
    border: 2px solid rgba(138, 43, 226, 0.1);
    transition: all 0.3s ease;
}

.wot-address-box:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.wot-address-box .wot-section-title {
    font-size: 17px;
    margin-bottom: 18px;
    padding-bottom: 12px;
}

.wot-address-box p {
    margin: 0 0 10px 0;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

.wot-address-box p:last-child {
    margin-bottom: 0;
}

.wot-address-box strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* Tracking */
.wot-tracking {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.wot-tracking::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: wot-pulse 3s ease-in-out infinite;
}

@keyframes wot-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.wot-tracking .wot-section-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.wot-tracking .wot-section-title svg {
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.wot-tracking-number {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* Receipts Section */
.wot-receipts-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f3f4f6 100%);
    padding: 28px;
    border-radius: 16px;
    border: 2px solid rgba(138, 43, 226, 0.1);
}

.wot-receipts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.wot-receipt-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    border: 2px solid rgba(138, 43, 226, 0.2);
    transition: all 0.3s ease;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.wot-receipt-thumb:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.wot-receipt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wot-receipt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(138, 43, 226, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wot-receipt-thumb:hover .wot-receipt-overlay {
    opacity: 1;
}

.wot-receipt-overlay svg {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .wot-container {
        padding: 15px 10px;
    }
    
    .wot-wrapper {
        border-radius: 16px;
    }
    
    .wot-title {
        font-size: 26px;
        padding: 30px 15px 20px;
    }
    
    .wot-search-form {
        padding: 30px 20px;
    }
    
    .wot-login-box {
        padding: 40px 30px;
    }
    
    .wot-login-box h3 {
        font-size: 22px;
    }
    
    .wot-login-box p {
        font-size: 15px;
    }
    
    .wot-order-details {
        padding: 30px 20px;
    }
    
    .wot-order-header {
        flex-direction: column;
    }
    
    .wot-order-header h3 {
        font-size: 22px;
    }
    
    .wot-timeline {
        padding: 30px 20px;
    }
    
    .wot-item {
        flex-direction: column;
    }
    
    .wot-item-image {
        width: 100%;
        height: 200px;
    }
    
    .wot-addresses {
        grid-template-columns: 1fr;
    }
    
    .wot-receipts-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .wot-title {
        font-size: 22px;
    }
    
    .wot-order-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .wot-submit-btn {
        font-size: 15px;
        padding: 16px 20px;
    }
    
    .wot-login-box {
        padding: 30px 20px;
    }
    
    .wot-login-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* Print Styles */
@media print {
    .wot-search-form,
    .wot-back-btn {
        display: none !important;
    }
    
    .wot-wrapper {
        box-shadow: none;
    }
    
    .wot-timeline {
        background: white;
    }
}

/* Auth Pages (Login/Register/Reset) */

/* ============================================================
   AUTH: Login / Register – Tab UI
   ============================================================ */

.wot-auth-container {
    max-width: 480px;
    margin: 48px auto;
    padding: 0 16px;
    font-family: inherit;
}

.wot-auth-wrapper {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 48px rgba(0,0,0,.12);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* ── Tabs ──────────────────────────────────────────────────── */
.wot-auth-tabs {
    display: flex;
    background: #f8f9fb;
    border-bottom: 2px solid #e5e7eb;
}

.wot-auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
}

.wot-auth-tab:hover {
    color: #8a2be2;
    background: rgba(138,43,226,.04);
}

.wot-auth-tab.active {
    color: #8a2be2;
    border-bottom-color: #8a2be2;
    background: #fff;
}

.wot-auth-tab svg {
    flex-shrink: 0;
}

/* ── Panel ─────────────────────────────────────────────────── */
.wot-auth-content {
    display: none;
    padding: 36px 32px 32px;
    animation: wotFadeIn .22s ease;
}

.wot-auth-content.active {
    display: block;
}

@keyframes wotFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wot-auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.wot-auth-header h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    color: #1a1a2e;
}

.wot-auth-subtitle {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* ── Form fields ───────────────────────────────────────────── */
.wot-auth-form .wot-form-group {
    margin-bottom: 20px;
}

.wot-auth-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
}

.wot-auth-form label svg {
    color: #8a2be2;
    flex-shrink: 0;
}

.wot-auth-form input[type="text"],
.wot-auth-form input[type="email"],
.wot-auth-form input[type="password"],
.wot-auth-form input[type="tel"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1a1a2e;
    background: #fafafa;
    transition: border-color .2s, box-shadow .2s, background .2s;
    box-sizing: border-box;
    outline: none;
}

.wot-auth-form input:hover {
    border-color: #c4b5fd;
    background: #fff;
}

.wot-auth-form input:focus {
    border-color: #8a2be2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(138,43,226,.12);
}

/* password wrap */
.wot-input-password-wrap {
    position: relative;
}

.wot-input-password-wrap input {
    padding-right: 44px !important;
}

.wot-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #9ca3af;
    display: flex;
    align-items: center;
}

.wot-toggle-password:hover {
    color: #8a2be2;
}

/* phone wrap */
.wot-phone-wrap {
    display: flex;
    gap: 8px;
}

.wot-dialcode-select {
    width: 120px;
    flex-shrink: 0;
    padding: 11px 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #374151;
    background: #fafafa;
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
    appearance: none;
    -webkit-appearance: none;
}

.wot-dialcode-select:focus {
    border-color: #8a2be2;
    box-shadow: 0 0 0 3px rgba(138,43,226,.12);
}

.wot-phone-wrap input[type="tel"] {
    flex: 1;
}

.wot-field-hint {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 5px;
}

/* password strength */
.wot-password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.wot-strength-bar {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}

.wot-strength-bar span {
    display: block;
    height: 100%;
    border-radius: 99px;
    transition: width .3s, background .3s;
    width: 0;
}

#reg-strength-label {
    font-size: 11px;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* ── Remember / checkbox ───────────────────────────────────── */
.wot-form-row {
    margin-bottom: 20px;
}

.wot-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    user-select: none;
}

.wot-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #8a2be2;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Submit button ─────────────────────────────────────────── */
.wot-auth-btn {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #8a2be2 0%, #6a1cb2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .2s, transform .1s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(138,43,226,.35);
    letter-spacing: .3px;
}

.wot-auth-btn:hover {
    opacity: .9;
    box-shadow: 0 6px 20px rgba(138,43,226,.45);
}

.wot-auth-btn:active {
    transform: scale(.98);
}

.wot-auth-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

/* ── Messages ──────────────────────────────────────────────── */
.wot-auth-message {
    margin-top: 14px;
}

.wot-auth-message .wot-success {
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    color: #15803d;
    font-size: 13px;
    font-weight: 500;
}

.wot-auth-message .wot-error {
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
}

/* ── Forgot / switch links ─────────────────────────────────── */
.wot-forgot-link {
    margin-top: 16px;
    text-align: center;
}

.wot-forgot-link a,
.wot-switch-tab a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #8a2be2;
    text-decoration: none;
    font-weight: 500;
    transition: opacity .2s;
}

.wot-forgot-link a:hover,
.wot-switch-tab a:hover {
    opacity: .75;
    text-decoration: underline;
}

.wot-switch-tab {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #6b7280;
}

/* ── Spinner ───────────────────────────────────────────────── */
.wot-spinner-small {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wotSpin .7s linear infinite;
    vertical-align: middle;
}

@keyframes wotSpin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 480px) {
    .wot-auth-content {
        padding: 28px 20px 24px;
    }
    .wot-auth-header h2 {
        font-size: 22px;
    }
}

.wot-profile-info {
    flex: 1;
    min-width: 200px;
}

.wot-profile-info h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 800;
}

.wot-profile-email {
    margin: 0 0 4px 0;
    opacity: 0.9;
    font-size: 15px;
}

.wot-profile-joined {
    margin: 0;
    opacity: 0.7;
    font-size: 13px;
}

.wot-btn-logout {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.wot-btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.wot-profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.wot-stat-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.wot-stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.wot-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wot-stat-content h3 {
    margin: 0 0 4px 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
}

.wot-stat-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-medium);
    font-weight: 600;
}

.wot-order-history {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.wot-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid rgba(138, 43, 226, 0.1);
}

.wot-section-title svg {
    color: var(--primary-color);
}

.wot-orders-table-wrapper {
    overflow-x: auto;
}

.wot-orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.wot-orders-table thead th {
    background: var(--bg-light);
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

.wot-orders-table tbody td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    color: var(--text-dark);
    font-size: 14px;
}

.wot-orders-table tbody tr {
    transition: all 0.2s ease;
}

.wot-orders-table tbody tr:hover {
    background: var(--bg-light);
}

.wot-order-items-preview {
    font-size: 12px;
    color: var(--text-medium);
    margin-top: 4px;
}

.wot-btn-view {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.wot-btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

.wot-no-orders {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-medium);
}

.wot-no-orders svg {
    color: #d1d5db;
    margin-bottom: 20px;
}

.wot-no-orders h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: var(--text-dark);
}

.wot-no-orders p {
    margin: 0 0 24px 0;
}

.wot-btn-shop {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.wot-btn-shop:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Modal */
.wot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.wot-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.wot-modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.wot-modal-header {
    padding: 24px 32px;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wot-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
}

.wot-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wot-modal-close:hover {
    background: #e5e7eb;
    transform: scale(1.1);
}

.wot-modal-body {
    padding: 32px;
    overflow-y: auto;
}

.wot-order-detail-view {
}

.wot-order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.wot-order-detail-header h4 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
}

.wot-order-detail-meta {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.wot-order-detail-meta p {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.wot-order-detail-meta p:last-child {
    margin-bottom: 0;
}

.wot-order-detail-view h5 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--text-dark);
}

.wot-order-items-table {
    width: 100%;
    margin-bottom: 24px;
    border-collapse: collapse;
}

.wot-order-items-table th {
    background: var(--bg-light);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}

.wot-order-items-table td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.wot-order-addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.wot-address-block {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
}

.wot-address-block h5 {
    margin: 0 0 12px 0;
    font-size: 16px;
}

.wot-address-block p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.wot-loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-medium);
}

/* Responsive */
@media (max-width: 768px) {
    .wot-auth-tabs {
        flex-direction: column;
    }
    
    .wot-auth-tab {
        border-bottom: 1px solid #e5e7eb;
    }
    
    .wot-auth-content {
        padding: 30px 24px;
    }
    
    .wot-profile-header {
        padding: 30px 24px;
    }
    
    .wot-profile-stats {
        grid-template-columns: 1fr;
    }
    
    .wot-modal-content {
        width: 95%;
    }
    
    .wot-modal-body {
        padding: 24px;
    }
}

/* ── Profile: Change Password button ───────────────────────── */
.wot-btn-change-password {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #8a2be2;
    text-decoration: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.wot-btn-change-password:hover {
    border-color: #8a2be2;
    background: rgba(138,43,226,.05);
    box-shadow: 0 2px 8px rgba(138,43,226,.12);
    color: #8a2be2;
}

/* ── Profile: Inline forgot section ───────────────────────── */
.wot-forgot-inline {
    margin-top: 24px;
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.wot-forgot-inline-body {
    padding: 20px 24px 24px;
}

.wot-forgot-inline .wot-section-header {
    padding: 16px 24px;
    background: #f8f9fb;
    border-bottom: 1px solid #e5e7eb;
}

.wot-forgot-inline .wot-section-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #1a1a2e;
}

.wot-forgot-inline .wot-section-header h3 svg {
    color: #8a2be2;
}

.wot-forgot-inline .wot-form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.wot-forgot-inline .wot-form-group input:focus {
    border-color: #8a2be2;
    box-shadow: 0 0 0 3px rgba(138,43,226,.12);
}

/* Cart splitting: grouped variation badge */
.grouped-badge {
    display: inline-block;
    background: #ede9fe;
    color: #5b21b6;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    margin-right: 6px;
    vertical-align: middle;
}

/* Add Items button for variation groups */
.wot-add-items-btn {
    background: linear-gradient(135deg, #7c3aed, #5b21b6) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700 !important;
}
.wot-add-items-btn:hover {
    opacity: .88 !important;
}
