/* OUG 18/2026 Frontend CSS */

.oug-withdrawal-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

.oug-withdrawal-wrapper {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.oug-withdrawal-intro {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.oug-form-group {
    margin-bottom: 20px;
}

.oug-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.oug-input,
.oug-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.oug-input:focus,
.oug-textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.oug-textarea {
    resize: vertical;
}

.oug-help-text {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.oug-checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.oug-checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.oug-button {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.oug-button-primary {
    background: #0073aa;
    color: white;
}

.oug-button-primary:hover {
    background: #005a87;
}

.oug-button-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.oug-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.oug-message.success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.oug-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

/* Warranty Display */
.oug-warranty-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #0073aa;
}

.oug-warranty-info h3 {
    margin-top: 0;
}

.oug-warranty-legal,
.oug-warranty-commercial,
.oug-software-updates,
.oug-repairability {
    margin-bottom: 15px;
}

.oug-warranty-info p {
    margin: 8px 0 0;
    color: #666;
}

/* My Withdrawals Table */
.oug-my-withdrawals {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.oug-withdrawals-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.oug-withdrawals-table th,
.oug-withdrawals-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.oug-withdrawals-table th {
    background: #f0f0f0;
    font-weight: 600;
}

.oug-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.oug-status-pending {
    background: #fff3cd;
    color: #856404;
}

.oug-status-approved {
    background: #cfe2ff;
    color: #084298;
}

.oug-status-refunded {
    background: #d1e7dd;
    color: #0f5132;
}

.oug-status-rejected {
    background: #f8d7da;
    color: #842029;
}

/* Modal */
.oug-withdrawal-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.oug-modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.oug-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.oug-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.oug-modal-body {
    padding: 20px;
}

.oug-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .oug-withdrawal-container {
        padding: 10px;
    }
    
    .oug-withdrawal-wrapper {
        padding: 15px;
    }
    
    .oug-modal-content {
        width: 95%;
    }
}
