.tpai-floating-widget {
    position: fixed;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: Inter, Arial, sans-serif;
}

.tpai-bottom-right {
    right: 22px;
    bottom: 22px;
}

.tpai-bottom-left {
    left: 22px;
    bottom: 22px;
}

.tpai-btn {
    border: 0;
    cursor: pointer;
    width: 86px;
    min-height: 74px;
    border-radius: 20px;
    background: #020617;
    color: #ffffff;
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.28);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: all 0.25s ease;
}

.tpai-btn:hover {
    transform: translateY(-3px);
    background: #0f172a;
}

.tpai-btn span {
    font-size: 21px;
}

.tpai-btn strong {
    font-size: 18px;
    line-height: 1;
}

.tpai-btn small {
    font-size: 11px;
    opacity: 0.8;
}

.tpai-done {
    background: linear-gradient(135deg, #16a34a, #059669) !important;
}

.tpai-share-panel {
    display: none;
    position: absolute;
    right: 96px;
    bottom: 0;
    width: 150px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.tpai-bottom-left .tpai-share-panel {
    left: 96px;
    right: auto;
}

.tpai-share-panel.tpai-open {
    display: grid;
    gap: 6px;
}

.tpai-share-panel button {
    border: 0;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 12px;
    padding: 9px 10px;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
}

.tpai-share-panel button:hover {
    background: #e0f2fe;
}

@media (max-width: 640px) {
    .tpai-floating-widget {
        right: 12px;
        bottom: 12px;
    }

    .tpai-bottom-left {
        left: 12px;
        right: auto;
    }

    .tpai-btn {
        width: 72px;
        min-height: 64px;
        border-radius: 18px;
    }

    .tpai-share-panel {
        right: 82px;
        width: 140px;
    }

    .tpai-bottom-left .tpai-share-panel {
        left: 82px;
    }
}


.tpai-mode-inline {
    position: relative !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    flex-direction: row;
    display: inline-flex;
    margin: 15px 0;
}

.tpai-mode-inline .tpai-share-panel {
    position: absolute;
    right: auto;
    left: 190px;
    bottom: 0;
}

.tpai-loading {
    opacity: 0.7;
    pointer-events: none;
}

.tpai-btn {
    backdrop-filter: blur(12px);
}

.tpai-btn {
    animation: tpaiFloat 4s ease-in-out infinite;
}

@keyframes tpaiFloat {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
    100% {
        transform: translateY(0px);
    }
}

.tpai-btn:hover {
    transform: translateY(-5px) scale(1.03);
}

.tpai-share-panel {
    animation: tpaiFade 0.25s ease;
}

@keyframes tpaiFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tpai-btn:active {
    transform: scale(0.97);
}

@media (max-width: 640px) {

    .tpai-floating-widget {
        gap: 8px;
    }

    .tpai-btn {
        width: 64px;
        min-height: 58px;
        border-radius: 16px;
    }

    .tpai-btn strong {
        font-size: 15px;
    }

    .tpai-btn small {
        font-size: 10px;
    }

    .tpai-share-panel {
        width: 130px;
        padding: 8px;
    }

    .tpai-share-panel button {
        font-size: 12px;
        padding: 8px;
    }
}