﻿.l-fs-tpl__topicgroup {
    display: flex;
    align-items: baseline;
    width: 100%;
}

.l-fs-tpl__topicgroup-headline {
    flex: 1 1 auto;
}

.l-fs-tpl__topicgroup-popup-button {
    position: relative;
    background-image: url('/DesktopModules/Lotes/FrequentModules/Icons/50hertz_icons_share.svg');
    background-color: transparent;
    width: 22px;
    height: 22px;
    border: 0;
    cursor: pointer;
}

.l-fs-tpl__topicgroup-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 1px 6px 1px rgba(0, 0, 0, 0.1), 0 2px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: default;
    animation: fadeInMoveDown 0.25s ease-out;
}

.l-fs-tpl__topicgroup-popup.hidden {
    display: none;
    visibility: hidden;
    animation: fadeOut 0.25s;
}

.l-fs-tpl__topicgroup-close-button {
    display: block;
    float: right;
    position: relative;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

.l-fs-tpl__topicgroup-close-button:before {
    position: absolute;
    transform: translate(-50%, -50%);
    content: "\00d7";
    font-size: 52px;
    font-weight: 300;
    line-height: 0;
}

@media (min-width: 520px) {
    .l-fs-tpl__topicgroup-popup {
        position: absolute;
        top: 40px;
        transform: translate(-50%, 0);
        width: 326px;
        border-radius: 4px;
    }

    .l-fs-tpl__topicgroup-popup:before {
        content: '';
        position: absolute;
        width: 0;
        height: 0;
        bottom: 100%;
        left: 50%;
        border: .75rem solid transparent;
        border-top: none;
        border-bottom-color: #fff;
        filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
    }

    .l-fs-tpl__topicgroup-close-button {
        display: none;
    }
}

.l-fs-tpl__topicgroup-popup a,
.l-fs-tpl__topicgroup-popup label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    clear: both;
}

.l-fs-tpl__topicgroup-copy-button {
    position: relative;
    background: #000;
    border: 0;
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 20px;
}

.l-fs-tpl__topicgroup-copy-button:hover {
    background: #333;
}

.l-fs-tpl__topicgroup-copy-button:active {
    outline: none;
}

.l-fs-tpl__topicgroup-copy-button:before,
.l-fs-tpl__topicgroup-copy-button:after {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: -1;
    transition: visibility 0.25s linear 0.25s, opacity 0.25s linear 0.25s;
}

.l-fs-tpl__topicgroup-copy-button:before {
    content: ' ';
    right: -36px;
    width: 22px;
    height: 22px;
    top: calc(50% - 11px); /* 50% of parent - 50% of self */
    border: 2px solid #000;
    border-radius: 16px;
    animation: scaleUp 0.25s ease-in-out 0.25s;
}

.l-fs-tpl__topicgroup-copy-button:after {
    content: '';
    background-image: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z"/></svg>');
    background-size: 12px 12px;
    width: 12px;
    height: 12px;
    top: calc(50% - 6px + 0.5px); /* 50% of parent - 50% of self */
    right: calc(-32px + 1px);
    color: #000;
    font-weight: bold;
}

.l-fs-tpl__topicgroup-copy-button.success:before,
.l-fs-tpl__topicgroup-copy-button.success:after {
    visibility: visible;
    opacity: 1;
    animation: moveInFromLeft 0.25s ease-out 0.25s forwards;
}

@keyframes fadeInMoveDown {
    from {
        opacity: 0;
        top: 20px;
        visibility: hidden;
    }
    to {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes moveInFromLeft {
    from {
        transform: translateX(-30px);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.5);
    }
}