#tsubs-all-sorted-backdrop,
#theme-tsubs-all-sorted-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.tsubs-as-section {
    background: #fff;
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: tsubs-as-pop 0.3s ease-out;
}

@keyframes tsubs-as-pop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.tsubs-as-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #121117;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.tsubs-as-close-btn:hover {
    opacity: 1;
}

.tsubs-as-content {
    text-align: center;
}

.tsubs-as-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.tsubs-as-check-icon {
    width: 64px;
    height: 64px;
    background: #007664;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tsubs-as-title {
    font-size: 28px;
    font-weight: 700;
    color: #121117;
    margin-bottom: 12px;
}

.tsubs-as-text {
    font-size: 16px;
    color: #121117;
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 32px;
}

.tsubs-as-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tsubs-as-btn-primary {
    display: inline-block;
    text-decoration: none;
    background: #FF2500;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.tsubs-as-btn-primary:hover {
    background: #E62200;
}

.tsubs-as-btn-outline {
    background: #fff;
    color: #121117;
    border: 2px solid #E6E6EB;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tsubs-as-btn-outline:hover {
    background: #F8F8FA;
    border-color: #DCDCE5;
}

/* Mobile Bottom Sheet Styling for All Sorted */
@media (max-width: 767.98px) {
    #tsubs-all-sorted-backdrop,
    #theme-tsubs-all-sorted-backdrop {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    .tsubs-as-section {
        max-width: 100% !important;
        border-radius: 24px 24px 0 0 !important;
        padding: 40px 24px 24px !important;
        margin-bottom: 0 !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15) !important;
        transform: translateY(100%);
        animation: slideUpSortedSheet 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards !important;
    }

    @keyframes slideUpSortedSheet {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    /* Bottom sheet handle */
    .tsubs-as-section::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        background: #e2e8f0;
        border-radius: 10px;
        z-index: 10;
    }

    .tsubs-as-close-btn {
        top: 16px !important;
        right: 16px !important;
    }
}
