/* AB Pay Frontend Styles */
.ab-pay-container {
    margin: 20px 0;
}

.ab-pay-button {
    display: inline-block;
    background: #0070ba;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ab-pay-button:hover {
    background: #003087;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 112, 186, 0.4);
}

.ab-pay-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ab-pay-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #666;
}

.ab-pay-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0070ba;
    border-radius: 50%;
    animation: ab-pay-spin 1s linear infinite;
}

@keyframes ab-pay-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ab-pay-error {
    color: #dc3545;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.ab-pay-success {
    color: #155724;
    padding: 10px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

/* Checkout Styles */
.ab-pay-checkout {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.ab-pay-checkout .order-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.ab-pay-checkout .order-summary h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #333;
}

.ab-pay-checkout .order-summary p {
    margin: 8px 0;
    color: #666;
}

/* Modal Styles */
.ab-pay-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.ab-pay-modal.active {
    display: flex;
}

.ab-pay-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.ab-pay-modal-content h3 {
    margin: 0 0 20px;
}

.ab-pay-modal-content .ab-pay-form-group {
    margin-bottom: 15px;
    text-align: left;
}

.ab-pay-modal-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.ab-pay-modal-content input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ab-pay-modal-content input:focus {
    outline: none;
    border-color: #0070ba;
}

.ab-pay-modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.ab-pay-modal-close {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.ab-pay-modal-submit {
    background: #0070ba;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}
