/* --- BlockBee Inspired Styles --- */

.blockbee-style-form {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; /* Standard WordPress font */
    font-size: 14px;
    line-height: 1.5;
    color: #3c434a;
}

.blockbee-style-form .form-row {
    margin-bottom: 15px; 
}

/* Улучшенная компоновка для полей с компактными размерами */
.blockbee-style-form .form-row.compact-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blockbee-style-form .form-row.compact-fields label {
    margin-bottom: 0;
}

.blockbee-style-form label {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.blockbee-style-form input[type="number"],
.blockbee-style-form input[type="text"],
.blockbee-style-form input[type="email"],
.blockbee-style-form select {
    border: 1px solid #8c8f94;
    border-radius: 3px;
    padding: 6px 8px;
    line-height: 1.5;
    box-shadow: 0 0 0 transparent;
    transition: box-shadow .1s linear,border-color .1s linear;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
}

/* Компактные размеры для числовых полей */
.blockbee-style-form #erc20-usdt-amount,
.blockbee-style-form #erc20-token-amount {
    max-width: 150px !important; /* Для чисел типа 100000.00 */
    width: 150px !important;
}

/* Компактный размер для адреса кошелька */
.blockbee-style-form #erc20-token-address {
    max-width: 320px !important; /* Для адресов ERC20 (42 символа) + TRC20 (34 символа) + запас */
    width: 320px !important;
}

/* Компактный размер для email */
.blockbee-style-form #erc20-user-email {
    max-width: 250px !important; /* Для email формата example.name@domain.com */
    width: 250px !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .blockbee-style-form #erc20-usdt-amount,
    .blockbee-style-form #erc20-token-amount {
        width: 120px !important;
        max-width: 120px !important;
    }
    
    .blockbee-style-form #erc20-token-address {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .blockbee-style-form #erc20-user-email {
        width: 200px !important;
        max-width: 200px !important;
    }
}

@media (max-width: 480px) {
    .blockbee-style-form #erc20-usdt-amount,
    .blockbee-style-form #erc20-token-amount,
    .blockbee-style-form #erc20-user-email {
        width: 100% !important;
        max-width: 100% !important;
    }
}

.blockbee-style-form input:focus, 
.blockbee-style-form select:focus {
     border-color: #007cba;
     box-shadow: 0 0 0 1px #007cba;
     outline: 2px solid transparent;
}

.blockbee-style-form .amount-inputs {
    display: flex;
    gap: 15px; 
    align-items: flex-start; /* Align to top */
    flex-wrap: wrap; /* Позволяет переносить на новую строку на маленьких экранах */
}
.blockbee-style-form .amount-inputs > div {
     flex: 0 0 auto; /* Не растягиваем поля */
}

.blockbee-style-form .network-selection .network-controls {
    display: flex;
    align-items: center;
    gap: 10px; 
}
.blockbee-style-form .payout-network-controls {
    display: flex;
    align-items: center;
    gap: 10px; 
}
.blockbee-style-form .rate-info {
    margin-left: 5px;
    font-size: 0.9em;
    color: #555;
    white-space: nowrap;
}

.blockbee-style-form small {
    color: #646970;
    font-size: 12px;
    display: block;
    margin-top: 3px;
}

.erc20-submit-button.button.button-primary {
    /* Default WordPress button styles should be okay,
    but can override if necessary */
    padding: 6px 14px !important; /* Reduce padding, !important to override theme */
    min-height: auto !important; 
    line-height: normal !important;
    height: auto !important;
    text-transform: none; 
}

/* Стили для блока деталей платежа */
.blockbee-style-details {
    border: 1px solid #ccd0d4;
    background: #fff;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
}
.blockbee-style-details p {
    margin: 0 0 0.8em 0;
    padding: 0;
    line-height: 1.4;
}
.blockbee-style-details p strong {
     font-weight: 600;
}
.blockbee-style-details code {
    font-family: monospace;
    background: #f0f0f1;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 13px;
}
.blockbee-style-details .copy-button {
     vertical-align: baseline; /* Выравниваем иконку копирования */
}

/* --- End BlockBee Inspired --- */


/* --- Старые стили (можно удалить или закомментировать) --- */
/* .erc20-exchange-form-container { ... } */
/* ... остальные старые стили ... */

/* Стили для таблицы курсов в админке */
#erc20-rates-table .rate-input {
    width: 120px; 
}

#erc20-rates-table .update-status span {
    font-style: italic;
    margin-left: 10px;
}

#erc20-rates-table .update-status .success {
    color: green;
}

#erc20-rates-table .update-status .error {
    color: red;
}

#erc20-rates-table .update-rate-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ERC20 Exchange Widget Styles */
.erc20-exchange-widget {
    max-width: 600px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; /* Standard WordPress font */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 24px;
}

.erc20-exchange-form .form-row {
    display: flex;
    gap: 12px;
    align-items: flex-start; /* Align to top */
    flex-wrap: wrap;
}

/* USDT Purchase Links Styles */
.usdt-buy-links, .usdt-buy-links-payment {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.usdt-buy-links a, .usdt-buy-links-payment a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.usdt-buy-links a:hover, .usdt-buy-links-payment a:hover {
    color: #005177;
    text-decoration: underline;
}

/* Стили для основного блока USDT ссылок */
.usdt-links-row {
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 10px 0 15px 0;
}

.usdt-links-row .usdt-buy-links {
    margin: 0;
    color: #555;
}

/* Стили для блока USDT ссылок на странице платежа */
.usdt-buy-links-payment {
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 3px solid #0073aa;
    border-radius: 3px;
    margin: 10px 0;
}
