/**
 * RainbowUp floating tools.
 */

#ru-corner-shell {
    --ru-panel-width: 45px;
    --ru-handle-visible: 2px;

    position: fixed;
    top: 14px;
    left: 0;
    z-index: 2;
    transition: transform 0.46s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

#ru-corner-shell.is-collapsed {
    transform: translateX(
        calc(-1 * (var(--ru-panel-width) - var(--ru-handle-visible)))
    );
}

#ru-corner-tools {
    position: relative;
    width: var(--ru-panel-width);
    padding: 14px 8px 10px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #d0ced0;
    border-radius: 0 12px 12px 0;
    box-sizing: border-box;
}

#ru-panel-toggle {
    position: absolute;
    top: 10px;
    right: -22px;
    width: 24px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #565656;
    background: #d0ced0;
    border: 0;
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.14);
    cursor: pointer;
}

#ru-panel-toggle svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: transform 0.46s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#ru-corner-shell.is-collapsed #ru-panel-toggle svg {
    transform: rotate(0deg);
}

#ru-corner-shell:not(.is-collapsed) #ru-panel-toggle svg {
    transform: rotate(180deg);
}

#ru-corner-tools .ru-tool {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #777;
    background: transparent;
    border: 0;
    border-radius: 8px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

#ru-corner-tools .ru-tool:hover,
#ru-corner-tools .ru-tool:focus {
    color: #4d4d4d;
    background: rgba(255, 255, 255, 0.45);
}

#ru-corner-tools .ru-tool svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

#ru-corner-tools .ru-lang svg {
    width: 20px;
    height: 20px;
}

.ru-lang-list {
    position: absolute;
    top: 106px;
    left: calc(var(--ru-panel-width) + 8px);
    min-width: 115px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	z-index:1000;
}

.ru-lang-list li {
    margin: 0 0 6px;
}

.ru-lang-list li:last-child {
    margin-bottom: 0;
}

.ru-lang-list li.is-active a {
    font-weight: 700;
}

.ru-lang-list a {
    color: #767676;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ru-lang-list a:hover,
.ru-lang-list a:focus {
    color: #4f4f4f;
}

.ru-modal[hidden] {
    display: none;
}

.ru-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.ru-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 8, 44, 0.52);
    backdrop-filter: blur(2px);
}

.ru-modal-dialog {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 70px auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(68, 13, 204, 0.18);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(68, 13, 204, 0.3);
}

.ru-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    padding: 0;
    color: #440dcc;
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.ru-modal-rainbow {
    height: 7px;
    background: linear-gradient(
        90deg,
        #e40303 0%,
        #ff8c00 20%,
        #ffed00 40%,
        #008026 60%,
        #004dff 80%,
        #750787 100%
    );
}

.ru-modal-header {
    padding: 18px 22px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ru-modal-badge {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #440dcc;
    border-radius: 10px;
    font-weight: 800;
}

.ru-modal-header h2 {
    margin: 0;
    color: #440dcc;
    font-size: 42px;
    line-height: 1.05;
}

.ru-modal-content {
    padding: 6px 22px 24px;
    color: #2e2a38;
}

.ru-modal-content p {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.45;
}

.ru-modal-content .ru-highlight {
    color: #440dcc;
    font-size: 19px;
}

.ru-eu-logo-wrap {
    margin: 6px 0 14px;
}

.ru-eu-logo {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 6px;
}

@media screen and (max-width: 767px) {
    #ru-corner-shell {
        --ru-panel-width: 45px;
        --ru-handle-visible: 2px;

        top: 10px;
    }

    #ru-corner-tools {
        padding: 12px 6px 8px;
        gap: 8px;
    }

    #ru-corner-tools .ru-tool {
        width: 28px;
        height: 28px;
    }

    #ru-corner-tools .ru-tool svg {
        width: 20px;
        height: 20px;
    }

    .ru-lang-list {
        top: 92px;
        min-width: 102px;
    }

    .ru-modal-dialog {
        margin: 30px 15px;
    }

    .ru-modal-header h2 {
        font-size: 34px;
    }
}