/*
 * Foxiz Style Share Bar
 * Responsive standalone styling.
 */

.fx-share-outer,
.fx-share-outer *,
.fx-share-outer *::before,
.fx-share-outer *::after {
    box-sizing: border-box;
}

.fx-share-outer {
    --fx-g-color: #ff184e;
    --fx-body-color: #282828;
    --fx-meta-color: #666;
    --fx-white: #fff;
    --fx-dark: #191c20;
    --fx-shadow: #00000012;
    --fx-flex-gray-15: #88888826;
    --fx-facebook: #89abfc;
    --fx-facebook-hover: #1f82ec;
    --fx-twitter: #00151c;
    --fx-twitter-hover: #13b9ee;
    --fx-copy: #66bbbf;
    --fx-copy-hover: #38787a;
    --fx-print: #4082f1;
    --fx-print-hover: #0f67f6;
    --fx-effect: all 0.2s cubic-bezier(0.32, 0.74, 0.57, 1);

    position: fixed;
    z-index: 9900;
    display: block;
    margin: 0;
    padding: 0 30px 40px 0;
    color: var(--fx-body-color);
    font-family: "Oxygen", Arial, Helvetica, sans-serif;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease;
}

.fx-share-outer.fx-share-ready {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fx-share-sec {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    font-size: 18px;
    flex-flow: column nowrap;
}

.fx-share-header {
    display: flex;
    align-items: center;
    flex-flow: column wrap;
    margin: 0;
    padding: 0;
    color: var(--fx-meta-color);
    font-size: 13px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: normal;
    line-height: 1;
    text-transform: none;
}

.fx-share-header-icon {
    display: block;
    width: 18px;
    height: 18px;
    margin: 0;
    fill: currentColor;
}

.fx-share-label {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1;
}

.fx-share-items {
    display: flex;
    align-items: center;
    flex-flow: column nowrap;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 5px;
    background: var(--fx-white);
    box-shadow: 0 5px 30px var(--fx-shadow);
}

.fx-share-action,
.fx-share-action:link,
.fx-share-action:visited {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    min-width: 48px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 5px;
    outline: none;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--fx-body-color);
    font: inherit;
    line-height: 48px;
    text-align: center;
    text-decoration: none !important;
    text-indent: 0;
    cursor: pointer;
    opacity: 1;
    -webkit-tap-highlight-color: transparent;
    transition: var(--fx-effect);
}

.fx-share-action svg {
    display: block;
    width: 18px;
    height: 18px;
    max-width: none;
    max-height: none;
    margin: 0;
    fill: currentColor;
    stroke: none;
    pointer-events: none;
}

.fx-share-action.icon-facebook {
    color: var(--fx-facebook);
}

.fx-share-action.icon-facebook:hover,
.fx-share-action.icon-facebook:focus-visible {
    color: var(--fx-facebook-hover);
}

.fx-share-action.icon-twitter {
    color: var(--fx-twitter);
}

.fx-share-action.icon-twitter:hover,
.fx-share-action.icon-twitter:focus-visible {
    color: var(--fx-twitter-hover);
}

.fx-share-action.icon-copy {
    color: var(--fx-copy);
}

.fx-share-action.icon-copy:hover,
.fx-share-action.icon-copy:focus-visible {
    color: var(--fx-copy-hover);
}

.fx-share-action.icon-print {
    color: var(--fx-print);
}

.fx-share-action.icon-print:hover,
.fx-share-action.icon-print:focus-visible {
    color: var(--fx-print-hover);
}

.fx-share-action.more-icon:hover,
.fx-share-action.more-icon:focus-visible {
    color: var(--fx-g-color);
}

.fx-share-items.activated .fx-share-action {
    opacity: .25;
}

.fx-share-items.activated .fx-share-action:hover,
.fx-share-items.activated .fx-share-action:focus-visible {
    opacity: 1;
}

.fx-share-action:focus-visible {
    outline: 2px solid currentColor !important;
    outline-offset: -4px;
}

/* Foxiz-like small tooltip */
.fx-share-tooltip {
    position: fixed;
    z-index: 100000;
    display: none;
    max-width: 200px;
    padding: 7px 10px;
    border-radius: 3px;
    background: var(--fx-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.fx-share-tooltip.fx-show {
    display: block;
}

.fx-share-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    margin-top: -5px;
    border: 5px solid transparent;
}

.fx-share-outer:not(.fx-share-on-right) .fx-share-tooltip::after {
    right: -10px;
    border-left-color: var(--fx-dark);
}

.fx-share-outer.fx-share-on-right .fx-share-tooltip::after {
    left: -10px;
    border-right-color: var(--fx-dark);
}

/* Dark schemes commonly used by WordPress themes */
[data-theme="dark"] .fx-share-items,
.dark-mode .fx-share-items,
body.dark .fx-share-items,
body.is-dark-theme .fx-share-items {
    background: var(--fx-dark);
}

[data-theme="dark"] .fx-share-action,
.dark-mode .fx-share-action,
body.dark .fx-share-action,
body.is-dark-theme .fx-share-action {
    color: #fff;
}

[data-theme="dark"] .fx-share-action.icon-facebook,
.dark-mode .fx-share-action.icon-facebook,
body.dark .fx-share-action.icon-facebook,
body.is-dark-theme .fx-share-action.icon-facebook {
    color: var(--fx-facebook);
}

[data-theme="dark"] .fx-share-action.icon-twitter,
.dark-mode .fx-share-action.icon-twitter,
body.dark .fx-share-action.icon-twitter,
body.is-dark-theme .fx-share-action.icon-twitter {
    color: #fff;
}

/* Tablet keeps the Foxiz vertical left/right share layout. */
@media (min-width: 768px) and (max-width: 1024px) {
    .fx-share-outer {
        padding-right: 20px;
    }

    .fx-share-sec {
        gap: 10px;
    }
}

/* Mobile: same Foxiz bottom share treatment. */
@media (max-width: 767px) {
    .fx-share-outer {
        right: 0 !important;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        left: 0 !important;
        top: auto !important;
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        padding: 0;
        transform: none !important;
    }

    .fx-share-sec {
        position: relative;
        top: 0;
        display: flex;
        flex-grow: 1;
        justify-content: center;
        gap: 0;
    }

    .fx-share-header {
        display: none;
    }

    .fx-share-items {
        flex-flow: row nowrap;
        max-width: calc(100vw - 24px);
    }

    .fx-share-action,
    .fx-share-action:link,
    .fx-share-action:visited {
        width: 42px;
        height: 42px;
        min-width: 42px;
        line-height: 42px;
    }

    .fx-share-action svg {
        width: 17px;
        height: 17px;
    }

    .fx-share-tooltip {
        position: fixed;
        right: auto !important;
        bottom: calc(62px + env(safe-area-inset-bottom, 0px));
        left: 50% !important;
        top: auto !important;
        transform: translateX(-50%);
    }

    .fx-share-tooltip::after {
        display: none;
    }
}

@media (max-width: 360px) {
    .fx-share-action,
    .fx-share-action:link,
    .fx-share-action:visited {
        width: 40px;
        height: 40px;
        min-width: 40px;
        line-height: 40px;
    }
}

@media print {
    .fx-share-outer {
        display: none !important;
    }
}
