.md-product-main,
.md-product-page {
    width: 100%;
}

.md-product-page {
    --md-product-gutter: clamp(20px, 4vw, 40px);
    --md-product-width: 1180px;
}

.md-product-wrap {
    box-sizing: border-box;
    width: min(100%, var(--md-product-width));
    margin-inline: auto;
    padding-inline: var(--md-product-gutter);
}

.md-product-page,
.md-product-page #buy,
.md-product-page #how-it-works {
    scroll-margin-top: 104px;
}

.md-product-main > .woocommerce-notices-wrapper:not(:empty) {
    max-width: 1100px;
    margin: 16px auto 0;
    padding-inline: 20px;
}

.md-product-hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    padding: clamp(40px, 5vw, 66px) 0 clamp(48px, 6vw, 72px);
}

.md-product-wash {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: 620px;
    background-position: center 42%;
    background-size: cover;
    opacity: .23;
    mask-image: linear-gradient(black, transparent);
}

@media (prefers-reduced-motion: no-preference) {
    .md-product-wash {
        animation: md-product-drift 18s ease-in-out infinite alternate;
    }

    @keyframes md-product-drift {
        from { transform: scale(1); }
        to { transform: scale(1.08) translateY(-1%); }
    }
}

[data-md-theme="dark"] .md-product-wash {
    opacity: .15;
}

.md-product-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.md-product-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 12px;
    color: var(--md-link);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.md-product-page .product_title.entry-title {
    clear: none;
    max-width: 100%;
    margin: 0;
    color: var(--md-ink);
    font-size: clamp(2.45rem, 7.3vw, 6.25rem);
    font-weight: 700;
    letter-spacing: -.064em;
    line-height: .99;
    text-wrap: balance;
}

.md-product-tagline {
    margin: 18px 0 0;
    color: var(--md-ink);
    font-size: clamp(1.2rem, 3vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.18;
    text-wrap: balance;
}

.md-product-purchase {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 365px);
    margin-top: 18px;
}

body.woocommerce .md-product-page .md-product-purchase p.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: .4em;
    margin: 18px 0 10px;
    color: var(--md-ink);
    font-size: clamp(1.65rem, 3.8vw, 2.2rem);
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.md-product-purchase .price del {
    color: var(--md-muted);
    font-size: .63em;
    font-weight: 500;
}

.md-product-purchase .price ins {
    text-decoration: none;
}

.md-product-purchase .woocommerce-product-details__short-description {
    align-self: center;
    width: min(calc(100vw - 2 * var(--md-product-gutter)), 490px);
    color: var(--md-secondary);
    font-size: clamp(.94rem, 2.3vw, 1.06rem);
    line-height: 1.55;
}

.md-product-purchase .woocommerce-product-details__short-description p {
    margin: 0;
    text-wrap: pretty;
}

body.woocommerce .md-product-page .md-product-purchase form.cart {
    margin: 0;
}

body.woocommerce .md-product-page .md-product-purchase form.cart button.single_add_to_cart_button,
.md-product-page a.md-product-cta {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--md-accent, #0071e3);
    color: #fff;
    font: inherit;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
}

body.woocommerce .md-product-page .md-product-purchase form.cart button.single_add_to_cart_button {
    float: none;
    width: 100%;
}

