
/* Withdrawal form styles */
.withdrawal-form-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fee-breakdown {
    margin: 20px 0;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    background-color: #fcfcfc;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
}

.total-row {
    border-bottom: none;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #eee;
}

.address-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 8px 0;
    font-family: monospace;
}

.address-error {
    color: #d9534f;
    font-size: 14px;
    margin-top: 5px;
}

.withdrawal-button {
    background-color: #4a89dc;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.withdrawal-button:hover {
    background-color: #3a79cc;
}

.withdrawal-button:disabled {
    background-color: #95aed0;
    cursor: not-allowed;
}

.network-notice {
    background-color: #f8f9fa;
    border-left: 4px solid #4a89dc;
    padding: 10px;
    margin: 10px 0;
    font-size: 14px;
}

.network-notice p {
    margin: 5px 0 0;
    color: #666;
}

.withdrawal-requirements {
    margin-top: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.withdrawal-notice {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

/* Animation for error shake */
.shake {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.payment-container {
    width: 100%;
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.payment-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eaeaea;
}

.payment-logo {
    max-width: 200px;
    margin-bottom: 1rem;
}

.payment-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.payment-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.payment-details {
    margin-bottom: 2rem;
}

.payment-amount {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 1.5rem 0;
}

.address-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.address-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.address-value {
    font-family: monospace;
    word-break: break-all;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.memo-container {
    margin-top: 1rem;
}

.copy-btn {
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background-color: #0d8aee;
}

.payment-instructions {
    background-color: #e8f4fd;
    border-left: 4px solid #2196f3;
    padding: 1rem;
    border-radius: 0 4px 4px 0;
    margin: 1.5rem 0;
}

.payment-instructions ul {
    padding-left: 1rem;
    margin: 0.5rem 0;
}

.payment-instructions li {
    margin-bottom: 0.5rem;
}

.payment-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.transaction-info {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.transaction-info div {
    margin-bottom: 0.5rem;
}

.transaction-id {
    font-family: monospace;
}

.status-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-success {
    background-color: #00c853;
    color: white;
}

.btn-danger {
    background-color: #f44336;
    color: white;
}

.btn-warning {
    background-color: #ff9800;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Limits and requirements */
.requirements {
    background-color: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 0 4px 4px 0;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.requirements div {
    margin-bottom: 0.5rem;
}

.requirements strong {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .payment-container {
        padding: 1.5rem;
        margin: 1rem;
    }
}


.payment-container {
    width: 100%;
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.payment-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eaeaea;
}

.payment-logo {
    max-width: 200px;
    margin-bottom: 1rem;
}

.payment-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.payment-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.payment-details {
    margin-bottom: 2rem;
}

/* Добавить в sandbox.css */
.email-label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    margin-right: 10px;
    color: #000;
    white-space: nowrap; /* Предотвращает перенос */
}


.required-asterisk {
    color: red;
    font-weight: bold;
    margin-left: 2px;
}

/* Style for the asterisk in the email label */
.email-label label::after {
    content: " *";
    color: red; /* Red color for the asterisk */
    font-weight: bold;
}

/* Hide the original asterisk in the label */
.email-label label span.asterisk {
    display: none;
}

/* Style for email field container */
.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

/* Style for email label */
.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Style for email input to match amount input */
.form-control {
    width: 100%;
    background-color: var(--primary-color-light);
    border: 2px solid var(--primary-border);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 400;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Focus state for email input */
.form-control:focus {
    border-color: var(--button-color);
    box-shadow: 0 0 0 3px rgba(15, 92, 198, 0.1);
}

/* Input error state */
.form-control.input-error,
.form-control.is-invalid {
    border-color: #f5c6cb;
    background-color: rgba(248, 215, 218, 0.1);
}

/* Email validation error message */
.invalid-feedback {
    color: red;
    font-size: 0.9em;
    margin-top: 0.5rem;
    display: none;
}

/* Show invalid feedback when needed */
.is-invalid + .invalid-feedback {
    display: block;
    animation: shake 0.5s ease;
}

/* Shake animation for error messages */
@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

/* Add this to your sandbox.css file */
#network-selection.input-error {
    border: 1px solid #f5c6cb;
    background-color: rgba(248, 215, 218, 0.1);
    border-radius: 8px;
    padding-bottom: 10px;
}

#network-error.shake {
    animation: shake 0.5s ease;
}

/* Фиксированные размеры для кнопок сетей */
.network-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-border);
    border-radius: 0.625rem;
    padding: 0.5rem;
    transition: border-color 0.2s, background-color 0.2s;
    cursor: pointer;
    background-color: #6FA5D9; /* Blue background from crypto icons */
    color: #FFFFFF; /* White text for good contrast */
    width: 100px; /* Фиксированная ширина */
    height: 40px; /* Фиксированная высота */
    font-size: 0.875rem; /* Унифицированный размер шрифта */
    text-align: center; /* Центрируем текст */
    box-sizing: border-box; /* Включаем padding и border в размер элемента */
    overflow: hidden; /* Скрываем переполнение */
    white-space: nowrap; /* Запрещаем перенос строк */
    text-overflow: ellipsis; /* Показываем многоточие при переполнении */
}

/* Стиль для payment-method-item в новой сетке */
.network-item.payment-method-item {
    width: 100% !important; /* Заполняем всю ячейку */
    height: auto;
    max-height: 48px;
    background-color: #FFFFFF;
    border: 2px solid var(--primary-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    box-sizing: border-box;
}

.network-item.payment-method-item img {
    width: auto;
    height: auto;
    max-width: 50%;
    max-height: 40px; /* Ограничиваем высоту изображения */
    object-fit: contain;
    display: block;
}

.network-item:hover {
    border-color: #85C8FF; /* Light blue border from crypto icons */
    box-shadow: 0 0 8px rgba(133, 200, 255, 0.5); /* Subtle glow effect */
}

/* Selected network style */
.network-item.selected {
    background-color: #6FA5D9; /* Keep blue background */
    border-color: #85C8FF; /* Light blue border from crypto icons */
    box-shadow: 0 0 10px rgba(133, 200, 255, 0.7); /* Enhanced glow effect for selected state */
}

/* Selected payment method style */
.network-item.payment-method-item.selected {
    background-color: #FFFFFF; /* Keep white background */
    border-color: var(--button-color);
    box-shadow: 0 0 10px rgba(133, 200, 255, 0.7);
}

/* Фиатные методы оплаты тоже в сетке из 3 колонок */
.networks-grid.payment-methods-grid {
    display: grid !important; /* Используем grid вместо flex */
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px;
    margin-top: 10px;
}

/* Style for 3+ payment methods - show 3 per row */
.networks-grid.payment-methods-grid.multiple-methods .network-item.payment-method-item {
    flex: 0 0 calc(33.333% - 7px); /* 3 items per row with gap consideration */
}

.refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: transform 0.2s ease-in-out, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: auto; /* Прижимаем кнопку к правому краю */
    flex-shrink: 0; /* Запрещаем уменьшение кнопки */
}

.refresh-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.refresh-icon {
    width: 24px;
    height: 24px;
    display: block;
    transition: transform 0.3s ease-in-out;
}

/* Вращение при наведении */
.refresh-btn:hover .refresh-icon {
    transform: rotate(180deg);
}

/* Эффект клика */
.refresh-btn:active {
    transform: scale(0.9);
}

#order-id {
    display: inline-block;
    flex-grow: 1; /* Заполняет доступное пространство */
    min-width: 280px; /* Фиксируем минимальную ширину */
    max-width: 100%; /* Ограничиваем рост */
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.875rem;
    font-weight: 500;
}

#order-number {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* Общие стили для иконок методов оплаты */
.method-item img {
    width: 40px; /* Фиксированная ширина */
    height: 40px; /* Фиксированная высота */
    object-fit: contain; /* Масштабирование без потери пропорций */
    display: block;
    margin: auto;
}

/* Контейнер для метода оплаты */
.method-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-border);
    border-radius: 0.625rem;
    padding: 0.5rem;
    transition: border-color 0.2s, background-color 0.2s;
    cursor: pointer;
    width: 60px;
    height: 60px;
}

