/* Grupo Colapsable - solo estructura y comportamiento */

.dtk-collapsible {
    position: fixed;
    z-index: 9998;
}

.dtk-collapsible.position-bottom-right { bottom: 16px; right: 16px; }
.dtk-collapsible.position-bottom-left { bottom: 16px; left: 16px; }
.dtk-collapsible.position-top-right { top: 16px; right: 16px; }
.dtk-collapsible.position-top-left { top: 16px; left: 16px; }

.dtk-collapsible.is-collapsed .collapsible-panel {
    display: none;
}

.dtk-collapsible.is-expanded .collapsible-launcher {
    display: none;
}

.dtk-collapsible--fit-content .collapsible-panel {
    height: auto;
    max-height: 90vh;
    overflow: visible;
    width: fit-content;
    max-width: min(600px, calc(100vw - 32px));
}

.dtk-collapsible--fit-content .collapsible-body {
    overflow: visible;
}

.collapsible-launcher {
    cursor: pointer;
    background-color: #fff;
}

.collapsible-panel {
    background-color: #fff;
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em;
}

.collapsible-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.collapsible-close:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.collapsible-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
