.toggle-button-widget {
    position: relative;
}

.toggle-button-widget .custom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.toggle-button-widget .custom-overlay.active {
    display: block;
}

.toggle-button-widget .custom-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 50%;
    background-color: #fff;
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.toggle-button-widget .custom-panel.active {
    transform: translateX(0);
}

/* Estilos para diferentes direcciones */
.toggle-button-widget .custom-panel[data-direction="left"] {
    left: 0;
    transform: translateX(-100%);
}

.toggle-button-widget .custom-panel[data-direction="left"].active {
    transform: translateX(0);
}

.toggle-button-widget .custom-panel[data-direction="right"] {
    right: 0;
}

.toggle-button-widget .custom-panel[data-direction="top"] {
    top: 0;
    height: 50%;
    width: 100%;
    transform: translateY(-100%);
}

.toggle-button-widget .custom-panel[data-direction="top"].active {
    transform: translateY(0);
}

.toggle-button-widget .custom-panel[data-direction="bottom"] {
    bottom: 0;
    height: 50%;
    width: 100%;
    transform: translateY(100%);
}

.toggle-button-widget .custom-panel[data-direction="bottom"].active {
    transform: translateY(0);
}

.toggle-button-widget .close-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
