.twf-workflow {
    margin: 40px 0;
}

.twf-workflow-inner {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

/* Desktop layout */
.twf-workflow.twf-image-left .twf-workflow-image-wrap {
    order: 1;
}
.twf-workflow.twf-image-left .twf-workflow-steps-wrap {
    order: 2;
}

.twf-workflow.twf-image-right .twf-workflow-image-wrap {
    order: 2;
}
.twf-workflow.twf-image-right .twf-workflow-steps-wrap {
    order: 1;
}

.twf-workflow-image-wrap {
    flex: 1 1 45%;
}

.twf-main-image,
.twf-main-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    border-radius: 6px;
    background-size: cover;
    background-position: center center;
    background-color: #f0f0f0;
}

.twf-workflow-steps-wrap {
    flex: 1 1 55%;
}

/* Progress bar */
.twf-progress-bar-wrap {
    margin-bottom: 16px;
}
.twf-progress-track {
    width: 100%;
    height: 6px;
    background: #e4e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.twf-progress-bar {
    height: 100%;
    width: 0;
    background: #0b7ac4;
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* Accordion */
.twf-accordion {
    border-top: 1px solid #d3d7dd;
}
.twf-step {
    border-bottom: 1px solid #d3d7dd;
}
.twf-step-header {
    width: 100%;
    background: #ffffff;
    border: none;
    padding: 12px 8px;
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    text-align: left;
}
.twf-step-header:hover {
    background: #f7f9fb;
}
.twf-step-number {
    font-weight: 600;
    color: #0b7ac4;
    min-width: 22px;
}
.twf-step-title {
    font-weight: 600;
    flex: 1 1 auto;
}
.twf-step-duration {
    font-size: 12px;
    color: #6b7280;
    margin-right: 10px;
    white-space: nowrap;
}
.twf-step-toggle {
    font-size: 18px;
    font-weight: 600;
    color: #6b7280;
}
.twf-step-body {
    display: none;
    padding: 0 8px 12px 32px;
    font-size: 14px;
    color: #4b5563;
}
.twf-step.is-active .twf-step-body {
    display: block;
}
.twf-step.is-active .twf-step-toggle {
    transform: rotate(45deg);
}

/* Mobile: image on top, accordions below */
@media (max-width: 768px) {
    .twf-workflow-inner {
        flex-direction: column;
    }
    .twf-workflow-image-wrap,
    .twf-workflow-steps-wrap {
        order: initial !important; /* image is first in markup, so it stays on top */
    }
    .twf-main-image,
    .twf-main-image-placeholder {
        min-height: 200px;
    }
}
.twf-total-duration {
    margin: 8px 0 18px;
    font-size: 14px;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 6px;
}

.twf-duration-icon {
    font-size: 14px;
    line-height: 1;
}

.twf-step-duration {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

