/**
 * Frontend Styles for Woo Product Returns by Hewa
 * Pixel-perfect match for Guest Order Returns Form
 * Author: Nirosh Hewabhithage
 */

.wprh-return-container {
    max-width: 980px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333333;
}

/* Card Box */
.wprh-card-box {
    background: #ffffff;
    padding: 10px 0 30px 0;
}

/* Header Row */
.wprh-header-row {
    border-bottom: 1px solid #777777;
    padding-bottom: 8px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.wprh-title {
    font-size: 20px;
    font-weight: 500;
    color: #444444;
    margin: 0;
    padding: 0;
    letter-spacing: -0.2px;
}

/* Required field notice */
.wprh-required-notice {
    font-size: 13px;
    color: #555555;
    margin: 0 0 22px 0;
}

.wprh-red-star {
    color: #d63638;
    font-weight: 700;
}

/* 2-Column Grid */
.wprh-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 30px;
}

.wprh-form-group {
    display: flex;
    flex-direction: column;
}

.wprh-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #444444;
    margin-bottom: 6px;
}

.wprh-input,
.wprh-select,
.wprh-textarea {
    width: 100% !important;
    height: 42px !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    color: #333333 !important;
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.wprh-textarea {
    height: auto !important;
    min-height: 90px !important;
    padding: 10px 14px !important;
    resize: vertical;
}

.wprh-input:focus,
.wprh-select:focus,
.wprh-textarea:focus {
    border-color: #7a1a6b !important;
    box-shadow: 0 0 0 2px rgba(122, 26, 107, 0.15) !important;
}

/* Terms Checkbox */
.wprh-terms-group {
    margin: 22px 0 24px 0;
}

.wprh-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444444;
    cursor: pointer;
    user-select: none;
}

.wprh-checkbox-label input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    cursor: pointer;
    border-radius: 3px;
    border: 1px solid #bbbbbb;
}

.wprh-terms-link {
    color: #0066cc !important;
    text-decoration: none !important;
    font-weight: 500;
}

.wprh-terms-link:hover {
    text-decoration: underline !important;
}

/* Purple Submit Button (Matches Screenshot) */
.wprh-actions-group {
    margin-top: 10px;
}

.wprh-btn-purple {
    background-color: #7a1a6b !important;
    color: #ffffff !important;
    border: none !important;
    padding: 11px 28px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transition: background-color 0.15s ease, transform 0.1s ease !important;
    text-decoration: none !important;
}

.wprh-btn-purple:hover {
    background-color: #651558 !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(122, 26, 107, 0.3) !important;
}

.wprh-btn-purple:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

.wprh-link-btn {
    background: none;
    border: none;
    color: #7a1a6b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.wprh-link-btn:hover {
    text-decoration: underline;
}

/* Notice Message Boxes */
.wprh-notice {
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.wprh-notice.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.wprh-notice.success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Spinner */
.wprh-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: wprh-spin 0.8s linear infinite;
}

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

/* Step 2 Order Items Table */
.wprh-meta-banner {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #7a1a6b;
    padding: 12px 18px;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    color: #334155;
    margin-bottom: 20px;
}

.wprh-table-responsive {
    overflow-x: auto;
    margin-top: 10px;
}

.wprh-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wprh-items-table th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #475569;
}

.wprh-items-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.wprh-item-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.wprh-qty-input {
    width: 70px !important;
    height: 34px !important;
    text-align: center;
}

.wprh-help-text {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* Step 3: Success Confirmation */
.wprh-success-icon {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto;
}

.wprh-ticket-badge {
    display: inline-block;
    background: #fdf4fc;
    border: 1px solid #f3d1f0;
    color: #7a1a6b;
    font-size: 18px;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 30px;
    margin-top: 12px;
    letter-spacing: 0.5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wprh-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wprh-card-box {
        padding: 10px 14px 24px 14px;
    }

    .wprh-btn-purple {
        width: 100%;
    }
}

