.order-workflow-panel {
    position: fixed;
    right: 18px;
    top: 34px;
    width: min(344px, calc(100vw - 24px));
    z-index: 1040;
    font-family: inherit;
}

.order-workflow-panel.is-collapsed {
    width: auto;
}

.order-workflow-toggle,
.order-workflow-btn {
    border: 0;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    min-height: 38px;
    padding: 8px 12px;
    font-weight: 700;
    box-shadow: 0 14px 35px rgba(17, 24, 39, .18);
}

.order-workflow-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.order-workflow-card {
    background: #fff;
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(17, 24, 39, .18);
    overflow: hidden;
}

.order-workflow-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 12px;
    border-bottom: 1px solid rgba(17, 24, 39, .08);
}

.order-workflow-title {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
}

.order-workflow-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.order-workflow-close {
    border: 0;
    background: transparent;
    color: #4b5563;
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.order-workflow-body {
    max-height: min(360px, calc(100vh - 130px));
    overflow: auto;
    padding: 14px;
    display: grid;
    gap: 12px;
}

.order-workflow-empty {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.45;
}

.order-workflow-order {
    border: 1px solid rgba(17, 24, 39, .1);
    border-radius: 8px;
    padding: 12px;
    background: #f9fafb;
}

.order-workflow-order strong {
    display: block;
    color: #111827;
    font-size: 14px;
}

.order-workflow-order span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-top: 3px;
}

.order-workflow-steps {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-workflow-steps li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #374151;
    font-size: 13px;
}

.order-workflow-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d1d5db;
    flex: 0 0 auto;
}

.order-workflow-steps li.is-done .order-workflow-dot {
    background: #10b981;
}

.order-workflow-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.order-workflow-actions a,
.order-workflow-actions button {
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(17, 24, 39, .14);
    background: #fff;
    color: #111827;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px;
    font-size: 12px;
    font-weight: 700;
    min-width: 0;
    text-align: center;
}

.order-workflow-actions .is-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.order-workflow-note {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.45;
}

.order-workflow-design {
    display: grid;
    gap: 7px;
    padding-top: 9px;
    margin-top: 9px;
    border-top: 1px solid rgba(17, 24, 39, .08);
}

.order-workflow-design-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.order-workflow-design-actions a {
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(17, 24, 39, .14);
    background: #fff;
    color: #111827;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px;
    font-size: 12px;
    font-weight: 700;
    min-width: 0;
    text-align: center;
}

@media (max-width: 768px) {
    .order-workflow-panel {
        top: auto;
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        z-index: 1042;
    }

    .order-workflow-card {
        max-height: 58vh;
    }

    .order-workflow-head {
        padding: 11px 12px;
    }

    .order-workflow-body {
        max-height: calc(58vh - 57px);
        padding: 12px;
    }

    .order-workflow-actions,
    .order-workflow-design-actions {
        grid-template-columns: 1fr;
    }

    .order-workflow-panel.is-collapsed {
        left: auto;
        width: auto;
    }
}
