.mh-product-hero {
    padding-block-end: clamp(18px, 3vw, 36px);
}

.mh-product-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-block-start: 26px;
}

.mh-product-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#main .mh-product-order-actions [data-product-buy]:not(:hover) {
    background: #fff;
}

.mh-product-scroll {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: clamp(24px, 4vw, 52px) auto 0;
    border: 1px solid #dfe5eb;
    border-radius: 50%;
    background: #f5f5f7;
    color: #303a46;
}

.mh-product-scroll:hover {
    background: #edf5ff;
    color: var(--product-blue);
}

@media (prefers-reduced-motion: no-preference) {
    .mh-product-scroll.is-in-view svg {
        animation: mh-product-scroll-bounce .7s 3 ease-in-out .2s;
    }
}

@keyframes mh-product-scroll-bounce {
    0%, 100% { transform: translateY(0); }
    45% { transform: translateY(4px); }
}

.mh-product-buy-dialog:not([open]) {
    display: none;
}

.mh-product-buy-dialog {
    width: min(730px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    padding: clamp(24px, 6vw, 48px);
    border: 0;
    border-radius: var(--product-radius);
    background: #fff;
    color: var(--product-ink);
    box-shadow: 0 28px 100px #0c1e3545;
    overscroll-behavior: contain;
}

html:has(.mh-product-buy-dialog[open]) {
    overflow: hidden;
}

.mh-product-buy-dialog::backdrop {
    background: rgb(17 25 36 / 58%);
    backdrop-filter: blur(5px);
}

.mh-product-buy-close-form {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
}

.mh-product-buy-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f5f5f7;
    color: #303a46;
}

.mh-product-buy-close:hover {
    background: #e7edf5;
}

.mh-product-buy-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(20px, 4vw, 44px);
    padding-block-start: 30px;
}

.mh-product-buy-layout:has(.mh-product-buy-visual[hidden]) {
    grid-template-columns: minmax(0, 1fr);
}

.mh-product-buy-visual img {
    width: 100%;
    height: clamp(160px, 28vw, 250px);
    object-fit: contain;
}

.mh-product-buy-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(1.65rem, 3.4vw, 2.55rem);
    text-wrap: balance;
}

.mh-product-buy-copy p {
    color: var(--product-muted);
}

.mh-product-buy-copy .button {
    font-size: 1rem;
    white-space: nowrap;
}

@media (max-width: 620px) {
    .mh-product-buy-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .mh-product-buy-visual img {
        height: clamp(100px, 37vw, 170px);
    }
}
