/* doc-project | public/assets/css/ice-cream-configurator.css | progression et navigation communes aux tunnels glace et sundae */
.ice-configurator {
    margin: 20px 0;
}

.ice-progress {
    display: grid;
    grid-template-columns: repeat(var(--tunnel-step-count, 3), minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.ice-progress li {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 850;
}

.ice-progress li span {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    border-radius: 50%;
    background: #eee7ef;
}

.ice-progress li.current {
    color: var(--lavender-dark);
}

.ice-progress li.current span,
.ice-progress li.done span {
    background: var(--lavender);
    color: #fff;
}

.ice-step header {
    margin-bottom: 12px;
}

.ice-step header h3 {
    margin: 5px 0;
}

.ice-step header p {
    margin: 5px 0 0;
    color: var(--muted);
}

.ice-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ice-choice {
    border: 2px solid #e4d9e8;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

.ice-choice:hover,
.ice-choice.selected {
    border-color: var(--lavender);
}

.ice-choice.selected {
    box-shadow: 0 0 0 3px rgba(118, 86, 168, .16);
}

.ice-choice.soldout {
    border-style: dashed;
    background: #f4f1f4;
    color: #8c7f8d;
    cursor: not-allowed;
    opacity: .72;
}

.ice-choice.soldout small {
    color: #a23d3d;
}

.ice-flavor-grid {
    display: grid;
    gap: 10px;
}

.ice-summary {
    margin-top: 13px;
    padding: 12px;
    border-radius: 13px;
    background: #f6eff8;
    color: var(--lavender-dark);
    font-weight: 800;
}

.ice-summary:empty {
    display: none;
}

.tunnel-navigation {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 720px) {
    .ice-progress {
        grid-template-columns: repeat(var(--tunnel-step-count, 3), 32px);
        justify-content: space-between;
    }

    .ice-progress li {
        justify-content: center;
        font-size: 0;
    }

    .ice-progress li span {
        font-size: .78rem;
    }
}

@media (max-width: 560px) {
    .ice-choice-grid,
    .ice-flavor-grid {
        grid-template-columns: 1fr;
    }
}