/**
 * File Path: assets/css/admin/formatting/formatting-content-panels.css
 * Layout description panel, merge-tag pills, section display order, share text badge
 * Component of mbs-admin-settings-formatting.css — extracted Session 100.
 * Enqueued by MBS_Tab_Formatting with dep: mbs-admin-settings-formatting.
 */

/* ------------------------------------------------ */
/* LAYOUT DESCRIPTION PANEL                       */
/* ------------------------------------------------ */

/* Panel sits below the thumbnail grid and above the helper note.
   Hidden until JS populates it; min-height reserves space so the
   page does not jump on first population. */
.mbs-layout-description {
    display: none;
    max-width: 820px;
    margin: 4px 0 10px 0;
    background: #f0f6fc;
    border-left: 3px solid var(--mbs-status-info);
    border-radius: 0 4px 4px 0;
    padding: 10px 14px;
    min-height: 54px;
}

.mbs-layout-description.is-visible {
    display: block;
}

.mbs-layout-description-title {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 4px 0;
}

.mbs-layout-description-body {
    font-size: 12px;
    color: #3c434a;
    line-height: 1.5;
    margin: 0 0 4px 0;
}

.mbs-layout-description-bestfor {
    font-size: 11px;
    color: #646970;
    margin: 0;
}

.mbs-layout-description-bestfor strong {
    color: var(--mbs-status-info);
}

/* ------------------------------------------------ */
/* MERGE-TAG PILLS                                */
/* ------------------------------------------------ */

.mbs-tab-formatting .mbs-merge-tag-pills-label {
    margin-top: 10px;
    margin-bottom: 6px;
}

.mbs-merge-tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 0 0;
}

.mbs-merge-tag-pill {
    display: inline-block;
    background: #f0f0f1;
    color: var(--mbs-status-info);
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 4px 12px;
    font-family: Consolas, Monaco, "Andale Mono", monospace;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
    line-height: 1.4;
}

.mbs-merge-tag-pill:hover {
    background: #e0e7f0;
    border-color: var(--mbs-status-info);
}

.mbs-merge-tag-pill:active {
    background: #c5d4e4;
    transform: translateY(1px);
}

.mbs-merge-tag-pill:focus {
    outline: none;
    border-color: var(--mbs-status-info);
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.25);
}

/* ------------------------------------------------ */
/* SECTION DISPLAY ORDER — constrained width       */
/* Fix for client complaint "buttons span the      */
/* entire width of the page" (2026-04-19).         */
/* ------------------------------------------------ */

.mbs-formatting-section-order-cell .mbs-sortable-list {
    max-width: 520px;
    margin: 10px 0 0 0;
}

.mbs-formatting-section-order-cell .mbs-sortable-item {
    background: #fff;
    transition: background 0.12s ease, box-shadow 0.12s ease;
}

.mbs-formatting-section-order-cell .mbs-sortable-item:hover {
    background: #fafbfc;
    box-shadow: inset 3px 0 0 var(--mbs-status-info);
}

.mbs-formatting-section-order-cell .mbs-sortable-item:last-child {
    border-bottom: none;
}

.mbs-formatting-section-order-cell .mbs-drag-handle {
    margin-right: 10px;
    color: #8c8f94;
    cursor: grab;
}

.mbs-formatting-section-order-cell .mbs-sortable-item:active .mbs-drag-handle {
    cursor: grabbing;
}

.mbs-formatting-section-order-cell .mbs-sortable-label {
    color: #2c3338;
    font-size: 13px;
}

/* Arrow-fallback <details> element — collapsed by default, subtle styling. */
.mbs-section-order-fallback {
    margin-top: 14px;
    max-width: 520px;
}

.mbs-section-order-fallback > summary {
    cursor: pointer;
    color: #646970;
    font-size: 12px;
    padding: 6px 0;
    user-select: none;
    list-style: none;
}

.mbs-section-order-fallback > summary::-webkit-details-marker {
    display: none;
}

.mbs-section-order-fallback > summary::before {
    content: '\25B8 ';
    display: inline-block;
    margin-right: 4px;
    transition: transform 0.15s ease;
}

.mbs-section-order-fallback[open] > summary::before {
    content: '\25BE ';
}

.mbs-section-order-fallback > summary:hover {
    color: var(--mbs-status-info);
}

.mbs-section-order-fallback .mbs-section-order-table {
    margin-top: 8px;
    width: 100%;
}

/* Reset-to-default-order action row. */
.mbs-section-order-actions {
    margin: 14px 0 0 0;
}

/* ------------------------------------------------ */
/* GLOBAL SHARE TEXT — label badge inline          */
/* ------------------------------------------------ */

.mbs-formatting-share-text-cell > label .pro-badge {
    margin-left: 8px;
    vertical-align: middle;
}
