.aloc-subcategory-nav {
    width: 100%;
    padding: 18px;
    border: 1px solid #dfe6e2;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0 6px 22px rgba(27, 52, 43, .06);
}

.aloc-subcategory-title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.25;
    color: #1f2d28;
}

.aloc-subcategory-root {
    display: block;
    margin: 0 0 8px;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    color: #275d4b;
    background: #f1f7f4;
}

.aloc-subcategory-root:hover,
.aloc-subcategory-root.is-current {
    color: #fff;
    background: #2f735c;
}

.aloc-subcategory-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aloc-subcategory-list[hidden] {
    display: none !important;
}

.aloc-subcategory-list .aloc-subcategory-list {
    margin: 4px 0 7px 12px;
    padding-left: 10px;
    border-left: 1px solid #dfe8e3;
}

.aloc-subcategory-item {
    margin: 2px 0;
}

.aloc-category-row {
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    transition: background-color .18s ease;
}

.aloc-category-row:hover {
    background: #f2f7f5;
}

.aloc-category-link {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    padding: 9px 8px 9px 10px;
    color: #27322e;
    text-decoration: none;
    line-height: 1.3;
}

.aloc-category-link span {
    overflow-wrap: anywhere;
}

.aloc-category-link:hover {
    color: #245d4a;
}

.aloc-category-toggle {
    flex: 0 0 38px;
    width: 38px;
    min-height: 38px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #38574c;
    cursor: pointer;
}

.aloc-category-toggle:hover,
.aloc-category-toggle:focus-visible {
    background: #e7f1ed;
    outline: none;
}

.aloc-chevron {
    display: inline-block;
    font-size: 21px;
    line-height: 1;
    transition: transform .18s ease;
}

.aloc-subcategory-item.is-open > .aloc-category-row .aloc-chevron {
    transform: rotate(90deg);
}

.aloc-subcategory-item.is-current > .aloc-category-row {
    background: #2f735c;
}

.aloc-subcategory-item.is-current > .aloc-category-row .aloc-category-link,
.aloc-subcategory-item.is-current > .aloc-category-row .aloc-category-toggle {
    color: #fff;
    font-weight: 700;
}

.aloc-subcategory-item.is-current > .aloc-category-row .aloc-category-toggle:hover,
.aloc-subcategory-item.is-current > .aloc-category-row .aloc-category-toggle:focus-visible {
    background: rgba(255, 255, 255, .14);
}

.aloc-depth-2 .aloc-category-link,
.aloc-depth-3 .aloc-category-link,
.aloc-depth-4 .aloc-category-link {
    font-size: 14px;
}

/* Mostrar el cuadro completo: sin scroll interno. */
.aloc-subcategory-nav {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

/* Evitar que los estilos globales del tema conviertan la flecha en un botón de color. */
.aloc-subcategory-nav button.aloc-category-toggle,
.aloc-subcategory-nav button.aloc-category-toggle:hover,
.aloc-subcategory-nav button.aloc-category-toggle:focus,
.aloc-subcategory-nav button.aloc-category-toggle:active {
    -webkit-appearance: none !important;
    appearance: none !important;
    flex: 0 0 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    min-height: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    background: transparent !important;
    color: #38574c !important;
    line-height: 1 !important;
}

.aloc-subcategory-nav button.aloc-category-toggle:hover,
.aloc-subcategory-nav button.aloc-category-toggle:focus-visible {
    background: #e7f1ed !important;
    outline: none !important;
}

.aloc-subcategory-item.is-current > .aloc-category-row button.aloc-category-toggle,
.aloc-subcategory-item.is-current > .aloc-category-row button.aloc-category-toggle:hover,
.aloc-subcategory-item.is-current > .aloc-category-row button.aloc-category-toggle:focus {
    color: #fff !important;
    background: transparent !important;
}

.aloc-subcategory-item.is-current > .aloc-category-row button.aloc-category-toggle:hover,
.aloc-subcategory-item.is-current > .aloc-category-row button.aloc-category-toggle:focus-visible {
    background: rgba(255, 255, 255, .14) !important;
}

@media (max-width: 767px) {
    .aloc-subcategory-nav {
        padding: 14px;
    }

    .aloc-subcategory-title {
        font-size: 18px;
    }
}
