/* ─────────────────────────────────────────
   Vibe Dropdown Button — Estilos base
   ───────────────────────────────────────── */

.vibe-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

/* ── Soporte para "Crecer" (flex-grow) en contenedor Flex de Elementor ── */
.elementor-widget-vibe_dropdown_button,
.elementor-widget-vibe_dropdown_button > .elementor-widget-container,
.elementor-widget-vibe_dropdown_button .vibe-dropdown-wrapper {
    display: flex;
    flex: 1;
    min-width: 0;
}

.elementor-widget-vibe_dropdown_button .vibe-dropdown-toggle {
    flex: 1;
}

/* ── Botón ── */
.vibe-dropdown-toggle {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    border: none;
    font-family: inherit;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.vibe-dropdown-toggle:focus {
    outline: none;
}

/* ── Texto del botón ── */
.vibe-dropdown-label {
    flex: 1;
    align-self: center;
}

/* ── Área: separador + ícono ── */
.vibe-dropdown-icon-area {
    display: flex;
}

/* ── Barra separadora ── */
.vibe-dropdown-divider {
    display: block;
    width: 1px;
    align-self: stretch;
    background-color: rgba(255, 255, 255, 0.4);
    margin-right: 12px;
    flex-shrink: 0;
}

/* ── Ícono — sin animación ni transformación ── */
.vibe-dropdown-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vibe-dropdown-arrow i,
.vibe-dropdown-arrow svg {
    display: block;
}

/* ── Menú desplegable ── */
.vibe-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 9999;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    display: none;
    overflow: hidden;
}

.vibe-dropdown-wrapper.open .vibe-dropdown-menu {
    display: block;
    animation: vibeDropdownFadeIn 0.2s ease forwards;
}

@keyframes vibeDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Ítems ── */
.vibe-dropdown-menu li {
    margin: 0;
    padding: 0;
}

.vibe-dropdown-menu a {
    display: block;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
    font-family: inherit;
}

.vibe-dropdown-menu a:hover {
    text-decoration: none;
}
