.polycc-social-panel,
.polycc-social-panel * {
    box-sizing: border-box;
}

.polycc-social-panel {
    position: fixed;
    inset: 0 0 auto auto;
    z-index: 9998;
    width: 0;
    height: 100%;
    font-family: inherit;
}

.polycc-social-panel__tabs {
    position: fixed;
    top: 50%;
    right: 0;
    display: grid;
    gap: 7px;
    transform: translateY(-50%);
    transition: opacity .22s ease, transform .28s ease, visibility .22s ease;
}

.polycc-social-panel.is-open .polycc-social-panel__tabs {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(110%, -50%);
}

.polycc-social-panel__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 58px;
    min-height: 54px;
    padding: 10px;
    border: 0;
    border-radius: 14px 0 0 14px;
    color: #fff;
    box-shadow: 0 12px 28px rgba(20, 31, 72, .24);
    cursor: pointer;
}

.polycc-social-panel__tab--facebook { background: #1877f2; }
.polycc-social-panel__tab--instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d 58%, #fcb045); }
.polycc-social-panel__tab--tiktok { background: #16171b; }

.polycc-social-panel__icon {
    display: grid;
    place-items: center;
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
}

.polycc-social-panel__icon svg,
.polycc-social-panel__switcher svg,
.polycc-social-panel__profile-icon svg {
    width: 19px;
    height: 19px;
}

.polycc-social-panel__tab-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.polycc-social-panel__drawer {
    position: fixed;
    top: 50%;
    right: 0;
    width: min(94vw, 390px);
    max-height: min(90vh, 680px);
    padding: 18px;
    overflow: auto;
    border: 1px solid rgba(35, 52, 111, .08);
    border-radius: 18px 0 0 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 55px rgba(13, 27, 84, .26);
    opacity: 0;
    visibility: hidden;
    transform: translate(100%, -50%);
    transition: transform .28s ease, opacity .28s ease, visibility .28s ease;
    backdrop-filter: blur(8px);
}

.polycc-social-panel.is-open .polycc-social-panel__drawer {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

.polycc-social-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.polycc-social-panel__header strong,
.polycc-social-panel__header span {
    display: block;
}

.polycc-social-panel__header strong {
    color: #1b2a67;
    font-size: 20px;
    line-height: 1.2;
}

.polycc-social-panel__header span {
    margin-top: 3px;
    color: #65708d;
    font-size: 13px;
}

.polycc-social-panel__close {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef2ff;
    color: #223170;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.polycc-social-panel__switcher {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 7px;
    margin-bottom: 14px;
    padding: 5px;
    border-radius: 8px;
    background: #f0f3fa;
}

.polycc-social-panel__switcher button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 7px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #4f5a78;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.polycc-social-panel__switcher button.is-active {
    background: #fff;
    color: #1d2d68;
    box-shadow: 0 3px 10px rgba(30, 44, 90, .1);
}

.polycc-social-panel__switcher span {
    display: grid;
    place-items: center;
}

.polycc-social-panel__body,
.polycc-social-panel__view {
    display: grid;
    gap: 13px;
}

.polycc-social-panel__view[hidden] {
    display: none;
}

.polycc-social-panel__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #3157c8;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: opacity .2s ease, transform .2s ease;
}

.polycc-social-panel__link:hover,
.polycc-social-panel__link:focus {
    color: #fff !important;
    opacity: .92;
    transform: translateY(-1px);
}

.polycc-social-panel__embed-wrap {
    min-height: 432px;
    overflow: hidden;
    border: 1px solid rgba(43, 76, 170, .13);
    border-radius: 12px;
    background: #f7f9ff;
}

.polycc-social-panel__embed {
    display: block;
    width: 100%;
    height: 432px;
    border: 0;
    background: transparent;
}

.polycc-social-panel__profile {
    display: flex;
    min-height: 360px;
    padding: 28px 22px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 12px;
    text-align: center;
}

.polycc-social-panel__profile--instagram {
    background: linear-gradient(145deg, #fff3f7, #f5efff 55%, #fff7e8);
}

.polycc-social-panel__profile--tiktok {
    background: #f2f3f5;
}

.polycc-social-panel__profile-icon {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin-bottom: 17px;
    border-radius: 18px;
    color: #fff;
}

.polycc-social-panel__profile-icon svg {
    width: 38px;
    height: 38px;
}

.polycc-social-panel__profile--instagram .polycc-social-panel__profile-icon {
    background: linear-gradient(135deg, #833ab4, #fd1d1d 58%, #fcb045);
}

.polycc-social-panel__profile--tiktok .polycc-social-panel__profile-icon {
    background: #16171b;
}

.polycc-social-panel__official {
    color: #6d7791;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.polycc-social-panel__profile strong {
    max-width: 100%;
    margin-top: 5px;
    overflow-wrap: anywhere;
    color: #1d2b5c;
    font-size: 21px;
}

.polycc-social-panel__profile p {
    max-width: 285px;
    margin: 12px 0 20px;
    color: #626d88;
    font-size: 13px;
    line-height: 1.55;
}

.polycc-social-panel__profile .polycc-social-panel__link {
    width: 100%;
}

.polycc-social-panel__profile--instagram .polycc-social-panel__link {
    background: #c52f75;
}

.polycc-social-panel__profile--tiktok .polycc-social-panel__link {
    background: #16171b;
}

@media (max-width: 767px) {
    .polycc-social-panel {
        inset: auto 0 0 auto;
        height: 0;
    }

    .polycc-social-panel__tabs {
        top: auto;
        right: 8px;
        bottom: 12px;
        display: flex;
        gap: 6px;
        transform: none;
    }

    .polycc-social-panel.is-open .polycc-social-panel__tabs {
        transform: translateY(120%);
    }

    .polycc-social-panel__tab {
        width: 49px;
        min-height: 49px;
        padding: 8px;
        border-radius: 14px;
    }

    .polycc-social-panel__drawer {
        top: auto;
        right: 0;
        bottom: 0;
        width: min(96vw, 380px);
        max-height: min(88vh, 660px);
        padding: 15px;
        border-radius: 18px 0 0 0;
        transform: translateX(100%);
    }

    .polycc-social-panel.is-open .polycc-social-panel__drawer {
        transform: translateX(0);
    }

    .polycc-social-panel__header strong {
        font-size: 18px;
    }

    .polycc-social-panel__embed-wrap,
    .polycc-social-panel__embed {
        min-height: 390px;
        height: 390px;
    }

    .polycc-social-panel__profile {
        min-height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .polycc-social-panel__tabs,
    .polycc-social-panel__drawer,
    .polycc-social-panel__link {
        transition: none;
    }
}