body.woocommerce .md-product-page .md-product-purchase form.cart button.single_add_to_cart_button:not(:disabled):hover,
.md-product-page a.md-product-cta:hover {
    background: color-mix(in srgb, var(--md-accent, #0071e3) 88%, black);
    color: #fff;
}

.md-product-page :is(a, button, summary):focus-visible {
    outline: 2px solid var(--md-link);
    outline-offset: 4px;
}

.md-product-note,
.md-product-compatibility {
    color: var(--md-muted);
    font-size: .875rem;
    line-height: 1.45;
}

.md-product-compatibility {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 8px;
    margin: 16px 0 0;
}

.md-product-preview {
    margin-block: clamp(24px, 4vw, 40px) 0;
}

.md-product-stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(43px, 8vw, 78px) 4% clamp(18px, 4vw, 45px);
    border-radius: clamp(20px, 4vw, 36px);
    background: radial-gradient(ellipse at 35% 110%, #729dd7 0, #355c98 42%, transparent 73%),
        radial-gradient(ellipse at 96% 18%, #255978 0, transparent 64%), #101e39;
    box-shadow: inset 0 0 0 1px #ffffff24;
}

.md-product-stage-label {
    position: absolute;
    top: clamp(12px, 2.8vw, 24px);
    left: clamp(12px, 2.8vw, 24px);
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid #ffffff50;
    border-radius: 999px;
    background: #142748;
    color: #fff;
    font-size: clamp(.63rem, 1.5vw, .75rem);
    font-weight: 650;
    letter-spacing: .04em;
}

.md-product-stage-label span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9bd3ff;
}

.md-product-devices {
    position: relative;
    max-width: 920px;
    margin-inline: auto;
    padding-bottom: 2%;
    pointer-events: none;
    color-scheme: light;
}

.md-product-mac {
    width: 85%;
}

.md-product-mac-lid {
    margin-inline: 6%;
    padding: 1.7% 1.5% 2.1%;
    border: 1px solid #8b99b6;
    border-radius: 3.6% 3.6% 1% 1% / 5.8% 5.8% 1% 1%;
    background: #13151c;
    box-shadow: 0 18px 48px #040b24a8;
}

.md-product-mac-screen {
    position: relative;
    overflow: hidden;
    aspect-ratio: 8 / 5;
    border-radius: 2% / 3%;
    background: #93b5dd var(--md-mac-wallpaper) center / cover;
}

.md-product-mac-camera {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 44%;
    width: 12%;
    height: 3%;
    border-radius: 0 0 5px 5px;
    background: #13151c;
}

.md-product-mac-window {
    position: absolute;
    top: 10%;
    left: 8%;
    width: 84%;
    container-type: inline-size;
    filter: drop-shadow(0 6px 14px #18294b66);
}

.md-product-mac-window > div,
.md-product-phone-screen > div {
    position: absolute;
    inset: 0 auto auto 0;
    transform-origin: top left;
}

.md-product-mac-window > div {
    width: 1200px;
    transform: scale(tan(atan2(100cqw, 1200px)));
}

.md-product-mac-base {
    height: clamp(4px, 1.5vw, 16px);
    border-radius: 0 0 9% 9% / 0 0 85% 85%;
    background: linear-gradient(#d4dbe8, #adb8cb 40%, #535f74 95%);
    box-shadow: 0 9px 24px #06142ea8;
}

.md-product-phone {
    position: absolute;
    right: 4%;
    bottom: 0;
    box-sizing: border-box;
    width: 21%;
    padding: .65%;
    border: 1px solid #99a9c4;
    border-radius: 18% / 8.8%;
    background: #0e111b;
    box-shadow: -10px 14px 30px #07162b8c;
}

.md-product-phone-screen {
    position: relative;
    overflow: hidden;
    aspect-ratio: 390 / 844;
    border-radius: 15% / 7%;
    background: #f8f9fc;
    container-type: inline-size;
}

.md-product-phone-screen > div {
    width: 390px;
    transform: scale(tan(atan2(100cqw, 390px)));
}

.md-product-preview figcaption {
    margin-top: 10px;
    color: var(--md-muted);
    font-size: .82rem;
    text-align: center;
}

.md-product-workflow {
    padding-block: 0 clamp(48px, 7vw, 88px);
}

.md-product-page h2 {
    max-width: 22ch;
    margin: 0;
    color: var(--md-ink);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.05;
    text-wrap: balance;
}

.md-product-lead {
    max-width: 58ch;
    margin: 14px 0 0;
    color: var(--md-secondary);
    font-size: clamp(1.03rem, 2vw, 1.19rem);
    line-height: 1.55;
}

.md-product-transports {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.md-product-tile {
    padding: clamp(22px, 4vw, 36px);
    border-radius: 24px;
    background: var(--md-subtle);
}

.md-product-tile svg {
    margin-bottom: 20px;
    color: var(--md-link);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.md-product-tile h3 {
    margin: 0 0 8px;
    color: var(--md-ink);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    letter-spacing: -.035em;
    line-height: 1.16;
}

.md-product-tile p {
    margin: 0;
    color: var(--md-secondary);
    line-height: 1.55;
}

.md-product-setup {
    background: var(--md-subtle);
}

.md-product-setup-inner {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    align-items: start;
    gap: 26px;
    padding-block: clamp(36px, 7vw, 76px);
}

.md-product-steps {
    margin: 0;
    padding-inline-start: 1.5em;
    color: var(--md-secondary);
    line-height: 1.55;
}

.md-product-steps li {
    padding-inline-start: .35em;
}

.md-product-steps li + li {
    margin-top: 12px;
}

.md-product-steps strong {
    color: var(--md-ink);
}

.md-product-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 25px;
}

.md-product-details {
    padding-block: 20px 46px;
}

.md-product-details details {
    border-bottom: 1px solid var(--md-rule);
}

.md-product-details summary {
    padding-block: 17px;
    color: var(--md-ink);
    font-weight: 650;
    cursor: pointer;
}

.md-product-details .md-product-description {
    max-width: 70ch;
    padding-bottom: 10px;
    color: var(--md-secondary);
    line-height: 1.6;
}

.md-product-details details #reviews {
    padding-bottom: 16px;
}

.md-product-details details #reviews h2 {
    font-size: 1.3rem;
}

@media (max-width: 680px) {
    .md-product-hero {
        padding-top: 30px;
    }

    .md-product-page .product_title.entry-title {
        font-size: clamp(2.45rem, 10vw, 3.5rem);
    }

    .md-product-transports,
    .md-product-setup-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .md-product-stage {
        padding-inline: 3%;
    }
}

.md-store-main {
    box-sizing: border-box;
    width: 100%;
    padding: clamp(40px, 8vw, 88px) clamp(20px, 4vw, 40px) 80px;
}

.md-store-main .wc-block-checkout,
.md-store-main .wc-block-cart,
.md-store-main .wc-block-components-main {
    color: var(--md-ink);
    font-family: inherit;
}

.md-store-main :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], select, textarea) {
    border-radius: 12px;
    border-color: var(--md-rule);
    background: var(--md-card);
    color: var(--md-ink);
}

.md-store-main .wc-block-components-button:not(.is-link):not(.is-text) {
    border-radius: 999px;
}

.wc-block-components-notice-banner,
.md-store-main .woocommerce-notices-wrapper .woocommerce-message,
.md-product-main > .woocommerce-notices-wrapper:not(:empty) > .woocommerce-message,
.md-product-main > .woocommerce-notices-wrapper:not(:empty) > .woocommerce-info {
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--md-rule);
    border-radius: 16px;
    background: var(--md-card);
    color: var(--md-ink);
    font-size: 14px;
    line-height: 1.5;
}

