/* Visual polish for the approved test2 medical-content paths. */
body.wmt-tz-polish {
    --wmt-polish-accent: #66cccc;
    --wmt-polish-accent-dark: #267373;
    --wmt-polish-tint: #eafcfc;
    --wmt-polish-gutter: 20px;
}

body.wmt-tz-polish .wmt-service-detail > .wrap,
body.wmt-tz-polish .wmt-service-detail > .wmt-service-detail__doctors,
body.wmt-tz-polish .wmt-service-detail > .reviews-block.wrap,
body.wmt-tz-polish .wmt-service-detail > .service-blocks > .wrap,
body.wmt-tz-polish .wmt-service-detail__faq > .wrap {
    width: calc(100% - var(--wmt-polish-gutter) - var(--wmt-polish-gutter));
    max-width: 1344px;
    margin-right: auto;
    margin-left: auto;
}

body.wmt-tz-polish .wmt-service-detail > .wmt-service-detail__toc {
    margin-top: 40px;
    margin-bottom: 48px;
}

body.wmt-tz-polish .wmt-service-detail > .wmt-service-detail__services,
body.wmt-tz-polish .wmt-service-detail > .wmt-service-detail__intro,
body.wmt-tz-polish .wmt-service-detail > .wmt-service-detail__prices,
body.wmt-tz-polish .wmt-service-detail > .wmt-service-detail__text,
body.wmt-tz-polish .wmt-service-detail > .wmt-service-detail__doctors,
body.wmt-tz-polish .wmt-service-detail > .wmt-service-detail__gallery,
body.wmt-tz-polish .wmt-service-detail > .wmt-service-detail__related,
body.wmt-tz-polish .wmt-service-detail > .wmt-service-detail__faq,
body.wmt-tz-polish .wmt-service-detail > .reviews-block.wrap {
    margin-top: 56px;
    margin-bottom: 56px;
}

body.wmt-tz-polish .wmt-service-detail__form {
    margin-top: 56px;
}

body.wmt-tz-polish .wmt-service-detail__intro,
body.wmt-tz-polish .wmt-service-detail__text {
    font-size: 17px;
    line-height: 1.55;
}

body.wmt-tz-polish .wmt-service-detail__intro > :first-child,
body.wmt-tz-polish .wmt-service-detail__text > :first-child,
body.wmt-tz-polish .wmt-service-detail__text > section > :first-child {
    margin-top: 0;
}

body.wmt-tz-polish .wmt-service-detail__intro > :last-child,
body.wmt-tz-polish .wmt-service-detail__text > :last-child,
body.wmt-tz-polish .wmt-service-detail__text > section > :last-child {
    margin-bottom: 0;
}

body.wmt-tz-polish .wmt-service-detail__text h2,
body.wmt-tz-polish .wmt-service-detail__text h3,
body.wmt-tz-polish .wmt-service-detail__text h4 {
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
}

body.wmt-tz-polish .wmt-sections-card__icon--empty {
    display: none;
}

body.wmt-tz-polish .wmt-sections-card__icon--empty + .wmt-sections-card__title {
    width: 100%;
}

body.wmt-tz-polish .news-detail > .wrap .flexslider.before-after {
    overflow: hidden;
}

body.wmt-tz-polish .news-detail > .wrap .flexslider.before-after .flex-direction-nav .flex-prev {
    left: 8px;
}

body.wmt-tz-polish .news-detail > .wrap .flexslider.before-after .flex-direction-nav .flex-next {
    right: 8px;
}

body.wmt-tz-polish .wmt-service-detail .wmt-service-detail__reveal {
    display: inline-flex;
    width: fit-content;
    min-height: 50px;
    height: auto;
    max-width: 100%;
    padding: 12px 24px;
    border: 2px solid var(--wmt-polish-accent);
    background: #fff;
    color: #1d1d1b;
}

body.wmt-tz-polish .wmt-service-detail .wmt-service-detail__reveal:hover,
body.wmt-tz-polish .wmt-service-detail .wmt-service-detail__reveal:focus-visible {
    border-color: var(--wmt-polish-accent-dark);
    background: var(--wmt-polish-tint);
    color: #1d1d1b;
}

body.wmt-tz-polish .wmt-service-detail__gallery-grid {
    display: grid;
    grid-template-columns: none;
    grid-template-rows: minmax(0, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 40px) / 3);
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--wmt-polish-accent) #e5eeee;
    scrollbar-width: thin;
}

