/* Juliana Nails Stores – native Gutenberg page + local Austria map. */
.jnds-stores-page,
.jnds-stores-page *,
.jnds-store-map,
.jnds-store-map * {
    box-sizing: border-box;
}

.jnds-stores-page {
    --jnds-stores-max: 1600px;
    --jnds-stores-side: 22px;
    --jnds-stores-pink: #d4a5ae;
    --jnds-stores-dark: #404040;
    --jnds-stores-black: #242424;
    width: 100%;
    margin: 0;
    padding: 0 0 70px;
    font-family: Montserrat, Arial, sans-serif;
}

/* Shoptimizer can constrain native page content; this page owns its width. */
body.jnds-stores-page-active .site-content > .col-full,
body.jnds-stores-page-active .site-content .content-area,
body.jnds-stores-page-active .site-content #primary,
body.jnds-stores-page-active .site-content .site-main,
body.jnds-stores-page-active .site-content #main,
body.jnds-stores-page-active .site-content article.type-page,
body.jnds-stores-page-active .site-content article.page,
body.jnds-stores-page-active .site-content .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body.jnds-stores-page-active .content-area > .site-main > .entry-header,
body.jnds-stores-page-active .content-area > .site-main > article > .entry-header,
body.jnds-stores-page-active .site-main > article > .entry-header {
    display: none !important;
}

.jnds-stores-section {
    width: min(var(--jnds-stores-max), calc(100vw - (var(--jnds-stores-side) * 2))) !important;
    max-width: var(--jnds-stores-max) !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

/* Hero: local MP4, no YouTube/runtime embed. Keep the same shallow desktop
 * proportion as the former Elementor hero instead of filling most of the
 * viewport. */
.jnds-stores-hero {
    position: relative;
    width: 100vw !important;
    max-width: 100vw !important;
    height: clamp(340px, 26vw, 520px);
    min-height: 0;
    margin: 0 calc(50% - 50vw) !important;
    overflow: hidden;
    background: #f7f2f3;
}

.jnds-stores-hero__video,
.jnds-stores-hero__video video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
}

.jnds-stores-hero__video {
    z-index: 0;
}

/* Media captions are useful in the editor, but the old Elementor hero had no
 * visible caption. Hide any caption carried over from the media item/block. */
.jnds-stores-hero figcaption,
.jnds-stores-hero .wp-element-caption,
.jnds-stores-hero .wp-caption-text {
    display: none !important;
}

.jnds-stores-hero__overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0, 0, 0, .06);
}

.jnds-stores-hero__logo {
    width: min(78%, 900px);
    margin: 0 auto !important;
}

.jnds-stores-hero__logo img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.jnds-stores-intro {
    /* Match the original Elementor intro geometry: a wide boxed content row
     * centered on desktop, with the copy itself aligned to the left edge. */
    width: min(75vw, 1400px) !important;
    max-width: 1400px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-top: clamp(18px, 2vw, 30px);
    padding-bottom: 10px;
    text-align: left;
}

.jnds-stores-title {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 8px !important;
    color: #111;
    font-size: clamp(28px, 2.25vw, 40px) !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    text-wrap: normal;
}

.jnds-stores-lead {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.jnds-stores-map-section {
    padding-top: 8px;
    padding-bottom: clamp(24px, 4vw, 54px);
}

/* Local map */
.jnds-store-map {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.jnds-store-map__canvas {
    position: relative;
    width: 100%;
    overflow: visible;
    background: #fff;
}

.jnds-store-map__image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.jnds-store-map__hotspot {
    position: absolute;
    z-index: 2;
    left: var(--jnds-store-x);
    top: var(--jnds-store-y);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    text-decoration: none !important;
    outline: 0;
    -webkit-tap-highlight-color: transparent;
}

.jnds-store-map__hotspot::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 2px solid transparent;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(212,165,174,0);
    transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}

.jnds-store-map__hotspot:hover::after,
.jnds-store-map__hotspot:focus-visible::after {
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(212,165,174,.55);
    transform: scale(1.08);
}

.jnds-store-map__tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    width: max-content;
    max-width: min(240px, 72vw);
    padding: 7px 10px;
    border-radius: 8px;
    background: #242424;
    color: #fff;
    font: 700 12px/1.25 Montserrat, Arial, sans-serif;
    text-align: center;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.jnds-store-map__tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    border: 5px solid transparent;
    border-top-color: #242424;
    transform: translateX(-50%);
}

