﻿
/* widget */
.interaction-widget-draggable {
    position: fixed;
    z-index: 9999;
    display: block;
    bottom: calc(1rem + 4px + 1rem);
    left: 1rem;
    cursor: move;
    user-select: none;
}

    .interaction-widget-draggable.right {
        left: auto;
        right: 1rem;
    }

        .interaction-widget-draggable.right .widget-tooltips {
            transform-origin: right bottom;
            left: auto;
            right: 1.3333333333rem;
        }

    .interaction-widget-draggable .widget-container > a {
        position: relative;
        z-index: 3;
    }

    .interaction-widget-draggable .widget-tooltips {
        position: absolute;
        z-index: 2;
    }

    .interaction-widget-draggable.top-right, .interaction-widget-draggable.bottom-right, .interaction-widget-draggable.top-left, .interaction-widget-draggable.bottom-left {
        left: auto;
        right: auto;
        bottom: auto;
    }

        .interaction-widget-draggable.top-right .widget-tooltips, .interaction-widget-draggable.bottom-right .widget-tooltips {
            transform-origin: right bottom;
            left: auto;
            right: 1.3333333333rem;
        }

        .interaction-widget-draggable.top-left .widget-tooltips, .interaction-widget-draggable.top-right .widget-tooltips {
            transform-origin: right top;
            bottom: auto;
            top: 1.3333333333rem;
        }

        .interaction-widget-draggable.top-left .widget-tooltips, .interaction-widget-draggable.bottom-left .widget-tooltips {
            left: 1.3333333333rem;
        }

        .interaction-widget-draggable.top-left .widget-tooltips {
            transform-origin: left top;
        }

.interaction-widget-fixed {
    position: fixed;
    z-index: 9999;
    display: block;
    bottom: calc(1rem + 4px + 1rem);
    left: 1rem;
}

    .interaction-widget-fixed.right {
        left: auto;
        right: 1rem;
    }

        .interaction-widget-fixed.right .widget-container > a {
            right: 0;
        }

        .interaction-widget-fixed.right .widget-tooltips {
            transform-origin: right bottom;
            left: auto;
            right: 1.3333333333rem;
        }

    .interaction-widget-fixed .widget-container > a {
        position: absolute;
        z-index: 2;
        bottom: 0;
    }

@media only screen and (max-width: calc(1200px - 1px)) and (orientation: landscape) {
    .interaction-widget-fixed {
        bottom: 0.5rem;
        left: 0.5rem;
    }

        .interaction-widget-fixed.right {
            left: auto;
            right: 0.5rem;
        }
}

.widget-container {
    position: relative;
    z-index: 2;
}

    .widget-container > a {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem;
        width: 4rem;
        height: 4rem;
        background: #fff;
        font-size: 1.625em;
        line-height: 1.2em;
        -webkit-border-radius: 100%;
        -moz-border-radius: 100%;
        border-radius: 100%;
        -webkit-transition: all 0.25s ease-in-out;
        -moz-transition: all 0.25s ease-in-out;
        -ms-transition: all 0.25s ease-in-out;
        -o-transition: all 0.25s ease-in-out;
        transition: all 0.25s ease-in-out;
    }

        .widget-container > a[data-widget-toggle=channel] {
            opacity: 0.5;
        }

            .widget-container > a[data-widget-toggle=channel]:hover {
                opacity: 1;
            }

        .widget-container > a > div {
            display: flex;
            justify-content: center;
            align-items: center;
        }

            .widget-container > a > div:last-child {
                position: absolute;
                z-index: 1;
                opacity: 0;
                top: 50%;
                left: 50%;
                -moz-transform: translate(-50%, -50%) rotate(135deg);
                -o-transform: translate(-50%, -50%) rotate(135deg);
                -ms-transform: translate(-50%, -50%) rotate(135deg);
                -webkit-transform: translate(-50%, -50%) rotate(135deg);
                transform: translate(-50%, -50%) rotate(135deg);
            }

        .widget-container > a.active {
            -ms-transform: rotate(-135deg);
            -webkit-transform: rotate(-135deg);
            transform: rotate(-135deg);
            font-size: 1.375em;
            line-height: 1.2em;
            width: 3rem;
            height: 3rem;
        }

            .widget-container > a.active[data-widget-toggle=channel] {
                opacity: 1;
            }

            .widget-container > a.active > div:first-child {
                opacity: 0;
            }

            .widget-container > a.active > div:last-child {
                opacity: 1;
            }