/* Выбранный метод оплаты */
.method-item.selected {
    border-color: var(--button-color);
    background-color: var(--primary-color-light);
}

.amount-label {
    display: flex;
    align-items: center;
    gap: 6px; /* Минимальный отступ между иконкой и текстом */
    white-space: nowrap;
    font-size: 1.2rem;
    font-weight: 500;
    margin-right: 10px; /* Добавляем небольшой отступ от поля ввода */
}

.amount-label img {
    width: 28px; /* Универсальный размер иконки */
    height: 28px;
    object-fit: contain;
}

/* Текст валюты */
.amount-label label {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    display: flex;
    align-items: center;
}

.amount-input-wrapper{
    display: flex;
    align-items: center;
    background-color: var(--primary-color-light);
    border: 2px solid var(--primary-border);
    padding: 0.5rem;
    border-radius: 0.5rem;
    width: 100%;
    justify-content: space-between;
}

.amount-btn {
    background: var(--button-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 0.5rem;
}

.amount-btn:hover {
    background: var(--button-hover);
}

.amount-display{
    flex-grow: 1;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    border: none;
    background: transparent;
    padding: 0;
}

.hidden-input {
    display: none; /* Скрываем реальное поле ввода */
}

.amount-container {
    display: flex;
    align-items: center; /* Выравниваем элементы по центру */
    justify-content: space-between; /* Равномерно распределяем */
    background-color: var(--primary-color-light);
    border: 2px solid var(--primary-border);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    width: 100%;
    min-height: 50px; /* Минимальная высота */
}

/* Поле ввода суммы */
.amount-value {
    flex-grow: 1; /* Позволяет занять всю оставшуюся ширину */
    text-align: right; /* Выравниваем ввод суммы вправо */
    border: none;
    background: var(--primary-color-light);
    font-size: 1.25rem;
    font-weight: 500;
    outline: none;
    width: 100%;
    min-width: 80px; /* Минимальная ширина, чтобы текст не сжимался */
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.order-id {
    font-size: 0.875rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; /* Полная ширина родителя */
    position: relative;
    gap: 8px;
    flex-wrap: nowrap;
}

#order-id{
    flex-grow: 1;
    display: flex;
    align-items: center; /* Выравнивание по центру */
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.order-label{
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Блок соглашения */
.agreement-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 10px;
    width: 100%;
}

/* Фиксируем ширину agreement-checkbox */
.agreement-checkbox {
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Блок валюты */
.coin-badge {
    align-items: center;
    justify-content: flex-end;
    border: 2px solid var(--primary-border);
    overflow: hidden;
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.625rem;
    max-width: 111px;
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

/* Выравнивание блока валютного бейджа */
.coin-badge img {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Выравниваем все элементы по центру */
.coin-label {
    display: flex;
    align-items: center;
}

/* Выравнивание текста валюты */
label#formatted-currency {
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    display: flex;
    align-items: center;
    line-height: 1;
}

/* Ограничиваем длину текста внутри coin-amount */
.coin-amount {
    font-size: 0.875rem; /* 14px, как у formatted-currency */
    font-weight: 500;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

/* Выравнивание иконки валюты */
.coin-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right:0;
}

/* Visible style for fiat currencies (currently only ARS) */
.coin-badge.fiat-selected {
    background: #F0F4FF33;
    border: 2px solid var(--primary-border);
    opacity: 1;
}

/* Пример стиля для невалидного поля */
.input-error {
    border: 1px solid red;
}

/* Перезаписываем стиль для сообщений ошибок */
.error-message {
    color: #721c24;
    font-size: 0.9em;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 8px;
    width: 100%;
    text-align: center;
    display: none;
    margin-bottom:16px;
}

/* Анимация тряски для всех сообщений об ошибках */
.error-message.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

/* Удаляем ::after псевдоэлемент, так как теперь используем span */
.email-label label::after {
    content: none;
}

/* Стили для контейнера серверной ошибки */
.error-container {
    background-color: #f8d7da; /* Светло-красный фон */
    color: #721c24; /* Темно-красный текст */
    border: 1px solid #f5c6cb; /* Красная рамка */
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 16px;
    text-align: center;
    display: none; /* Изначально скрыт */
    animation: fadeInDown 0.5s ease-out;
}

/* Анимация плавного появления сверху */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Эффект дрожания при повторном отображении ошибки */
.error-container.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

/* Remove number input spinner arrows for all browsers */
/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* Network selection styles */
.network-selection {
    margin-top: 20px;
    width: 100%;
}

/* Заменяем стиль networks-grid для обеспечения двух равных колонок */
.networks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important; /* Всегда ровно 3 колонки */
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

/* Фиксированные размеры для всех кнопок сетей */
.network-item:not(.payment-method-item) {
    width: 100% !important; /* Заполняем всю ячейку сетки */
    height: 40px !important;
    padding: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

/* Payment actions container */
.payment-actions {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
}

.payment-actions .submit-btn {
    flex: 1;
    min-width: 120px;
}

@media all and (max-width: 1024px) {
    .network-item.payment-method-item img {
        max-width: 50%;
    }
}

/* Адаптивность для меньших экранов */
@media all and (max-width: 768px) {

    .network-item.payment-method-item {

    }
    /* Always 2 per row on smaller screens */
    .networks-grid.payment-methods-grid.multiple-methods .network-item.payment-method-item {
        flex: 0 0 calc(50% - 5px);
    }

    .network-item.payment-method-item img {
        max-width: 60%;
    }

    #order-id {
        max-width: 75%;
    }

    .amount-label {
        margin-right: 8px; /* Уменьшаем отступ */
    }

    .amount-label img {
        width: 24px;
        height: 24px;
    }

    .amount-label label {
        font-size: 0.875rem;
    }

    .amount-value {
        font-size: 1.1rem;
    }

    .method-item img, .network-item.payment-method-item img {

    }

    .network-item {
        padding: 0.4rem;
        font-size: 0.9rem;
    }

    .agreement-checkbox {
        font-size: 0.75rem;
    }

    .coin-badge {
        padding: 0.4rem;
    }
}

@media all and (max-width: 480px) {

    .networks-grid,
    .networks-grid.payment-methods-grid {
        gap: 8px;
        grid-template-columns: repeat(3, 1fr) !important; /* Сохраняем 3 колонки */
    }

    .network-item:not(.payment-method-item) {
        height: 36px !important;
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    .agreement-block {
        flex-direction: row; /* Убедимся, что элементы остаются в строке */
        flex-wrap: nowrap; /* Запрещаем перенос на новую строку */
        align-items: center;
        gap: 8px; /* Уменьшаем отступ между элементами */
    }

    .agreement-checkbox {
        flex: 0 1 auto; /* Позволяем сжиматься, но не расширяться */
        font-size: 0.7rem; /* Уменьшаем размер шрифта */
        min-width: 0; /* Важно для корректной работы text-overflow */
    }

    .agreement-checkbox label {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .coin-badge {
        flex: 0 0 auto; /* Не позволяем сжиматься */
        padding: 0.3rem 0.4rem;
        max-width: none; /* Убираем ограничение ширины */
    }

    .coin-label, .coin-amount {
        font-size: 0.7rem;
    }

    .coin-icon {
        width: 16px;
        height: 16px;
    }

    .order-id {
        flex-wrap: nowrap; /* Гарантируем, что всё останется в одной строке */
        gap: 4px;
        overflow: hidden;
    }

    #order-id {
        max-width: 100%; /* Учитываем размер кнопки */
    }

    #order-number {
        font-size: 0.875rem;
    }

    .refresh-btn {
        width: 28px;
        height: 28px;
    }

    .refresh-icon {
        width: 28px;
        height: 28px;
    }

    .amount-label {
        margin-right: 8px; /* Уменьшаем отступ */
    }

    .amount-container {
        flex-direction: row;
    }

    .amount-label img {
        width: 22px;
        height: 22px;
    }

    .amount-value {
        font-size: 1rem;
    }

    .method-item img {
        width: 30px;
        height: 30px;
    }

    .network-item {
        padding: 0.4rem;
        font-size: 0.8rem;
        flex: 1 0 calc(50% - 10px); /* 2 items per row with gap consideration */
    }

    .network-item.payment-method-item {

    }

    .network-item.payment-method-item img {

    }

    .networks-grid {
        gap: 8px;
    }
}

@media all and (max-width: 460px) {
    .coin-label, .coin-amount,
    .agreement-checkbox label
    {
        font-size: 10px;
    }
}

/* Media queries */
@media all and (max-width: 420px) {
    .logo {
        width: 31px;
        height: 35px;
    }

    .icon-flag {
        width: 24px;
        height: 24px;
    }

    .payment-form {
        padding: 1.2rem 0.8rem;
    }

    .methods-grid {
        gap: 1rem;
    }

    .method-item {
        padding: 0;
    }

    .network-item {
        padding: 0.35rem;
        font-size: 0.75rem;
    }

    .network-item.payment-method-item {

    }

    .network-item.payment-method-item img {

    }

    .order-id {
        font-size: 0.625rem;
        line-height: 1.2;
        flex-wrap: nowrap;
        gap: 4px;
    }

    #order-id {
        max-width: 100%; /* Учитываем размер кнопки */
    }

    #order-number {
        max-width: 80%;
    }
}

@media all and (max-width: 390px) {
    .methods-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .networks-grid {
        gap: 6px;
    }

    .network-item {
        font-size: 0.7rem;
    }

    .network-item.payment-method-item {

    }

    .network-item.payment-method-item img {

    }
}

@media all and (max-width: 380px) {
    .coin-label, .coin-amount,
    .agreement-checkbox label
    {
        font-size: 9px;
    }
}

@media all and (max-width: 360px) {

    .networks-grid,
    .networks-grid.payment-methods-grid {
        gap: 6px;
        grid-template-columns: repeat(3, 1fr) !important; /* Сохраняем 3 колонки */
    }

    .network-item:not(.payment-method-item) {
        height: 34px !important;
        font-size: 0.7rem;
        padding: 0.3rem;
    }

    .network-item:not(.payment-method-item) {
        height: 34px !important;
        font-size: 0.7rem;
        padding: 0.3rem;
    }

    .agreement-block {
        gap: 6px; /* Дополнительно уменьшаем отступ */
    }

    .agreement-checkbox {
        font-size: 0.65rem; /* Еще меньше шрифт */
    }

    .coin-badge {
        padding: 0.25rem 0.3rem;
    }

    .coin-icon {
        width: 14px;
        height: 14px;
    }

    .order-id {
        font-size: 0.75rem; /* Уменьшаем общий размер */
        gap: 3px;
    }

    #order-id {
        max-width: 100%; /* Корректируем под маленькие экраны */
    }

    .refresh-btn {
        width: 26px;
        height: 26px;
    }

    .refresh-icon {
        width: 18px;
        height: 18px;
    }

    .network-item {
        padding: 0.3rem;
        font-size: 0.65rem;
    }
}

@media all and (max-width: 345px) {
    .coin-label, .coin-amount,
    .agreement-checkbox label
    {
        font-size: 8px;
    }
}



/* Добавить в sandbox.css */
.email-label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    margin-right: 10px;
    color: #000;
    white-space: nowrap; /* Предотвращает перенос */
}


