/* === БЛОКИ СТРАНИЦЫ === */
body.modal-open {
    overflow: hidden;
}

/* === МОДАЛЬНОЕ ОКНО === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* затемнение */
}

.modal-window {
    position: relative;
    z-index: 1000;
    background: #fff;
    width: 400px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* === ТАБЫ === */
.tabs {
    display: flex;
    margin-bottom: 10px;
    background-color: #ddd;
}

.tab {
    flex: 1;
    margin: 3px;
    padding: 10px;
    background: #ddd;
    color: #000;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.tab.active {
    background: white;
    color: black;
}

/* === КОНТЕНТ === */
.content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    visibility: hidden;
    position: absolute;
}

.content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    position: relative;
}

/* === КНОПКИ === */
.btns div {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    background: #ddd;
    cursor: pointer;
}

.show-button,
.value-display,
.number-display {
    min-width: 100px;
    text-align: center;
    border: 1px solid black;
    padding: 5px 10px;
}

.show-button {
    font-size: 15px;
    color: #fff;
    background-color: #000;
    width: auto;
    height: auto;
    cursor: pointer;
    padding: 10px 15px;
}

.show-button:hover {
    background-color: #222;
}

.back-button,
.thank-button {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    color: #fff;
    background-color: #000;
    width: 50%;
    height: auto;
    cursor: pointer;
    padding: 10px 15px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
}

/* === КОНТЕЙНЕР РАЗМЕРОВ === */
.size_container {
    display: flex;
    align-items: center;
    gap: 3px;
    width: 100%;
    font-size: 20px;
}

.size_title {
    font-size: 18px;
    display: flex;
    justify-content: center;
    margin: 10px auto 20px;
}

.value-display {
    border: 1px solid #ccc;
    pointer-events: none;
    user-select: none;
}

.number-display {
    border: none;
    font-size: 50px;
}

.number-displaymin {
    border: none;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.3);
}

.size_btn {
    cursor: pointer;
}

/* === ИЗОБРАЖЕНИЯ === */
.red_img,
.green_img {
    width: 100%;
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.red_img {
    background-image: url('/local/templates/rupor/components/bitrix/catalog.element/custom/ringsize.png');
}

.green_img {
    background-image: url('/local/templates/rupor/components/bitrix/catalog.element/custom/fingersize.png');
}

.red__img_hid {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 200px;
    background-image: url('/local/templates/rupor/components/bitrix/catalog.element/custom/ringsize2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    align-items: center;
    justify-content: center;
}

/* === ПРОЧЕЕ === */
.txt_red {
    font-weight: 100;
    font-size: 14px;
}

button, .modal-overlay, .content, .tab, .close-button {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
