﻿.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(3px);
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.drawer.open {
    transform: translateY(0);
}

.drawer.fullscreen {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
}

body.drawer-open {
    overflow: hidden;
}
/* Хедер панели */
.drawer-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: grab;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.drawer-header:active {
    cursor: grabbing;
}

.drawer-handle {
    box-sizing: border-box;
    width: 40px;
    height: 5px;
    background: #ddd;
    border-radius: 3px;
    margin: 0 auto 15px;
}
.SettingsTitle{
    color: #000;
    font-family: "Onest";
    font-size: 17px;
}
.PopolnitTitle{
    color: #000;
    font-family: "Onest";
    font-size: 20px;
    display: flex;
    justify-content: center;
}
.SettingsTitleDip{
    align-items: center;
    width: 100%;
    display: flex;
    gap: 10px;
}
.SettingsPanel{
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
    align-items: center;
}
.SettingsLeft{
    display: flex;
    flex-direction: column;
}
.SettingsPanelTitle{
    font-family: "Onest";
    font-size: 20px;
}
.SettingsPanelDesc{
    font-family: "Onest";
    color: #656877;
    margin-top: 4px;
}
.SelectSposob{
    padding: 5px;
    background-color: #E2E6EE;
    width: min-content;
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    margin-top: 15px;
    box-sizing: border-box;
}
.radio-button input[type="radio"] {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
}
.radio-text{
    background:none;
    color: #656877;
    padding: 8px 15px;
    border-radius: 100px;
    font-family: "Onest";
    font-size: 14px;
    width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radio-button input[type="radio"]:checked ~ .radio-text {
    background-color: #0075F8;
    color: #ffffff;
}
.SelectedElement{
    width: 100%;
    height: 300px;
}
.EnterButton{
    width: 100%;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Onest";
    font-size: 16px;
    color: #ffffff;
    background-color: #0075F8;
    height: 40px;
    z-index: 99999999;
}
.SelectedStars{
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.CenterIt{
    margin: auto;
    display: flex;
    align-items: end;
}
.inputSetting
{
    background:none;
    border: none;
    font-family: "Onest";
    font-size: 40px;
    padding: 0;
    text-align: end;
    line-height: 1;
    height: 40px;
    width: 2ch;
    box-sizing: content-box;
}
.inputSetting:focus{
    background:none;
    border: none;
    outline: none;
}
.starsText{
    font-family: "Onest";
    color: #656877;
    text-transform: uppercase;
    margin-bottom:2px;
}
.VivodPanel{
    width: 100%;
    height: 350px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.MyContactInfo{
    display: flex;
    text-decoration: none;
    font-family: "Onest";
    padding: 7px 13px;
    background-color: #0075F8;
    color: #ffffff;
    border-radius: 8px;
    font-size: 18px;
}
.textUnderVivodPanel{
    color: #656877;
    margin-top: 7px;
    font-size: 14px;
    font-family: "Onest";
    display: flex;
    justify-content: center;
    text-align: center;
}
.DopInfo{
    display: flex;
    flex-direction: column;
    position: absolute;
    margin: auto;
    top: 180px;
}
.TitleStars{
    color: #000;
    font-size: 16px;
    font-family: "Onest";
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
}
.DescStars{
    color: #656877;
    font-size: 14px;
    font-family: "Onest";
    text-transform: uppercase;
    margin-top: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Popolnit drawer — dark */
#settingsDrawerPopolnit{
    background: #121212;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.45);
}
#settingsDrawerPopolnit .drawer-header{
    border-bottom: none;
}
#settingsDrawerPopolnit .drawer-handle{
    background: #3a3a3a;
}
#settingsDrawerPopolnit .PopolnitTitle{
    color: #fff;
    width: 100%;
    justify-content: flex-start;
    font-weight: 600;
}
#settingsDrawerPopolnit .SelectSposob{
    background: transparent;
    padding: 0;
    gap: 8px;
    border-radius: 0;
}
#settingsDrawerPopolnit .radio-text{
    background: #252525;
    color: #fff;
    border-radius: 10px;
    width: auto;
    flex: 1;
    padding: 10px 8px;
    font-size: 15px;
    font-weight: 500;
}
#settingsDrawerPopolnit .radio-button{
    flex: 1;
    display: flex;
}
#settingsDrawerPopolnit .radio-button input[type="radio"]:checked ~ .radio-text{
    background: #fff;
    color: #111;
}
#settingsDrawerPopolnit .SelectedElement{
    height: auto;
    min-height: 200px;
    margin: 18px 0 16px;
    display: flex;
    align-items: center;
}
#settingsDrawerPopolnit .SelectedStars{
    align-items: center;
    justify-content: center;
}
#settingsDrawerPopolnit .CenterIt{
    align-items: center;
    gap: 8px;
}
#settingsDrawerPopolnit .inputSetting{
    text-align: center;
}
#settingsDrawerPopolnit .EnterButton{
    background: #fff;
    color: #111;
    font-weight: 600;
    height: 48px;
    border-radius: 999px;
}
#settingsDrawerPopolnit .EnterButton.is-gifts-ok{
    background: #252525;
    color: #fff;
}
#settingsDrawerPopolnit .starsText,
#settingsDrawerPopolnit .DescStars{
    color: #868686;
}
#settingsDrawerPopolnit .TitleStars,
#settingsDrawerPopolnit .inputSetting{
    color: #fff;
}

