/* GF Coupon Manager - Front-end form styles */

.gfcm-coupon-container {
    margin-top: 8px;
}

.gfcm-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gfcm-code-input {
    flex: 1;
    min-width: 160px;
    max-width: 300px;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 1em;
    transition: border-color 0.2s;
}

.gfcm-code-input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.gfcm-code-input[readonly] {
    background: #f7f7f7;
    color: #555;
}

.gfcm-apply-btn {
    white-space: nowrap;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.2s, opacity 0.2s;
    background: #0073aa;
    color: #fff;
    border: none;
}

.gfcm-apply-btn:hover { background: #005d8e; }

.gfcm-coupon-container.gfcm-loading .gfcm-apply-btn {
    opacity: 0.6;
    cursor: wait;
}

/* Status messages */
.gfcm-status-msg {
    display: block;
    margin-top: 6px;
    font-size: 0.9em;
    min-height: 1.2em;
    border-radius: 3px;
    padding: 0 4px;
    transition: all 0.2s;
}

.gfcm-status-msg.gfcm-success {
    color: #155724;
    background: #d4edda;
    padding: 6px 10px;
    border: 1px solid #c3e6cb;
}

.gfcm-status-msg.gfcm-error {
    color: #721c24;
    background: #f8d7da;
    padding: 6px 10px;
    border: 1px solid #f5c6cb;
}

/* Applied coupons list */
.gfcm-applied-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.gfcm-applied-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 4px;
    margin-bottom: 4px;
    font-size: 0.9em;
}

.gfcm-applied-code {
    font-family: monospace;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #1b5e20;
}

.gfcm-applied-amount {
    color: #1b5e20;
    flex: 1;
}

.gfcm-list-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #721c24;
    font-size: 1.1em;
    line-height: 1;
    padding: 0 3px;
    border-radius: 3px;
    transition: background 0.15s, color 0.15s;
}

.gfcm-list-remove-btn:hover {
    background: #f8d7da;
    color: #491217;
}

/* Wallet styles */
.gfcm-wallet-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gfcm-wallet-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 16px;
}

.gfcm-wallet-tab {
    padding: 8px 16px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 0.95em;
    color: #555;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    text-decoration: none;
}

.gfcm-wallet-tab.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
    font-weight: 600;
}

.gfcm-wallet-panel { display: none; }
.gfcm-wallet-panel:first-of-type { display: block; }

.gfcm-wallet-row {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    transition: box-shadow 0.2s;
}

.gfcm-wallet-row:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.gfcm-wallet-row.gfcm-wallet-active { border-left: 4px solid #4caf50; }

.gfcm-wallet-code { font-family: monospace; font-size: 1.1em; font-weight: 600; letter-spacing: 0.08em; }
.gfcm-wallet-label { color: #555; font-size: 0.9em; }
.gfcm-wallet-status { font-size: 0.85em; padding: 2px 8px; border-radius: 12px; background: #e0e0e0; color: #555; }
.gfcm-wallet-active .gfcm-wallet-status { background: #c8e6c9; color: #1b5e20; }

.gfcm-wallet-login-notice { font-style: italic; color: #777; }

.gfcm-claim-success { color: #155724; background: #d4edda; border: 1px solid #c3e6cb; padding: 8px 12px; border-radius: 4px; }
.gfcm-claim-error   { color: #721c24; background: #f8d7da; border: 1px solid #f5c6cb; padding: 8px 12px; border-radius: 4px; }
