.checkout-shell,
.blocked-shell {
    position: relative;
    width: min(100%, var(--page-max-width));
    margin: 0 auto;
    padding: 24px 16px calc(228px + var(--sticky-offset));
    scroll-padding-bottom: calc(228px + var(--sticky-offset));
}

.hero-panel,
.panel-header,
.panel-subheader,
.sticky-summary-bar,
.summary-actions,
.delivery-meta,
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hero-panel {
    align-items: flex-start;
    margin-bottom: 18px;
}

.step-indicator {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 0;
    padding: 0;
}

.wizard-panel {
    display: none;
    animation: panel-in 220ms ease;
}

.wizard-panel.is-active {
    display: block;
}

.product-grid,
.delivery-grid,
.stack-grid,
.category-section {
    display: grid;
    gap: 16px;
}

.stack-grid,
.product-grid,
.delivery-grid {
    grid-template-columns: 1fr;
}

.sticky-summary-bar {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: min(calc(100% - 24px), calc(var(--page-max-width) - 24px));
    box-sizing: border-box;
    padding: 12px 14px;
    display: block;
    z-index: 18;
}

.sticky-summary-shell {
    display: grid;
    gap: 12px;
}

.summary-actions {
    flex-shrink: 0;
}

.sticky-summary-bar .step-indicator {
    width: min(320px, 100%);
    gap: 4px;
    margin-inline: auto;
}

.sticky-summary-content {
    display: grid;
    gap: 12px;
    justify-items: center;
    text-align: center;
}

.sticky-summary-actions {
    width: 100%;
    justify-content: center;
}

.blocked-shell {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

@keyframes panel-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 680px) {
    .checkout-shell {
        padding-bottom: calc(186px + var(--sticky-offset));
        scroll-padding-bottom: calc(186px + var(--sticky-offset));
        padding-left: 24px;
        padding-right: 24px;
    }

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

    .stack-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }

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