.checklist-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    border-radius: 16px;
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 100%;
    box-sizing: border-box;
    border-left: 3px solid;
}

.checklist-header {
    display: flex;
    gap: 8px;
}

.checklist-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checklist-icon svg {
    width: 100%;
    height: 100%;
}

.checklist-header h3 {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    color: #1F1F1F;
    margin: 0;
    flex: 1;
}

.checklist-content {
    flex: 1;
    min-width: 0;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checklist-item {
    display: flex;
    gap: 8px;
}

.checklist-item::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url(./imgs/ok.svg);
}

.checklist-check {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #44CA58;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checklist-check svg {
    width: 10px;
    height: 7px;
}

.checklist-item span {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: #1F1F1F;
    flex: 1;
}

.checklist-content div {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: #1F1F1F;
}

/* Адаптивность */
@media (max-width: 767px) {
    .checklist-block {
        padding: 32px 24px;
        gap: 16px;
    }
    
    .checklist-header h3 {
        font-size: 18px!important;
    }
    
    .checklist-item span,
    .checklist-content div {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    
    .checklist-item span,
    .checklist-content div {
        font-size: 14px!important;
    }
}

/* Стили для редактора */
.checklist-block-editor {
    margin: 20px 0;
}

.checklist-block-editor .checklist-block {

}

.checklist-block-editor .checklist-block:hover {
    border-color: #007cba;
}

/* Стили для панели настроек */
.components-panel__body .components-base-control {
    margin-bottom: 16px;
}

.components-panel__body .components-base-control:last-child {
    margin-bottom: 0;
}

/* Стили для цветового пикера */
.components-color-picker {
    margin-bottom: 16px;
}

/* Стили для селекта */
.components-select-control__input {
    width: 100%;
}

/* Стили для кнопок */
.components-button-group {
    display: flex;
    gap: 4px;
}

.components-button-group .components-button {
    flex: 1;
}

/* Дополнительные стили для иконок */
.checklist-icon svg {
    transition: transform 0.2s ease;
}

.checklist-block:hover .checklist-icon svg {
    transform: scale(1.05);
}

/* Стили для различных фонов */
.checklist-block.bg-cream {
    background-color: #F5F1E8;
}

.checklist-block.bg-blue {
    background-color: #F0F8FF;
}

.checklist-block.bg-mint {
    background-color: #F0FFF0;
}

.checklist-block.bg-yellow {
    background-color: #FFF8DC;
}

.checklist-block.bg-gray {
    background-color: #F5F5F5;
}

/* Стили для галочек */
.checklist-check {
    transition: background-color 0.2s ease;
}

.checklist-item:hover .checklist-check {
    background-color: #3AB54A;
}

/* Стили для текста в режиме редактирования */
.checklist-block-editor .checklist-item span {
    min-height: 20px;
    padding: 4px 0;
}

.checklist-block-editor .checklist-content div {
    min-height: 20px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Стили для кнопки добавления элемента */
.checklist-block-editor .components-button.is-secondary {
    margin-top: 8px;
    width: 100%;
}

/* Стили для кнопки удаления */
.checklist-block-editor .components-button.is-destructive {
    margin-left: auto;
    padding: 4px 8px;
    min-width: auto;
}
