.tscfc-widget,
.tscfc-widget * {
    box-sizing: border-box;
}

.tscfc-widget {
    --tscfc-pink: #e91e73;
    --tscfc-pink-soft: rgba(233, 30, 115, 0.085);
    --tscfc-pink-border: rgba(233, 30, 115, 0.24);
    --tscfc-text: #202634;
    --tscfc-muted: #657083;
    --tscfc-border: rgba(31, 41, 55, 0.10);
    --tscfc-shadow: 0 18px 50px rgba(24, 31, 56, 0.10);
    --tscfc-radius: 14px;

    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--tscfc-radius);
    box-shadow: var(--tscfc-shadow);
    padding: 10px 10px 10px;
    color: var(--tscfc-text);
    font-family: inherit;
}

.tscfc-title {
    margin: 0;
    padding: 8px 8px 0;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--tscfc-text);
}

.tscfc-divider {
    height: 1px;
    margin: 14px 8px 8px;
    background: var(--tscfc-border);
}

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

.tscfc-widget > .tscfc-list,
.tscfc-item.is-expanded > .tscfc-list {
    display: block;
}

.tscfc-item > .tscfc-list {
    display: none;
}

.tscfc-item {
    position: relative;
    margin: 0;
    padding: 0;
}

.tscfc-row {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 30px;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.tscfc-row:hover {
    background: rgba(233, 30, 115, 0.055);
}

.tscfc-item.is-active > .tscfc-row {
    background: var(--tscfc-pink-soft);
    border-color: var(--tscfc-pink-border);
}

.tscfc-link {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 3px 6px 7px;
    color: var(--tscfc-text) !important;
    text-decoration: none !important;
    font-size: 13.5px;
    line-height: 1.2;
    font-weight: 600;
}

.tscfc-icon {
    width: 17px;
    min-width: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3b4658;
    font-size: 13px;
}

/* CSS-only custom icon for the Hairstyles category.
   Uses currentColor so it automatically turns pink when the row is active. */
.tscfc-icon-hairstyles {
    position: relative;
    width: 17px;
    min-width: 17px;
    height: 17px;
    font-size: 0;
}

.tscfc-icon-hairstyles .tscfc-hair-face,
.tscfc-icon-hairstyles .tscfc-hair-cap,
.tscfc-icon-hairstyles .tscfc-hair-side {
    position: absolute;
    display: block;
    pointer-events: none;
}

.tscfc-icon-hairstyles .tscfc-hair-face {
    left: 5px;
    top: 5px;
    width: 7px;
    height: 9px;
    border: 1.45px solid currentColor;
    border-radius: 50% 50% 46% 46%;
    background: #ffffff;
    z-index: 2;
}

.tscfc-icon-hairstyles .tscfc-hair-cap {
    left: 3px;
    top: 2px;
    width: 11px;
    height: 8px;
    border: 1.65px solid currentColor;
    border-bottom: 0;
    border-radius: 12px 12px 6px 6px;
    z-index: 3;
}

.tscfc-icon-hairstyles .tscfc-hair-side {
    top: 7px;
    width: 5px;
    height: 8px;
    border: 1.65px solid currentColor;
    z-index: 1;
}

.tscfc-icon-hairstyles .tscfc-hair-side-left {
    left: 2px;
    border-right: 0;
    border-radius: 7px 0 0 9px;
}

.tscfc-icon-hairstyles .tscfc-hair-side-right {
    right: 2px;
    border-left: 0;
    border-radius: 0 7px 9px 0;
}

.tscfc-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tscfc-count {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.055);
    color: var(--tscfc-muted);
    font-size: 10.5px;
    font-weight: 700;
}

.tscfc-toggle,
.tscfc-toggle-placeholder {
    width: 27px;
    min-width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tscfc-toggle {
    border: 0;
    background: transparent;
    color: #4b5565;
    cursor: pointer;
    border-radius: 8px;
    font-size: 12px;
    transition: background-color 140ms ease, transform 140ms ease, color 140ms ease;
}

.tscfc-toggle:hover {
    background: rgba(31, 41, 55, 0.06);
    color: var(--tscfc-pink);
}

.tscfc-toggle i {
    transition: transform 160ms ease;
}

.tscfc-item.is-expanded > .tscfc-row .tscfc-toggle i {
    transform: rotate(90deg);
}

.tscfc-item.is-loading > .tscfc-row .tscfc-toggle i {
    animation: tscfcSpin 700ms linear infinite;
}

.tscfc-item.is-active > .tscfc-row .tscfc-link,
.tscfc-item.is-active > .tscfc-row .tscfc-icon,
.tscfc-item.is-active > .tscfc-row .tscfc-toggle {
    color: var(--tscfc-pink) !important;
    font-weight: 800;
}

.tscfc-depth-1,
.tscfc-depth-2,
.tscfc-depth-3,
.tscfc-depth-4,
.tscfc-depth-5 {
    margin: 1px 0 3px 18px;
    padding-left: 10px;
    border-left: 1px solid rgba(101, 112, 131, 0.20);
}

.tscfc-item-depth-1 .tscfc-row,
.tscfc-item-depth-2 .tscfc-row,
.tscfc-item-depth-3 .tscfc-row,
.tscfc-item-depth-4 .tscfc-row,
.tscfc-item-depth-5 .tscfc-row {
    min-height: 28px;
}

.tscfc-item-depth-1 .tscfc-link,
.tscfc-item-depth-2 .tscfc-link,
.tscfc-item-depth-3 .tscfc-link,
.tscfc-item-depth-4 .tscfc-link,
.tscfc-item-depth-5 .tscfc-link {
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #394456 !important;
}

.tscfc-child-dot {
    width: 11px;
    min-width: 11px;
    font-size: 4px;
    color: #8a95a8;
}

.tscfc-item.is-active > .tscfc-row .tscfc-child-dot {
    color: var(--tscfc-pink) !important;
}

.tscfc-load-error {
    margin: 4px 10px 8px 34px;
    color: #b42318;
    font-size: 12px;
    line-height: 1.35;
}

@keyframes tscfcSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .tscfc-widget {
        padding: 10px 10px 10px;
    }

    .tscfc-title {
        font-size: 18px;
    }
}