.wc-block-components-notice-banner.is-error,
.woocommerce-error {
    border-color: #ffb4ab;
    background: #fff5f4;
    color: #b3261e;
}

[data-md-theme="dark"] .wc-block-components-notice-banner.is-error,
[data-md-theme="dark"] .woocommerce-error {
    border-color: #7a2e2a;
    background: #3a1715;
    color: #ffb4ab;
}

.wc-block-components-notice-banner.is-success,
.woocommerce-message {
    border-color: #b7e4c7;
    background: #f1fbf3;
    color: #1e6b3a;
}

[data-md-theme="dark"] .wc-block-components-notice-banner.is-success,
[data-md-theme="dark"] .woocommerce-message {
    border-color: #2f6b45;
    background: #16301f;
    color: #b7e4c7;
}

.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner.is-warning,
.woocommerce-info {
    border-color: #f0c36d;
    background: #fff8e8;
    color: #7a5b00;
}

[data-md-theme="dark"] .wc-block-components-notice-banner.is-info,
[data-md-theme="dark"] .wc-block-components-notice-banner.is-warning,
[data-md-theme="dark"] .woocommerce-info {
    border-color: #7a5b00;
    background: #2b220f;
    color: #f0c36d;
}

/* Store pages: cart, checkout and account content shell */
.md-store-page-content {
    width: 100%;
    min-width: 0;
}

.md-store-page-content > div {
    width: 100%;
    min-width: 0;
}

.md-store-page-content .wp-block-woocommerce-cart,
.md-store-page-content .wp-block-woocommerce-checkout,
.md-store-page-content .wp-block-woocommerce-my-account {
    width: 100%;
    min-width: 0;
}