.required-asterisk {
    color: red;
    font-weight: bold;
    margin-left: 2px;
}

/* Style for the asterisk in the email label */
.email-label label::after {
    content: " *";
    color: red; /* Red color for the asterisk */
    font-weight: bold;
}

/* Hide the original asterisk in the label */
.email-label label span.asterisk {
    display: none;
}

/* Style for email field container */
.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

/* Style for email label */
.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Style for email input to match amount input */
.form-control {
    width: 100%;
    background-color: var(--primary-color-light);
    border: 2px solid var(--primary-border);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 400;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Focus state for email input */
.form-control:focus {
    border-color: var(--button-color);
    box-shadow: 0 0 0 3px rgba(15, 92, 198, 0.1);
}

/* Input error state */
.form-control.input-error,
.form-control.is-invalid {
    border-color: #f5c6cb;
    background-color: rgba(248, 215, 218, 0.1);
}

/* Email validation error message */
.invalid-feedback {
    color: red;
    font-size: 0.9em;
    margin-top: 0.5rem;
    display: none;
}

/* Show invalid feedback when needed */
.is-invalid + .invalid-feedback {
    display: block;
    animation: shake 0.5s ease;
}

/* Shake animation for error messages */
@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

/* Add this to your sandbox.css file */
#network-selection.input-error {
    border: 1px solid #f5c6cb;
    background-color: rgba(248, 215, 218, 0.1);
    border-radius: 8px;
    padding-bottom: 10px;
}