.jnds-store-map__hotspot:hover .jnds-store-map__tooltip,
.jnds-store-map__hotspot:focus-visible .jnds-store-map__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* Four old Elementor image-box benefits, rebuilt as native groups. */
.jnds-stores-features {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 34px);
    padding: 18px 0 clamp(48px, 5vw, 76px);
}

.jnds-stores-feature {
    margin: 0 !important;
    padding: 0 10px;
    text-align: center;
}

.jnds-stores-feature__icon {
    width: 72px;
    margin: 0 auto 16px !important;
}

.jnds-stores-feature__icon img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.jnds-stores-feature__text {
    margin: 0 !important;
    color: #404040;
    font-size: 13px;
    line-height: 1.55;
}

/* Active stores: fully native Gutenberg cards. */
.jnds-stores-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(22px, 2vw, 32px);
    padding-bottom: clamp(54px, 6vw, 90px);
}

.jnds-stores-grid > .jnds-store-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
}

.jnds-store-card {
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    border-radius: 20px;
    background: var(--jnds-stores-dark);
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.jnds-store-card__media {
    width: 100%;
    margin: 0 !important;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.jnds-store-card__media img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    margin: 0;
}

.jnds-store-card__body {
    position: relative;
    min-height: 235px;
    margin: 0 !important;
    padding: 44px 24px 24px;
    background: var(--jnds-stores-dark);
    color: #fff;
    text-align: center;
}

.jnds-store-card__badge {
    position: absolute;
    top: 0;
    left: 50%;
    width: max-content;
    max-width: calc(100% - 36px);
    margin: 0 !important;
    padding: 9px 20px;
    border: 3px solid #fff;
    border-radius: 999px;
    background: var(--jnds-stores-pink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    transform: translate(-50%, -50%);
}

.jnds-store-card__title {
    margin: 0 0 16px !important;
    color: #fff !important;
    font-size: clamp(20px, 1.55vw, 26px) !important;
    font-style: italic;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

.jnds-store-card__text {
    margin: 0 0 22px !important;
    color: #fff;
    font-size: 13px;
    font-style: italic;
    line-height: 1.45;
}

.jnds-store-card__buttons {
    width: 100%;
    margin-top: auto !important;
}

.jnds-store-card__button,
.jnds-store-card__button .wp-block-button__link {
    width: 100%;
}

.jnds-store-card__button .wp-block-button__link {
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--jnds-stores-pink);
    color: #fff;
    font-size: 12px;
    font-style: italic;
    font-weight: 700;
    text-decoration: none;
    transition: transform .16s ease, filter .16s ease;
}

.jnds-store-card__button .wp-block-button__link:hover,
.jnds-store-card__button .wp-block-button__link:focus-visible {
    filter: brightness(.96);
    transform: translateY(-1px);
}

/* Customer-service ending from the Elementor page. */
.jnds-stores-support {
    max-width: 760px !important;
    padding: 20px 20px 0;
    text-align: center;
}

.jnds-stores-support__icon {
    width: 76px;
    margin: 0 auto 18px !important;
}

.jnds-stores-support__icon img {
    display: block;
    width: 100%;
    height: auto;
}

.jnds-stores-support__text {
    margin: 0 !important;
    color: #303030;
    font-size: 15px;
    line-height: 1.65;
}

.jnds-stores-support__text a {
    color: inherit;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .jnds-stores-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jnds-stores-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jnds-stores-grid > .jnds-store-card:last-child:nth-child(3n + 1) {
        grid-column: auto;
    }
}

@media (max-width: 800px) {
    .jnds-stores-page {
        --jnds-stores-side: 14px;
        padding-bottom: 44px;
    }

    .jnds-stores-hero {
        height: clamp(360px, 56vh, 520px);
        min-height: 0;
        max-height: none;
    }

    .jnds-stores-hero__logo {
        width: min(92%, 520px);
    }

    .jnds-stores-intro {
        width: calc(100vw - 28px) !important;
        max-width: none !important;
        padding-top: 24px;
        text-align: left;
    }

    .jnds-stores-title {
        font-size: 28px !important;
    }

    .jnds-stores-lead {
        font-size: 14px;
    }

    .jnds-store-map__hotspot {
        width: 38px;
        height: 38px;
    }

    .jnds-store-map__hotspot::after {
        inset: 7px;
    }

    .jnds-stores-features {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 8px;
    }

    .jnds-stores-feature {
        padding: 0;
    }

    .jnds-stores-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .jnds-stores-grid > .jnds-store-card:last-child:nth-child(3n + 1) {
        grid-column: auto;
    }

    .jnds-store-card__body {
        min-height: 0;
        padding: 43px 20px 22px;
    }

    .jnds-store-card__badge {
        max-width: calc(100% - 28px);
        white-space: normal;
    }

    @media (hover: none) {
        .jnds-store-map__tooltip {
            display: none;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .jnds-store-map__hotspot::after,
    .jnds-store-map__tooltip,
    .jnds-store-card__button .wp-block-button__link {
        transition: none;
    }
}

/* ========================================================================
 * Native Gutenberg store detail pages (Sillpark / Seiersberg / SCS / DZ)
 * ===================================================================== */
.jnds-store-detail-page,
.jnds-store-detail-page * {
    box-sizing: border-box;
}

.jnds-store-detail-page {
    --jnds-store-detail-max: 1400px;
    --jnds-store-detail-side: 22px;
    --jnds-store-detail-pink: #d4a5ae;
    --jnds-store-detail-pink-soft: #f8eff2;
    --jnds-store-detail-ink: #242424;
    --jnds-store-detail-muted: #6c6668;
    width: 100%;
    margin: 0;
    padding: 0 0 64px;
    font-family: Montserrat, Arial, sans-serif;
    color: var(--jnds-store-detail-ink);
}

.jnds-store-detail-section {
    width: min(var(--jnds-store-detail-max), calc(100vw - (var(--jnds-store-detail-side) * 2))) !important;
    max-width: var(--jnds-store-detail-max) !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

/* Hero: same concept as Elementor, but lighter, responsive and native. */
.jnds-store-detail-hero {
    position: relative;
    width: 100vw !important;
    max-width: 100vw !important;
    height: clamp(300px, 24vw, 430px);
    margin: 0 calc(50% - 50vw) !important;
    overflow: hidden;
    background: #f4f1f2;
}

.jnds-store-detail-hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.92) 22%, rgba(255,255,255,.48) 42%, rgba(0,0,0,.08) 72%, rgba(0,0,0,.16) 100%);
    pointer-events: none;
}

.jnds-store-detail-hero__media {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

.jnds-store-detail-hero__media img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
    object-position: center center;
}

.jnds-store-detail-hero__media--mobile {
    display: none !important;
}

.jnds-store-detail-hero__content {
    position: absolute;
    z-index: 2;
    top: 0;
    right: auto !important;
    bottom: 0;
    /*
     * IMPORTANT: do not center this Gutenberg Group. WordPress adds
     * is-layout-constrained/has-global-padding to the group and its global
     * layout rules kept pulling the hero copy back toward the middle.
     * Anchor the copy explicitly to the same 1400px content rail used by the
     * rest of the store page instead. This mirrors the legacy Elementor hero.
     */
    left: max(
        var(--jnds-store-detail-side),
        calc((100vw - var(--jnds-store-detail-max)) / 2 + var(--jnds-store-detail-side))
    ) !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: center;
    width: min(920px, 62vw) !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Gutenberg's constrained group layout otherwise re-centers the hero copy.
 * Keep all three text blocks anchored to the same left edge as the legacy
 * Elementor hero. */
.jnds-store-detail-hero__content > * {
    align-self: flex-start !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    text-align: left !important;
}

.jnds-store-detail-hero__eyebrow {
    width: auto !important;
    max-width: none !important;
    margin: 0 0 8px !important;
    color: #8f5364;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.jnds-store-detail-hero__title {
    width: min(900px, 62vw) !important;
    max-width: none !important;
    margin: 0 0 8px !important;
    color: #111 !important;
    font-size: clamp(30px, 2.65vw, 44px) !important;
    font-weight: 900 !important;
    line-height: 1.02 !important;
    text-wrap: pretty;
}

/* Keep the Sillpark name on one line on desktop; there is enough room in the
 * white hero area and it reads much cleaner than the old forced wrap. */
.jnds-store-detail--sillpark .jnds-store-detail-hero__title {
    width: max-content !important;
    max-width: min(900px, 62vw) !important;
    white-space: nowrap;
}

.jnds-store-detail-hero__city {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    color: #111 !important;
    font-size: clamp(18px, 1.6vw, 25px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

/* Fast top section: image / contact / opening hours. No heavy map iframe. */
.jnds-store-detail-info {
    display: grid !important;
    grid-template-columns: 1.15fr .9fr .95fr;
    align-items: stretch;
    gap: 22px;
    padding-top: clamp(38px, 4vw, 62px);
    padding-bottom: clamp(54px, 5vw, 82px);
}

.jnds-store-detail-media-card,
.jnds-store-detail-contact-card,
.jnds-store-detail-hours-card {
    position: relative;
    min-width: 0;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid #eadfe2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(38,31,33,.06);
}

.jnds-store-detail-media-card {
    min-height: 360px;
    padding: 0 !important;
}

.jnds-store-detail-map-card {
    background: #f7f7f7;
}

.jnds-store-detail-map {
    width: 100%;
    height: 100%;
    min-height: 360px;
    margin: 0 !important;
    overflow: hidden;
}

.jnds-store-detail-map iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 360px;
    margin: 0 !important;
    border: 0 !important;
}

/* Seiersberg is the only current store with a video. Keep the map fully
 * usable and give the video its own footer instead of covering Google Maps. */
.jnds-store-detail-map-card--with-video {
    display: flex;
    flex-direction: column;
}

.jnds-store-detail-map-card--with-video .jnds-store-detail-map {
    flex: 1 1 auto;
    height: auto;
    min-height: 292px;
}

.jnds-store-detail-map-card--with-video .jnds-store-detail-map iframe {
    height: 100% !important;
    min-height: 292px;
}

.jnds-store-detail-media-card__button {
    position: static;
    z-index: 2;
    flex: 0 0 auto;
    width: 100%;
    min-height: 68px;
    margin: 0 !important;
    padding: 10px 14px !important;
    border-top: 1px solid #eadfe2;
    background: #fbf2f5;
}

.jnds-store-detail-media-card__button .wp-block-button {
    width: 100%;
}

.jnds-store-detail-media-card__button .wp-block-button__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 54px 10px 20px;
    border: 0;
    border-radius: 999px;
    background: #242424;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: none;
}

.jnds-store-detail-media-card__button .wp-block-button__link::after {
    content: "▶";
    position: absolute;
    right: 8px;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d4a5ae;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    transform: translateY(-50%);
}

.jnds-store-detail-media-card__button .wp-block-button__link:hover,
.jnds-store-detail-media-card__button .wp-block-button__link:focus-visible {
    background: #111;
}

.jnds-store-detail-contact-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 28px !important;
    text-align: center;
}

.jnds-store-detail-kicker {
    margin: 0 0 8px !important;
    color: #a45e72;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.jnds-store-detail-contact-card h2 {
    margin: 0 0 18px !important;
    color: #111 !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
}

.jnds-store-detail-contact-card__text {
    margin: 0 0 22px !important;
    color: #4d484a;
    font-size: 14px;
    line-height: 1.7;
}

.jnds-store-detail-contact-card__text a {
    color: inherit;
    font-weight: 650;
    text-decoration: none;
}

.jnds-store-detail-button {
    width: 100%;
    margin: 0 !important;
}

.jnds-store-detail-button .wp-block-button,
.jnds-store-detail-button .wp-block-button__link {
    width: 100%;
}

.jnds-store-detail-button .wp-block-button__link {
    padding: 12px 18px;
    border-radius: 999px;
    background: #242424;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .16s ease, opacity .16s ease;
}

.jnds-store-detail-button .wp-block-button__link:hover,
.jnds-store-detail-button .wp-block-button__link:focus-visible {
    opacity: .9;
    transform: translateY(-1px);
}

.jnds-store-detail-hours-card {
    padding: 0 0 10px !important;
}

.jnds-store-detail-hours-card__head {
    margin: 0 !important;
    padding: 22px 24px 18px !important;
    background: linear-gradient(135deg, var(--jnds-store-detail-pink), #e4bec7);
    text-align: center;
}

.jnds-store-detail-hours-card__head h2 {
    margin: 0 0 4px !important;
    color: #242424 !important;
    font-size: 23px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
}

.jnds-store-detail-hours-card__head p {
    margin: 0 !important;
    color: #3d3437;
    font-size: 11px;
    font-weight: 600;
}

.jnds-store-detail-hours-card__table {
    margin: 0 !important;
    border: 0 !important;
}

.jnds-store-detail-hours-card__table table {
    width: 100%;
    border: 0 !important;
    border-collapse: collapse;
}

.jnds-store-detail-hours-card__table td {
    padding: 10px 18px;
    border: 0 !important;
    border-bottom: 1px solid #f0e8ea !important;
    color: #514b4d;
    font-size: 12px;
}

.jnds-store-detail-hours-card__table tr:last-child td {
    border-bottom: 0 !important;
}

.jnds-store-detail-hours-card__table td:last-child {
    text-align: right;
    font-weight: 700;
}

/* Team */
.jnds-store-detail-team {
    padding-bottom: clamp(58px, 6vw, 94px);
}

.jnds-store-detail-section-title {
    margin: 0 0 24px !important;
    color: #111 !important;
    font-size: clamp(27px, 2.4vw, 38px) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-align: center;
}

.jnds-store-detail-team-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.jnds-store-detail-team-grid--6 > .jnds-store-detail-person:nth-child(5) {
    grid-column: 2;
}

.jnds-store-detail-person {
    overflow: hidden;
    margin: 0 !important;
    padding: 0 0 24px !important;
    border: 1px solid #eee5e7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(38,31,33,.045);
    text-align: center;
}

.jnds-store-detail-person__image {
    width: 100% !important;
    margin: 0 0 20px !important;
    aspect-ratio: 1 / 1.04;
    overflow: hidden;
    background: #f7f4f5;
}

.jnds-store-detail-person__image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
    object-position: center top;
}

.jnds-store-detail-person__name {
    margin: 0 18px 5px !important;
    color: #111 !important;
    font-size: 18px !important;
    font-weight: 850 !important;
    line-height: 1.18 !important;
}

.jnds-store-detail-person__role {
    margin: 0 18px 15px !important;
    color: #9b5b6d;
    font-size: 11px;
    font-weight: 750;
}

.jnds-store-detail-person__bio {
    margin: 0 20px !important;
    color: #625c5e;
    font-size: 12px;
    line-height: 1.58;
}

/* Existing store advantages, visually simplified. */
.jnds-store-detail-reasons {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    background: var(--jnds-store-detail-pink-soft);
}

.jnds-store-detail-reason {
    display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    padding: 12px 16px !important;
    border-radius: 13px;
    background: rgba(255,255,255,.72);
}

.jnds-store-detail-reason__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    margin: 0 !important;
    border-radius: 999px;
    background: #fff;
    color: #a75d72;
    font-size: 13px;
    font-weight: 900;
}

.jnds-store-detail-reason__text {
    margin: 0 !important;
    color: #423c3e;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 1100px) {
    .jnds-store-detail-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jnds-store-detail-hours-card {
        grid-column: 1 / -1;
    }

    .jnds-store-detail-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jnds-store-detail-team-grid--6 > .jnds-store-detail-person:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 800px) {
    .jnds-store-detail-page {
        --jnds-store-detail-side: 14px;
        padding-bottom: 44px;
    }

    /* Mobile hero: use the clean desktop artwork as the source as the old
     * Elementor mobile images contain baked-in store-name lettering. That
     * lettering showed through behind the real Gutenberg heading and looked
     * like a shadow/duplicate title. */
    .jnds-store-detail-hero {
        height: 300px;
        min-height: 0;
        background: #fff;
    }

    .jnds-store-detail-hero::after {
        background: linear-gradient(
            0deg,
            rgba(255,255,255,1) 0%,
            rgba(255,255,255,.98) 24%,
            rgba(255,255,255,.82) 38%,
            rgba(255,255,255,.22) 62%,
            rgba(255,255,255,0) 78%
        );
    }

    .jnds-store-detail-hero__media--desktop {
        display: block !important;
    }

    .jnds-store-detail-hero__media--mobile {
        display: none !important;
    }

    .jnds-store-detail-hero__media--desktop img {
        object-position: center center;
    }

    .jnds-store-detail--sillpark .jnds-store-detail-hero__media--desktop img {
        object-position: 63% center;
    }

    .jnds-store-detail-hero__content,
    .jnds-store-detail-hero__content.is-layout-constrained {
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 18px 20px !important;
        align-items: flex-start !important;
        justify-content: flex-end !important;
        text-align: left !important;
    }

    .jnds-store-detail-hero__content > *,
    .jnds-store-detail-hero__content.is-layout-constrained > * {
        width: auto !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        align-self: flex-start !important;
        text-align: left !important;
    }

    .jnds-store-detail-hero__eyebrow {
        margin-bottom: 6px !important;
        font-size: 10px !important;
        letter-spacing: .1em;
    }

    .jnds-store-detail-hero__title,
    .jnds-store-detail--sillpark .jnds-store-detail-hero__title {
        width: auto !important;
        max-width: 100% !important;
        margin: 0 0 6px !important;
        font-size: clamp(25px, 7.2vw, 30px) !important;
        line-height: 1.03 !important;
        white-space: normal !important;
        text-wrap: balance;
    }

    .jnds-store-detail-hero__city {
        width: auto !important;
        margin: 0 !important;
        font-size: 17px !important;
        line-height: 1.15 !important;
        text-align: left !important;
    }

    .jnds-store-detail-info {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-top: 28px;
        padding-bottom: 50px;
    }

    .jnds-store-detail-hours-card {
        grid-column: auto;
    }

    .jnds-store-detail-media-card,
    .jnds-store-detail-map,
    .jnds-store-detail-map iframe {
        min-height: 280px;
    }

    .jnds-store-detail-map-card--with-video .jnds-store-detail-map,
    .jnds-store-detail-map-card--with-video .jnds-store-detail-map iframe {
        min-height: 270px;
    }

    .jnds-store-detail-media-card__button {
        min-height: 64px;
        padding: 9px 12px !important;
    }

    .jnds-store-detail-contact-card {
        padding: 26px 22px !important;
    }

    .jnds-store-detail-team-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .jnds-store-detail-team-grid--6 > .jnds-store-detail-person:nth-child(5) {
        grid-column: auto;
    }

    .jnds-store-detail-person__image {
        aspect-ratio: 4 / 3;
    }

    .jnds-store-detail-reasons {
        grid-template-columns: 1fr;
        padding: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jnds-store-detail-button .wp-block-button__link {
        transition: none;
    }
}
