/* EposNow Store Credit Styles */
.eposnow-store-credit-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.eposnow-store-credit-box h3 {
    margin-top: 0;
    color: #2d3748;
    font-size: 1.2em;
    padding-bottom: 10px;
    border-bottom: 2px solid #7a22ff;
}

.eposnow-store-credit-box p {
    margin: 10px 0;
    color: #4a5568;
}

.eposnow-credit-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.eposnow-credit-input-group label {
    font-weight: 600;
    color: #4a5568;
    min-width: 120px;
}

.eposnow-credit-input-group input {
    flex: 1;
    max-width: 200px;
    padding: 8px 12px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    font-size: 16px;
}

.eposnow-credit-input-group input:focus {
    outline: none;
    border-color: #7a22ff;
    box-shadow: 0 0 0 3px rgba(122, 34, 255, 0.1);
}

.eposnow-credit-input-group .currency {
    font-weight: bold;
    color: #2d3748;
    font-size: 16px;
}

.eposnow-credit-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.eposnow-credit-buttons .button {
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s;
}

#eposnow_apply_credit_btn {
    background: #7a22ff;
    border-color: #7a22ff;
    color: white;
}

#eposnow_apply_credit_btn:hover {
    background: #6a1fe0;
    border-color: #6a1fe0;
}

#eposnow_remove_credit_btn {
    background: #edf2f7;
    border-color: #cbd5e0;
    color: #4a5568;
}

#eposnow_remove_credit_btn:hover {
    background: #e2e8f0;
    border-color: #a0aec0;
}

.eposnow-applied-credit {
    margin: 10px 0 0 0 !important;
    padding: 8px 12px;
    background: #c6f6d5;
    border: 1px solid #9ae6b4;
    border-radius: 4px;
    color: #22543d;
    font-weight: 600;
}

.eposnow-loading {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: #7a22ff;
    font-size: 14px;
}

.eposnow-message {
    padding: 12px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid transparent;
}

.eposnow-message.woocommerce-error {
    background: #fed7d7;
    border-color: #fc8181;
    color: #c53030;
}

.eposnow-message.woocommerce-success {
    background: #c6f6d5;
    border-color: #9ae6b4;
    color: #22543d;
}

/* Responsive styles */
@media (max-width: 768px) {
    .eposnow-credit-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .eposnow-credit-input-group input {
        max-width: 100%;
    }
    
    .eposnow-credit-buttons {
        flex-direction: column;
    }
    
    .eposnow-credit-buttons .button {
        width: 100%;
        text-align: center;
    }
}