.tf-widget {
    position: fixed;
    bottom: 20px;
    z-index: 99990;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.tf-widget * {
    box-sizing: border-box;
}

.tf-widget.tf-position-bottom-left {
    inset-inline-start: 20px;
}

.tf-widget.tf-position-bottom-right {
    inset-inline-end: 20px;
}

.tf-widget.tf-dragging {
    transition: none !important;
}

.tf-widget.tf-dragging .tf-toggle {
    cursor: grabbing;
}

.tf-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: grab;
    background: linear-gradient(135deg, #25f4ee 0%, #010101 55%, #fe2c55 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    touch-action: none;
    padding: 0;
}

.tf-toggle svg {
    width: 26px;
    height: 26px;
}

.tf-toggle:hover {
    transform: scale(1.05);
}

.tf-toggle-badge {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #fe2c55;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    font-weight: 700;
    text-align: center;
    border: 2px solid #fff;
}

.tf-panel {
    position: absolute;
    bottom: 68px;
    width: min(300px, calc(100vw - 24px));
    aspect-ratio: 9 / 16;
    max-height: 82vh;
    background: #000;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform-origin: bottom;
    transform: translateY(8px) scale(0.96);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.tf-position-bottom-left .tf-panel {
    inset-inline-start: 0;
}

.tf-position-bottom-right .tf-panel {
    inset-inline-end: 0;
}

.tf-widget.is-open .tf-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.tf-close {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
}

.tf-close svg {
    width: 15px;
    height: 15px;
}

.tf-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.tf-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.tf-slide {
    flex: 0 0 100%;
    max-width: 100%;
    height: 100%;
}

.tf-embed {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.tf-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
}

.tf-nav svg {
    width: 15px;
    height: 15px;
}

.tf-nav:hover {
    background: rgba(0, 0, 0, 0.65);
}

.tf-nav-prev {
    inset-inline-start: 8px;
}

.tf-nav-next {
    inset-inline-end: 8px;
}

.tf-dots {
    position: absolute;
    bottom: 56px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 4;
}

.tf-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    padding: 0;
    cursor: pointer;
}

.tf-dot.is-active {
    background: #fff;
    width: 14px;
    border-radius: 4px;
}

.tf-overlay-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    gap: 8px;
    padding: 22px 10px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.tf-overlay-bottom > * {
    pointer-events: auto;
}

.tf-follow-btn,
.tf-shop-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.tf-follow-btn svg,
.tf-shop-btn svg {
    width: 14px;
    height: 14px;
}

.tf-follow-btn {
    background: rgba(255, 255, 255, 0.16);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.tf-follow-btn:hover {
    background: rgba(255, 255, 255, 0.26);
}

.tf-shop-btn {
    background: #fe2c55;
    color: #fff !important;
}

.tf-shop-btn:hover {
    background: #e0264b;
}

@media (max-width: 767px) {
    .tf-widget.tf-hide-mobile {
        display: none !important;
    }

    .tf-toggle {
        width: 50px;
        height: 50px;
    }

    .tf-panel {
        bottom: 60px;
        width: min(260px, calc(100vw - 24px));
    }

    .tf-widget.is-open .tf-panel {
        max-width: min(260px, calc(100vw - 24px));
    }
}