body.wmt-tz-polish .wmt-service-detail__gallery-grid:focus-visible {
    outline: 3px solid var(--wmt-polish-accent-dark);
    outline-offset: 4px;
}

body.wmt-tz-polish .wmt-service-detail__gallery-grid::-webkit-scrollbar {
    height: 9px;
}

body.wmt-tz-polish .wmt-service-detail__gallery-grid::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #e5eeee;
}

body.wmt-tz-polish .wmt-service-detail__gallery-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--wmt-polish-accent);
}

body.wmt-tz-polish .wmt-service-detail__gallery-item {
    min-width: 0;
    scroll-snap-align: start;
}

@media (max-width: 900px) {
    body.wmt-tz-polish .wmt-service-detail__gallery-grid {
        grid-auto-columns: calc((100% - 20px) / 2);
    }
}

@media (max-width: 560px) {
    body.wmt-tz-polish {
        --wmt-polish-gutter: 16px;
    }

    body.wmt-tz-polish .wmt-service-detail > .wmt-service-detail__services,
    body.wmt-tz-polish .wmt-service-detail > .wmt-service-detail__intro,
    body.wmt-tz-polish .wmt-service-detail > .wmt-service-detail__prices,
    body.wmt-tz-polish .wmt-service-detail > .wmt-service-detail__text,
    body.wmt-tz-polish .wmt-service-detail > .wmt-service-detail__doctors,
    body.wmt-tz-polish .wmt-service-detail > .wmt-service-detail__gallery,
    body.wmt-tz-polish .wmt-service-detail > .wmt-service-detail__related,
    body.wmt-tz-polish .wmt-service-detail > .wmt-service-detail__faq,
    body.wmt-tz-polish .wmt-service-detail > .reviews-block.wrap {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    body.wmt-tz-polish .wmt-service-detail > .wmt-service-detail__toc {
        margin-top: 28px;
        margin-bottom: 40px;
    }

    body.wmt-tz-polish .wmt-service-detail__form {
        margin-top: 40px;
    }

    body.wmt-tz-polish .wmt-service-detail__intro,
    body.wmt-tz-polish .wmt-service-detail__text {
        font-size: 16px;
    }

    body.wmt-tz-polish .wmt-service-detail__text h2,
    body.wmt-tz-polish .wmt-service-detail__text h3,
    body.wmt-tz-polish .wmt-service-detail__text h4 {
        margin-top: 26px;
        margin-bottom: 12px;
    }

    body.wmt-tz-polish .wmt-service-detail .wmt-service-detail__reveal {
        width: 100%;
    }

    body.wmt-tz-polish .wmt-service-detail__gallery-grid {
        grid-auto-columns: 85%;
        gap: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.wmt-tz-polish .wmt-service-detail__gallery-grid {
        scroll-behavior: auto;
    }
}

/* Articles: make navigation discoverable and avoid stretched word spacing. */
body.wmt-tz-polish .wmt-article-toc > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #267373;
    background: #f3fbfb;
    list-style: none;
}

body.wmt-tz-polish .wmt-article-toc > summary::-webkit-details-marker {
    display: none;
}

body.wmt-tz-polish .wmt-article-toc > summary::after {
    content: '';
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

body.wmt-tz-polish .wmt-article-toc[open] > summary::after {
    transform: rotate(225deg);
}

body.wmt-tz-polish .content[itemprop="articleBody"] p {
    text-align: left;
}

/* Keep article anchors below the fixed desktop and mobile header. */
body.wmt-tz-polish .content[itemprop="articleBody"] [id^="wmt-article-"] {
    scroll-margin-top: 120px;
}

@media (max-width: 560px) {
    body.wmt-tz-polish .index-form__input-flex {
        gap: 16px;
        align-items: stretch;
    }
    body.wmt-tz-polish .index-form__input-wrap {
        width: 100%;
        max-width: none;
        margin-bottom: 0;
    }
    body.wmt-tz-polish .index-form__input {
        width: 100%;
        max-width: none;
        font-size: 16px;
        border-color: #bfd4d4;
    }
    body.wmt-tz-polish .index-form__input-flex > .button {
        width: 100%;
        max-width: none;
        margin-top: 0;
    }
}

/* The doctor reveal remains centered after the late polish cascade. */
body.wmt-tz-polish .wmt-service-detail__doctors > .wmt-service-detail__reveal {
    display: flex;
    margin-right: auto;
    margin-left: auto;
}
