/* Canonical Store Execution styles — shared by Compare V3 and Solutions V2 (New-Solutions).
 * Source of record: Compare V3's original store-execution.css (no Solutions V2 CSS file exists
 * locally; the values below are the live computed result for /retail-execution-software/).
 * Compare V3-specific ancestor selectors (.compare-v3 .store-execution) are dropped — spacing
 * plumbing (.compare-v3 .new-solutions-component-spacing) lives in template-parts/components/hero.css
 * and is loaded on every Compare V3 page that renders Hero.
 */

.store-execution {
    background: #ffffff;
    padding-top: var(--ns-desktop-padding-top, 80px);
    padding-bottom: var(--ns-desktop-padding-bottom, 80px);
}

.store-execution .sd-button {
    width: fit-content !important;
}

.store-execution .container {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1220px;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

.store-execution__wrapper {
    margin: 0 auto;
    max-width: 1178px;
    width: 100%;
}

.store-execution__header {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 800px;
    padding-bottom: 24px;
    text-align: center;
}

.store-execution__title,
.store-execution__text {
    margin: 0;
}

/* The ACF max-width fields set this custom property through the shared helper. */
.store-execution .compare-v2-text-width-control[data-compare-width="1"] {
    max-width: var(--compare-v2-max-width) !important;
}

.store-execution__title {
    color: #282828;
    margin-bottom: 24px !important;
}

.store-execution__text {
    color: #282828;
}

.store-execution__features-panels {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-top: 16px;
}

.store-execution__features-panels .features__panel {
    align-items: center;
    display: flex;
    gap: 72px;
    padding: 40px 0;
    width: 100%;
}

.store-execution__features-panels .features__panel:last-child {
    padding-bottom: 0;
}

.store-execution__features-panels .features__panel--reverse-image {
    flex-direction: row-reverse;
}

.store-execution__features-panels .features__accordion-header {
    display: none;
}

.store-execution__features-panels .features__content {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 32px;
    max-width: 480px;
    min-width: 0;
}

.store-execution__features-panels .features__eyebrow {
    color: #006746;
    margin: 0 0 -12px;
}

/* Typography (font-size/weight/line-height/letter-spacing) comes from the
   sd-type-heading-lg class on the element itself (Figma "Heading/lg/Semibold") —
   only layout-level properties stay here so nothing fights the shared token. */
.store-execution__features-panels .features__panel-title {
    color: #282828;
    margin: 0;
}

.store-execution__features-panels .features__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.store-execution__features-panels .features__item {
    align-items: flex-start;
    display: flex;
    gap: 12px;
}

.store-execution__features-panels .features__check {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    height: 26px;
}

.store-execution__features-panels .features__check svg {
    height: 18px;
    width: 18px;
}

.store-execution__features-panels .features__check svg path:first-child {
    stroke: rgba(0, 0, 0, 0.75);
}

.store-execution__features-panels .features__check svg path:nth-child(2) {
    fill: rgba(0, 0, 0, 0.75);
}

.store-execution__features-panels .features__item-name {
    color: #282828;
    margin: 0 0 4px;
}

.store-execution__features-panels .features__item-desc {
    color: #282828;
    margin: 0;
}

.store-execution__features-panels .features__image {
    display: flex;
    justify-content: flex-start;
    flex: 1 1 0;
    min-width: 0;
    overflow: visible;
}

/* Keep the image aligned with its actual side; only the editor's reverse toggle changes it. */
.store-execution__features-panels .features__panel--reverse-image .features__image {
    justify-content: flex-end;
}

.store-execution__features-panels .features__image img {
    display: block;
    height: auto;
    max-width: 618px;
    object-fit: contain;
    width: 100%;
}

.store-execution__features-panels .features__image--wide img {
    object-position: left center;
}

/* Compare V3-wide spacing plumbing, not Store Execution-specific — kept in hero.css, see there.
 * This rule is here ONLY while some Compare V3 wiring files still enqueues store-execution.css
 * before hero.css (legacy ordering). After wiring updates, delete this block.
 */
.compare-v3 .new-solutions-component-spacing {
    padding-top: var(--ns-desktop-padding-top, 0);
    padding-bottom: var(--ns-desktop-padding-bottom, 0);
}

@media (max-width: 767px) {
    .compare-v3 .new-solutions-component-spacing {
        padding-top: var(--ns-mobile-padding-top, 0);
        padding-bottom: var(--ns-mobile-padding-bottom, 0);
    }
}

@media (max-width: 991px) {
    .store-execution__features-panels {
        gap: 36px;
    }

    .store-execution__features-panels .features__panel,
    .store-execution__features-panels .features__panel:nth-child(even),
    .store-execution__features-panels .features__panel--reverse-image,
    .store-execution__features-panels .features__panel:nth-child(even).features__panel--reverse-image {
        align-items: stretch;
        flex-direction: column;
        gap: 28px;
        padding: 28px 0;
    }

    .store-execution__features-panels .features__image {
        order: -1;
    }

    .store-execution__features-panels .features__content {
        max-width: 100%;
    }

    .store-execution__features-panels .features__image img,
    .store-execution__features-panels .features__image--wide img {
        max-width: 100%;
        min-width: unset;
        width: 100%;
    }

}

@media (max-width: 767px) {
    .store-execution .compare-v2-text-width-control[data-compare-width="1"] {
        max-width: unset !important;
    }

    .store-execution {
        padding-top: var(--ns-mobile-padding-top, 48px);
        padding-bottom: var(--ns-mobile-padding-bottom, 48px);
    }

    .store-execution .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .store-execution__header {
        margin-bottom: 0;
        padding-bottom: 0;
        text-align: left;
    }

    .store-execution__title {
        margin-bottom: 24px !important;
    }

    .store-execution__features-panels {
        gap: 32px;
        margin-top: 0;
    }

    .store-execution__features-panels .features__content {
        gap: 32px;
    }

    .store-execution__features-panels .features__eyebrow {
        margin: 0 0 -12px;
    }

    .store-execution__features-panels .features__panel,
    .store-execution__features-panels .features__panel:nth-child(even),
    .store-execution__features-panels .features__panel--reverse-image,
    .store-execution__features-panels .features__panel:nth-child(even).features__panel--reverse-image {
        gap: 32px;
        padding: 32px 0 0;
    }

    .store-execution__features-panels .features__panel {
        border-bottom: 0;
    }

    .store-execution__features-panels .features__item-desc {
        font-size: 15px !important;
        line-height: 22px !important;
    }

}
