/**
 * Frontend Styles
 * WC Multi-Currency Exchange
 */

.wc-mce-exchange-wrapper {
    --wc-mce-primary: #FF06B7;
    --wc-mce-bg-dark: #0D102D;
    --wc-mce-glass-bg: rgba(255, 255, 255, 0.05);
    background: var(--wc-mce-bg-dark);
    padding: 60px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    text-align: center;
    min-height: 400px;
    border-radius: 10px;
}

.wc-mce-title {
    color: var(--wc-mce-primary);
    font-size: 32px;
    margin-bottom: 10px;
}

.wc-mce-subtitle {
    color: #ccc;
    font-size: 16px;
    margin-bottom: 40px;
}

.wc-mce-exchange-box {
    max-width: 950px;
    margin: 0 auto;
    background: var(--wc-mce-glass-bg);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 25px rgba(255, 6, 183, 0.1);
}

.wc-mce-field-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: #eee;
    text-align: left;
}

.wc-mce-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.wc-mce-column {
    flex: 1;
}

/* Custom Select Styles */
.wc-mce-custom-select {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

.wc-mce-select-display {
    width: 100%;
    padding: 14px;
    background: #1A1E3F;
    border: 2px solid var(--wc-mce-primary);
    border-radius: 10px;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.wc-mce-select-display:hover,
.wc-mce-select-display.active {
    border-color: #e305a5;
    box-shadow: 0 0 0 2px rgba(255, 6, 183, 0.2);
}

.wc-mce-select-arrow {
    color: var(--wc-mce-primary);
    transition: transform 0.3s ease;
    font-size: 12px;
}

.wc-mce-select-display.active .wc-mce-select-arrow {
    transform: rotate(180deg);
}

.wc-mce-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1A1E3F;
    border: 2px solid var(--wc-mce-primary);
    border-top: none;
    border-radius: 0 0 10px 10px;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.wc-mce-select-options.active {
    display: block;
}

.wc-mce-select-option {
    padding: 12px 14px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wc-mce-select-option:last-child {
    border-bottom: none;
}

.wc-mce-select-option:hover {
    background: rgba(255, 6, 183, 0.2);
}

.wc-mce-select-option.selected {
    background: var(--wc-mce-primary);
    color: #fff;
}

/* Input Styles */
.wc-mce-input {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 2px solid var(--wc-mce-primary);
    border-radius: 10px;
    font-size: 16px;
    color: #fff;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.wc-mce-input:focus {
    outline: none;
    border-color: #e305a5;
    box-shadow: 0 0 0 2px rgba(255, 6, 183, 0.2);
}

.wc-mce-input::placeholder {
    color: #888;
}

.wc-mce-input.error {
    border-color: #ff4444;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2);
}

.wc-mce-rate-display,
.wc-mce-limits {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #aaa;
}

.wc-mce-wallet-field {
    margin-top: 20px;
    text-align: left;
}

.wc-mce-btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.wc-mce-btn {
    padding: 14px 30px;
    background-color: var(--wc-mce-primary);
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wc-mce-btn:hover {
    background-color: #e305a5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 6, 183, 0.3);
}

.wc-mce-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wc-mce-btn-reset {
    background-color: #333;
}

.wc-mce-btn-reset:hover {
    background-color: #555;
}

.wc-mce-message {
    margin-top: 20px;
    font-size: 14px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.wc-mce-message.show {
    display: block;
}

.wc-mce-message.error {
    color: #ff9494;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
}

.wc-mce-message.success {
    color: #6fff9d;
    background: rgba(111, 255, 157, 0.1);
    border: 1px solid #6fff9d;
}

/* Network Warning */
.wc-mce-network-warning {
    margin: 20px 0;
}

.wc-mce-alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    color: #fbbf24;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.wc-mce-alert-warning strong {
    display: block;
    font-size: 16px;
    margin-bottom: 10px;
    color: #fbbf24;
}

.wc-mce-alert-warning p {
    line-height: 1.6;
    color: #fcd34d;
    margin: 8px 0;
}

.wc-mce-alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    color: #fca5a5;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.wc-mce-alert-danger strong {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    color: #fca5a5;
}

.wc-mce-alert-danger p {
    line-height: 1.6;
    color: #fecaca;
    margin: 8px 0;
}

/* Confirmation Modal */
.wc-mce-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.wc-mce-modal-overlay.active {
    display: flex;
}

.wc-mce-modal-content {
    background: var(--wc-mce-bg-dark);
    border: 2px solid var(--wc-mce-primary);
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(255, 6, 183, 0.3);
}

.wc-mce-modal-content h3 {
    color: var(--wc-mce-primary);
    margin-bottom: 20px;
    font-size: 24px;
}

.wc-mce-confirmation-details {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wc-mce-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wc-mce-detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.wc-mce-detail-label {
    color: #ccc;
    font-weight: 500;
}

.wc-mce-detail-value {
    color: #fff;
    font-weight: 600;
}

.wc-mce-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.wc-mce-modal-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wc-mce-modal-btn-confirm {
    background-color: var(--wc-mce-primary);
    color: #fff;
}

.wc-mce-modal-btn-confirm:hover {
    background-color: #e305a5;
    transform: translateY(-2px);
}

.wc-mce-modal-btn-confirm:disabled {
    background-color: #666;
    cursor: not-allowed;
    transform: none;
}

.wc-mce-modal-btn-cancel {
    background-color: #333;
    color: #fff;
}

.wc-mce-modal-btn-cancel:hover {
    background-color: #555;
}

/* Loading spinner */
.wc-mce-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: wc-mce-spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes wc-mce-spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .wc-mce-row {
        flex-direction: column;
    }
    
    .wc-mce-exchange-wrapper {
        padding: 40px 15px;
    }
    
    .wc-mce-exchange-box {
        padding: 20px;
    }
    
    .wc-mce-title {
        font-size: 24px;
    }
    
    .wc-mce-modal-content {
        padding: 20px;
    }
    
    .wc-mce-modal-buttons {
        flex-direction: column;
    }
}

/* ============================================
   Order Page Styles - Modern Dark Theme
   ============================================ */

.wc-mce-order-page {
    --order-primary: #00D9FF;
    --order-secondary: #FF06B7;
    --order-bg-dark: #0a0e27;
    --order-bg-card: linear-gradient(145deg, #0f1435 0%, #1a1f4e 100%);
    --order-border: rgba(0, 217, 255, 0.2);
    --order-text: #e4e4e7;
    --order-text-muted: #9ca3af;
    --order-success: #10b981;
    --order-warning: #f59e0b;
    --order-error: #ef4444;
    
    min-height: 100vh;
    padding: 40px 20px;
    background: var(--order-bg-dark);
    background-image: 
        radial-gradient(ellipse at 20% 80%, rgba(0, 217, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 6, 183, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.wc-mce-order-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--order-bg-card);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--order-border);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(0, 217, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.wc-mce-order-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--order-primary), var(--order-secondary), var(--order-primary));
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.wc-mce-order-container h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.5px;
}

/* Status Badge */
.wc-mce-order-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.wc-mce-status-exchange-pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.wc-mce-status-exchange-pending::before {
    content: '⏳';
}

.wc-mce-status-completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.wc-mce-status-completed::before {
    content: '✓ ';
}

.wc-mce-status-expired,
.wc-mce-status-exchange-expired,
.wc-mce-order-status[class*="expired"] {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    margin: 20px 0;
}

.wc-mce-status-expired::before {
    content: '⏰ ';
}

/* Timer Box */
.wc-mce-timer-box {
    text-align: center;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(255, 6, 183, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid var(--order-border);
}

.wc-mce-timer-label {
    color: #e4e4e7;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.wc-mce-timer {
    font-size: 56px;
    font-weight: 700;
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    background: linear-gradient(135deg, var(--order-primary) 0%, var(--order-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 217, 255, 0.5);
    letter-spacing: 4px;
}

/* Exchange Details */
.wc-mce-order-details {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.wc-mce-order-details h2 {
    color: #1a1f4e;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--order-primary);
}

.wc-mce-order-details .wc-mce-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.wc-mce-order-details .wc-mce-detail-row:last-child {
    border-bottom: none;
}

.wc-mce-order-details .wc-mce-detail-label {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.wc-mce-order-details .wc-mce-detail-value {
    color: #1a1f4e;
    font-weight: 700;
    font-size: 15px;
    text-align: right;
}

.wc-mce-order-details .wc-mce-detail-value code {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    color: #c2185b;
    font-size: 13px;
    font-weight: 700;
}

.wc-mce-highlight {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15) 0%, rgba(255, 6, 183, 0.15) 100%);
    margin: 15px -25px;
    padding: 20px 25px !important;
    border-radius: 0;
    border-top: 2px solid var(--order-primary);
    border-bottom: 2px solid var(--order-primary);
}

.wc-mce-wallet-address {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    background: rgba(233, 30, 99, 0.1);
    padding: 10px 14px;
    border-radius: 8px;
    word-break: break-all;
    color: #e91e63 !important;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    max-width: 200px;
    border: 2px solid #e91e63;
}

.wc-mce-copy-btn {
    margin-left: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #e91e63 0%, #d81b60 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.wc-mce-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.5);
    background: linear-gradient(135deg, #d81b60 0%, #c2185b 100%);
}

/* Alert Boxes */
.wc-mce-alert {
    padding: 20px;
    margin: 25px 0;
    border-radius: 12px;
    border: none;
    position: relative;
    overflow: hidden;
}

.wc-mce-alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.wc-mce-alert strong {
    display: block;
    font-size: 16px;
    margin-bottom: 10px;
}

.wc-mce-alert ol {
    margin: 0;
    padding-left: 20px;
}

.wc-mce-alert ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.wc-mce-alert a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.wc-mce-alert-info {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.12) 0%, rgba(0, 217, 255, 0.08) 100%);
    color: #1a1f4e;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.wc-mce-alert-info::before {
    background: var(--order-primary);
}

.wc-mce-alert-info a {
    color: #0078d4;
    font-weight: 700;
}

.wc-mce-alert-info strong {
    color: #0a0e27;
}

.wc-mce-alert-info ol li {
    color: #374151;
}

.wc-mce-alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.wc-mce-alert-success::before {
    background: var(--order-success);
}

.wc-mce-alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.wc-mce-alert-error::before {
    background: var(--order-error);
}

/* Action Buttons */
.wc-mce-order-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--order-border);
}

.wc-mce-order-actions .wc-mce-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.wc-mce-btn-primary {
    background: linear-gradient(135deg, var(--order-primary) 0%, #00b4d8 100%);
    color: #0a0e27;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.wc-mce-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.4);
    color: #0a0e27;
}

.wc-mce-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--order-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wc-mce-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: #fff;
}

.wc-mce-btn-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.8) 0%, rgba(220, 38, 38, 0.8) 100%);
    color: #fff;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.wc-mce-btn-danger:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 1) 0%, rgba(220, 38, 38, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    color: #fff;
}

