.social-share {
    display: flex;
    gap: 0.5em;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.single-post .social-share {
    justify-content: flex-start;
}

.share-label .svg-icon {
    transform: translate(-4px, 4px);
}

.social-share a {
    text-decoration: none;
}

.social-share .share-on:active {
    background-color: var(--wp--preset--color--link-hover);
    color: #fff;
}

.share-on {
    background: var(--wp--preset--color--light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}

.copy-url {
    color: var(--wp--preset--color--link-hover);
    cursor: pointer;
}

.copy-url input {
    position: absolute;
    left: -9999px;
}

.share-course .pdf-generator {
    display: inline-block;
    margin-bottom: 0;
    width: auto;
}

.share-course .social-share {
    display: inline-block;
    margin: 0;
    padding: 0;
    width: auto;
}

.social-share.has-modal .modal-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2em;
    padding: 0;
    width: 2em;
}

.social-share.has-modal .share-bar {
    display: none;
}

.social-share.has-modal .share-bar.open {
    display: block;
}

.social-share.has-modal:has(.open) {
    position: relative;
}

.social-share.has-modal .share-bar.open .modal-content {
    background-color: #dbd7d5;
    border-radius: 4px;
    height: auto;
    padding-top: 2px;
	position: absolute;
	right: 0;
    top: calc(100% + 0.5em);
    text-align: center;
    width: 230px;
	z-index: 10;
}

.modal-content::after {
    border-color: transparent transparent #dbd7d5 transparent;
    border-style: solid;
    border-width: 5px;
    content: "";
    position: absolute;
    bottom: 100%;
    right: 10px;
}

.social-share.has-modal .share-bar .modal-content .share-on {
    background-color: transparent;
}

.social-share.has-modal .share-bar.open .modal-content .share-on:not(:last-child) {
    margin-right: 3px;
}

.social-share.has-modal .share-bar.open .modal-content > span:first-child {
    display: inline-block;
    line-height: 32px;
    padding-left: 2px;
    padding-right: 2px;
    vertical-align: top;
}

.tax-ta_courses_audience .social-share,
.tax-ta_courses_category .social-share,
.tax-ta_courses_requirement .social-share,
.tax-ta_courses_topic .social-share {
    margin-top: 1.5em;
}

/* Tooltip */

a:has(.tooltip),
button:has(.tooltip) {
    position: relative;
}

.tooltip {
    background-color: var(--wp--preset--color--default);
    border-radius: 0.25em;
    color: #fff;
    font-weight: 400;
    position: absolute;
    top: 125%;
    left: 0;
    line-height: 1.2;
    opacity: 0;
    padding: 0.25em 0;
    text-align: center;
    transition: opacity 0.3s;
    visibility: hidden;
    width: 6.8em;
    z-index: 1;
}

.tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent var(--wp--preset--color--default) transparent;
}

a:has(.tooltip):hover .tooltip,
a:has(.tooltip):focus .tooltip,
button:has(.tooltip):hover .tooltip,
button:has(.tooltip):focus .tooltip {
    visibility: visible;
    opacity: 1;
}

.pdf-generator .tooltip,
.share-on .tooltip {
    transform: translateX(calc(-50% + 16px));
}

.pdf-generator .tooltip {
    width: 10em;
}

.social-share.has-modal:has(.open) > .tooltip {
    display: none;
}

@media (max-width: 620px) {
    .modal-toggle .tooltip {
        display: none;
    }
}