/* ТРЗ Зона — Стъпки */

.core-editor-stapki-block .core-editor-stapki-steps {
    counter-reset: stapki-counter;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.core-editor-stapki-block .steps-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
}

.core-editor-stapki-block .steps-heading .icon {
    display: block;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.core-editor-stapki-block .steps-list {
    display: flex;
    flex-direction: column;
}

.core-editor-stapki-block .core-editor-stapki-step {
    display: flex;
    position: relative;
}

.core-editor-stapki-step .step-marker-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
    flex-shrink: 0;
    margin-right: 16px;
}

.core-editor-stapki-step .step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #2f6fed;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.core-editor-stapki-step .step-num::before {
    counter-increment: stapki-counter;
    content: counter(stapki-counter, decimal-leading-zero);
}

.core-editor-stapki-step .step-line {
    width: 2px;
    flex: 1;
    background: #e2e8f0;
    min-height: 20px;
    margin-top: 8px;
}

.core-editor-stapki-step:last-child .step-line {
    display: none;
}

.core-editor-stapki-step .step-content {
    flex: 1;
    padding-bottom: 24px;
}

.core-editor-stapki-step:last-child .step-content {
    padding-bottom: 0;
}

.core-editor-stapki-step .step-title-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.3;
}

.core-editor-stapki-step .accordion {
    border: none;
    border-radius: 0;
    overflow: visible;
}

.core-editor-stapki-step .accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    background: #F8FAFC !important;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    text-align: left;
    font-size: 0.9rem;
    color: #2f6fed;
    font-weight: 500;
    text-transform: none;
}

.core-editor-stapki-step .accordion-toggle:hover,
.core-editor-stapki-step .accordion-toggle:focus,
.core-editor-stapki-step .accordion-toggle:active {
    background: #F8FAFC !important;
    color: #1e293b !important;
    text-decoration: none;
    filter: none !important;
    opacity: 1 !important;
    outline: none !important;
    box-shadow: none !important;
    text-transform: none;
}

.core-editor-stapki-step .accordion-toggle[aria-expanded="true"] .chevron,
.core-editor-stapki-step .accordion-toggle .chevron.open {
    transform: rotate(180deg);
}

.core-editor-stapki-step .chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.core-editor-stapki-step .accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.core-editor-stapki-step .accordion-panel.is-open {
    max-height: 5000px;
}

.core-editor-stapki-step .accordion-panel-inner {
    padding: 12px 0;
    border-top: none;
    background: #ffffff;
}

.core-editor-stapki-step .accordion-panel-inner > * {
    margin-top: 0;
    margin-bottom: 12px;
}

.core-editor-stapki-step .accordion-panel-inner > *:last-child {
    margin-bottom: 0;
}

.editor-styles-wrapper .core-editor-stapki-step .accordion-panel {
    max-height: none !important;
}

.editor-styles-wrapper .core-editor-stapki-step .accordion-panel-inner {
    min-height: 50px;
}
