/* ============================
   SCOTT STUDIO Download Plugin
   Frontend Styles
   ============================ */

.scottstudio-download {
    margin: .4em 0;
}

.scottstudio-download .get-it {
    width: 120px;
    cursor: default;
    display: flex;
    -moz-column-gap: 6px;
    column-gap: 6px;
}

.scottstudio-download .get-it.has-multiple-links {
    width: 166px;
}

.scottstudio-download .get-it .main {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17.5px;
    padding: 5px 1em;
    background: var(--primary-opacity-2) linear-gradient(var(--white-opacity-0) 65%, var(--white-opacity-7));
    box-shadow: 0 0 0 1px var(--white-default) inset, 0 8px 10px var(--primary-opacity-1), 0 8px 10px var(--primary-opacity-1), 0 0 5px var(--primary-opacity-2);
    border-radius: 9em;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: .25s;
    overflow: hidden;
    text-decoration: none;
}

.scottstudio-download .get-it .main:before {
    content: "";
    display: block;
    margin: 0 .7em;
    height: 50%;
    box-shadow: 0 1px var(--white-default) inset;
    background: linear-gradient(var(--white-default), var(--white-opacity-3));
    border-radius: 9em;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
}

.scottstudio-download .get-it .main .inner-text {
    opacity: .99;
}

.scottstudio-download .get-it .more {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 39px;
    background: var(--primary-opacity-2) linear-gradient(var(--white-opacity-0) 65%, var(--white-opacity-7));
    box-shadow: 0 0 0 1px var(--white-default) inset, 0 8px 10px var(--primary-opacity-1), 0 8px 10px var(--primary-opacity-1), 0 0 5px var(--primary-opacity-2);
    border-radius: 9em;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: .25s;
    overflow: hidden;
}

.scottstudio-download .get-it .more:before {
    content: "";
    display: block;
    margin: 0 .6em;
    height: 48%;
    box-shadow: 0 1px var(--white-default) inset;
    background: linear-gradient(var(--white-default), var(--white-opacity-2));
    border-radius: 9em;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
}

.scottstudio-download .get-it .main:hover,
.scottstudio-download .get-it .more:hover {
    background-color: var(--primary-opacity-3);
    box-shadow: 0 0 0 1px var(--white-default) inset, 0 8px 10px var(--primary-opacity-1), 0 8px 10px var(--primary-opacity-3), 0 0 5px var(--primary-opacity-2);
}

.scottstudio-download .get-it .arrow {
    fill: var(--primary-color);
    filter: drop-shadow(0 2px 1px var(--primary-opacity-3));
    animation: scottstudio-download-arrow-animation .5s infinite alternate;
}

/* 对齐 */
.scottstudio-download.align-left .get-it {
    margin-right: auto;
}

.scottstudio-download.align-center .get-it {
    margin-left: auto;
    margin-right: auto;
}

.scottstudio-download.align-right .get-it {
    margin-left: auto;
}

/* 多链接下拉菜单 */
.scottstudio-download .get-it .more {
    position: relative;
}

.scottstudio-download .get-it .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: var(--white-default, #fff);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    padding: 6px 0;
    min-width: 140px;
    z-index: 10;
}

.scottstudio-download .get-it .more:focus-within .dropdown-menu,
.scottstudio-download .get-it .dropdown-menu.show {
    display: block;
}

.scottstudio-download .get-it .dropdown-menu a {
    display: block;
    padding: 6px 16px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    transition: .15s;
}

.scottstudio-download .get-it .dropdown-menu a:hover {
    background: var(--primary-opacity-1, rgba(0,0,0,.04));
}

@keyframes scottstudio-download-arrow-animation {
    0% {
        transform: translateY(-4px);
        opacity: .5;
    }
    to {
        transform: translateY(2px);
        opacity: 1;
    }
}