#network-error.shake {
    animation: shake 0.5s ease;
}

/* Фиксированные размеры для кнопок сетей */
.network-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-border);
    border-radius: 0.625rem;
    padding: 0.5rem;
    transition: border-color 0.2s, background-color 0.2s;
    cursor: pointer;
    background-color: #6FA5D9; /* Blue background from crypto icons */
    color: #FFFFFF; /* White text for good contrast */
    width: 100px; /* Фиксированная ширина */
    height: 40px; /* Фиксированная высота */
    font-size: 0.875rem; /* Унифицированный размер шрифта */
    text-align: center; /* Центрируем текст */
    box-sizing: border-box; /* Включаем padding и border в размер элемента */
    overflow: hidden; /* Скрываем переполнение */
    white-space: nowrap; /* Запрещаем перенос строк */
    text-overflow: ellipsis; /* Показываем многоточие при переполнении */
}

/* Стиль для payment-method-item в новой сетке */
.network-item.payment-method-item {
    width: 100% !important; /* Заполняем всю ячейку */
    height: auto;
    max-height: 48px;
    background-color: #FFFFFF;
    border: 2px solid var(--primary-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    box-sizing: border-box;
}

.network-item.payment-method-item img {
    width: auto;
    height: auto;
    max-width: 50%;
    max-height: 40px; /* Ограничиваем высоту изображения */
    object-fit: contain;
    display: block;
}

.network-item:hover {
    border-color: #85C8FF; /* Light blue border from crypto icons */
    box-shadow: 0 0 8px rgba(133, 200, 255, 0.5); /* Subtle glow effect */
}

/* Selected network style */
.network-item.selected {
    background-color: #6FA5D9; /* Keep blue background */
    border-color: #85C8FF; /* Light blue border from crypto icons */
    box-shadow: 0 0 10px rgba(133, 200, 255, 0.7); /* Enhanced glow effect for selected state */
}

/* Selected payment method style */
.network-item.payment-method-item.selected {
    background-color: #FFFFFF; /* Keep white background */
    border-color: var(--button-color);
    box-shadow: 0 0 10px rgba(133, 200, 255, 0.7);
}

/* Фиатные методы оплаты тоже в сетке из 3 колонок */
.networks-grid.payment-methods-grid {
    display: grid !important; /* Используем grid вместо flex */
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px;
    margin-top: 10px;
}

/* Style for 3+ payment methods - show 3 per row */
.networks-grid.payment-methods-grid.multiple-methods .network-item.payment-method-item {
    flex: 0 0 calc(33.333% - 7px); /* 3 items per row with gap consideration */
}

.refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: transform 0.2s ease-in-out, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: auto; /* Прижимаем кнопку к правому краю */
    flex-shrink: 0; /* Запрещаем уменьшение кнопки */
}

