/*
 * Product page bridge (DESIGN.md "Components contract"): every rule for the single product
 * page — above-the-fold, gallery, tabs, specs, downloads, share, inquiry, related cards.
 * Loaded only on is_product(), after flatsome-bridge.css. Like flatsome-bridge.css it may target
 * Flatsome/WooCommerce/.medi-* markup; values come from tokens.css.
 * Moved out of style.css on 2026-11-27 (rewrite stage 1 in docs/plans/design-system-cleanup-2026-11.md).
 */

/* B2B single product above-the-fold (critique 2026-11-28): the photo takes the free width, the
   summary keeps a reading measure (360–560px), the gallery stays in view while the taller
   summary scrolls. Flat page ground, no gradient. */
.medi-single-product {
    padding: 26px 0 30px;
}

.medi-single-product__top {
    align-items: start;
    display: grid;
    gap: var(--mt-space-6);
    grid-template-columns: minmax(0, 1fr) min(560px, max(360px, 46%));
}

/* the stuck Flatsome header is 95px tall on desktop: sticky parts and jump targets clear it */
.single-product {
    --medi-sticky-top: 16px;
}

@media only screen and (min-width: 48.01em) {
    .single-product {
        --medi-sticky-top: 112px;
    }

    .medi-single-product__gallery {
        position: sticky;
        top: var(--medi-sticky-top);
    }
}

.medi-single-product__gallery,
.medi-single-product__summary {
    min-width: 0;
}

/* the photo sits on a neutral tile, not inside a white card: white backgrounds melt into the
   tile (multiply), coloured ones read as a framed photo; never enlarged past its own size */
