/*!
 * Copyright (c) 2014-present Cliqz GmbH. All rights reserved.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
 */

body,
html {
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
}

body {
    overflow-y: hidden;
    overflow-x: auto;
}

#video-downloader {
    width: 270px;
    font: small-caption;
    font-weight: normal;
    font-size: 14.6px;
    line-height: 22px;
    color: #414141;
    overflow: hidden;
    -moz-user-select: none;

    h3 {
        margin-left: 13px;
        margin-top: 13px;
        font-size: 16px;
        font-weight: 500;
    }

    ul#download-links {
        margin-bottom: 7px;
        padding: 0;
        list-style: none;

        & > li {
            position: relative;

            input[type="radio"] {
                position: absolute;
                top: 9px;
                left: 18px;
            }

            & > label {
                display: block;
                margin: 0;
                color: #000;
                padding-left: 58px;
                cursor: pointer;
                width: calc(100% - 64px);
                height: 32px;
                line-height: 32px;

                span.video-size {
                    font-size: 11px;
                    color: #9B9B9B;
                }

                &.video {
                    background: url('../images/video.svg') no-repeat 38px center;
                }

                &.audio {
                    background: url('../images/audio.svg') no-repeat 38px center;
                }
            }

            &:hover {
                border-right: 10px solid transparent;
                background-color: #EDEDED;

                & > label {
                    color: #00AEF0;
                }
            }
        }
    }

    .preloader {
        text-align: center;
        width: 100%;
        min-height: 80px;
    }

    #unsupported-format {
        padding: 0 13px 20px;
    }

    .vd-tabs {
        display: flex;
        list-style: none;
        border-top: 1px solid #EDEDED;
        margin-top: 17px;

        .vd-tab-button {
            flex-grow: 1;
            display: inline-block;
            padding: 8px 0 8px 19px;
            cursor: pointer;
            text-align: left;
            font-size: 14px;

            &:not(.active) {
                background-color: #EDEDED;
                box-shadow: inset 2px -2px 2px 0px rgba(0,0,0,0.06);
            }
        }
    }

    #vd-tab-content {
        position: relative;
        padding-top: 10px;
        padding-bottom: 4px;

        .link-button {
            margin: 5px 5px 5px 10px;
            padding: 8px 10px;
            border: none;
            border-radius: 3px;
            display: inline-block;
            outline: 0;
            vertical-align: middle;
            overflow: hidden;
            text-decoration: none;
            color: #fff;
            background-color: #00AEF0;
            text-align: center;
            cursor: pointer;
            white-space: nowrap;
            -moz-user-select: none;

            &:hover {
                background-color: #0078CA;
            }
        }

        #download-links {
            display: block;
        }
    }
}