.wc-mce-order-number-row {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    margin: -25px -25px 20px -25px;
    padding: 20px 25px !important;
    border-radius: 16px 16px 0 0;
    border-bottom: 2px solid var(--order-primary);
}

.wc-mce-order-number-value {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 18px !important;
    color: #0a0e27 !important;
    font-weight: 800 !important;
}

/* Responsive */
@media (max-width: 600px) {
    .wc-mce-order-page {
        padding: 20px 15px;
    }
    
    .wc-mce-order-container {
        padding: 25px 20px;
        border-radius: 16px;
    }
    
    .wc-mce-order-container h1 {
        font-size: 22px;
    }
    
    .wc-mce-timer {
        font-size: 42px;
    }
    
    .wc-mce-order-details {
        padding: 20px 15px;
    }
    
    .wc-mce-order-details .wc-mce-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .wc-mce-order-details .wc-mce-detail-value {
        text-align: left;
    }
    
    .wc-mce-highlight {
        margin: 15px -15px;
        padding: 15px !important;
    }
    
    .wc-mce-wallet-address {
        max-width: 100%;
        display: block;
        margin-bottom: 10px;
    }
    
    .wc-mce-copy-btn {
        margin-left: 0;
        width: 100%;
    }
    
    .wc-mce-order-actions {
        flex-direction: column;
    }
    
    .wc-mce-order-actions .wc-mce-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Order Lookup Form Styles
   ============================================ */

.wc-mce-order-lookup-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px 30px;
    background: var(--wc-mce-glass-bg);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 25px rgba(255, 6, 183, 0.1);
    text-align: center;
}