.refresh-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.refresh-icon {
    width: 24px;
    height: 24px;
    display: block;
    transition: transform 0.3s ease-in-out;
}

/* Вращение при наведении */
.refresh-btn:hover .refresh-icon {
    transform: rotate(180deg);
}

/* Эффект клика */
.refresh-btn:active {
    transform: scale(0.9);
}

#order-id {
    display: inline-block;
    flex-grow: 1; /* Заполняет доступное пространство */
    min-width: 280px; /* Фиксируем минимальную ширину */
    max-width: 100%; /* Ограничиваем рост */
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.875rem;
    font-weight: 500;
}

#order-number {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* Общие стили для иконок методов оплаты */
.method-item img {
    width: 40px; /* Фиксированная ширина */
    height: 40px; /* Фиксированная высота */
    object-fit: contain; /* Масштабирование без потери пропорций */
    display: block;
    margin: auto;
}

/* Контейнер для метода оплаты */
.method-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-border);
    border-radius: 0.625rem;
    padding: 0.5rem;
    transition: border-color 0.2s, background-color 0.2s;
    cursor: pointer;
    width: 60px;
    height: 60px;
}

/* Выбранный метод оплаты */
.method-item.selected {
    border-color: var(--button-color);
    background-color: var(--primary-color-light);
}

.amount-label {
    display: flex;
    align-items: center;
    gap: 6px; /* Минимальный отступ между иконкой и текстом */
    white-space: nowrap;
    font-size: 1.2rem;
    font-weight: 500;
    margin-right: 10px; /* Добавляем небольшой отступ от поля ввода */
}

.amount-label img {
    width: 28px; /* Универсальный размер иконки */
    height: 28px;
    object-fit: contain;
}

/* Текст валюты */
.amount-label label {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    display: flex;
    align-items: center;
}

.amount-input-wrapper{
    display: flex;
    align-items: center;
    background-color: var(--primary-color-light);
    border: 2px solid var(--primary-border);
    padding: 0.5rem;
    border-radius: 0.5rem;
    width: 100%;
    justify-content: space-between;
}

