/* ============================================================
 * TuVi Order Lookup
 * ============================================================ */

.tuvi-ol-wrapper {
    max-width: 720px;
    margin: 30px auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    box-sizing: border-box;
}

.tuvi-ol-wrapper * {
    box-sizing: border-box;
}

/* Header */
.tuvi-ol-header {
    text-align: center;
    padding: 40px 30px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 20px;
    margin-bottom: 24px;
}

.tuvi-ol-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.tuvi-ol-title {
    font-size: 1.8em;
    font-weight: 800;
    margin: 0 0 8px;
}

.tuvi-ol-sub {
    margin: 0;
    opacity: 0.9;
    font-size: 15px;
}

/* Form */
.tuvi-ol-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(118, 75, 162, 0.08);
    margin-bottom: 16px;
    border: 1px solid #f0f0f0;
}

.tuvi-ol-form-card label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
    color: #333;
}

.tuvi-ol-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tuvi-ol-input-group input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tuvi-ol-input-group input:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.12);
}

.tuvi-ol-submit {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.25);
}

.tuvi-ol-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(118, 75, 162, 0.35);
}

.tuvi-ol-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.tuvi-ol-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: tuvi-ol-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes tuvi-ol-spin { to { transform: rotate(360deg); } }

.tuvi-ol-hint {
    margin: 0;
    color: #888;
    font-size: 13px;
    line-height: 1.6;
}

.tuvi-ol-hint code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Error */
.tuvi-ol-error {
    background: #fee;
    color: #c0392b;
    padding: 14px 18px;
    border-radius: 10px;
    border-left: 4px solid #c0392b;
    margin-bottom: 16px;
    font-weight: 500;
    animation: tuvi-ol-shake 0.4s;
}

@keyframes tuvi-ol-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Result card */
.tuvi-ol-result {
    margin-bottom: 24px;
    animation: tuvi-ol-fade-in 0.4s;
}

@keyframes tuvi-ol-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tuvi-ol-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    position: relative;
}

.tuvi-ol-card.paid {
    border-top: 4px solid #27ae60;
}

.tuvi-ol-card.pending {
    border-top: 4px solid #f39c12;
}

.tuvi-ol-card h2 {
    margin: 0 0 18px;
    font-size: 1.5em;
    color: #1a1a2e;
}

/* Status badge */
.tuvi-ol-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.tuvi-ol-status-badge.paid {
    background: #d4edda;
    color: #155724;
}

.tuvi-ol-status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

/* Info grid */
.tuvi-ol-info-grid {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
}

.tuvi-ol-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.tuvi-ol-info-item:last-child {
    border-bottom: none;
}

.tuvi-ol-info-item .label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.tuvi-ol-info-item .value {
    font-weight: 700;
    color: #1a1a2e;
}

.tuvi-ol-info-item .value code {
    background: #fff;
    border: 1px solid #ddd;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    color: #764ba2;
}

/* Pending message */
.tuvi-ol-pending-msg {
    background: #fff8e1;
    border: 1px solid #f3d68a;
    border-radius: 10px;
    padding: 18px 20px;
    color: #5a4a1f;
    line-height: 1.6;
}

.tuvi-ol-pending-msg strong {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    color: #856404;
}

.tuvi-ol-pending-msg ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.tuvi-ol-pending-msg ul li {
    padding: 4px 0;
    font-size: 14px;
}

.tuvi-ol-pending-msg code {
    background: rgba(255,255,255,0.7);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    color: #b8860b;
}

/* Success message */
.tuvi-ol-success-msg {
    background: #e8f8f0;
    border: 1px solid #a8d8b9;
    color: #155724;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    text-align: center;
}

/* View button */
.tuvi-ol-view-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.3);
    transition: transform 0.15s;
    margin-bottom: 18px;
}

.tuvi-ol-view-btn:hover {
    transform: translateY(-2px);
    color: #fff !important;
}

/* Share/code display */
.tuvi-ol-share {
    background: #f8f9ff;
    padding: 16px 18px;
    border-radius: 10px;
    text-align: center;
}

.tuvi-ol-share p {
    margin: 0 0 10px;
    font-size: 13px;
    color: #666;
}

.tuvi-ol-code-display {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.tuvi-ol-code-display code {
    background: #fff;
    border: 2px dashed #764ba2;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #764ba2;
    font-family: 'Courier New', monospace;
}

.tuvi-ol-copy-btn {
    background: #555;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.tuvi-ol-copy-btn:hover {
    background: #333;
}

/* FAQ */
.tuvi-ol-faq {
    margin-top: 30px;
}

.tuvi-ol-faq h3 {
    font-size: 1.2em;
    margin: 0 0 14px;
    color: #1a1a2e;
}

.tuvi-ol-faq details {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 8px;
}

.tuvi-ol-faq details[open] {
    border-color: #d4d6ec;
}

.tuvi-ol-faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a2e;
}

.tuvi-ol-faq details p {
    margin: 12px 0 0;
    color: #555;
    font-size: 13px;
    line-height: 1.6;
}

.tuvi-ol-faq ul {
    padding-left: 20px;
    color: #555;
    font-size: 13px;
}

.tuvi-ol-faq ul li {
    padding: 3px 0;
}

.tuvi-ol-faq code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 600px) {
    .tuvi-ol-input-group {
        flex-direction: column;
    }
    .tuvi-ol-input-group input {
        font-size: 16px;
    }
    .tuvi-ol-submit {
        width: 100%;
    }
    .tuvi-ol-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