.wc-mce-order-lookup-wrapper .wc-mce-title {
    color: var(--wc-mce-primary);
    font-size: 28px;
    margin-bottom: 10px;
}

.wc-mce-order-lookup-wrapper .wc-mce-subtitle {
    color: #ccc;
    font-size: 16px;
    margin-bottom: 30px;
}

.wc-mce-lookup-input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.wc-mce-lookup-input-group .wc-mce-input {
    flex: 1;
    margin-bottom: 0;
}

.wc-mce-lookup-input-group .wc-mce-btn {
    white-space: nowrap;
    min-width: 150px;
}

#wc-mce-lookup-message {
    margin-top: 20px;
}

#wc-mce-lookup-message .wc-mce-message {
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
}

#wc-mce-lookup-message .wc-mce-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

#wc-mce-lookup-message .wc-mce-message.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

/* Success Status Badge */
.wc-mce-status-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    margin: 20px 0;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.wc-mce-status-success::before {
    content: '✅ ';
}

/* Cancelled Status Badge */
.wc-mce-status-cancelled {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    margin: 20px 0;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.wc-mce-status-cancelled::before {
    content: '❌ ';
}

/* Success Message Box */
.wc-mce-success-message {
    text-align: center;
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.wc-mce-success-message h2 {
    color: #34d399;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.wc-mce-success-message p {
    color: #e4e4e7;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* My Orders (طلباتي) */
.wc-mce-my-orders {
    max-width: 100%;
    margin: 20px 0;
    padding: 20px;
}
.wc-mce-my-orders-title {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
}
.wc-mce-my-orders-empty {
    padding: 30px;
    text-align: center;
    background: var(--wc-mce-bg, #1a1f4e);
    border-radius: 8px;
    color: #e4e4e7;
}
.wc-mce-my-orders-table-wrap {
    overflow-x: auto;
}
.wc-mce-my-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--wc-mce-bg, #1a1f4e);
    border-radius: 8px;
    overflow: hidden;
}
.wc-mce-my-orders-table th,
.wc-mce-my-orders-table td {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.wc-mce-my-orders-table th {
    background: rgba(255,255,255,0.06);
    font-weight: 600;
    color: #e4e4e7;
}
.wc-mce-my-orders-table td {
    color: #e4e4e7;
}
.wc-mce-my-orders-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}
.wc-mce-my-orders-table code {
    font-size: 0.9em;
    background: rgba(0,0,0,0.2);
    padding: 2px 6px;
    border-radius: 4px;
}
.wc-mce-my-orders-table .wc-mce-btn-small {
    padding: 6px 12px;
    font-size: 13px;
}
.wc-mce-my-orders-pagination {
    margin-top: 20px;
    text-align: center;
}
.wc-mce-my-orders-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: var(--order-primary, #6366f1);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}
.wc-mce-my-orders-pagination .page-numbers.current,
.wc-mce-my-orders-pagination .page-numbers:hover {
    opacity: 0.9;
}
.wc-mce-my-orders-login-required {
    padding: 30px;
    text-align: center;
    background: var(--wc-mce-bg, #1a1f4e);
    border-radius: 8px;
    color: #e4e4e7;
}
.wc-mce-my-orders-login-required a {
    color: var(--order-primary, #6366f1);
}

/* Exchange / My Orders: login required block (embed login form) */
.wc-mce-exchange-login-required,
.wc-mce-my-orders-login-required .wc-mce-login-required-text {
    margin-bottom: 20px;
    color: #e4e4e7;
    font-size: 16px;
}
.wc-mce-exchange-login-required {
    padding: 20px 0;
}

/* Auth wrapper (login / register forms – same design as exchange) */
.wc-mce-auth-wrapper {
    --wc-mce-primary: #FF06B7;
    --wc-mce-bg-dark: #0D102D;
    --wc-mce-glass-bg: rgba(255, 255, 255, 0.05);
    max-width: 420px;
    margin: 0 auto 30px;
    padding: 40px 30px;
    background: var(--wc-mce-bg-dark);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 25px rgba(255, 6, 183, 0.1);
    text-align: right;
}
.wc-mce-auth-title {
    color: var(--wc-mce-primary);
    font-size: 24px;
    margin: 0 0 24px 0;
}
.wc-mce-auth-form .wc-mce-auth-field {
    margin-bottom: 18px;
    text-align: right;
}
.wc-mce-auth-form .wc-mce-auth-field label {
    display: block;
    margin-bottom: 6px;
    color: #e4e4e7;
    font-size: 14px;
}
.wc-mce-auth-form .wc-mce-input {
    width: 100%;
    padding: 12px 14px;
    background: #1A1E3F;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    box-sizing: border-box;
}
.wc-mce-auth-form .wc-mce-input:focus {
    border-color: var(--wc-mce-primary);
    outline: none;
}
.wc-mce-auth-remember {
    margin-bottom: 12px;
}
.wc-mce-auth-remember label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.wc-mce-auth-actions {
    margin: 20px 0 12px;
}
.wc-mce-auth-actions .wc-mce-btn {
    width: 100%;
    padding: 14px;
}
.wc-mce-auth-form .wc-mce-auth-message {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}
.wc-mce-auth-form .wc-mce-auth-message.show {
    display: block;
}
.wc-mce-auth-form .wc-mce-auth-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}
.wc-mce-auth-footer {
    margin: 20px 0 0;
    color: #a1a1aa;
    font-size: 14px;
}
.wc-mce-auth-link {
    color: var(--wc-mce-primary);
    text-decoration: none;
}
.wc-mce-auth-link:hover {
    text-decoration: underline;
}

/* Responsive for Order Lookup */
@media (max-width: 600px) {
    .wc-mce-order-lookup-wrapper {
        padding: 30px 20px;
        margin: 20px 15px;
    }
    
    .wc-mce-lookup-input-group {
        flex-direction: column;
    }
    
    .wc-mce-lookup-input-group .wc-mce-btn {
        width: 100%;
        min-width: auto;
    }
    
    .wc-mce-my-orders-table th,
    .wc-mce-my-orders-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
}
