/* Larger product/template previews in the product start modal. */
.product-modal__header {
    min-height: 150px;
    height: auto;
    box-sizing: border-box;
}

.product-modal__header img {
    width: 128px !important;
    height: 128px !important;
    padding: 4px !important;
    flex: 0 0 128px;
    box-sizing: border-box;
    object-fit: contain !important;
    background: #f3f6fb;
    border-radius: 20px;
}

.start-card {
    min-height: 430px;
}

.start-card__thumb {
    inset: 10px 10px 84px !important;
}

.start-card__thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    transform: scale(1.28);
    transform-origin: center;
}

.product-modal__grid {
    max-height: calc(100vh - 240px);
}

@media (max-width: 700px) {
    .product-modal__header {
        min-height: 118px;
        gap: 14px;
    }

    .product-modal__header img {
        width: 92px !important;
        height: 92px !important;
        flex-basis: 92px;
    }

    .start-card {
        min-height: 390px;
    }

    .start-card__thumb img {
        transform: scale(1.18);
    }
}
