.style-current {
    padding: 12px 14px;
    background: #fff8fc;
    border: 1px solid #efacd1;
    border-radius: 7px;
}

.style-current span,
.style-current strong,
.style-current small {
    display: block;
}

.style-current span {
    color: #a70f62;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.style-current strong {
    margin-top: 3px;
    color: #202635;
    font-size: 18px;
}

.style-current small {
    margin-top: 3px;
    color: #7c8798;
    font-size: 9px;
}

.style-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.style-section-heading h3,
.style-definition-preview h3 {
    margin: 0;
    color: #202635;
    font-size: 13px;
    font-weight: 700;
}

.style-section-heading span {
    color: #8a94a4;
    font-size: 9px;
}

.style-library-list {
    max-height: 215px;
    overflow-y: auto;
    background: #f7f8fb;
    border: 1px solid #e1e5eb;
    border-radius: 7px;
    scrollbar-color: #bec5cf transparent;
    scrollbar-width: thin;
}

.style-library-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    min-height: 50px;
    padding: 7px 10px;
    color: #202635;
    text-align: left;
    background: transparent;
    border: 0;
    transition: background-color .16s ease;
}

.style-library-item + .style-library-item {
    border-top: 1px solid #e9ecf0;
}

.style-library-item:hover,
.style-library-item:focus-visible {
    background: #fff;
}

.style-library-item.is-selected {
    background: #fff0f8;
    box-shadow: inset 3px 0 #e90c81;
}

.style-library-item__preview {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce1e8;
    border-radius: 5px;
    font-size: 13px;
}

.style-library-item__description {
    min-width: 0;
}

.style-library-item__description strong,
.style-library-item__description small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.style-library-item__description strong {
    font-size: 10px;
}

.style-library-item__description small {
    margin-top: 2px;
    color: #8a94a4;
    font-size: 8px;
}

.style-library-item > i {
    min-width: 36px;
    color: #c40f70;
    font-size: 8px;
    font-style: normal;
    font-weight: 700;
    text-align: right;
}

.style-definition {
    overflow: hidden;
    border: 1px solid #e1e5eb;
    border-radius: 7px;
}

.style-definition-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 10px 13px;
    background: #27374f;
}

.style-definition-preview > span {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    overflow: hidden;
    background: #fff;
    border-radius: 5px;
    font-size: 18px;
}

.style-definition-preview small {
    display: block;
    margin-bottom: 2px;
    color: #c7d0dc;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.style-definition-preview h3 {
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.style-definition-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.style-definition-grid > div {
    min-width: 0;
    padding: 8px 10px;
    border-bottom: 1px solid #e9ecf0;
}

.style-definition-grid > div:nth-child(odd) {
    border-right: 1px solid #e9ecf0;
}

.style-definition-grid span,
.style-definition-grid strong {
    display: block;
}

.style-definition-grid span {
    color: #7c8798;
    font-size: 9px;
}

.style-definition-grid strong {
    margin-top: 2px;
    overflow: hidden;
    color: #202635;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.style-definition-controls {
    padding: 11px;
    background: #f7f8fb;
}

.style-color-input {
    display: block;
    width: 100%;
    height: 38px;
    margin-top: 6px;
    padding: 3px 5px;
    background: #fff;
    border: 1px solid #d8dde5;
    border-radius: 6px;
    cursor: pointer;
}

.style-toggle-row {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.style-toggle-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #202635;
    font-size: 10px;
    font-weight: 650;
    cursor: pointer;
}

.style-toggle-row input {
    width: 15px;
    height: 15px;
    accent-color: #d90b77;
}

.style-definition-controls .demo-action-grid {
    margin-top: 12px;
}

@media (max-width: 575.98px) {
    .style-definition-grid {
        grid-template-columns: 1fr;
    }

    .style-definition-grid > div:nth-child(odd) {
        border-right: 0;
    }
}