.amount-btn {
    background: var(--button-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 0.5rem;
}

.amount-btn:hover {
    background: var(--button-hover);
}

.amount-display{
    flex-grow: 1;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    border: none;
    background: transparent;
    padding: 0;
}

.hidden-input {
    display: none; /* Скрываем реальное поле ввода */
}

.amount-container {
    display: flex;
    align-items: center; /* Выравниваем элементы по центру */
    justify-content: space-between; /* Равномерно распределяем */
    background-color: var(--primary-color-light);
    border: 2px solid var(--primary-border);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    width: 100%;
    min-height: 50px; /* Минимальная высота */
}

/* Поле ввода суммы */
.amount-value {
    flex-grow: 1; /* Позволяет занять всю оставшуюся ширину */
    text-align: right; /* Выравниваем ввод суммы вправо */
    border: none;
    background: var(--primary-color-light);
    font-size: 1.25rem;
    font-weight: 500;
    outline: none;
    width: 100%;
    min-width: 80px; /* Минимальная ширина, чтобы текст не сжимался */
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.order-id {
    font-size: 0.875rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; /* Полная ширина родителя */
    position: relative;
    gap: 8px;
    flex-wrap: nowrap;
}

#order-id{
    flex-grow: 1;
    display: flex;
    align-items: center; /* Выравнивание по центру */
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.order-label{
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Блок соглашения */
.agreement-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 10px;
    width: 100%;
}

/* Фиксируем ширину agreement-checkbox */
.agreement-checkbox {
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Блок валюты */
.coin-badge {
    align-items: center;
    justify-content: flex-end;
    border: 2px solid var(--primary-border);
    overflow: hidden;
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.625rem;
    max-width: 111px;
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

/* Выравнивание блока валютного бейджа */
.coin-badge img {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Выравниваем все элементы по центру */
.coin-label {
    display: flex;
    align-items: center;
}

/* Выравнивание текста валюты */
label#formatted-currency {
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    display: flex;
    align-items: center;
    line-height: 1;
}

/* Ограничиваем длину текста внутри coin-amount */
.coin-amount {
    font-size: 0.875rem; /* 14px, как у formatted-currency */
    font-weight: 500;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

/* Выравнивание иконки валюты */
.coin-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right:0;
}

/* Visible style for fiat currencies (currently only ARS) */
.coin-badge.fiat-selected {
    background: #F0F4FF33;
    border: 2px solid var(--primary-border);
    opacity: 1;
}

/* Пример стиля для невалидного поля */
.input-error {
    border: 1px solid red;
}

/* Перезаписываем стиль для сообщений ошибок */
.error-message {
    color: #721c24;
    font-size: 0.9em;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 8px;
    width: 100%;
    text-align: center;
    display: none;
    margin-bottom:16px;
}

/* Анимация тряски для всех сообщений об ошибках */
.error-message.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

/* Удаляем ::after псевдоэлемент, так как теперь используем span */
.email-label label::after {
    content: none;
}

/* Стили для контейнера серверной ошибки */
.error-container {
    background-color: #f8d7da; /* Светло-красный фон */
    color: #721c24; /* Темно-красный текст */
    border: 1px solid #f5c6cb; /* Красная рамка */
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 16px;
    text-align: center;
    display: none; /* Изначально скрыт */
    animation: fadeInDown 0.5s ease-out;
}

/* Анимация плавного появления сверху */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Эффект дрожания при повторном отображении ошибки */
.error-container.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

/* Remove number input spinner arrows for all browsers */
/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* Network selection styles */
.network-selection {
    margin-top: 20px;
    width: 100%;
}

/* Заменяем стиль networks-grid для обеспечения двух равных колонок */
.networks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important; /* Всегда ровно 3 колонки */
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

/* Фиксированные размеры для всех кнопок сетей */
.network-item:not(.payment-method-item) {
    width: 100% !important; /* Заполняем всю ячейку сетки */
    height: 40px !important;
    padding: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

/* Payment actions container */
.payment-actions {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
}

.payment-actions .submit-btn {
    flex: 1;
    min-width: 120px;
}

@media all and (max-width: 1024px) {
    .network-item.payment-method-item img {
        max-width: 50%;
    }
}

/* Адаптивность для меньших экранов */
@media all and (max-width: 768px) {

    .network-item.payment-method-item {

    }
    /* Always 2 per row on smaller screens */
    .networks-grid.payment-methods-grid.multiple-methods .network-item.payment-method-item {
        flex: 0 0 calc(50% - 5px);
    }

    .network-item.payment-method-item img {
        max-width: 60%;
    }

    #order-id {
        max-width: 75%;
    }

    .amount-label {
        margin-right: 8px; /* Уменьшаем отступ */
    }

    .amount-label img {
        width: 24px;
        height: 24px;
    }

    .amount-label label {
        font-size: 0.875rem;
    }

    .amount-value {
        font-size: 1.1rem;
    }

    .method-item img, .network-item.payment-method-item img {

    }

    .network-item {
        padding: 0.4rem;
        font-size: 0.9rem;
    }

    .agreement-checkbox {
        font-size: 0.75rem;
    }

    .coin-badge {
        padding: 0.4rem;
    }
}

@media all and (max-width: 480px) {

    .networks-grid,
    .networks-grid.payment-methods-grid {
        gap: 8px;
        grid-template-columns: repeat(3, 1fr) !important; /* Сохраняем 3 колонки */
    }

    .network-item:not(.payment-method-item) {
        height: 36px !important;
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    .agreement-block {
        flex-direction: row; /* Убедимся, что элементы остаются в строке */
        flex-wrap: nowrap; /* Запрещаем перенос на новую строку */
        align-items: center;
        gap: 8px; /* Уменьшаем отступ между элементами */
    }

    .agreement-checkbox {
        flex: 0 1 auto; /* Позволяем сжиматься, но не расширяться */
        font-size: 0.7rem; /* Уменьшаем размер шрифта */
        min-width: 0; /* Важно для корректной работы text-overflow */
    }

    .agreement-checkbox label {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .coin-badge {
        flex: 0 0 auto; /* Не позволяем сжиматься */
        padding: 0.3rem 0.4rem;
        max-width: none; /* Убираем ограничение ширины */
    }

    .coin-label, .coin-amount {
        font-size: 0.7rem;
    }

    .coin-icon {
        width: 16px;
        height: 16px;
    }

    .order-id {
        flex-wrap: nowrap; /* Гарантируем, что всё останется в одной строке */
        gap: 4px;
        overflow: hidden;
    }

    #order-id {
        max-width: 100%; /* Учитываем размер кнопки */
    }

    #order-number {
        font-size: 0.875rem;
    }

    .refresh-btn {
        width: 28px;
        height: 28px;
    }

    .refresh-icon {
        width: 28px;
        height: 28px;
    }

    .amount-label {
        margin-right: 8px; /* Уменьшаем отступ */
    }

    .amount-container {
        flex-direction: row;
    }

    .amount-label img {
        width: 22px;
        height: 22px;
    }

    .amount-value {
        font-size: 1rem;
    }

    .method-item img {
        width: 30px;
        height: 30px;
    }

    .network-item {
        padding: 0.4rem;
        font-size: 0.8rem;
        flex: 1 0 calc(50% - 10px); /* 2 items per row with gap consideration */
    }

    .network-item.payment-method-item {

    }

    .network-item.payment-method-item img {

    }

    .networks-grid {
        gap: 8px;
    }
}

@media all and (max-width: 460px) {
    .coin-label, .coin-amount,
    .agreement-checkbox label
    {
        font-size: 10px;
    }
}

/* Media queries */
@media all and (max-width: 420px) {
    .logo {
        width: 31px;
        height: 35px;
    }

    .icon-flag {
        width: 24px;
        height: 24px;
    }

    .payment-form {
        padding: 1.2rem 0.8rem;
    }

    .methods-grid {
        gap: 1rem;
    }

    .method-item {
        padding: 0;
    }

    .network-item {
        padding: 0.35rem;
        font-size: 0.75rem;
    }

    .network-item.payment-method-item {

    }

    .network-item.payment-method-item img {

    }

    .order-id {
        font-size: 0.625rem;
        line-height: 1.2;
        flex-wrap: nowrap;
        gap: 4px;
    }

    #order-id {
        max-width: 100%; /* Учитываем размер кнопки */
    }

    #order-number {
        max-width: 80%;
    }
}

@media all and (max-width: 390px) {
    .methods-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .networks-grid {
        gap: 6px;
    }

    .network-item {
        font-size: 0.7rem;
    }

    .network-item.payment-method-item {

    }

    .network-item.payment-method-item img {

    }
}

@media all and (max-width: 380px) {
    .coin-label, .coin-amount,
    .agreement-checkbox label
    {
        font-size: 9px;
    }
}

@media all and (max-width: 360px) {

    .networks-grid,
    .networks-grid.payment-methods-grid {
        gap: 6px;
        grid-template-columns: repeat(3, 1fr) !important; /* Сохраняем 3 колонки */
    }

    .network-item:not(.payment-method-item) {
        height: 34px !important;
        font-size: 0.7rem;
        padding: 0.3rem;
    }

    .network-item:not(.payment-method-item) {
        height: 34px !important;
        font-size: 0.7rem;
        padding: 0.3rem;
    }

    .agreement-block {
        gap: 6px; /* Дополнительно уменьшаем отступ */
    }

    .agreement-checkbox {
        font-size: 0.65rem; /* Еще меньше шрифт */
    }

    .coin-badge {
        padding: 0.25rem 0.3rem;
    }

    .coin-icon {
        width: 14px;
        height: 14px;
    }

    .order-id {
        font-size: 0.75rem; /* Уменьшаем общий размер */
        gap: 3px;
    }

    #order-id {
        max-width: 100%; /* Корректируем под маленькие экраны */
    }

    .refresh-btn {
        width: 26px;
        height: 26px;
    }

    .refresh-icon {
        width: 18px;
        height: 18px;
    }

    .network-item {
        padding: 0.3rem;
        font-size: 0.65rem;
    }
}

@media all and (max-width: 345px) {
    .coin-label, .coin-amount,
    .agreement-checkbox label
    {
        font-size: 8px;
    }
}

/* Wallet Address Field Styling */
.wallet-address-container {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.wallet-address-container.input-error {
    border-color: #e53e3e;
    background-color: rgba(229, 62, 62, 0.05);
    box-shadow: 0 0 0 1px rgba(229, 62, 62, 0.2);
}

.wallet-address-container .wallet-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.wallet-address-container .wallet-label label {
    font-weight: 500;
    color: #4a5568;
    font-size: 14px;
}

.wallet-address-container input.amount-value {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    color: #2d3748;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    text-align:left;
}

.wallet-address-container input.amount-value:focus {
    border-color: #4299e1;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.wallet-address-container input.amount-value.input-error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 1px rgba(229, 62, 62, 0.2);
}

.wallet-address-container .required-asterisk {
    color: #e53e3e;
    margin-left: 2px;
}

/* Animation for wallet address field appearance */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#wallet-address-container {
    animation: slideDown 0.3s ease forwards;
}

/* Network compatibility badge for wallet address */
.wallet-network-badge {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 4px 8px;
    font-size: 12px;
    color: #4a5568;
    background-color: #e2e8f0;
    border-radius: 4px;
}

.wallet-network-badge.compatible {
    background-color: #c6f6d5;
    color: #276749;
}

.wallet-network-badge.incompatible {
    background-color: #fed7d7;
    color: #c53030;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .wallet-address-container {
        padding: 10px 12px;
    }

    .wallet-address-container input.amount-value {
        padding: 8px 10px;
        font-size: 14px;
    }
}

