/* Small Line Widget
   Decorative divider — plain bar or with title / icon */

.mn-small-line {
    --mn-sl-width: 56px;
    --mn-sl-thickness: 3px;
    --mn-sl-gap: 16px;

    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 24px 0;
}

/* Alignment via prefix_class on wrapper */
.mn-sl-align-left .mn-small-line {
    justify-content: flex-start;
}

.mn-sl-align-center .mn-small-line {
    justify-content: center;
}

.mn-sl-align-right .mn-small-line {
    justify-content: flex-end;
}

/* ── Plain bar (no title/icon) ── */
.mn-small-line--plain .mn-small-line__bar {
    display: block;
    flex-shrink: 0;
    height: var(--mn-sl-thickness);
    background-color: #9a7364;
    border: none;
}

.mn-small-line--plain.mn-small-line--full .mn-small-line__bar {
    width: 100%;
}

.mn-small-line--plain.mn-small-line--custom .mn-small-line__bar {
    width: var(--mn-sl-width);
}

/* Line styles — plain */
.mn-small-line--dashed.mn-small-line--plain .mn-small-line__bar,
.mn-small-line--dotted.mn-small-line--plain .mn-small-line__bar,
.mn-small-line--double.mn-small-line--plain .mn-small-line__bar {
    background-color: transparent !important;
    background-image: none !important;
    border-top-style: inherit;
    border-top-width: var(--mn-sl-thickness);
    border-top-color: #9a7364;
    height: 0;
}

.mn-small-line--dashed.mn-small-line--plain .mn-small-line__bar {
    border-top-style: dashed;
}

.mn-small-line--dotted.mn-small-line--plain .mn-small-line__bar {
    border-top-style: dotted;
}

.mn-small-line--double.mn-small-line--plain .mn-small-line__bar {
    border-top-style: double;
    border-top-width: calc(var(--mn-sl-thickness) * 2);
}

/* ── With content (title / icon) ── */
.mn-small-line--with-content {
    gap: 0;
}

.mn-small-line--with-content.mn-small-line--full {
    width: 100%;
}

.mn-small-line--with-content.mn-small-line--custom {
    width: var(--mn-sl-width);
    max-width: 100%;
}

.mn-small-line__seg {
    flex: 1 1 auto;
    min-width: 12px;
    height: var(--mn-sl-thickness);
    background-color: #9a7364;
    align-self: center;
}

/* Line styles — segments */
.mn-small-line--dashed .mn-small-line__seg,
.mn-small-line--dotted .mn-small-line__seg,
.mn-small-line--double .mn-small-line__seg {
    background-color: transparent !important;
    background-image: none !important;
    border-top-style: inherit;
    border-top-width: var(--mn-sl-thickness);
    border-top-color: #9a7364;
    height: 0;
}

.mn-small-line--dashed .mn-small-line__seg {
    border-top-style: dashed;
}

.mn-small-line--dotted .mn-small-line__seg {
    border-top-style: dotted;
}

.mn-small-line--double .mn-small-line__seg {
    border-top-style: double;
    border-top-width: calc(var(--mn-sl-thickness) * 2);
}

.mn-small-line__side,
.mn-small-line__middle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--mn-sl-gap);
    line-height: 1;
}

.mn-small-line__title {
    margin: 0;
    padding: 0;
    color: #4a3944;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    line-height: 1.4;
}

.mn-small-line__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9a7364;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.mn-small-line__icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.mn-small-line__icon i {
    display: block;
    line-height: 1;
}

/* When only left content + line (no center): stretch end seg */
.mn-small-line--with-content.mn-small-line--custom:not(.mn-small-line--full) {
    /* width already set */
}

@media (max-width: 767px) {
    .mn-small-line__title {
        font-size: 13px;
        white-space: normal;
        text-align: center;
    }
}
