/* -------------------------------------------
    1. Customize Preview
    2. Alpha Mini Logo
    3. Admin menu's links
---------------------------------------------- */

// 1. Customize Preview
.customize-partial-edit-shortcut button,
.widget .customize-partial-edit-shortcut button {
    display: none;
}

.alpha-tooltip {
    padding: 5px 10px;
    white-space: nowrap;
    border-radius: 20px;
    background-color: rgba(#fd7800, 0.7);
    color: var(--alpha-white-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: background .3s;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);

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

    >a::#{$before} {
        content: '\f303';
        margin-#{$right}: 8px;
        font-family: 'Font Awesome 5 Free';
        font-size: 11px;
        font-weight: 600;
    }

    &.tooltip-inner {
        max-width: none;
        padding: 0 !important;

        >a {
            display: inline-block;
            padding: 8px 22px;
        }
    }
}

.alpha-tooltip-initialized {
    &.alpha-tooltip-active {
        outline: 2px dotted #fd7800;
        outline-offset: 5px;
    }
}

// 2. Alpha Mini Logo
span.dashicons-alpha-logo:before,
.alpha-mini-logo:before {
    content: '';
    display: inline-block;
    background-image: url(../images/mini-logo-white.png);
    background-size: cover;
    width: 20px;
    height: 20px;
    padding: 2px;
    background-size: 24px;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: content-box;
}

#wp-admin-bar-alpha .custom-mini-logo img {
    width: 20px;
    height: 20px;
    padding: 2px;
}

#wp-admin-bar-alpha-activate .ab-icon.dashicons-admin-network {
    margin-top: 3px;
}

#wp-admin-bar-alpha {
    >a {
        background: linear-gradient(to right, #f66f2a, #ec6269) !important;
        background-size: contain !important;
    }

    &:hover>a.ab-item,
    &.hover>a.ab-item,
    &:hover span.ab-label,
    &.hover span.ab-label,
    & a:focus span.ab-label {
        color: #fff !important;
    }
}

.mejs-container {
    .mejs-controls {
        height: 38px;
    }

    .mejs-button,
    .mejs-time-rail {
        height: inherit;
    }

    .mejs-time {
        padding-top: 14px;
    }
}

// 3. Admin menu's links
#wp-admin-bar-edit-default li .ab-item {
    display: flex;
    width: 200px;
}

#wp-admin-bar-edit-default .alpha-ab-template-type {
    margin-#{$left}: auto;
    background: #55595c;
    font-size: 11px;
    line-height: 9px;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 3px;
    text-transform: capitalize;
    letter-spacing: 0.05em;
}

.comment-form-cookies-consent input[type="checkbox"]+label {
    display: inline;
    vertical-align: middle;
    line-height: 24px;
    margin-#{$left}: .5rem;

    &::before {
        transform: none;
        top: 3px;
    }
}