/*
 * "Ontwerp je eigen mat" box on the product page (wireframe: bordered card, example thumbnails, two full-width
 * buttons). Plain CSS instead of Tailwind classes, so it works without rebuilding the Hyvä theme; the buttons keep the
 * theme's own `btn` classes.
 */
.hamat-configurator-box {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    /* The theme's container (.my-4) spaces the box like the other product-info blocks. */
    margin: 0;
    padding: 1.25rem;
    border: 1px solid #e0e0e0;
    background: #fff;
}

.hamat-configurator-box__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Guest variant: a highlighted notice that a login is needed (warning tones as in the configurator). */
.hamat-configurator-box__notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.625rem 0.75rem;
    border: 1px solid #f2b57a;
    background: #fff4e8;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.hamat-configurator-box__notice-icon {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    color: #b54708;
}

.hamat-configurator-box__templates {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hamat-configurator-box__template-button {
    display: block;
    width: 100%;
    aspect-ratio: 6 / 5;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #e3e3e3;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.hamat-configurator-box__template-button:hover {
    opacity: 0.85;
}

.hamat-configurator-box__template-button:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

.hamat-configurator-box__template-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hamat-configurator-box__template-name {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0.25rem;
    overflow: hidden;
    font-size: 0.75rem;
    line-height: 1.2;
    color: #5f6368;
    text-align: center;
}

.hamat-configurator-box__hint {
    margin: 0;
    font-size: 0.8125rem;
    color: #5f6368;
}

/* Minimum quantity and lead time, for guests and customers. */
.hamat-configurator-box__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: #f4f4f4;
    font-size: 0.875rem;
    line-height: 1.4;
}

.hamat-configurator-box__info-line {
    margin: 0;
}

.hamat-configurator-box__info-line--strong {
    font-weight: 700;
}

.hamat-configurator-box__actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.hamat-configurator-box__actions .btn {
    box-sizing: border-box;
    justify-content: center;
    width: 100%;
}

.hamat-configurator-box__app:empty {
    display: none;
}
