/* WC Returns Manager — Customer Portal Styles */

/* Guest lookup form */
.wcrm-guest-lookup { max-width: 480px; }
.wcrm-lookup-intro  { margin-bottom: 1.5em; color: #555; }
.wcrm-lookup-form input[type="text"],
.wcrm-lookup-form input[type="email"] { width: 100%; max-width: 400px; }
.wcrm-login-prompt  { margin-top: 2em; padding-top: 1em; border-top: 1px solid #eee; color: #555; font-size: 0.9em; }

.wcrm-portal h2 { margin-bottom: 1em; }

.wcrm-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.wcrm-item-name  { flex: 1; }
.wcrm-item-qty   { width: 60px; text-align: center; }

.wcrm-form fieldset { border: 1px solid #ddd; padding: 12px 16px; margin-bottom: 16px; }
.wcrm-form legend   { font-weight: 600; padding: 0 6px; }
.wcrm-form textarea,
.wcrm-form select   { width: 100%; max-width: 480px; }

/* Progress stepper */
.wcrm-stepper {
    display: flex;
    align-items: center;
    margin: 1.5em 0 2em;
    flex-wrap: wrap;
    gap: 0;
}
.wcrm-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 70px;
}
.wcrm-step__circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.wcrm-step__label {
    font-size: 11px;
    color: #888;
    text-align: center;
    white-space: nowrap;
}
.wcrm-step--done .wcrm-step__circle  { background: #28a745; color: #fff; }
.wcrm-step--done .wcrm-step__label   { color: #28a745; }
.wcrm-step--active .wcrm-step__circle { background: #007bff; color: #fff; }
.wcrm-step--active .wcrm-step__label  { color: #007bff; font-weight: 600; }
.wcrm-step__connector {
    flex: 1;
    height: 3px;
    background: #e0e0e0;
    margin-bottom: 18px;
    min-width: 20px;
}
.wcrm-step__connector--done { background: #28a745; }

/* Status message banner */
.wcrm-status-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 1.5em;
    border-left: 4px solid #aaa;
    background: #f8f9fa;
}
.wcrm-status-message--pending  { border-color: #856404; background: #fff8e1; }
.wcrm-status-message--approved { border-color: #155724; background: #f0fff4; }
.wcrm-status-message--rejected { border-color: #721c24; background: #fff0f0; }
.wcrm-status-message--received { border-color: #004085; background: #f0f7ff; }
.wcrm-status-message--refunded { border-color: #383d41; background: #f5f5f5; }
.wcrm-status-message--closed   { border-color: #383d41; background: #f5f5f5; }

/* Detail card */
.wcrm-detail-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 1.5em;
    overflow: hidden;
}
.wcrm-detail-card__row {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
}
.wcrm-detail-card__row:last-child { border-bottom: none; }
.wcrm-detail-card__label {
    flex: 0 0 160px;
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
}
.wcrm-detail-card__value { flex: 1; }

/* Items list */
.wcrm-items { margin-bottom: 1.5em; }

/* Status badges */
.wcrm-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.wcrm-status--pending   { background: #fff3cd; color: #856404; }
.wcrm-status--approved  { background: #d4edda; color: #155724; }
.wcrm-status--rejected  { background: #f8d7da; color: #721c24; }
.wcrm-status--received  { background: #cce5ff; color: #004085; }
.wcrm-status--refunded  { background: #d6d8db; color: #383d41; }
.wcrm-status--closed    { background: #e2e3e5; color: #383d41; }