/**
 * Стили для формы оплаты PayGateway
 */

.paygateway-payment-form-wrapper {
    margin: 30px 0;
    padding: 30px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-width: 600px;
}

.paygateway-payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.paygateway-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.paygateway-form-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.paygateway-input,
.paygateway-select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
    line-height: 1.5;
}

.paygateway-select {
    min-height: 44px;
    height: auto;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    overflow: visible;
}

.paygateway-input:focus,
.paygateway-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.paygateway-form-group:has(#paygateway-amount) {
    position: relative;
}

.paygateway-currency {
    position: absolute;
    right: 12px;
    top: 38px;
    color: #666;
    font-weight: 500;
}

.paygateway-submit-group {
    margin-top: 10px;
}

.paygateway-submit-button {
    width: 100%;
    padding: 15px 30px;
    background: #6528F7;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.paygateway-submit-button:hover {
    background: #5420d4;
}

.paygateway-submit-button:active {
    background: #4318b1;
}

.paygateway-error {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    margin-bottom: 20px;
}

.paygateway-warning {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    margin-top: 20px;
}

.paygateway-warning p,
.paygateway-error p {
    margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .paygateway-payment-form-wrapper {
        padding: 20px;
        margin: 20px 0;
    }
    
    .paygateway-currency {
        position: static;
        display: inline-block;
        margin-left: 10px;
    }
}
