/* ============ WITHDRAW PAGE WIDGET ============ */

.withdraw-widget-wrap {
    display: flex;
    justify-content: flex-end;
}

.withdraw-widget {
    width: 100%;
    max-width: 460px;
    flex-shrink: 0;
    min-height: 320px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(7, 11, 18, 0.08);
    border: 1px solid #e2e2e2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.withdraw-widget > .withdraw-widget__success {
    width: 100%;
}

.withdraw-widget__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.withdraw-widget__field {
    position: relative;
}

.withdraw-widget__field label {
    display: block;
    font-size: 13px;
    color: #7d888b;
    margin-bottom: 6px;
}

.withdraw-widget__field select,
.withdraw-widget__field input[type="text"] {
    width: 100%;
    border: 1px solid #dfdfdf;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #070b12;
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
}

.withdraw-widget__field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237d888b' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.withdraw-widget__field select:disabled {
    background-color: #f7f7f7;
    color: #a0a8aa;
    cursor: default;
}

.withdraw-widget__field select:focus,
.withdraw-widget__field input:focus {
    border-color: #007963;
}

/* --- Строка "label + диапазон суммы" --- */
.withdraw-widget__field-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
}

.withdraw-widget__field-label-row label {
    margin-bottom: 0;
}

.withdraw-widget__amount-range {
    font-size: 12px;
    color: #a0a8aa;
    white-space: nowrap;
}

/* --- Строка суммы + валюта --- */
.withdraw-widget__amount-row {
    display: flex;
    align-items: center;
    border: 1px solid #dfdfdf;
    border-radius: 10px;
    padding: 6px 6px 6px 14px;
    gap: 8px;
    transition: border-color 0.15s ease;
}

.withdraw-widget__field input::placeholder {
    color: #a0a8aa;
    opacity: 1;
}

.withdraw-widget__field input::-webkit-input-placeholder {
    color: #a0a8aa;
}

.withdraw-widget__field input::-moz-placeholder {
    color: #a0a8aa;
    opacity: 1;
}

.withdraw-widget__amount-row:focus-within {
    border-color: #007963;
}

.withdraw-widget__amount-row input {
    border: none !important;
    padding: 6px 0 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.withdraw-widget__currency-native-select {
    border: none;
    background: #f2f2f2;
    border-radius: 20px;
    padding: 8px 30px 8px 14px;
    font-weight: 700;
    font-size: 14px;
    color: #070b12;
    cursor: pointer;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    width: auto !important;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237d888b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    outline: none;
}

.withdraw-widget__currency-native-select:hover {
    background-color: #e9e9e9;
}

.withdraw-widget__amount-error,
.withdraw-widget__contact-error {
    font-size: 13px;
    color: #e8483c;
    margin-top: 6px;
    font-weight: 600;
}

/* --- Кнопка и подсказка --- */
.withdraw-widget__submit {
    background: #007963;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.withdraw-widget__submit:hover {
    background: #008c52;
}

.withdraw-widget__submit:active {
    transform: scale(0.98);
}

.withdraw-widget__submit:disabled {
    background: #cddbd7;
    cursor: default;
}

.withdraw-widget__hint {
    font-size: 12px;
    color: #a0a8aa;
    line-height: 1.5;
    text-align: center;
}

.withdraw-widget__hint a {
    color: #007963;
}

/* --- Экран успеха --- */
.withdraw-widget__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 318px;
    padding: 40px;
    box-sizing: border-box;
}

.withdraw-widget__success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #007963;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    flex-shrink: 0;
}

.withdraw-widget__success-icon svg {
    width: 32px;
    height: 32px;
}

.withdraw-widget__success-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: #070b12;
    margin: 0 0 4px;
}

.withdraw-widget__success-text {
    max-width: 340px;
    margin: 0 auto;
    color: #7d888b;
    font-size: 14px;
    line-height: 1.5;
}

/* ============ ЛЭЙАУТ ШАПКИ СТРАНИЦЫ /withdraw ============ */

.cash-main--withdraw-layout .cash-main__inner {
    position: relative !important;
    min-height: 0 !important;
    padding: 40px 0 !important;
    margin: 0 !important;
    width: auto !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
}

.cash-main--withdraw-layout .main__col {
    flex: 1 1 380px;
    position: relative;
    z-index: 2;
}

.cash-main--withdraw-layout .withdraw-widget-wrap {
    flex: 0 0 460px;
    width: 460px;
    max-width: 100%;
    margin: 0 0 0 auto;
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {
    .cash-main--withdraw-layout .cash-main__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cash-main--withdraw-layout .withdraw-widget-wrap {
        width: 100%;
        max-width: 460px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .withdraw-widget {
        padding: 18px;
        border-radius: 14px;
    }
}

/* --- Мобильная адаптация формы --- */
@media (max-width: 480px) {
    .withdraw-widget__amount-row {
        flex-wrap: nowrap;
    }

    .withdraw-widget__amount-row input {
        font-size: 15px;
    }

    .withdraw-widget__currency-native-select {
        padding: 8px 26px 8px 10px;
        font-size: 13px;
        background-position: right 8px center;
    }

    .withdraw-widget__field-label-row {
        flex-wrap: wrap;
    }

    .withdraw-widget__amount-range {
        font-size: 11px;
    }
}

/* ===== ЖЁСТКИЙ ФИКС БОЛЬШОГО ОТСТУПА НА МОБИЛКЕ ===== */
@media (max-width: 991px) {
    .cash-main--withdraw-layout,
    .cash-main--withdraw-layout .cash-main,
    .cash-main--withdraw-layout .cash-main__inner {
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
    }

    .cash-main--withdraw-layout .cash-main__inner {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        align-content: flex-start !important;
        gap: 16px !important;
        padding: 16px 0 !important;
        margin: 0 !important;
    }

    .cash-main--withdraw-layout .main__col {
        flex: none !important;
        margin: 0 0 0 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
        height: auto !important;
    }

    .cash-main--withdraw-layout .main__col > *:last-child {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .cash-main--withdraw-layout .withdraw-widget-wrap {
        flex: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 460px !important;
    }

    .cash-main--withdraw-layout .withdraw-widget {
        margin-top: 0 !important;
    }
    
    /* Хлебные крошки на мобиле */
@media (max-width: 576px) {
    .breadcrumbs {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 12px !important;
        padding: 0 !important;
    }

    .breadcrumbs li {
        margin-bottom: 2px;
    }

    .breadcrumbs li a {
        white-space: normal;
    }

    /* Уменьшаем отступ после крошек до заголовка */
    .cash-main--withdraw-layout .cash-main__inner {
        padding-top: 8px !important;
    }

    .cash-main--withdraw-layout .main__col .h1 {
        margin-top: 8px !important;
    }
}
}