.stht-editorial-sections-button {
    margin-left: 4px;
}

.stht-editorial-sections-modal[hidden] {
    display: none !important;
}

.stht-editorial-sections-modal {
    position: fixed;
    inset: 0;
    z-index: 100160;
}

.stht-editorial-sections-modal-open {
    overflow: hidden;
}

.stht-editorial-sections-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.stht-editorial-sections-modal__dialog {
    position: relative;
    width: min(640px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    overflow: auto;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.stht-editorial-sections-modal__header,
.stht-editorial-sections-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: #f6f7f7;
    border-bottom: 1px solid #dcdcde;
}

.stht-editorial-sections-modal__footer {
    justify-content: flex-end;
    border-bottom: 0;
    border-top: 1px solid #dcdcde;
}

.stht-editorial-sections-modal__header h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.stht-editorial-sections-modal__close {
    border: 0;
    background: transparent;
    color: #50575e;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.stht-editorial-sections-modal__body {
    padding: 20px;
}

.stht-editorial-sections-modal__field {
    margin: 0 0 16px;
}

.stht-editorial-sections-modal__field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.stht-editorial-sections-modal__field input[type="text"],
.stht-editorial-sections-modal__field textarea,
.stht-editorial-sections-modal__field select {
    width: 100%;
    max-width: 100%;
}

.stht-editorial-checklist-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 12px;
}

.stht-editorial-checklist-item {
    padding: 16px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fbfbfc;
}

.stht-editorial-checklist-item .button-link-delete {
    margin-top: 4px;
}

.stht-editorial-sections-modal__error {
    margin: 0;
    color: #b32d2e;
    font-weight: 600;
}

.stht-editorial-sections-modal__error[hidden] {
    display: none !important;
}
