/* Collapsed product text keeps the purchase panel readable on first view. */
body.storefront .product-page .product-description{
    min-width:0;
    margin:0;
}

body.storefront .product-page .product-description__toggle{
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-height:32px;
    margin-top:8px;
    padding:5px 0;
    border:0;
    background:transparent;
    color:#ff9d5c;
    font-size:11px;
    font-weight:800;
    cursor:pointer;
    white-space:nowrap;
}

body.storefront .product-page .product-description__toggle::after{
    display:inline-block;
    margin-left:6px;
    content:'↓';
    transition:transform .18s ease;
}

body.storefront .product-page .product-description__preview{
    position:relative;
    max-height:8.5em;
    margin-top:10px;
    overflow:hidden;
}

body.storefront .product-page .product-description:not(.is-expanded) .product-description__preview::after{
    position:absolute;
    right:0;
    bottom:0;
    left:0;
    height:3.4em;
    background:linear-gradient(transparent, var(--g51-surface, #171719));
    pointer-events:none;
    content:'';
}

body.storefront .product-page .product-description.is-expanded .product-description__preview{max-height:none;overflow:visible;}
body.storefront .product-page .product-description.is-expanded .product-description__toggle::after{transform:rotate(180deg);}
body.storefront .product-page .product-description .rich-text{margin:0;overflow-wrap:anywhere;}

body.storefront .product-page .product-compatibility{min-width:0;}
body.storefront .product-page .product-compatibility__preview{
    position:relative;
    display:block;
    max-height:3.9em;
    overflow:hidden;
    line-height:1.3;
    overflow-wrap:anywhere;
}
body.storefront .product-page .product-compatibility:not(.is-expanded) .product-compatibility__preview::after{
    position:absolute;
    right:0;
    bottom:0;
    left:0;
    height:1.8em;
    background:linear-gradient(transparent, var(--g51-surface, #171719));
    pointer-events:none;
    content:'';
}
body.storefront .product-page .product-compatibility.is-expanded .product-compatibility__preview{max-height:none;overflow:visible;}
body.storefront .product-page .product-compatibility__toggle{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    margin-top:4px;
    padding:4px 0;
    border:0;
    background:transparent;
    color:#ff9d5c;
    font-size:10px;
    font-weight:800;
    cursor:pointer;
}
body.storefront .product-page .product-compatibility__toggle::after{margin-left:6px;content:'↓';transition:transform .18s ease;}
body.storefront .product-page .product-compatibility.is-expanded .product-compatibility__toggle::after{transform:rotate(180deg);}

@media (max-width:1100px){
    body.storefront .product-page .product-description__preview{max-height:10.2em;}
}

@media (prefers-reduced-motion:reduce){
    body.storefront .product-page .product-description__toggle::after{transition:none;}
}
