.yblkrest-lazy-menu-section {
    container-type: inline-size;
}

.yblkrest-lazy-menu-section__title {
    margin-top: 0;
}

.yblkrest-lazy-menu-section__skeleton {
    display: grid;
    grid-template-columns: repeat(var(--yblkrest-lazy-menu-columns, 4), minmax(0, 1fr));
    gap: var(--wp--preset--spacing--20, 16px);
    width: 100%;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.yblkrest-lazy-menu-section__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: var(--wp--preset--spacing--20, 12px);
    border-radius: 20px;
    background: #fff8f8;
}

.yblkrest-lazy-menu-section__skeleton span {
    display: block;
    overflow: hidden;
    background: linear-gradient(100deg, rgba(0, 0, 0, .06) 35%, rgba(0, 0, 0, .12) 50%, rgba(0, 0, 0, .06) 65%) 0 / 200% 100%;
    animation: yblkrest-lazy-menu-pulse 1.4s infinite linear;
}

.yblkrest-lazy-menu-section__image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
}

.yblkrest-lazy-menu-section__line {
    height: .9rem;
    border-radius: .3rem;
}

.yblkrest-lazy-menu-section__line--title { width: 82%; margin-top: 4px; }
.yblkrest-lazy-menu-section__line--title-short { width: 56%; }
.yblkrest-lazy-menu-section__line--price { width: 36%; height: 1.2rem; margin-top: 4px; }

.yblkrest-lazy-menu-section__button {
    width: 100%;
    height: var(--yblkrest-button-buy-control-height, 44px);
    margin-top: auto;
    border-radius: 999px;
}

.yblkrest-lazy-menu-section__error {
    padding: 1rem 0;
}

.yblkrest-lazy-menu-section__retry {
    margin-left: .75rem;
}

@keyframes yblkrest-lazy-menu-pulse {
    to { background-position: -200% 0; }
}

@media (max-width: 1024px) {
    .yblkrest-lazy-menu-section__skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .yblkrest-lazy-menu-section__card { padding: 12px; border-radius: 18px; }
    .yblkrest-lazy-menu-section__image { border-radius: 18px; }
}

/* The menu can be placed in a narrow mobile column on a wide viewport. */
@container (max-width: 1024px) {
    .yblkrest-lazy-menu-section__skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .yblkrest-lazy-menu-section__card { padding: 12px; border-radius: 18px; }
    .yblkrest-lazy-menu-section__image { border-radius: 18px; }
}