html body .medi-single-product__gallery .woocommerce-product-gallery {
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

.medi-single-product__gallery .product-gallery-slider .flickity-viewport {
    border-radius: var(--mt-radius-card);
    background: var(--mt-bg);
}

.medi-single-product__gallery .product-gallery-slider img {
    mix-blend-mode: multiply;
}

@media only screen and (min-width: 48.01em) {
.medi-single-product__gallery > .row.row-small {
        display: grid;
        gap: var(--mt-space-3);
        grid-template-columns: minmax(0, 1fr);
        margin: 0 !important;
    }

.medi-single-product__gallery > .row.row-small > .col.large-10 {
        flex-basis: auto;
        grid-column: 1;
        grid-row: 1;
        max-width: none;
        padding: 0 !important;
    }

.medi-single-product__gallery > .row.row-small > .vertical-thumbnails {
        flex-basis: auto;
        grid-column: 1;
        grid-row: 2;
        max-width: none;
        order: 2 !important;
        padding: 0 !important;
    }

.medi-single-product__gallery .product-gallery-slider .flickity-viewport,
    .medi-single-product__gallery .product-gallery-slider .slide,
    .medi-single-product__gallery .product-gallery-slider .woocommerce-product-gallery__image {
        height: clamp(340px, 38vw, 560px) !important;
    }

.medi-single-product__gallery .product-gallery-slider .slide,
    .medi-single-product__gallery .product-gallery-slider .woocommerce-product-gallery__image,
    .medi-single-product__gallery .product-gallery-slider .woocommerce-product-gallery__image a {
        align-items: center;
        display: flex;
        justify-content: center;
    }

.medi-single-product__gallery .product-gallery-slider .woocommerce-product-gallery__image a {
        height: 100%;
        padding: var(--mt-space-6);
        width: 100%;
    }

.medi-single-product__gallery .product-gallery-slider img {
        display: block;
        height: auto;
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
        width: auto;
    }

    /* thumbnails: one row under the photo */
.medi-single-product__gallery .product-thumbnails {
        margin: 0 !important;
        overflow: visible;
    }

.medi-single-product__gallery .product-thumbnails .flickity-viewport {
        height: auto !important;
        overflow: visible;
    }

.medi-single-product__gallery .product-thumbnails .flickity-slider {
        display: flex;
        flex-wrap: wrap;
        gap: var(--mt-space-2);
        position: relative !important;
        transform: none !important;
    }

.medi-single-product__gallery .product-thumbnails .col {
        flex: 0 0 72px !important;
        left: auto !important;
        margin: 0 !important;
        max-width: 72px !important;
        padding: 0 !important;
        position: relative !important;
        width: 72px !important;
    }

.medi-single-product__gallery .product-thumbnails a {
        align-items: center;
        aspect-ratio: 1;
        background: var(--mt-bg);
        border: 1px solid var(--mt-line);
        border-radius: var(--mt-radius-control);
        display: flex;
        justify-content: center;
        padding: 6px;
    }

.medi-single-product__gallery .product-thumbnails .is-nav-selected a {
        border-color: var(--mt-green-text);
        box-shadow: inset 0 0 0 1px var(--mt-green-text);
    }

.medi-single-product__gallery .product-thumbnails img {
        max-height: 100%;
        mix-blend-mode: multiply;
        object-fit: contain;
    }
}

/* keyboard: the slider, the photo link, the zoom button and the thumbnails show where focus is */
.medi-single-product__gallery .product-gallery-slider:focus-visible,
.medi-single-product__gallery .woocommerce-product-gallery__image a:focus-visible,
.medi-single-product__gallery .zoom-button:focus-visible,
.medi-single-product__gallery .product-thumbnails:focus-visible,
.medi-single-product__gallery .product-thumbnails a:focus-visible {
    outline: 2px solid var(--mt-green-text);
    outline-offset: 2px;
}

.medi-single-product__gallery .woocommerce-product-gallery__image a:focus-visible {
    outline-offset: -4px;
}

.medi-single-product__summary {
    background: var(--mt-surface);
    padding: 24px;
}

.medi-single-product__summary .product-title {
    color: var(--mt-ink);
    font-size: var(--mt-text-30);
    font-weight: 700;
    text-wrap: balance;
    line-height: 1.2;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

/* no ornament under the title: the brand row's hairline separates */
.medi-single-product__summary .is-divider {
    display: none;
}

.medi-single-brand {
    align-items: center;
    border-bottom: 1px solid var(--mt-line);
    display: flex;
    gap: 12px;
    margin: -2px 0 16px;
    padding-bottom: 14px;
}

.medi-single-brand__label {
    color: var(--mt-muted);
    font-size: var(--mt-text-14);
    font-weight: 400;
    line-height: 1;
}

.medi-single-brand__link {
    align-items: center;
    color: var(--mt-green-text);
    display: inline-flex;
    font-size: var(--mt-text-15);
    font-weight: 700;
    min-height: 40px;
}

.medi-single-brand__link:hover {
    color: var(--mt-green-deep);
}

.medi-single-brand__logo {
    max-height: 32px;
    max-width: 132px;
    object-fit: contain;
}

.medi-single-product__summary .price-wrapper {
    margin-bottom: 12px;
}

.medi-single-product__summary .price {
    color: var(--mt-ink);
    font-weight: 700;
    line-height: 1.2;
}

.medi-single-product__summary .product-short-description {
    color: var(--mt-muted);
    font-size: var(--mt-text-15);
    line-height: 1.55;
    margin-bottom: 16px;
}

.medi-single-specs {
    display: grid;
    gap: var(--mt-space-2);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 14px 0 16px;
}

/* three parameters stand in one row; two or four make a 2 × 2 */
@media only screen and (min-width: 48.01em) {
    .medi-single-specs:has(> :nth-child(3):last-child) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.medi-single-specs__item {
    background: var(--mt-bg);
    border: 1px solid var(--mt-line);
    border-radius: var(--mt-radius-control);
    min-width: 0;
    min-height: 48px;
    padding: 7px 9px;
}

.medi-single-specs__item dt {
    color: var(--mt-muted);
    display: block;
    font-size: var(--mt-text-min);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.medi-single-specs__item dd {
    color: var(--mt-ink);
    display: block;
    font-size: var(--mt-text-14);
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.medi-single-product__summary > .stock,
.medi-single-product__summary > .stock-availability {
    display: none !important;
}

.medi-single-availability {
    border-top: 1px solid var(--mt-line);
    margin: 16px 0 12px;
    padding-top: 14px;
}

.medi-single-availability__status {
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.medi-single-availability__channels {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.medi-single-availability__chip {
    display: inline-flex;
    line-height: 1.1;
    white-space: nowrap;
}

.medi-single-availability__chip--supplier {
    background: var(--mt-bg);
}

.medi-single-product__summary form.cart {
    align-items: center;
    border-top: 1px solid var(--mt-line);
    gap: 10px;
    margin: 14px 0 0;
    padding-top: 14px;
}

.medi-single-product__summary form.cart .single_add_to_cart_button {
    flex: 1 1 230px;
    font-size: var(--mt-text-14);
    font-weight: 700;
    min-height: 42px;
}

.medi-single-product__summary .product_meta {
    border-top: 1px solid var(--mt-line);
    margin-top: 14px;
    padding-top: 4px;
}

.medi-single-product__summary .product_meta > span {
    border-bottom: 1px solid var(--mt-line);
    color: var(--mt-muted);
    display: grid;
    gap: 10px;
    grid-template-columns: 136px minmax(0, 1fr);
    padding: 9px 0;
}

.medi-single-product__summary .product_meta a,
.medi-single-product__summary .product_meta .sku,
.medi-single-product__summary .product_meta .mpn {
    color: var(--mt-green-text);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* category links: a 24px target, not a 20px line */
.medi-single-product__summary .product_meta a {
    display: inline-block;
    padding: 3px 0;
}

/* jump links to the sections under the photo and summary */
.medi-single-jump {
    margin: var(--mt-space-3) 0 0;
    color: var(--mt-muted);
    font-size: var(--mt-text-14);
}

.medi-single-jump a {
    display: inline-block;
    padding: 3px 0;
    color: var(--mt-green-text);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--mt-line-strong);
    text-underline-offset: 3px;
}

.medi-single-jump a:hover {
    text-decoration-color: currentColor;
}

.medi-single-product__summary .share-icons {
    margin-top: 16px;
    opacity: .62;
}

.medi-single-product__footer {
    padding-top: 26px;
    padding-bottom: var(--mt-space-section); /* the related cards no longer sit on the footer */
}

/* Product details: sections, not tabs (woocommerce/single-product/tabs/tabs.php). One white
   card, sections divided by hairlines, sentence-case h2s; no tinted bar, no card in a card. */
.medi-single-product__footer .medi-product-sections {
    margin: 0 0 var(--mt-space-6);
    padding: 0 var(--mt-space-6);
    border: 1px solid var(--mt-line);
    border-radius: var(--mt-radius-card);
    background: var(--mt-surface);
    box-shadow: var(--mt-shadow-low);
}

.medi-single-product__footer .medi-product-section {
    display: block;
    padding: var(--mt-space-6) 0;
    scroll-margin-top: var(--medi-sticky-top, 24px);
}

.medi-single-product__footer .medi-product-section + .medi-product-section {
    border-top: 1px solid var(--mt-line);
}

.medi-single-product__footer .medi-product-section__title {
    width: auto;
    margin: 0 0 var(--mt-space-4);
    color: var(--mt-ink);
    font-size: var(--mt-text-21);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
}

.medi-single-product__footer .woocommerce-Tabs-panel {
    color: var(--mt-ink);
    font-size: var(--mt-text-14);
    line-height: 1.55;
}

/* specification table: label | value on hairlines, no zebra, no box around it */
html body .medi-single-product__footer .woocommerce-product-attributes {
    width: 100%;
    max-width: 760px;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--mt-line);
    border-radius: 0;
    background: none;
    box-shadow: none;
}

html body .medi-single-product__footer .woocommerce-product-attributes tr {
    background: none;
}

html body .medi-single-product__footer .woocommerce-product-attributes th,
html body .medi-single-product__footer .woocommerce-product-attributes td {
    border: 0;
    border-bottom: 1px solid var(--mt-line);
    padding: 10px var(--mt-space-4) 10px 0;
    font-size: var(--mt-text-14);
    line-height: 1.4;
    vertical-align: top;
}

html body .medi-single-product__footer .woocommerce-product-attributes th {
    width: 38%;
    color: var(--mt-muted);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

html body .medi-single-product__footer .woocommerce-product-attributes td {
    color: var(--mt-ink);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.medi-single-product__footer .woocommerce-product-attributes p {
    margin: 0;
}

.medi-single-product__footer .product-attachments {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.medi-single-product__footer .product-attachments .attachment-item {
    margin: 0;
}

.medi-single-product__footer .product-attachments a {
    align-items: center;
    background: var(--mt-bg);
    border: 1px solid var(--mt-line);
    border-radius: var(--mt-radius-control);
    color: var(--mt-green-text);
    display: flex;
    font-weight: 700;
    min-height: 44px;
    padding: 10px 12px;
}

.medi-single-product__footer .product-attachments a:hover {
    background: var(--mt-green-soft);
}

.medi-single-product__footer .login-notice {
    background: var(--mt-status-confirm-bg);
    border: 1px solid var(--mt-status-confirm-line);
    border-radius: var(--mt-radius-control);
    color: var(--mt-status-confirm);
    font-size: var(--mt-text-13);
    margin: 0 0 12px;
    padding: 10px 12px;
}

.medi-single-product__footer #tab-pwb_tab-content h3 {
    color: var(--mt-ink);
    font-size: var(--mt-text-18);
    font-weight: 700;
}

.medi-single-product__footer #tab-pwb_tab-content img {
    max-height: 72px;
    object-fit: contain;
    width: auto;
}

.medi-product-description {
    line-height: 1.65;
    max-width: 920px;
}

.medi-product-description + .medi-product-description {
    border-top: 1px solid var(--mt-line);
    margin-top: 18px;
    padding-top: 18px;
}

.medi-brand-tab {
    max-width: 920px;
}

.medi-brand-tab__header {
    align-items: center;
    display: flex;
    margin-bottom: 16px;
    min-height: 52px;
}

.medi-brand-tab__brand {
    align-items: center;
    display: inline-flex;
}

.medi-brand-tab__logo {
    max-height: 72px;
    max-width: 180px;
    object-fit: contain;
}

.medi-brand-tab__name {
    color: var(--mt-green-text);
    font-size: var(--mt-text-21);
    font-weight: 700;
    line-height: 1.2;
}

.medi-brand-tab__description {
    line-height: 1.65;
}

.medi-brand-tab__description p:last-child {
    margin-bottom: 0;
}

.medi-single-product__footer #reviews .woocommerce-Reviews-title {
    color: var(--mt-ink);
    font-size: var(--mt-text-18);
    font-weight: 700;
}

.medi-single-product__footer #review_form .review-form-inner {
    border-color: var(--mt-line);
    border-radius: var(--mt-radius-card);
    box-shadow: none;
}

@media only screen and (max-width: 48em) {
.medi-single-product {
        overflow-x: hidden;
        padding: 18px 0 22px;
    }

.medi-single-product > .container {
        max-width: 100%;
        overflow-x: hidden;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

.medi-single-product__top {
        display: flex;
        flex-direction: column;
        gap: 16px;
        overflow-x: hidden;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
    }

.medi-single-product__summary {
        order: 2;
        padding: 18px 16px;
        max-width: 100%;
        width: 100%;
    }

.medi-single-product__gallery {
        order: 1;
        max-width: 100%;
        overflow: hidden;
        width: 100%;
    }

.medi-single-product__gallery > .row.row-small {
        display: block;
        margin: 0 !important;
    }

.medi-single-product__gallery > .row.row-small > .col {
        flex-basis: 100%;
        max-width: 100%;
        padding: 0 !important;
    }

.medi-single-product__gallery .product-gallery-slider .woocommerce-product-gallery__image a {
        padding: var(--mt-space-4);
    }

.medi-single-product__gallery .product-gallery-slider,
    .medi-single-product__gallery .product-gallery-slider .flickity-viewport,
    .medi-single-product__gallery .product-gallery-slider .slide,
    .medi-single-product__gallery .product-gallery-slider .woocommerce-product-gallery__image {
        max-width: 100%;
    }

.medi-single-product__gallery .product-gallery-slider .slide,
    .medi-single-product__gallery .product-gallery-slider .woocommerce-product-gallery__image,
    .medi-single-product__gallery .product-gallery-slider .woocommerce-product-gallery__image a {
        align-items: center;
        display: flex;
        justify-content: center;
    }

.medi-single-product__gallery .product-gallery-slider .woocommerce-product-gallery__image a {
        height: 100%;
        width: 100%;
    }

.medi-single-product__gallery .product-gallery-slider .slide img {
        height: auto;
        margin: 0 auto;
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
        width: auto;
    }

.medi-single-product__gallery .product-thumbnails {
        margin-top: 10px;
    }

.medi-single-product__footer {
        padding-top: 14px;
    }

.medi-single-product__footer .medi-product-sections {
        margin: 0 15px var(--mt-space-5);
        padding: 0 var(--mt-space-4);
    }

.medi-single-product__footer .medi-product-section {
        padding: var(--mt-space-5) 0;
    }

.medi-single-product__footer .woocommerce-product-attributes,
    .medi-single-product__footer .woocommerce-product-attributes tbody,
    .medi-single-product__footer .woocommerce-product-attributes tr,
    .medi-single-product__footer .woocommerce-product-attributes th,
    .medi-single-product__footer .woocommerce-product-attributes td {
        display: block;
        width: 100%;
    }

html body .medi-single-product__footer .woocommerce-product-attributes th {
        width: 100%;
        border-bottom: 0;
        padding: 10px 0 2px;
    }

html body .medi-single-product__footer .woocommerce-product-attributes td {
        padding: 0 0 10px;
    }

.medi-single-product__summary .product-title {
        font-size: var(--mt-text-21);
        line-height: 1.18;
        margin-bottom: 10px;
        max-width: 100%;
        overflow-wrap: normal;
    }

.medi-single-brand {
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

.medi-single-brand__logo {
        max-height: 36px;
        max-width: 112px;
    }

.medi-single-product__summary .price-wrapper,
    .medi-single-product__summary .product-short-description,
    .medi-single-product__summary .medi-single-availability,
    .medi-single-product__summary .product_meta {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

.medi-single-product__summary .price {
        font-size: var(--mt-text-21);
    }

.medi-single-product__summary .product-short-description {
        font-size: var(--mt-text-14);
        line-height: 1.45;
        max-height: 84px;
        overflow: hidden;
    }

.medi-single-specs {
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 12px 0 14px;
    }

.medi-single-specs__item {
        min-height: 58px;
        padding: 7px 8px;
    }

.medi-single-specs__item dt {
        white-space: normal;
    }

.medi-single-specs__item dd {
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        white-space: normal;
    }

.medi-single-availability {
        margin: 14px 0 10px;
        padding-top: 12px;
    }

.medi-single-availability__status {
        font-size: var(--mt-text-15);
    }

.medi-single-product__summary form.cart {
        align-items: stretch;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
    }

.medi-single-product__summary form.cart .quantity:not(.hidden) {
        flex: 0 0 116px;
    }

.medi-single-product__summary form.cart .single_add_to_cart_button {
        flex: 1 1 170px;
        min-height: 40px;
        padding-left: 12px;
        padding-right: 12px;
    }

.medi-single-product__summary .product_meta > span {
        display: block;
        font-size: var(--mt-text-12);
        padding: 8px 0;
    }

.medi-single-product__summary .share-icons {
        display: none;
    }



}

.medi-single-product__summary .price .medi-price__net {
    font-size: var(--mt-text-28);
}

.medi-single-product__summary .price .medi-price__gross {
    font-size: var(--mt-text-15);
}

/* Inquiry block for products without a buy button. */
.medi-inquiry {
    margin: 14px 0 4px;
    padding: 16px 18px;
    border: 1px solid var(--mt-status-confirm-line);
    border-radius: var(--mt-radius-card);
    background: var(--mt-status-confirm-bg);
}

/* the heading is the status ("Do potwierdzenia"), in the status colour */
.medi-inquiry__title {
    margin: 0 0 4px;
    color: var(--mt-status-confirm);
    font-size: var(--mt-text-17);
    font-weight: 700;
    line-height: 1.3;
}

.medi-inquiry__text {
    margin: 0 0 12px;
    color: var(--mt-ink);
    font-size: var(--mt-text-14);
    line-height: 1.5;
}

.medi-inquiry__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

.medi-inquiry__button:hover {
    background: var(--mt-green-deep);
}

.medi-inquiry__button:focus-visible,
.medi-inquiry__phone:focus-visible {
    outline: 2px solid var(--mt-green-text);
    outline-offset: 3px;
}

.medi-inquiry__phone {
    color: var(--mt-green-text) !important;
    font-size: var(--mt-text-17);
    font-weight: 700;
    white-space: nowrap;
}

.medi-inquiry__meta {
    margin: 10px 0 0;
    color: var(--mt-muted);
    font-size: var(--mt-text-13);
}

@media (max-width: 549px) {
.medi-inquiry__button {
        flex: 1 1 100%;
    }
}

/* Product downloads tab. */
.medi-files__title {
    margin: 0 0 8px;
    font-size: var(--mt-text-18);
}

.medi-files__notice {
    max-width: 62ch;
    margin: 0 0 12px;
    color: var(--mt-muted);
}

.medi-files__list {
    margin: 0 0 16px;
    list-style: none;
}

.medi-files__list li {
    margin: 0;
    border-top: 1px solid var(--mt-line);
}

.medi-files__list li:last-child {
    border-bottom: 1px solid var(--mt-line);
}

.medi-files__list a,
.medi-files__list span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--mt-ink);
    font-weight: 700;
}

.medi-files__list a {
    color: var(--mt-green-text);
}

.medi-files__icon {
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.medi-files__list span .medi-files__icon {
    color: var(--mt-muted);
}

.medi-files__login:hover {
    background: var(--mt-green-deep);
}

.medi-files__register {
    margin-left: 10px;
    color: var(--mt-muted);
}

/* Share: copy link / e-mail. */
.medi-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--mt-line);
}

.medi-share__label {
    margin-right: 4px;
    color: var(--mt-muted);
    font-size: var(--mt-text-14);
    font-weight: 400;
}

/* text links with an icon, not a third button shape */
.medi-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    margin: 0;
    padding: 0 var(--mt-space-2);
    border: 0;
    border-radius: var(--mt-radius-control);
    background: none;
    color: var(--mt-green-text) !important;
    font-size: var(--mt-text-14);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.medi-share__btn svg {
    height: 18px;
    flex: none;
    fill: none;
    stroke: var(--mt-green-text);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.medi-share__btn:hover {
    background: var(--mt-green-soft);
}

.medi-share__btn:focus-visible {
    outline: 2px solid var(--mt-green-text);
    outline-offset: 2px;
}

.medi-share__btn.is-done {
    background: var(--mt-green-soft);
    color: var(--mt-green-text) !important;
}

@media (max-width: 549px) {
.medi-share__label {
        flex-basis: 100%;
    }

.medi-files__register {
        display: block;
        margin: 8px 0 0;
    }
}

@media only screen and (max-width: 48em) {
    /* align the outer thumbnail edges with the main image (4px cell gutters) */
    .medi-single-product__gallery .product-thumbnails {
        width: calc(100% + 8px) !important;
        margin-left: -4px !important;
        margin-right: -4px !important;
    }

.medi-single-product__gallery .product-thumbnails .col {
        padding: 0 4px !important;
    }

.medi-single-product__gallery .product-thumbnails a {
        display: flex;
        align-items: center;
        justify-content: center;
        aspect-ratio: 1;
        padding: 4px;
        border: 1px solid var(--mt-line);
        border-radius: var(--mt-radius-control);
        background: var(--mt-bg);
    }

.medi-single-product__gallery .product-thumbnails img {
        height: 100%;
        margin: 0;
        object-fit: contain;
        opacity: 1;
        transform: none !important;
    }

.medi-single-product__gallery .product-thumbnails .is-nav-selected a {
        border-color: var(--mt-green-text);
        box-shadow: inset 0 0 0 1px var(--mt-green-text);
    }
}

@media (max-width: 849px) {
    /* Product page: one-line way back instead of the full breadcrumb and prev/next arrows. */
    .single-product .product-page-title .page-title-inner {
        padding-top: 10px;
        padding-bottom: 10px;
        min-height: 0;
    }

.single-product .product-page-title .next-prev-thumbs {
        display: none;
    }

.single-product .product-page-title .woocommerce-breadcrumb > * {
        display: none;
    }

.single-product .product-page-title .woocommerce-breadcrumb > span.medi-breadcrumb-crumb:last-of-type {
        display: inline;
    }

.single-product .product-page-title .woocommerce-breadcrumb > span.medi-breadcrumb-crumb:last-of-type::before {
        content: "‹ ";
    }

.single-product .medi-single-product__gallery .product-gallery-slider .flickity-viewport,
    .single-product .medi-single-product__gallery .product-gallery-slider .slide,
    .single-product .medi-single-product__gallery .product-gallery-slider .woocommerce-product-gallery__image {
        height: 300px !important;
    }

    /* Buying flow first on phones: price, availability, buy/inquiry; key specs after. */
    .single-product .medi-single-product__summary {
        display: flex;
        flex-direction: column;
    }

.single-product .medi-single-product__summary > .medi-single-specs {
        order: 5;
    }

.single-product .medi-single-product__summary > .product_meta {
        order: 6;
    }

.single-product .medi-single-product__summary > .medi-share {
        order: 7;
    }

.single-product .medi-single-product__summary > .is-divider {
        align-self: flex-start;
    }

    /* The sticky add-to-cart bar owns the bottom edge on product pages. */
    .single-product .medi-catalog-sticky-trigger {
        display: none;
    }
}

/* one piece left: the quantity said in words where WooCommerce hides the field */
.medi-single-product__summary form.cart {
    flex-wrap: wrap;
}

.medi-qty-fixed {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: var(--mt-space-1) var(--mt-space-4);
    align-items: baseline;
    margin: 0;
    color: var(--mt-ink);
    font-size: var(--mt-text-15);
}

.medi-qty-fixed__more {
    color: var(--mt-muted);
    font-size: var(--mt-text-14);
}

.medi-qty-fixed__more a {
    display: inline-block;
    padding: 3px 0;
    color: var(--mt-green-text);
    font-weight: 700;
    white-space: nowrap;
}

/* ---------- notices on the product page: the cart and checkout's cards (bridge/cart.css) ----------
   "Dodano do koszyka" and "Nie możesz dodać takiej ilości" were bare coloured text on the page. */
html body.single-product .woocommerce-message,
html body.single-product .woocommerce-info,
html body.single-product .woocommerce-error {
    position: relative;
    box-sizing: border-box;
    width: calc(100% - 30px); /* Flatsome prints them outside the page container: same edges as the content */
    max-width: 1540px;
    margin: var(--mt-space-4) auto 0;
    padding: 12px 16px 12px 46px;
    list-style: none;
    border: 1px solid var(--mt-line);
    border-radius: var(--mt-radius-card);
    background: var(--mt-surface);
    color: var(--mt-ink);
    font-size: var(--mt-text-15);
    line-height: 1.5;
}

html body.single-product .woocommerce-error {
    border-color: color-mix(in srgb, var(--mt-danger) 35%, transparent);
    background: color-mix(in srgb, var(--mt-danger) 4%, var(--mt-surface));
    color: var(--mt-danger);
}

html body.single-product .woocommerce-message::before,
html body.single-product .woocommerce-info::before,
html body.single-product .woocommerce-error::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 16px;
    width: 18px;
    height: 18px;
    background: var(--mt-green-text);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M7.5 12.5l3 3 6-6.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M7.5 12.5l3 3 6-6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

html body.single-product .woocommerce-info::before {
    background: var(--mt-muted);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v5.5M12 7.5v.01'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v5.5M12 7.5v.01'/%3E%3C/svg%3E");
}

html body.single-product .woocommerce-error::before {
    background: var(--mt-danger);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E");
}

html body.single-product .woocommerce-error li {
    margin: 0;
    padding: 0;
    list-style: none;
}

html body.single-product .woocommerce-error li + li {
    margin-top: var(--mt-space-1);
}

html body.single-product .message-wrapper .message-container {
    padding: 0;
    color: inherit;
    text-align: left !important;
}

/* Flatsome's own tick and icon: the card draws one */
html body.single-product .message-wrapper .message-icon,
html body.single-product .woocommerce-message .icon-checkmark {
    display: none;
}

html body.single-product .woocommerce-message a:not(.button),
html body.single-product .woocommerce-info a:not(.button) {
    color: var(--mt-green-text);
    font-weight: 700;
}

html body.single-product .woocommerce-message .button {
    min-height: var(--mt-control-h-sm);
    margin: 0 0 0 var(--mt-space-3);
    padding: 0 14px;
    border: 1px solid var(--mt-green-text);
    background: var(--mt-surface);
    color: var(--mt-green-text) !important;
    font-size: var(--mt-text-14);
    vertical-align: middle;
}

/* phones: the thumbnails are a plain row that scrolls sideways, not a Flickity slider. Flickity
   placed the cells at percentages of a width it measured once, and after a resize or a late
   image they piled on top of each other (owner report 2026-11-28). */
@media only screen and (max-width: 48em) {
    .medi-single-product__gallery .product-thumbnails {
        width: 100% !important;
        margin: var(--mt-space-2) 0 0 !important;
    }

    .medi-single-product__gallery .product-thumbnails .flickity-viewport {
        height: auto !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        touch-action: pan-x pan-y;
    }

    .medi-single-product__gallery .product-thumbnails .flickity-viewport::-webkit-scrollbar {
        display: none;
    }

    .medi-single-product__gallery .product-thumbnails .flickity-slider {
        position: relative !important;
        display: flex;
        gap: var(--mt-space-2);
        transform: none !important;
    }

    .medi-single-product__gallery .product-thumbnails .col {
        position: relative !important;
        left: auto !important;
        flex: 0 0 64px !important;
        width: 64px !important;
        max-width: 64px !important;
        margin: 0 !important;
        padding: 0 !important;
        scroll-snap-align: start;
    }

    .medi-single-product__gallery .product-thumbnails .flickity-prev-next-button,
    .medi-single-product__gallery .product-thumbnails .flickity-page-dots {
        display: none;
    }
}
