/* ===== ANIMATIONS ===== */

.sbp-animate-fadeInUp {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.sbp-animate-fadeInUp.active {
    opacity: 1;
    transform: translateY(0);
}

.sbp-animate-fadeInDown {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.sbp-animate-fadeInDown.active {
    opacity: 1;
    transform: translateY(0);
}

.sbp-animate-fadeInLeft {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.sbp-animate-fadeInLeft.active {
    opacity: 1;
    transform: translateX(0);
}

.sbp-animate-fadeInRight {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.sbp-animate-fadeInRight.active {
    opacity: 1;
    transform: translateX(0);
}

.sbp-animate-slideInUp {
    transform: translateY(100%);
    transition: transform 0.6s ease;
}
.sbp-animate-slideInUp.active {
    transform: translateY(0);
}

.sbp-animate-slideInDown {
    transform: translateY(-100%);
    transition: transform 0.6s ease;
}
.sbp-animate-slideInDown.active {
    transform: translateY(0);
}

.sbp-animate-slideInLeft {
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.sbp-animate-slideInLeft.active {
    transform: translateX(0);
}

.sbp-animate-slideInRight {
    transform: translateX(100%);
    transition: transform 0.6s ease;
}
.sbp-animate-slideInRight.active {
    transform: translateX(0);
}

.sbp-animate-flipInX {
    transform: perspective(400px) rotateX(90deg);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}
.sbp-animate-flipInX.active {
    transform: perspective(400px) rotateX(0deg);
    opacity: 1;
}

.sbp-animate-flipInY {
    transform: perspective(400px) rotateY(90deg);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}
.sbp-animate-flipInY.active {
    transform: perspective(400px) rotateY(0deg);
    opacity: 1;
}

.sbp-animate-rotateIn {
    transform: rotate(-200deg);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}
.sbp-animate-rotateIn.active {
    transform: rotate(0);
    opacity: 1;
}

.sbp-animate-rubberBand {
    transform: scale3d(1, 1, 1);
    transition: transform 0.6s;
}
.sbp-animate-rubberBand.active {
    animation: rubberBand 1s;
}

.sbp-animate-swing {
    transform: rotate(0deg);
    transition: transform 0.6s;
}
.sbp-animate-swing.active {
    animation: swing 1s;
}

.sbp-animate-tada {
    transform: scale3d(1, 1, 1);
    transition: transform 0.6s;
}
.sbp-animate-tada.active {
    animation: tada 1s;
}

.sbp-animate-wobble {
    transform: translateX(0);
    transition: transform 0.6s;
}
.sbp-animate-wobble.active {
    animation: wobble 1s;
}

.sbp-animate-jello {
    transform: scale3d(1, 1, 1);
    transition: transform 0.6s;
}
.sbp-animate-jello.active {
    animation: jello 1s;
}

.sbp-animate-pulse {
    animation: none;
}
.sbp-animate-pulse.active {
    animation: pulse 2s infinite;
}

.sbp-animate-jackInTheBox {
    opacity: 0;
    transform: scale(0.1) rotate(30deg);
    transform-origin: center bottom;
    transition: opacity 0.6s, transform 0.6s;
}
.sbp-animate-jackInTheBox.active {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.sbp-animate-rollIn {
    opacity: 0;
    transform: translateX(-100%) rotate(-120deg);
    transition: all 0.8s ease;
}
.sbp-animate-rollIn.active {
    opacity: 1;
    transform: translateX(0) rotate(0);
}

.sbp-animate-lightSpeedInRight {
    opacity: 0;
    transform: translateX(100%) skewX(-30deg);
    transition: all 0.6s ease;
}
.sbp-animate-lightSpeedInRight.active {
    opacity: 1;
    transform: translateX(0) skewX(0);
}

.sbp-animate-slide {
    right: -320px;
    opacity: 0;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}
.sbp-animate-slide.active {
    right: 90px;
    opacity: 1;
}

.sbp-animate-fade {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.sbp-animate-fade.active {
    opacity: 1;
    transform: translateY(0);
}

.sbp-animate-zoom {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.sbp-animate-zoom.active {
    opacity: 1;
    transform: scale(1);
}

.sbp-animate-bounce {
    opacity: 0;
    transform: scale(0.1);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.sbp-animate-bounce.active {
    opacity: 1;
    transform: scale(1);
}

/* ===== KEYFRAMES ===== */

@keyframes rubberBand {
    0% { transform: scale3d(1, 1, 1); }
    30% { transform: scale3d(1.25, 0.75, 1); }
    40% { transform: scale3d(0.75, 1.25, 1); }
    50% { transform: scale3d(1.15, 0.85, 1); }
    65% { transform: scale3d(0.95, 1.05, 1); }
    75% { transform: scale3d(1.05, 0.95, 1); }
    100% { transform: scale3d(1, 1, 1); }
}

@keyframes swing {
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(5deg); }
    80% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

@keyframes tada {
    0% { transform: scale3d(1, 1, 1); }
    10%, 20% { transform: scale3d(0.9, 0.9, 0.9) rotate(-3deg); }
    30%, 50%, 70%, 90% { transform: scale3d(1.1, 1.1, 1.1) rotate(3deg); }
    40%, 60%, 80% { transform: scale3d(1.1, 1.1, 1.1) rotate(-3deg); }
    100% { transform: scale3d(1, 1, 1); }
}

@keyframes wobble {
    0% { transform: translateX(0); }
    15% { transform: translateX(-25%) rotate(-5deg); }
    30% { transform: translateX(20%) rotate(3deg); }
    45% { transform: translateX(-15%) rotate(-3deg); }
    60% { transform: translateX(10%) rotate(2deg); }
    75% { transform: translateX(-5%) rotate(-1deg); }
    100% { transform: translateX(0); }
}

@keyframes jello {
    0%, 100% { transform: scale3d(1, 1, 1); }
    30% { transform: scale3d(1.25, 0.75, 1); }
    40% { transform: scale3d(0.75, 1.25, 1); }
    50% { transform: scale3d(1.15, 0.85, 1); }
    65% { transform: scale3d(0.95, 1.05, 1); }
    75% { transform: scale3d(1.05, 0.95, 1); }
}

@keyframes pulse {
    0% { transform: scale3d(1, 1, 1); }
    50% { transform: scale3d(1.05, 1.05, 1.05); }
    100% { transform: scale3d(1, 1, 1); }
}

/* ===== PANEL HEADER & CLOSE BUTTON ===== */

.sbp-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
    padding-bottom: 3px;
    border-bottom: 1px solid #eee;
}

.sbp-button-group {
    background: #ffffffa3;
    border-radius: 15px 0 0 15px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
}

.sbp-panel-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.sbp-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    margin-top: -7px;
}

.sbp-close-btn:hover {
    color: #e53935;
    background: #f5f5f5;
}

/* ===== FLOATING WIDGET ===== */

.sbp-floating-widget {
    position: fixed;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sbp-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 67px;
    height: 67px;
    color: white;
    border: none;
    border-radius: 17px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 11px 0;
    padding: 7px 1px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sbp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sbp-icon-wrapper {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sbp-img-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.sbp-fa-icon {
    font-size: 23px;
}

.sbp-label {
    font-size: 13px;
    line-height: 1.1;
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== CONTENT PANEL ===== */

.sbp-content-panel {
    position: fixed;
    right: -320px;
    bottom: -69%;
    transform: translateY(-50%);
    max-width: 320px;
    max-height: 85vh;
    overflow-y: auto;
    background: #ffffffde;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 15px;
    z-index: 99998;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
    opacity: 0;
}

.sbp-content-panel.active {
    right: 47px;
    opacity: 1;
}

.sbp-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

.sbp-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.sbp-content iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 8px;
    margin: 10px 0;
}

.sbp-content a {
    color: #25d366;
    text-decoration: none;
}

.sbp-content a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE MOBILE ===== */

@media (max-width: 768px) {
    .sbp-fa-icon {
        font-size: 19px;
    }

    .sbp-label {
        font-size: 10px;
    }

    .sbp-floating-widget {
        top: 69%;
        right: 10px;
    }

    .sbp-content-panel {
        bottom: 0;
        max-width: 267px;
        right: -267px;
    }

    .sbp-content-panel.active {
        right: 50px;
    }

    .sbp-btn {
        width: 57px;
        height: 57px;
    }
}