.dolls {
    display: grid;
    gap: 20px;
    grid-template-columns: 230px 1.5fr;
}
.dolls .dolls-loading {
    grid-column: -1;
}
.dolls .current-page {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
}
.dolls-left-side {
    position: sticky;
    top: 50px;
}
.dolls-left-side button {
    margin-bottom: 10px;
}
.dolls-canvas {
    width: 100%;
    aspect-ratio: 0.6666666667;
    border-radius: 2.5px;
    background: var(--gray-light);
    margin-bottom: 20px;
    position: relative;
    margin: auto;
}
.dolls-canvas .dolls-canvas-inner {
    width: 100%;
    height: 100%;
}
.dolls-canvas .layer, .dolls-canvas .layer img, .dolls-canvas .layer .mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
}
.dolls-canvas .layer img {
    padding: 0;
    object-fit: cover;
    visibility: visible;
    margin: 0 !important;
    max-height: initial;
    opacity: 1;
    transition: none;
    animation: none;
    user-select: none;
    pointer-events: none;
}
.dolls-canvas .layer .mask {
    mask-image: var(--url);
    -webkit-mask-image: var(--url);
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
}
.dolls-templates {
    display: none;
}
.dolls-nav {
    display: flex;
    justify-content: center;
    align-items: center;
}
.dolls-nav .nav-nav-button {
    cursor: pointer;
    border: 0;
    background: var(--hint-bg);
    color: var(--color-gray);
    width: 30px;
    height: 30px;
    border-radius: 2.5px;
    transition: opacity 300ms;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.dolls-nav .nav-nav-button.disabled {
    opacity: 0;
}
.dolls-nav .nav-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.dolls-nav .dolls-nav-item {
    color: inherit;
    border: 0;
    background: transparent;
    border-radius: 2.5px;
    padding: 4px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.dolls-nav .dolls-nav-item .icon {
    font-size: 1rem;
    color: inherit;
    width: auto;
    height: auto;
    margin-right: 0;
}
.dolls-nav .dolls-nav-item .text {
    display: none;
}
.dolls-nav .dolls-nav-item.active {
    background: var(--hint-bg);
    color: var(--color-gray);
}
.dolls-nav .dolls-nav-item.active .icon {
    filter: brightness(50%);
}
.dolls-editor {
    max-width: 400px;
}
.dolls-editor hr {
    border-color: var(--gray-light);
    border-bottom: 0;
    margin: 1rem 0;
    margin-top: 2px;
}
.color-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}
.color-options.color-hidden {
    display: none;
}
.color-options .color-circle {
    cursor: pointer;
    width: 22px;
    height: 22px;
    position: relative;
    background: var(--color, var(--bg-alt));
    border-radius: 100px;
    position: relative;
}
.color-options .color-circle.active::after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(22px + 4px);
    height: calc(22px + 4px);
    border: 2px solid var(--color, var(--color-gray));
    border-radius: 50%;
}
.color-options > * {
    margin: 4px;
}
.doll-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}
.doll-options .doll-option {
    cursor: pointer;
    border-radius: 2.5px;
    border: 1px solid var(--gray-light);
    padding: 10px;
    font-weight: 500;
    text-align: center;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
}
.doll-options .doll-option img {
    display: block;
    width: 3rem;
    height: 3rem;
    background: var(--bg-alt);
    border: 0;
    visibility: visible;
    margin-bottom: 5px;
}
.doll-options .doll-option.active {
    border-color: var(--hint-bg);
    background: var(--hint-bg);
    color: var(--color-gray);
    font-weight: bold;
}
@media (max-width: 700px) {
    .dolls-canvas {
        width: 200px;
   }
    .dolls {
        grid-template-columns: 100%;
   }
}
.dolls-multiple-buttons {
    display: flex;
    gap: 20px;
}
.doll-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.doll-img-container > canvas {
    height: 300px;
    margin: 0 auto;
    background: var(--gray-light);
    border-radius: 2.5px;
    margin-bottom: 10px;
}
/* Add these styles at the end of the file */
.component-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 15px;
    background-color: var(--highlight-background);
    padding: .5rem;
}

.component-color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
    justify-content: center;
}

.component-color-palette .color-circle {
    cursor: pointer;
    width: 18px;
    height: 18px;
    position: relative;
    background: var(--color, var(--bg-alt));
    border-radius: 100px;
}

.component-color-palette .color-circle.active::after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(18px + 4px);
    height: calc(18px + 4px);
    border: 2px solid var(--color, var(--color-gray));
    border-radius: 50%;
}

.gender-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    
    .gender-btn {
        padding: 0.5rem 1rem;
        border-radius: 0.25rem;
        cursor: pointer;
        background: var(--highlight-background);
        border: 1px solid var(--highlight);
        
        &.active {
            background: var(--highlight);
            color: white;
        }
    }
}