.spm-menu {
    display: grid;
    gap: 0;
}

.spm-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
}

.spm-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spm-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: var(--spm-item-spacing, 20px);
}

.spm-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: 100%;
}

.spm-name {
    font-weight: 600;
    font-size: var(--spm-title-font-size, 16px);
    flex: 1 1 auto;
}

.spm-price {
    font-weight: 600;
    font-size: var(--spm-price-font-size, 15px);
    margin-left: auto;
    flex-shrink: 0;
}

.spm-dots {
    flex: 1;
    border-bottom: 1px dotted #777;
    transform: translateY(-2px);
}

.spm-style-bar-bottom .spm-dots {
    display: none;
}

.spm-desc {
    color: #666;
    font-size: 0.82em;
    font-style: italic;
    margin-top: var(--spm-item-gap, 6px);
}

.spm-item-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.spm-item-allergen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f2f2f2;
    overflow: hidden;
}

.spm-item-allergen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.spm-item-allergen-name {
    font-size: 0.72em;
    padding: 0 6px;
}

.spm-style-bar-bottom {
    position: relative;
    padding-bottom: 14px;
}

.spm-style-bar-bottom .spm-item {
    position: relative;
}

.spm-style-bar-bottom .spm-line::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background-color: var(--spm-bar-color, #2271b1);
}

@media (max-width: 700px) {
    .spm-columns-2,
    .spm-columns-3 {
        grid-template-columns: 1fr;
    }
}
