.info-wrap:not(.visible) {
    pointer-events: none;
}

.info-wrap.visible {
    pointer-events: auto;
}

.info-wrap {
    background: #fafafa;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transform: translateY(-100%) translateZ(0);
    opacity: 0;
    transition: transform .6s ease, opacity .6s ease;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.info-wrap.visible {
    transform: translateY(0);
    opacity: 1;
}

.IB {
    position: relative;
    background: #fafafa;
    overflow: hidden;
    transition: max-height .4s ease, opacity .4s ease, background .4s ease;
    max-height: 70px;
    opacity: 1;
    will-change: max-height, opacity;
    z-index: 9999;
}

.IB.hidden {
    max-height: 0;
    opacity: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}

.info-divider {
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 5px;
    background: #fafafa;
    box-shadow: 0 2px 2px 0 #0000002b;
}

.info-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 3px 16px;
    flex-wrap: nowrap;
    text-align: center;
}

.info-social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 16px;
    flex-wrap: nowrap;
    text-align: center;
    margin: 5px auto;
    max-width: 1165px;
}

.social-area {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    width: 100%;
}

.extra-area {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 720px;
    height: auto;
    max-width: 100%;
}

.info-text {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0;
    flex-shrink: 0;
}

.social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #222;
    gap: 8px;
    transition: transform .2s ease, opacity .2s ease;
    padding: 6px 12px;
    border-radius: 8px;
    background: #f8f7fb;
    border: 1px solid #eeebf4;
    flex: 1 1 0 !important;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    transform: translateY(-2px);
    opacity: .8;
    background: rgb(244 239 255);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.social-link img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
}

.social-link span {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    white-space: nowrap;
}

.no-posts-message {
    padding: 12px 20px;
    color: #aaa;
    font-size: 14px;
    text-align: center;
}

.sn-cube-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-decoration: none;
    border-radius: 4px;
    background-color: rgba(36, 36, 36, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 5px;
    width: 720px;
    max-width: 100%;
    color: white;
}

.sn-cube-img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 4px;
}

.sn-cube-title {
    width: 550px;
    text-align: right;
    white-space: normal;
    overflow: hidden;
    line-height: 1.3;
    font-size: 14px;
    color: #fff;
}

.sn-cube-btn {
    width: 45px;
    flex-shrink: 0;
    display: inline-block;
    padding: 5px 12px;
    background: #e74c3c;
    color: #fff;
    border-radius: 4px;
    text-align: center;
    margin-left: 5px;
}

.cube-wrapper {
    width: 100%;
    height: 60px;
    perspective: 800px;
    max-width: 720px;
}

.cube {
    width: 100%;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.face {
    position: absolute;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    backface-visibility: hidden;
    transform-origin: center center;
    border-radius: 6px;
}

.face-1 {
    background: #e74c3c !important;
}

.face-2 {
    background: #3498db !important;
}

.face-3 {
    background: #27ae60 !important;
}

.face-4 {
    background: #f39c12 !important;
}

.face:nth-child(1) {
    transform: rotateX(0deg) translateZ(30px);
}

.face:nth-child(2) {
    transform: rotateX(90deg) translateZ(30px);
}

.face:nth-child(3) {
    transform: rotateX(180deg) translateZ(30px);
}

.face:nth-child(4) {
    transform: rotateX(270deg) translateZ(30px);
}

@media (max-width: 1024px) {
    .info-body {
        gap: 15px;
        padding: 3px 12px;
    }

    .info-text {
        font-size: 14px;
    }

    .social-link {
        padding: 5px 10px;
        gap: 6px;
    }

    .social-link span {
        font-size: 13px;
    }

    .social-link img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 768px) {
    .tapsell-notification-video * {
        max-height: 100px !important;
    }

    .info-body {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 3px 12px;
    }

    .social-area {
        width: 100%;
        order: 1;
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .extra-area {
        width: 100%;
        order: 2;
        text-align: center;
    }

    .info-text {
        font-size: 13px;
        text-align: center;
        flex: 1;
    }

    .social-link {
        padding: 6px 8px;
        min-width: 0;
    }

    .social-link span {
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .social-link img {
        width: 20px;
        height: 20px;
    }

    .toggle-handle {
        left: -2px;
        bottom: -20px;
    }

    .toggle-handle img {
        width: 60px;
        height: 32px;
    }

    .sn-cube-link {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .sn-cube-title {
        width: calc(100% - 150px);
    }
}

@media (max-width: 480px) {
    .info-body {
        gap: 8px;
        padding: 3px 8px;
    }

    .info-text {
        font-size: 12px;
        width: auto;
        flex: 0 0 auto;
    }

    .social-link {
        padding: 3px 6px;
        gap: 3px;
    }

    .social-link span {
        font-size: 11px;
    }

    .social-link img {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 360px) {
    .social-link span {
        display: none;
    }

    .social-link {
        padding: 6px;
        justify-content: center;
    }

    .social-link img {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 768px) {
    .cube-wrapper {
        height: 50px !important;
    }

    .cube {
        height: 50px !important;
    }

    .face {
        height: 50px !important;
    }

    .face:nth-child(1) {
        transform: rotateX(0deg) translateZ(25px) !important;
    }

    .face:nth-child(2) {
        transform: rotateX(90deg) translateZ(25px) !important;
    }

    .face:nth-child(3) {
        transform: rotateX(180deg) translateZ(25px) !important;
    }

    .face:nth-child(4) {
        transform: rotateX(270deg) translateZ(25px) !important;
    }

    .sn-cube-img {
        width: 40px !important;
        height: 40px !important;
    }

    .sn-cube-title {
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    .sn-cube-btn {
        padding: 4px 8px !important;
        font-size: 11px !important;
    }
}

.toggle-handle {
    position: absolute;
    bottom: -31px;
    left: 2px;
    cursor: pointer;
}

.toggle-handle img {
    width: 60px !important;
    height: 32px !important;
    display: block;
}

@media (max-width: 768px) {
    .toggle-handle {
        width: 60px;
        height: 32px;
    }

    .toggle-handle img {
        width: 60px !important;
        height: 32px !important;
    }

    .IB {
        overflow: hidden !important;
    }
}

.info-wrap {
    display: flex;
    flex-direction: column;
}

.social-link::before {
    content: "";
    display: inline-block;
    width: 1.9rem;
    height: 1.9rem;
    background-image: url('https://www.tasvirezendegi.com/wp-content/themes/zendegi/images/m-spr.png');
    background-repeat: no-repeat;
    background-size: 600% auto;
}

.icon-bale::before {
    background-position: 3% 58%;
}

.icon-instagram::before {
    background-position: 50% 58%;
}

.icon-telegram::before {
    background-position: 75% 58%;
}

.icon-eitaa::before {
    background-position: 25% 58%;
}

@media (max-width: 768px) {
    .social-link::before {
        width: 1.6rem;
        height: 1.6rem;
    }
}

@media (max-width: 480px) {
    .social-link::before {
        width: 1.4rem;
        height: 1.4rem;
    }
}

#media-wrap {
    width: 100%;
    display: block;
}

@media (min-width: 768px) {
    #media-wrap {
        display: none !important;
    }

    #toggleHandle {
        display: none !important;
    }
}

@media (max-width: 767px) {
    #media-wrap {
        width: 100%;
        display: block;
        min-height: 0;
        height: 0;
    }
}