.page-sidebar {
    position: fixed;
    bottom: 20px;
    right: 0;
    width: 300px;
    max-width: 90vw;
    background: var(--ths-body-bg);
    border: 1px solid var(--ths-primary-color);
    border-right: none;
    border-radius: 8px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 100;
    max-height: 80vh;
    overflow-y: auto;
    /* Animation properties */
    transform: translateX(100%);
    transition: transform 0.4s ease-out;
    opacity: 0;
    visibility: hidden;
}

.page-sidebar.sidebar-visible {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.page-sidebar .sidebar-inner {
    padding: 20px;
    position: relative;
}

.page-sidebar .sidebar-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    line-height: 1;
    z-index: 10;
    border-radius: 3px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.page-sidebar .sidebar-close:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.1);
}

.page-sidebar .sidebar-close .close-icon {
    display: block;
    width: 16px;
    height: 16px;
    text-align: center;
}

.page-sidebar .sidebar-title {
    margin: 0 0 15px 0;
    font-weight: 600;
    color: #333;
}

.page-sidebar .sidebar-excerpt {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.page-sidebar .sidebar-excerpt p:last-child {
    margin-bottom: 0;
}

.page-sidebar .sidebar-content {
    font-size: 14px;
    color: #333;
}

.page-sidebar .sidebar-content p:last-child {
    margin-bottom: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-sidebar {
        right: 0;
        left: 20px;
        width: auto;
        max-width: none;
    }
}
