.product-editorial-pilot.storefront-theme .product-gallery.product-legacy-gallery,
.product-editorial-pilot.storefront-theme .product-summary.product-legacy-summary {
    border: 1px solid #dcd7cf;
    border-radius: 8px;
}

.product-editorial-pilot .product-gallery-main {
    background: #fff;
}

.product-editorial-pilot .product-gallery-thumbs {
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
}

.product-editorial-pilot .product-gallery-thumb {
    background: #fff;
    scroll-snap-align: start;
}

.product-editorial-pilot .product-variant-groups:not([hidden]),
.product-editorial-pilot .product-variant-fallback:not([hidden]) {
    padding: 14px;
    background: #f5f3ef;
    border-radius: 6px;
}

.product-editorial-pilot.storefront-theme .product-description:has(.product-editorial-grid) {
    padding: 0;
    background: transparent;
}

.product-editorial-pilot.storefront-theme .product-legacy-content > .product-description > h2 {
    margin: 0 0 18px;
    font-size: clamp(22px, 2.4vw, 29px);
}

.product-editorial-pilot .product-editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.product-editorial-pilot .product-editorial-card {
    min-width: 0;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid #dcd7cf;
    border-radius: 8px;
    background: #fff;
    color: #302e2a;
    overflow-wrap: anywhere;
}

.product-editorial-pilot .product-editorial-card:nth-child(-n+3) {
    grid-column: 1 / -1;
}

.product-editorial-pilot .product-editorial-card > :is(p, ul, ol) {
    margin-block: 0 12px;
}

.product-editorial-pilot .product-editorial-card > :is(h2, h3, h4):not(.product-editorial-spacer) {
    color: #1d1b19;
    text-align: left;
}

.product-editorial-pilot .product-editorial-card > h2:first-child {
    margin: 0 0 16px;
    font-size: clamp(21px, 2vw, 26px);
}

.product-editorial-pilot .product-editorial-card > h3 {
    margin-block: 20px 8px;
}

.product-editorial-pilot .product-editorial-card > .content-indent-1 {
    margin-inline-start: 0;
}

.product-editorial-pilot .product-editorial-card > .product-editorial-spacer {
    display: none;
}

.product-editorial-pilot .product-editorial-card:nth-child(2) > ul {
    columns: 2;
    column-gap: 36px;
}

.product-editorial-pilot .product-editorial-card:has(> .product-editorial-subsection) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.product-editorial-pilot .product-editorial-card:has(> .product-editorial-subsection) > :not(.product-editorial-subsection) {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.product-editorial-pilot .product-editorial-subsection {
    min-width: 0;
    padding: 18px;
    border-radius: 6px;
    background: #f5f3ef;
}

.product-editorial-pilot .product-editorial-subsection > h3 {
    margin: 0 0 8px;
    font-size: 17px;
    text-align: left;
}

.product-editorial-pilot .product-editorial-subsection > .content-indent-1 {
    margin-inline-start: 0;
}

.product-editorial-pilot .product-editorial-card li {
    break-inside: avoid;
}

.product-editorial-pilot .product-editorial-card :is(p, ul, ol):last-child {
    margin-bottom: 0;
}

.product-editorial-pilot:not([data-product-editorial-layout="catalog"]) .product-editorial-intro > p:first-child {
    padding: 12px 15px;
    border-radius: 6px;
    background: #f5f3ef;
}

[data-product-editorial-layout].storefront-theme #main-content .product-editorial-grid {
    grid-template-columns: minmax(0, 1fr);
    font: 400 16px/1.7 var(--sf-font, Arial, Helvetica, sans-serif);
}

[data-product-editorial-layout] .product-editorial-card[data-editorial-span] {
    grid-column: 1 / -1;
    margin: 0;
}

[data-product-editorial-layout]:not([data-product-editorial-layout="catalog"]).storefront-theme #main-content .product-editorial-card :is(h2, h3, h4):not(.product-editorial-heading),
[data-product-editorial-layout="catalog"].storefront-theme #main-content .product-editorial-card > :is(h2, h3, h4):not(.product-editorial-heading),
[data-product-editorial-layout="catalog"].storefront-theme #main-content .product-editorial-card li > h4 {
    font: inherit;
    letter-spacing: normal;
}

[data-product-editorial-layout].storefront-theme #main-content .product-editorial-card > .product-editorial-heading {
    margin: 0 0 16px;
    font: 700 clamp(21px, 2vw, 26px)/1.25 var(--sf-font, Arial, Helvetica, sans-serif);
    letter-spacing: -.025em;
    text-decoration: none;
}

[data-product-editorial-layout] .product-editorial-heading u:not(a u) {
    text-decoration: none;
}

[data-product-editorial-layout].storefront-theme #main-content .product-editorial-card > h4:not(.product-editorial-heading) {
    margin-block: 0 12px;
}

[data-product-editorial-layout].storefront-theme #main-content .product-editorial-card li > h4 {
    margin-block: 0;
}

[data-product-editorial-layout].storefront-theme #main-content .product-editorial-card li > h4 + h4 {
    margin-block-start: 8px;
}

[data-product-editorial-layout] .product-editorial-card[data-editorial-span] > ul {
    columns: 1;
}

[data-product-editorial-layout] .product-editorial-highlight {
    background: #f5f3ef;
    border-radius: 6px;
    padding-block: 10px;
    box-shadow: -8px 0 #f5f3ef, 8px 0 #f5f3ef;
}

[data-product-editorial-layout="catalog"] .product-editorial-card .product-editorial-highlight {
    padding: 10px 12px;
    border-inline-start: 3px solid #aa7953;
    background: #f6ebdf;
    color: #442f23;
    box-shadow: none;
}

[data-product-editorial-layout] .product-editorial-fitment {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font: 400 16px/1.6 var(--sf-font, Arial, Helvetica, sans-serif);
}

[data-product-editorial-layout] .product-editorial-fitment :is(th, td) {
    padding: 11px 8px;
    border-bottom: 1px solid #e8e4de;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

[data-product-editorial-layout] .product-editorial-fitment thead th:first-child {
    width: 36%;
}

[data-product-editorial-layout] .product-editorial-fitment thead {
    color: #4a4640;
    background: #f5f3ef;
}

@media (min-width: 860px) {
    [data-product-editorial-layout].storefront-theme #main-content .product-editorial-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    [data-product-editorial-layout] .product-editorial-card[data-editorial-span="2"] { grid-column: span 2; }
    [data-product-editorial-layout] .product-editorial-card[data-editorial-span="3"] { grid-column: span 3; }
    [data-product-editorial-layout] .product-editorial-card[data-editorial-span="4"] { grid-column: span 4; }

    [data-product-editorial-layout]:not([data-product-editorial-layout="catalog"]) .product-editorial-card[data-editorial-span="6"] > ul:has(> li:nth-child(4)):not(:has(ul, ol)) {
        columns: 2;
        column-gap: 36px;
    }
}

@media (max-width: 720px) {
    [data-product-editorial-layout] .product-editorial-fitment {
        font-size: 14px;
    }

    [data-product-editorial-layout] .product-editorial-fitment :is(th, td) {
        padding: 8px 6px;
    }

    .product-editorial-pilot .product-editorial-grid,
    .product-editorial-pilot .product-editorial-card:has(> .product-editorial-subsection) {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .product-editorial-pilot .product-editorial-card:nth-child(2) > ul {
        columns: auto;
    }
}
