/* Модальное окно */
.wc-affiliate-modal {
    display: block !important;
    position: fixed !important;
    z-index: 2147483647 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: auto;
}

.wc-affiliate-modal.show {
    opacity: 1;
}

.wc-affiliate-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease;
    text-align: center;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wc-affiliate-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 20px;
    transition: color 0.2s ease;
}

.wc-affiliate-modal-close:hover,
.wc-affiliate-modal-close:focus {
    color: #000;
}

.wc-affiliate-modal-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.wc-affiliate-modal-title {
    margin: 0 0 15px;
    font-size: 24px;
    color: #333;
}

.wc-affiliate-modal-message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 25px;
}

.wc-affiliate-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px; /* Добавляем отступ снизу */
}

.wc-affiliate-login-link {
    display: block;
    margin-top: 15px;
    font-size: 14px;
    color: #0073aa;
    text-decoration: none;
}

.wc-affiliate-login-link:hover {
    text-decoration: underline;
}

.wc-affiliate-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: var(--wd-btn-font-weight, 500);
    font-family: var(--wd-font-family, inherit);
    width: 100%;
    box-sizing: border-box;
}

.wc-affiliate-btn-primary {
    background-color: var(--wd-primary-color, #0073aa);
    color: #fff;
}

.wc-affiliate-btn-primary:hover {
    filter: brightness(0.9);
    color: #fff !important;
}

.wc-affiliate-btn-secondary {
    background-color: var(--wd-primary-color, #0073aa);
    color: #fff;
}

.wc-affiliate-btn-secondary:hover {
    filter: brightness(0.9);
    color: #fff !important;
}

/* Адаптивность */
@media (max-width: 600px) {
    .wc-affiliate-modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 20px;
    }

    .wc-affiliate-btn {
        width: 100%;
    }
}

/* Дополнительные стили для отладки */
.wc-affiliate-modal {
    display: block !important;
    visibility: visible !important;
}

/* Frontend styles for the cashback withdrawal functionality */
.cashback-withdrawal-container {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.cashback-withdrawal-form {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.cashback-withdrawal-form .form-row {
    margin-bottom: 15px;
}

.cashback-withdrawal-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.cashback-withdrawal-form .input-text {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.cashback-withdrawal-form .button {
    padding: 10px 20px;
    background-color: #007cba;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.cashback-withdrawal-form .button:hover {
    background-color: #005a87;
}

.cashback-withdrawal-form .button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#withdrawal-messages {
    margin-top: 15px;
}

.success-message {
    padding: 10px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 10px;
}

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

.balance-display {
    margin-bottom: 15px;
}

.balance-amount {
    font-weight: bold;
    font-size: 1.2em;
}

.balance-green {
    color: #28a745;
}

.balance-gray {
    color: #6c757d;
}

.min-payout-amount {
    font-weight: bold;
    color: #007cba;
}

/* Стили для отображения способа вывода и номера счета */
.cashback-withdrawal-container .payout-details {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.cashback-withdrawal-container .payout-details p {
    margin: 5px 0;
    font-size: 14px;
}

.cashback-withdrawal-container .payout-details .no-payout-details {
    color: #d63638;
    font-style: italic;
}

.cashback-withdrawal-container .payout-details strong {
    color: #333;
}

/* Стили для полей профиля пользователя */
.woocommerce-form .woocommerce-account-fields fieldset {
    border: 1px solid #d3ced2;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.woocommerce-form .woocommerce-account-fields legend {
    font-weight: bold;
    padding: 0 10px;
    background: white;
}

.woocommerce-form-row--first,
.woocommerce-form-row--last {
    margin-bottom: 1em;
}

#payout_details_message {
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    display: inline-block;
    margin-top: 5px;
}

#payout_details_message.success {
    color: #46b450;
    background-color: #ecf7ee;
    border: 1px solid #46b450;
}

#payout_details_message.error {
    color: #dc3232;
    background-color: #ffeae9;
    border: 1px solid #dc3232;
}

#save_payout_details_btn {
    margin-top: 10px;
}

.payout-current-data {
    margin-top: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

.payout-current-data .woocommerce-info {
    margin: 0;
}