/* Withdrawal info container styling */
.withdrawal-info-container {
    background-color: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.withdrawal-helper-text {
    color: #4b5563;
    line-height: 1.5;
}

.withdrawal-helper-text strong {
    color: #374151;
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
}

/* Fee Breakdown Styling */
.fee-breakdown {
    margin-top: 8px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eaeaea;
}

.fee-row:last-child {
    border-bottom: none;
}

.fee-label {
    color: #4b5563;
}

.fee-value {
    font-weight: 500;
    color: #374151;
}

.total-row {
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid #d1d5db;
    border-bottom: none;
}

.total-row .fee-label,
.total-row .fee-value {
    color: #111827;
    font-weight: 600;
}

.total-min-value {
    color: #1e40af;
}

/* Error message styling */
.error-message {
    color: #d32f2f;
    background-color: #ffebee;
    border-left: 4px solid #d32f2f;
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 4px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.error-message.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% {transform: translateX(0);}
    10%, 30%, 50%, 70%, 90% {transform: translateX(-10px);}
    20%, 40%, 60%, 80% {transform: translateX(10px);}
}

/* Input with error */
.input-error {
    border-color: #d32f2f !important;
    box-shadow: 0 0 0 1px #d32f2f !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .withdrawal-info-container {
        padding: 12px;
    }

    .fee-row {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .error-message {
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .error-message {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .withdrawal-helper-text strong {
        font-size: 0.95rem;
    }

    .fee-label, .fee-value {
        font-size: 0.9rem;
    }
}


/* Styles for error container */
.error-container {
    background-color: #f8d7da; /* Light red background */
    color: #721c24; /* Dark red text */
    border: 1px solid #f5c6cb; /* Red border */
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 16px;
    text-align: center;
    display: none; /* Initially hidden */
    animation: fadeInDown 0.5s ease-out;
}

/* Info message styling - used for withdrawal information */
.error-container.info-message {
    background-color: #e2f0fd; /* Light blue background */
    color: #0c5460; /* Dark blue text */
    border-color: #bee5eb; /* Blue border */
}

/* Fee information styling inside info message */
.fee-label {
    display: inline-block;
    width: 150px;
    color: #495057;
    text-align: left;
    font-size: 0.9em;
}

.fee-value {
    font-weight: 500;
    color: #000;
}

.total-min, .total-min-value {
    color: #0056b3;
}

/* Animation for smooth appearance from top */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shake effect for error messages */
.error-container.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

/* Updated styles for error container and messages */

/* Main error container - shared for both errors and info messages */
.error-container {
    background-color: #f8d7da; /* Default error background (light red) */
    color: #721c24; /* Default error text (dark red) */
    border: 1px solid #f5c6cb; /* Default error border */
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: left;
    display: none; /* Hidden by default */
    animation: fadeInDown 0.3s ease-out;
    position: relative;
    width: 100%;
}

/* Info message styling (blue theme) */
.error-container.info-message {
    background-color: #e2f0fd; /* Light blue background */
    color: #0c5460; /* Dark blue text */
    border-color: #bee5eb; /* Blue border */
}

/* Error message within container - no longer needs its own background/border */
.error-container .error-message {
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: none;
    width: 100%;
    display: block;
    text-align: left;
    color: inherit;
}

/* Fee information styling */
.fee-label {
    display: inline-block;
    width: 150px;
    color: #495057;
    text-align: left;
    font-size: 0.9em;
    margin-top: 4px;
}

.fee-value {
    font-weight: 500;
    color: #000;
}

.total-min, .total-min-value {
    color: #0056b3;
}

/* Field-specific error messages - stay in place but are secondary to main errors */
.error-message {
    color: #721c24;
    font-size: 0.9em;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 8px;
    width: 100%;
    text-align: center;
    display: none;
    margin-bottom: 16px;
}

/* Animation for error container appearance */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shake animation for error messages */
.error-container.shake,
.error-message.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

/* Additional style for inputs with errors */
.input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.25) !important;
}

/* Improve spacing and alignment in the form */
.payment-form > div {
    margin-bottom: 16px;
}

/* Make amount container cleaner */
.amount-container {
    margin-bottom: 8px !important;
}

/* Ensure the error container is properly spaced */
#error-container {
    margin-bottom: 20px;
}



