/* Wa3d Menu Premium Styles */
.acw-categories {
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.6;
}

.acw-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.acw-category-item {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
}

.acw-category-row {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    margin-bottom: 2px;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

/* Parent Items (Level 0) */
.acw-level-0 > .acw-category-row {
    background-color: #eef6fc; /* Light Blue */
    border: 1px solid rgba(0, 115, 170, 0.1);
}

.acw-level-0 > .acw-category-row:hover {
    background-color: #e1f0fa;
}

/* Child Items */
.acw-children .acw-category-row {
    background-color: #f8f9fa; /* Light Grey */
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.acw-children .acw-category-row:hover {
    background-color: #f0f2f5;
}

.acw-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.acw-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.acw-toggle.acw-expanded .acw-arrow {
    transform: rotate(180deg);
}

.acw-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    opacity: 0.6;
}

.acw-no-toggle {
    display: inline-block;
    width: 24px;
    margin-right: 8px;
    flex-shrink: 0;
}

.acw-category-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.2s ease;
    flex-grow: 1;
}

.acw-category-link:hover {
    color: #0073aa;
}

.acw-count {
    font-size: 0.85em;
    color: #888;
    margin-left: 6px;
    background: rgba(0,0,0,0.05);
    padding: 2px 6px;
    border-radius: 10px;
}

.acw-children {
    list-style: none;
    margin: 0;
    padding-left: 16px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.acw-children:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 10px;
    left: 24px;
    width: 1px;
    background: rgba(0,0,0,0.08);
}

.acw-children .acw-category-row {
    padding-left: 24px;
}

/* Post Items */
.acw-post-item {
    padding: 4px 10px 4px 34px; /* Indented to align with text */
    margin-bottom: 2px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.acw-post-item:hover {
    background-color: #f0f2f5;
}

.acw-post-link {
    text-decoration: none;
    color: #555;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.acw-post-link:hover {
    color: #0073aa;
}

.acw-post-icon {
    font-size: 1.2em;
    line-height: 1;
    margin-right: 8px;
    color: #aaa;
}

.acw-active-post .acw-post-link {
    color: #d6336c;
    font-weight: 600;
}

.acw-active-post .acw-post-icon {
    color: #d6336c;
}

/* Horizontal Layout */
.acw-horizontal .acw-horizontal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.acw-horizontal .acw-category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    color: #444;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    flex: 1 0 auto;
    text-align: center;
    min-width: 120px;
}

.acw-horizontal .acw-category-link:hover {
    background: #f8f9fa;
    border-color: #ccc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    color: #222;
}

/* Shortcode specific */
.acw-shortcode-title {
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 700;
    color: #1a1a1a;
}

/* Active State */
.acw-category-row.acw-active {
    background-color: #fff0f3; /* Light Red/Pink */
    border-color: rgba(214, 51, 108, 0.2);
}

.acw-category-row.acw-active .acw-category-link {
    color: #d6336c; /* Darker Pink/Red */
    font-weight: 600;
}

/* Horizontal Active State */
.acw-horizontal .acw-category-link.acw-active {
    background: #d6336c;
    color: #fff;
    border-color: #d6336c;
    box-shadow: 0 2px 4px rgba(214, 51, 108, 0.3);
}

.acw-horizontal .acw-category-link.acw-active:hover {
    background: #c2255c;
    color: #fff;
}