.popup {
    max-height: 80vh;
    width: 100%;
    max-width: 400px;
    min-width: min(100%, 300px);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(34, 34, 34);
    border: 1px solid rgb(50, 50, 50);
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.popup-big {
    max-width: 800px;
    min-width: min(100%, 600px);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 199;
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 5px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.popup-row-centered {
    justify-content: center !important;
    align-items: center !important;
}

/* элементы попапов */
.popup-box {
    width: 100%;
    height: auto; 
    display: flex;
    justify-content: safe center;
    align-items: safe center;
    box-sizing: border-box;
}

.popup-box-row {
    flex-direction: row;
}

.popup-box-column {
    flex-direction: column;
}

.popup-box-main {
    padding: 14px;
    border-top: 1px solid rgb(50, 50, 50);
    background-color: rgb(40, 40, 40);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.popup-box--with-content {
    margin-top: 4px;
    margin-bottom: 4px;
}

.popup-box-allow-wrap {
    flex-wrap: wrap;
}

.popup-box-lefthanded-row {
    align-items: flex-start;
    justify-content: flex-start !important;
    justify-content: left;
}

.popup-row-reversed {
    flex-direction: row-reverse;
}

.popup-horizontal-divider {
    width: 100%;
    height: 1px;
    background-color: rgb(50, 50, 50);
    margin-left: 14px;
}

.popup-title {
    font-family: 'Open Sans', sans-serif;
    color: rgb(200, 200, 200);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: none;
}

.popup-section-title {
    font-family: 'Open Sans', sans-serif;
    color: rgb(200, 200, 200);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: none;
}