/* Coqpit Social sidebar - fixed to the edge of the viewport (sizes/colours come from Elementor controls) */

.coqpit-ss {
    --coqpit-ss-offset: 0px;
    --coqpit-ss-radius: 6px;

    position: fixed;
    top: 50%;
    left: var(--coqpit-ss-offset);
    z-index: 90;
    transform: translateY(-50%);
}

.coqpit-ss-side-right .coqpit-ss {
    left: auto;
    right: var(--coqpit-ss-offset);
}

.coqpit-ss__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: 53px;
    margin: 0;
    padding: 13px 0;
    gap: 16px;
    list-style: none;
    background-color: #e10b17;
    border-radius: 0 var(--coqpit-ss-radius) var(--coqpit-ss-radius) 0;
}

.coqpit-ss-side-right .coqpit-ss__list {
    border-radius: var(--coqpit-ss-radius) 0 0 var(--coqpit-ss-radius);
}

.coqpit-ss__item {
    display: flex;
    margin: 0;
    padding: 0;
}

.coqpit-ss__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 24px;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.coqpit-ss__link svg,
.coqpit-ss__link i {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.coqpit-ss__link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Entrance: the bar slides in from the edge, then the icons appear one after another */
.coqpit-ss--entrance .coqpit-ss__list {
    animation: coqpit-ss-slide-left 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.coqpit-ss-side-right .coqpit-ss--entrance .coqpit-ss__list {
    animation-name: coqpit-ss-slide-right;
}

.coqpit-ss--entrance .coqpit-ss__item {
    animation: coqpit-ss-pop 0.4s ease both;
    animation-delay: calc(0.45s + var(--i, 0) * 0.1s);
}

@keyframes coqpit-ss-slide-left {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes coqpit-ss-slide-right {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes coqpit-ss-pop {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .coqpit-ss--entrance .coqpit-ss__list,
    .coqpit-ss--entrance .coqpit-ss__item {
        animation: none;
    }
}
