/* ==========================================================================
   WC Gift Card Page — staff-redeem.css
   ========================================================================== */

.wcgcp-staff-wrap *,
.wcgcp-staff-wrap *::before,
.wcgcp-staff-wrap *::after {
    box-sizing: border-box;
}

/* ── Outer wrap ─────────────────────────────────────────────────────────────── */
.wcgcp-staff-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 16px 64px;
    font-family: inherit;
    color: #1a1a1a;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.wcgcp-staff-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.wcgcp-staff-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: #1a1a1a;
    margin-top: 2px;
}

.wcgcp-staff-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.2;
}

.wcgcp-staff-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* ── Card panels ────────────────────────────────────────────────────────────── */
.wcgcp-staff-card {
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ── Section title ──────────────────────────────────────────────────────────── */
.wcgcp-staff-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #444;
    margin: 0 0 18px;
}

.wcgcp-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Row layout ─────────────────────────────────────────────────────────────── */
.wcgcp-staff-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.wcgcp-staff-field {
    margin-bottom: 14px;
}

.wcgcp-staff-field--grow {
    flex: 1;
    min-width: 0;
}

.wcgcp-staff-field:last-child {
    margin-bottom: 0;
}

/* ── Labels ─────────────────────────────────────────────────────────────────── */
.wcgcp-staff-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.wcgcp-optional {
    font-weight: 400;
    color: #aaa;
}

/* ── Inputs ─────────────────────────────────────────────────────────────────── */
.wcgcp-staff-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d8d8d8;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
    -webkit-appearance: none;
}

.wcgcp-staff-input:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}

.wcgcp-code-input {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.wcgcp-staff-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    white-space: nowrap;
    text-decoration: none;
}

.wcgcp-staff-btn:active {
    transform: scale(0.97);
}

.wcgcp-staff-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.wcgcp-staff-btn--primary {
    background: #1a1a1a;
    color: #fff;
}

.wcgcp-staff-btn--primary:hover:not(:disabled) {
    background: #333;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

.wcgcp-staff-btn--redeem {
    background: #2e7d32;
    color: #fff;
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    margin-top: 4px;
}

.wcgcp-staff-btn--redeem:hover:not(:disabled) {
    background: #1b5e20;
    box-shadow: 0 3px 12px rgba(46,125,50,0.28);
}

.wcgcp-staff-btn--ghost {
    background: transparent;
    color: #888;
    border: 1.5px solid #e0e0e0;
    font-size: 0.85rem;
    padding: 10px 16px;
}

.wcgcp-staff-btn--ghost:hover {
    border-color: #aaa;
    color: #444;
}

/* ── Alerts ─────────────────────────────────────────────────────────────────── */
.wcgcp-staff-alert {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-top: 12px;
}

.wcgcp-staff-alert--error {
    background: #fff0f0;
    border: 1.5px solid #f0a0a0;
    color: #c03030;
}

.wcgcp-staff-alert--warning {
    background: #fffbea;
    border: 1.5px solid #f0d060;
    color: #7a5a00;
}

/* ── Status badge ───────────────────────────────────────────────────────────── */
.wcgcp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wcgcp-status-badge--active {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1.5px solid #a5d6a7;
}

.wcgcp-status-badge--redeemed {
    background: #f3e5f5;
    color: #6a1b9a;
    border: 1.5px solid #ce93d8;
}

.wcgcp-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* ── Info grid ──────────────────────────────────────────────────────────────── */
.wcgcp-staff-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}

@media (max-width: 480px) {
    .wcgcp-staff-info-grid {
        grid-template-columns: 1fr;
    }
}

.wcgcp-info-cell {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 12px 14px;
}

.wcgcp-info-cell--full {
    grid-column: 1 / -1;
}

.wcgcp-info-cell-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #999;
    margin-bottom: 3px;
}

.wcgcp-info-cell-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    word-break: break-word;
}

.wcgcp-info-cell-value--amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
}

.wcgcp-info-cell-value--code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

/* ── Divider ────────────────────────────────────────────────────────────────── */
.wcgcp-staff-divider {
    border: none;
    border-top: 1.5px solid #f0f0f0;
    margin: 20px 0;
}

/* ── Helper text ────────────────────────────────────────────────────────────── */
.wcgcp-staff-helper {
    font-size: 0.85rem;
    color: #777;
    margin: -10px 0 16px;
    line-height: 1.5;
}

/* ── Already redeemed block ─────────────────────────────────────────────────── */
.wcgcp-already-redeemed-block {
    background: #f3e5f5;
    border: 1.5px solid #ce93d8;
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 16px;
}

.wcgcp-already-redeemed-block p {
    margin: 0 0 6px;
    font-size: 0.88rem;
    color: #4a1070;
    line-height: 1.5;
}

.wcgcp-already-redeemed-block p:last-child {
    margin-bottom: 0;
}

/* ── Success state ──────────────────────────────────────────────────────────── */
.wcgcp-staff-success {
    text-align: center;
    padding: 40px 24px;
}

.wcgcp-staff-success-icon {
    margin-bottom: 16px;
}

.wcgcp-staff-success-icon svg {
    width: 64px;
    height: 64px;
}

.wcgcp-staff-success-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.wcgcp-staff-success-msg {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 24px;
    line-height: 1.6;
}