#settingsDrawerPopolnit #gifts.SelectedStars{
    align-items: stretch;
    justify-content: flex-start;
}
.gifts-deposit-steps{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
    padding: 8px 0 4px;
    box-sizing: border-box;
}
.gifts-deposit-step{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    width: 100%;
}
.gifts-deposit-icon{
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #252525;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gifts-deposit-icon img{
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}
.gifts-deposit-text{
    color: #fff;
    font-family: "Onest", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}
.gifts-deposit-text a{
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

/* Vivod drawer — same as popolnit */
#settingsDrawerVivod{
    background: #121212;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.45);
}
#settingsDrawerVivod .drawer-header{
    border-bottom: none;
}
#settingsDrawerVivod .drawer-handle{
    background: #3a3a3a;
}
#settingsDrawerVivod .PopolnitTitle{
    color: #fff;
    width: 100%;
    justify-content: flex-start;
    font-weight: 600;
}
#settingsDrawerVivod .SelectSposob{
    background: transparent;
    padding: 0;
    gap: 8px;
    border-radius: 0;
}
#settingsDrawerVivod .radio-text{
    background: #252525;
    color: #fff;
    border-radius: 10px;
    width: auto;
    flex: 1;
    padding: 10px 8px;
    font-size: 15px;
    font-weight: 500;
}
#settingsDrawerVivod .radio-button{
    flex: 1;
    display: flex;
}
#settingsDrawerVivod .radio-button input[type="radio"]:checked ~ .radio-text{
    background: #fff;
    color: #111;
}
#settingsDrawerVivod .SelectedElement{
    height: auto;
    min-height: 200px;
    margin: 18px 0 16px;
    display: flex;
    align-items: center;
}
#settingsDrawerVivod .SelectedStars{
    align-items: center;
    justify-content: center;
}
#settingsDrawerVivod .CenterIt{
    align-items: center;
    gap: 8px;
}
#settingsDrawerVivod .inputSetting{
    text-align: center;
    color: #fff;
}
#settingsDrawerVivod .EnterButton{
    background: #fff;
    color: #111;
    font-weight: 600;
    height: 48px;
    border-radius: 999px;
}
#settingsDrawerVivod .starsText,
#settingsDrawerVivod .DescStars{
    color: #868686;
}
#settingsDrawerVivod .TitleStars{
    color: #fff;
}
#settingsDrawerVivod #v_gifts.SelectedStars{
    align-items: stretch;
    justify-content: flex-start;
}
#settingsDrawerVivod .vivod-gifts-grid{
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 0;
    padding: 2px;
    box-sizing: border-box;
}
#settingsDrawerVivod .vivod-gifts-grid .podarokItem{
    background-color: #1a1a1a;
    border: 1px solid #2B2B2B;
    cursor: pointer;
}
#settingsDrawerVivod .vivod-gifts-grid .gift_meta{
    background: #141414;
}
#settingsDrawerVivod .gift_vivod_element:checked + .podarokItem{
    border: 2px solid #fff;
}
#settingsDrawerVivod .gift_vivod_element:checked + .podarokItem::before{
    background: rgba(255, 255, 255, 0.06);
}
#settingsDrawerVivod .vivod-gifts-empty{
    width: 100%;
    color: #868686;
    font-family: "Onest", sans-serif;
    font-size: 15px;
    text-align: center;
    padding: 24px 0;
}

#settingsDrawerPopolnit .EnterButton,
#settingsDrawerVivod .EnterButton{
    color: #111 !important;
}

/* Settings drawer — dark */
#settingsDrawer{
    background: #121212;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.45);
}
#settingsDrawer .settings-drawer-header{
    border-bottom: none;
    align-items: stretch;
    padding: 12px 20px 24px;
}
#settingsDrawer .drawer-handle{
    background: #3a3a3a;
}
.settings-drawer-title{
    color: #fff;
    font-family: "Onest", sans-serif;
    font-size: 28px;
    font-weight: 700;
    width: 100%;
    margin-bottom: 18px;
}
.settings-section{
    width: 100%;
    margin-bottom: 22px;
}
.settings-section-label{
    color: #868686;
    font-family: "Onest", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.settings-lang-list{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.settings-lang-btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    background: #252525;
    color: #fff;
    font-family: "Onest", sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}
.settings-lang-btn.active{
    background: #fff;
    color: #111;
}
.settings-lang-flag{
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
}
.settings-lang-btn.active .settings-lang-flag{
    background: rgba(0,0,0,0.06);
}
.settings-links{
    width: 100%;
    background: #1c1c1e;
    border-radius: 18px;
    overflow: hidden;
}
.settings-link{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.settings-link:last-child{
    border-bottom: none;
}
.settings-link-icon{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0075F8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.settings-link-text{
    flex: 1;
    font-family: "Onest", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}
.settings-link-chevron{
    color: #868686;
    font-size: 22px;
    line-height: 1;
}