@import 'mixins';

.link-generator-container {
    @include user-select(none);
    @include box-shadow(0 3px 5px #ccc);

    border: 1px solid #ccc;
    background-color: #fff;
    box-sizing: border-box;
    display: block;
    font: {
        family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
        size: 12px;
    }
    line-height: 1;
    width: 400px;
    z-index: 99999;
    padding: 0;
    position: absolute;
    top: 50px;

    &.hide {
        display: none;
    }

    .hide {
        display: none;
    }

    .link-generator-container-header {
        border: {
            bottom: 1px solid #c5c5c5;
        }
        color: #333;
        font: {
            family: inherit;
            size: 16px;
            weight: bold;
        }
        height: 38px;
        line-height: 22px;
        padding: 8px 15px 8px 10px;
        position: relative;

        .close {
            color: #858585;
            cursor: pointer;
            font: {
                family: inherit;
                size: 22px;
            }
            position: absolute;
            right: 8px;
            top: 6px;
            width: 22px;
            height: 22px;
            text-align: center;

            &:hover {
                color: #5d5d5d;
            }
        }
    }

    .link-generator-container-footer {
        border: {
            top: 1px solid #c5c5c5;
        }
        padding: 10px;
        text-align: right;

        button {
            border-radius: 0;
            cursor: pointer;
            display: inline-block;
            font: {
                family: inherit;
                size: 12px;
            }
            margin: {
                left: 5px;
            }
            padding: 10px 15px;
            transition: background-color 0.3s ease-in-out;

            &.cancel {
                background-color: #f0f0f0;
                color: #333;

                &:hover {
                    background-color: #e0e0e0;
                }
            }

            &.submit {
                background-color: #2d8ac7;
                color: #fff;

                &:hover {
                    background-color: #2d69b9;
                }
            }
        }
    }

    .link-generator-container-content {
        box-sizing: border-box;
        min-height: 200px;
        padding: 20px 10px;

        .link-generator-row {
            &:after {
                clear: both;
                content: '';
                display: block;
                height: 0;
                width: 0;
            }
        }

        .link-generator-col-name {
            box-sizing: border-box;
            color: #0f0f0f;
            font: {
                family: inherit;
                size: 14px;
            }
            float: left;
            height: 30px;
            line-height: 30px;
            width: 113px;
        }
        .link-generator-col-content {
            box-sizing: border-box;
            float: left;
            width: 265px;
        }
    }

    select {
        @include appearance(none);

        background: {
            color: #f0f0f0;
            image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='32' height='24' viewBox='0 0 32 24'><polygon points='0,0 32,0 16,24' style='fill: rgb%28138, 138, 138%29'></polygon></svg>");
            origin: content-box;
            position: right -10px center;
            repeat: no-repeat;
            size: 9px 6px;
        }
        border: 1px solid #ccc;
        border-radius: 0;
        box-sizing: border-box;
        display: block;
        font: {
            family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
            size: 12px;
        }
        height: 30px;
        padding: 3px 14px 3px 6px;
        width: 100%;
    }
    .link-generator {
        &.modules,
        &.items,
        &.confirm {
        }

        &.confirm {
            button {
                @include appearance(none);

                background-color: #84b512;
                border: 1px solid transparent;
                border-radius: 2px;
                color: #fff;
                cursor: pointer;
                display: inline-block;
                font-family: inherit;
                line-height: 1;
                margin: 10px 0 0;
                padding: 6px;
                text-align: center;
                vertical-align: middle;
            }
        }
    }
}