@media only screen and (max-width: calc(1024px - 1px)) {
    .widget-container > a {
        font-size: 1.375em;
        line-height: 1.2em;
        width: 3rem;
        height: 3rem;
    }

        .widget-container > a:hover {
            color: inherit;
        }

        .widget-container > a.active {
            width: 2.5rem;
            height: 2.5rem;
        }
}

@media only screen and (max-width: calc(1200px - 1px)) and (orientation: landscape) {
    .widget-container > a {
        font-size: 1.25em;
        line-height: 1.2em;
        width: 2.5rem;
        height: 2.5rem;
    }

        .widget-container > a:hover {
            color: inherit;
        }

        .widget-container > a.active {
            width: 2rem;
            height: 2rem;
        }
}

.widget-tooltips {
    position: relative;
    z-index: 1;
    bottom: 1.3333333333rem;
    left: 1.3333333333rem;
    display: flex;
    flex-direction: column;
    max-width: 15rem;
    background: #fff;
    -webkit-border-radius: 0.5rem;
    -moz-border-radius: 0.5rem;
    border-radius: 0.5rem;
    text-align: center;
    padding: 1rem;
    transform: scale(0, 0);
    transform-origin: left bottom;
    width: 0;
    height: 0;
    -webkit-box-shadow: 5px -2px 30px 5px rgba(33, 44, 66, 0.8);
    -moz-box-shadow: 5px -2px 30px 5px rgba(33, 44, 66, 0.8);
    box-shadow: 5px -2px 30px 5px rgba(33, 44, 66, 0.8);
    -webkit-transition: all 0s ease-in-out;
    -moz-transition: all 0s ease-in-out;
    -ms-transition: all 0s ease-in-out;
    -o-transition: all 0s ease-in-out;
    transition: all 0s ease-in-out;
}

    .widget-tooltips.active {
        transform: scale(1, 1);
        width: auto;
        height: auto;
        -webkit-transition: all 0.25s ease-in-out;
        -moz-transition: all 0.25s ease-in-out;
        -ms-transition: all 0.25s ease-in-out;
        -o-transition: all 0.25s ease-in-out;
        transition: all 0.25s ease-in-out;
    }

@media only screen and (max-width: calc(1024px - 1px)) {
    .widget-tooltips {
        margin: 0 0 0 0.6666666667rem;
        padding: 0.5rem;
    }
}

.widget-tooltips ul {
    width: 100%;
    min-width: 10rem;
    padding: 0.5rem;
}

    .widget-tooltips ul li > a {
        display: block;
        border: 1px solid white;
        margin: 0.5rem auto;
        padding: 0.5rem;
        width: 100%;
        -webkit-border-radius: 0.5rem;
        -moz-border-radius: 0.5rem;
        border-radius: 0.5rem;
    }

        .widget-tooltips ul li > a.selected {
            background: white;
            color: #00101d;
        }

.tooltips-qr {
    position: relative;
    z-index: 2;
    display: block;
    padding: 0.5rem 0.5rem 1rem;
}

.tooltips-img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: auto;
    padding: 0.5rem 1rem;
}

    .tooltips-img img {
        width: 100%;
        height: auto;
        background: white;
        padding: 0.5rem;
        display: block;
    }

@media only screen and (max-width: calc(1200px - 1px)) and (orientation: landscape) {
    .tooltips-img {
        padding: 0.125rem 0.5rem;
    }

        .tooltips-img img {
            margin: 0 auto;
            max-width: 20vh;
            padding: 0.125rem;
        }
}
