.cmspro-menu-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cmspro-action-buttons {
    display: inline-flex;
    gap: 0.5rem;
}

.cmspro-menu-help {
    margin: 0;
    color: #555;
}

.cmspro-order-feedback {
    min-height: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cmspro-order-feedback.is-success {
    color: #198754;
}

.cmspro-order-feedback.is-error {
    color: #dc3545;
}

.cmspro-menu-board {
    margin-bottom: 1rem;
}

.cmspro-root-list,
.cmspro-child-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cmspro-menu-item {
    background-color: #ffffff;
    border: 1px solid #d9e2ef;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08);
    margin-bottom: 0.75rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cmspro-menu-item:last-child {
    margin-bottom: 0;
}

.cmspro-menu-item.cmspro-is-dragging {
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
    transform: scale(1.01);
}

.cmspro-item-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
}

.cmspro-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.35rem;
    background-color: #f1f5f9;
    color: #475569;
    cursor: move;
    flex-shrink: 0;
}

.cmspro-drag-handle i {
    pointer-events: none;
}

.cmspro-item-details {
    flex: 1 1 auto;
    min-width: 0;
}

.cmspro-item-title {
    display: block;
    font-weight: 600;
    color: #1f2937;
    word-break: break-word;
}

.cmspro-menu-item.cmspro-is-child .cmspro-item-title {
    font-weight: 500;
}

.cmspro-item-uri {
    display: block;
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.85rem;
    word-break: break-word;
}

.cmspro-item-actions {
    display: inline-flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cmspro-item-actions .btn-link {
    padding: 0.2rem 0.35rem;
}

.cmspro-child-list {
    margin: 0.5rem 0 0.5rem 2.5rem;
    padding: 0.5rem 0 0.5rem 1.25rem;
    border-left: 2px dashed #cbd5e1;
}

.cmspro-child-list .cmspro-menu-item {
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.cmspro-child-list .cmspro-menu-item:last-child {
    margin-bottom: 0;
}

.cmspro-child-list.is-empty {
    min-height: 2.5rem;
}

.cmspro-child-list.is-empty::before {
    content: attr(data-empty-text);
    display: block;
    padding: 0.35rem 0.5rem;
    color: #64748b;
    font-size: 0.85rem;
}

.cmspro-sort-placeholder {
    background-color: #eef4ff;
    border: 2px dashed #91b4ff;
    border-radius: 0.5rem;
    min-height: 2.75rem;
    margin-bottom: 0.75rem;
}

.cmspro-child-list .cmspro-sort-placeholder {
    margin-left: 0;
}

.cmspro-menu-footer {
    margin-top: 1.25rem;
    display: flex;
    justify-content: flex-end;
}

.cmspro-menu-footer .btn {
    min-width: 9rem;
}

@media (max-width: 767px) {
    .cmspro-menu-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .cmspro-item-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .cmspro-item-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .cmspro-menu-footer {
        justify-content: center;
    }
}

.cmspro-form-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cmspro-form-section {
    background-color: #ffffff;
    border: 1px solid #d9e2ef;
    border-radius: 0.5rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.cmspro-section-title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.cmspro-section-help {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.cmspro-field-grid {
    display: grid;
    gap: 1rem 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cmspro-field {
    display: flex;
    flex-direction: column;
}

.cmspro-field label {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #374151;
}

.cmspro-field .input,
.cmspro-field select {
    width: 100%;
}

.cmspro-lang-switcher {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cmspro-lang-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cmspro-lang-button {
    border: 1px solid #cbd5e1;
    background-color: #f1f5f9;
    color: #1f2937;
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cmspro-lang-button.is-active {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.cmspro-lang-panels {
    position: relative;
}

.cmspro-lang-panel {
    display: none;
}

.cmspro-lang-panel.is-active {
    display: block;
}

.cmspro-form-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
}

.cmspro-cancel-link {
    padding-left: 0;
}

@media (max-width: 767px) {
    .cmspro-form-section {
        padding: 1rem;
    }

    .cmspro-field-grid {
        grid-template-columns: 1fr;
    }

    .cmspro-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .cmspro-form-footer .btn {
        width: 100%;
    }

    .cmspro-cancel-link {
        text-align: center;
    }
}
