/* Berniteam produktna stran – varno omejeno na WooCommerce single product. */
body.single-product.bt-product-page {
    --bt-product-primary: #2e6bc6;
    --bt-product-accent: #ff6027;
    --bt-product-surface: #f7f9fc;
    --bt-product-radius: 14px;
    --bt-product-description-lines: 4;
    --bt-fpd-background-width: 88px;
    --bt-fpd-background-gap: 8px;
    --bt-fpd-photo-width: 128px;
    --bt-fpd-sticky-top: 104px;
    --bt-fpd-mobile-preview-width: 118px;
    --bt-fpd-mobile-preview-top: 72px;
    --bt-product-border: #dfe6ef;
    --bt-product-ink: #1d2a3b;
    --bt-product-muted: #667386;
    --bt-product-shadow: 0 12px 32px rgba(22, 46, 82, .08);
}

body.single-product.bt-product-page .summary-inner > .price,
body.single-product.bt-product-page .bt-mobile-product-heading > .price {
    color: var(--bt-product-primary);
    font-weight: 800;
}

body.single-product.bt-product-page .bt-product-stock {
    margin: 16px 0 10px;
    color: #234f32;
    font-size: 14px;
    font-weight: 750;
}

body.single-product.bt-product-page .bt-product-cart:not(.variations_form):not(.grouped_form) {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 0;
}

body.single-product.bt-product-page .bt-product-cart .quantity {
    flex: 0 0 auto;
    margin: 0;
    border: 1px solid var(--bt-product-border);
    border-radius: calc(var(--bt-product-radius) - 4px);
    background: #fff;
}

body.single-product.bt-product-page .bt-product-cart .single_add_to_cart_button {
    min-height: 46px;
    padding-right: 24px;
    padding-left: 24px;
    border-radius: calc(var(--bt-product-radius) - 4px);
    background: var(--bt-product-primary);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--bt-product-primary) 24%, transparent);
    font-weight: 800;
    letter-spacing: .01em;
}

body.single-product.bt-product-page .bt-product-cart .single_add_to_cart_button:hover,
body.single-product.bt-product-page .bt-product-cart .single_add_to_cart_button:focus-visible {
    filter: brightness(.9);
}

body.single-product.bt-product-page .bt-product-trust {
    margin: 18px 0 0;
}

body.single-product.bt-product-page .bt-product-trust > .vc_row {
    margin: 0 !important;
    padding: 14px !important;
    border: 1px solid var(--bt-product-border) !important;
    border-radius: var(--bt-product-radius) !important;
    background: var(--bt-product-surface) !important;
}

body.single-product.bt-product-page .bt-product-trust > .vc_row + .vc_row {
    margin-top: 10px !important;
}

body.single-product.bt-product-page .bt-product-trust .info-box-wrapper {
    margin-bottom: 0;
}

body.single-product.bt-product-page .bt-product-trust .info-box-title {
    color: var(--bt-product-ink);
    font-weight: 750;
}

body.single-product.bt-product-page .bt-product-trust .info-box-subtitle,
body.single-product.bt-product-page .bt-product-trust .info-box-inner,
body.single-product.bt-product-page .bt-product-trust p {
    color: var(--bt-product-muted);
}

body.single-product.bt-product-page.bt-product-hide-compare .wd-compare-btn,
body.single-product.bt-product-page.bt-product-hide-wishlist .wd-wishlist-btn,
body.single-product.bt-product-page.bt-product-hide-share .product-share {
    display: none !important;
}

body.single-product.bt-product-page.bt-product-nav-hidden .single-breadcrumbs-wrapper .wd-products-nav {
    display: none !important;
}

body.single-product.bt-product-page.bt-product-nav-hidden .single-breadcrumbs-wrapper .wd-breadcrumbs {
    width: 100%;
    max-width: 100%;
}

body.single-product.bt-product-page.bt-product-nav-inline .single-breadcrumbs-wrapper {
    flex-wrap: nowrap;
    align-items: center;
}

body.single-product.bt-product-page.bt-product-nav-inline .single-breadcrumbs-wrapper .wd-breadcrumbs {
    flex: 1 1 auto;
    min-width: 0;
}

body.single-product.bt-product-page.bt-product-nav-inline .single-breadcrumbs-wrapper .wd-products-nav {
    flex: 0 0 auto;
    margin-left: auto;
}

body.single-product.bt-product-page .bt-product-description-toggle {
    display: none;
    margin: 4px 0 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bt-product-primary);
    box-shadow: none;
    font-size: 14px;
    font-weight: 800;
    text-transform: none;
}

/* FPD predogled. Dejanske dimenzije izdelka in tiskovna površina ostanejo nespremenjene. */
body.single-product.bt-product-page.bt-is-fpd .fpd-product-designer-wrapper {
    overflow: hidden;
    border: 1px solid var(--bt-product-border);
    border-radius: var(--bt-product-radius);
    background: #fff;
    box-shadow: var(--bt-product-shadow);
}

/*
 * Na dvostolpčni postavitvi višino levega stolpca določa daljši produktni
 * povzetek. Sticky se zato naravno ustavi tik pred WooCommerce zavihki.
 */
@media (min-width: 768px) {
    body.single-product.bt-product-page.bt-is-fpd.bt-fpd-desktop-sticky-preview .product-images {
        align-self: stretch;
    }

    body.single-product.bt-product-page.bt-is-fpd.bt-fpd-desktop-sticky-preview .product-images > .fpd-product-designer-wrapper {
        position: sticky;
        top: var(--bt-fpd-sticky-top);
        z-index: 3;
        align-self: flex-start;
    }
}

body.single-product.bt-product-page .bt-fpd-mobile-preview-marker {
    display: block;
    width: 100%;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

body.single-product.bt-product-page .bt-fpd-mobile-preview-placeholder {
    display: none;
    width: 100%;
    pointer-events: none;
}

body.single-product.bt-product-page.bt-is-fpd .fpd-product-designer-wrapper .fpd-wrapper,
body.single-product.bt-product-page.bt-is-fpd .bt-fpd-editor .fpd-container {
    --fpd-secondary-color: var(--bt-product-primary) !important;
    --fpd-btn-primary-color: var(--bt-product-primary) !important;
    --fpd-scrollbar-thumb-color: var(--bt-product-primary) !important;
}

/* Privzeti črni FPD pas ostane funkcionalen, vendar dobi mirnejši svetli videz. */
body.single-product.bt-product-page.bt-is-fpd.bt-fpd-toolbar-light .fpd-product-designer-wrapper .fpd-wrapper {
    --fpd-actions-bar-bg-color: #fff;
    --fpd-actions-bar-height: 44px;
}

body.single-product.bt-product-page.bt-is-fpd.bt-fpd-toolbar-light .fpd-product-designer-wrapper fpd-actions-bar {
    min-height: 44px;
    border-bottom: 1px solid var(--bt-product-border);
    background: #fff !important;
    color: var(--bt-product-ink) !important;
    box-shadow: none;
}

body.single-product.bt-product-page.bt-is-fpd.bt-fpd-toolbar-light .fpd-product-designer-wrapper fpd-actions-bar .fpd-btn {
    min-height: 32px;
    margin: 5px 3px;
    padding: 0 9px;
    border-radius: 8px;
    color: var(--bt-product-ink) !important;
}

body.single-product.bt-product-page.bt-is-fpd.bt-fpd-toolbar-light .fpd-product-designer-wrapper fpd-actions-bar .fpd-btn:hover:not(.fpd-disabled) {
    background: color-mix(in srgb, var(--bt-product-primary) 10%, #fff);
    color: var(--bt-product-primary) !important;
}

body.single-product.bt-product-page.bt-is-fpd.bt-fpd-toolbar-light .fpd-product-designer-wrapper fpd-actions-bar .fpd-disabled {
    opacity: .36;
}

body.single-product.bt-product-page.bt-is-fpd.bt-fpd-toolbar-hidden .fpd-product-designer-wrapper .fpd-wrapper {
    --fpd-actions-bar-height: 0px;
}

body.single-product.bt-product-page.bt-is-fpd.bt-fpd-toolbar-hidden .fpd-product-designer-wrapper fpd-actions-bar {
    display: none !important;
}

body.single-product.bt-product-page .bt-fpd-intro {
    margin: 0 0 12px;
    padding: 15px 17px;
    border: 1px solid color-mix(in srgb, var(--bt-product-primary) 22%, #fff);
    border-radius: var(--bt-product-radius);
    background: color-mix(in srgb, var(--bt-product-primary) 6%, #fff);
}

body.single-product.bt-product-page .bt-fpd-intro-title {
    display: block;
    margin: 0 0 3px;
    color: var(--bt-product-ink);
    font-size: 17px;
    font-weight: 850;
}

body.single-product.bt-product-page .bt-fpd-intro p {
    margin: 0;
    color: var(--bt-product-muted);
    font-size: 13px;
    line-height: 1.5;
}

body.single-product.bt-product-page .bt-fpd-editor .vc_tta-panels {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 0 !important;
    background: transparent !important;
}

body.single-product.bt-product-page .bt-fpd-editor .bt-fpd-step {
    overflow: hidden;
    margin: 0 !important;
    border: 1px solid var(--bt-product-border) !important;
    border-radius: var(--bt-product-radius) !important;
    background: #fff;
    box-shadow: 0 4px 15px rgba(27, 48, 78, .04);
    transition: border-color .2s ease, box-shadow .2s ease;
}

body.single-product.bt-product-page .bt-fpd-editor .bt-fpd-step.vc_active {
    border-color: var(--bt-product-primary) !important;
    box-shadow:
        inset 3px 0 0 var(--bt-product-accent),
        0 8px 22px color-mix(in srgb, var(--bt-product-primary) 14%, transparent);
}

body.single-product.bt-product-page .bt-fpd-editor .bt-fpd-step .vc_tta-panel-heading {
    margin: 0 !important;
    border: 0 !important;
    background: #fff !important;
}

body.single-product.bt-product-page .bt-fpd-editor .bt-fpd-step.vc_active .vc_tta-panel-heading {
    background: color-mix(in srgb, var(--bt-product-primary) 5%, #fff) !important;
}

body.single-product.bt-product-page .bt-fpd-editor .bt-fpd-step .vc_tta-panel-title > a {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    gap: 11px;
    align-items: center;
    min-height: 72px;
    padding: 11px 15px !important;
    color: var(--bt-product-ink) !important;
}

body.single-product.bt-product-page .bt-fpd-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--bt-product-primary) 11%, #fff);
    color: var(--bt-product-primary);
    font-size: 15px;
    font-weight: 900;
}

body.single-product.bt-product-page .bt-fpd-step.vc_active .bt-fpd-step-number {
    background: var(--bt-product-primary);
    color: #fff;
}

body.single-product.bt-product-page .bt-fpd-step-copy {
    display: grid;
    grid-template-columns: minmax(0, auto) 1fr;
    align-items: center;
    gap: 3px 8px;
    min-width: 0;
}

body.single-product.bt-product-page .bt-fpd-editor .vc_tta-title-text {
    color: var(--bt-product-ink);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.3;
}

body.single-product.bt-product-page .bt-fpd-optional {
    justify-self: start;
    padding: 2px 7px;
    border-radius: 999px;
    background: #edf1f6;
    color: #667386;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
}

body.single-product.bt-product-page .bt-fpd-complete {
    justify-self: start;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e8f6ed;
    color: #24713c;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.4;
    text-transform: uppercase;
}

body.single-product.bt-product-page .bt-fpd-step-description {
    grid-column: 1 / -1;
    color: var(--bt-product-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

body.single-product.bt-product-page .bt-fpd-editor .vc_tta-controls-icon {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    opacity: .55;
}

body.single-product.bt-product-page .bt-fpd-editor .bt-fpd-step .vc_tta-panel-body {
    padding: 14px 16px 17px !important;
    border: 0 !important;
    border-top: 1px solid var(--bt-product-border) !important;
    background: #fff !important;
}

body.single-product.bt-product-page .bt-fpd-editor .vc_tta-panel-body > .wpb_raw_code,
body.single-product.bt-product-page .bt-fpd-editor .vc_tta-panel-body > .wpb_raw_code > .wpb_wrapper {
    margin: 0;
}

/* FPD shortcode modulom odstrani privzeto prazno višino 300 px. */
body.single-product.bt-product-page .bt-fpd-editor .fpd-sc-module-wrapper {
    height: auto !important;
    min-height: 0 !important;
}

body.single-product.bt-product-page .bt-fpd-editor .fpd-sc-module-wrapper > fpd-module-designs,
body.single-product.bt-product-page .bt-fpd-editor .fpd-sc-module-wrapper > fpd-module-images,
body.single-product.bt-product-page .bt-fpd-editor .fpd-sc-module-wrapper > fpd-module-text,
body.single-product.bt-product-page .bt-fpd-editor [data-type="images"] fpd-module-uploads {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Poenostavljeno nalaganje fotografije. */
body.single-product.bt-product-page .bt-fpd-editor.bt-fpd-hide-social [data-type="images"] .fpd-module-tabs {
    display: none !important;
}

body.single-product.bt-product-page .bt-fpd-editor.bt-fpd-hide-social [data-type="images"] .fpd-module-tabs-content > [data-context]:not([data-context="upload"]) {
    display: none !important;
}

body.single-product.bt-product-page .bt-fpd-editor [data-type="images"] .fpd-module-tabs-content,
body.single-product.bt-product-page .bt-fpd-editor [data-type="images"] .fpd-module-tabs-content > [data-context="upload"] {
    height: auto !important;
    min-height: 0 !important;
}

body.single-product.bt-product-page .bt-fpd-editor .fpd-upload-image {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    padding: 24px !important;
    border: 2px dashed color-mix(in srgb, var(--bt-product-primary) 38%, #cfd7e3) !important;
    border-radius: calc(var(--bt-product-radius) - 4px);
    background: var(--bt-product-surface);
    color: var(--bt-product-muted);
    text-align: center;
}

body.single-product.bt-product-page .bt-fpd-editor .fpd-upload-image > [data-defaulttext="Drop images here"] {
    margin-bottom: 12px;
    color: var(--bt-product-ink);
    font-size: 13px;
    font-weight: 700;
}

body.single-product.bt-product-page .bt-fpd-editor .fpd-upload-image > .fpd-btn,
body.single-product.bt-product-page .bt-fpd-editor .fpd-add-text > .fpd-btn {
    min-height: 40px;
    padding: 10px 18px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: var(--bt-product-primary) !important;
    color: #fff !important;
    box-shadow: 0 7px 16px color-mix(in srgb, var(--bt-product-primary) 24%, transparent);
    font-size: 12px;
    font-weight: 800;
    text-transform: none;
}

body.single-product.bt-product-page .bt-fpd-editor [data-type="images"] .fpd-photo-grid:empty,
body.single-product.bt-product-page .bt-fpd-editor [data-type="images"] .fpd-photo-grid:empty + * {
    min-height: 0 !important;
}

body.single-product.bt-product-page .bt-fpd-editor [data-type="images"] fpd-module-uploads > .fpd-scroll-area {
    height: auto !important;
    min-height: 0 !important;
    max-height: 260px;
}

body.single-product.bt-product-page .bt-fpd-editor [data-type="designs"] .fpd-scroll-area {
    height: 270px !important;
    min-height: 210px;
}

body.single-product.bt-product-page .bt-fpd-editor [data-type="designs"] .fpd-grid,
body.single-product.bt-product-page .bt-fpd-editor [data-type="images"] .fpd-grid {
    gap: 10px;
}

/* Kategorije ozadij so v eni vrsti; daljši seznami se premikajo vodoravno. */
body.single-product.bt-product-page.bt-fpd-backgrounds-horizontal .bt-fpd-editor [data-type="designs"] .fpd-scroll-area {
    height: 124px !important;
    min-height: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

body.single-product.bt-product-page.bt-fpd-backgrounds-horizontal .bt-fpd-editor [data-type="designs"] .fpd-grid {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: var(--bt-fpd-background-width) !important;
    grid-template-columns: none !important;
    grid-template-rows: 100px !important;
    justify-content: start !important;
    align-items: stretch !important;
    width: max-content !important;
    min-width: 100% !important;
    height: 108px !important;
    padding: 4px 2px 8px !important;
    gap: var(--bt-fpd-background-gap) !important;
    overflow: visible !important;
}

body.single-product.bt-product-page.bt-fpd-backgrounds-horizontal .bt-fpd-editor [data-type="designs"] .fpd-grid > .fpd-item {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100px !important;
    margin: 0 !important;
}

body.single-product.bt-product-page.bt-fpd-backgrounds-horizontal .bt-fpd-editor [data-type="designs"] .fpd-grid > .fpd-category > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Po nalaganju ostaneta vidna sličica in manjši gumb za dodatno fotografijo. */
body.single-product.bt-product-page.bt-fpd-compact-upload .bt-fpd-editor .bt-fpd-step.bt-fpd-has-photo .fpd-upload-image {
    flex-direction: row;
    justify-content: flex-end;
    min-height: 54px;
    padding: 8px 10px !important;
    border-width: 1px !important;
    border-style: solid !important;
    background: #fff;
}

body.single-product.bt-product-page.bt-fpd-compact-upload .bt-fpd-editor .bt-fpd-step.bt-fpd-has-photo .fpd-upload-image > [data-defaulttext="Drop images here"] {
    display: none !important;
}

body.single-product.bt-product-page.bt-fpd-compact-upload .bt-fpd-editor .bt-fpd-step.bt-fpd-has-photo .fpd-upload-image > .fpd-btn {
    min-height: 36px;
    padding: 8px 13px !important;
    box-shadow: none;
}

body.single-product.bt-product-page.bt-fpd-compact-upload .bt-fpd-editor .bt-fpd-step.bt-fpd-has-photo fpd-module-uploads > .fpd-scroll-area {
    max-height: calc(var(--bt-fpd-photo-width) + 18px);
}

body.single-product.bt-product-page.bt-fpd-compact-upload .bt-fpd-editor .bt-fpd-step.bt-fpd-has-photo .fpd-photo-grid {
    grid-auto-flow: column !important;
    grid-auto-columns: min(var(--bt-fpd-photo-width), calc(100vw - 76px)) !important;
    grid-auto-rows: var(--bt-fpd-photo-width) !important;
    grid-template-columns: none !important;
    justify-content: start;
    min-height: var(--bt-fpd-photo-width);
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
}

body.single-product.bt-product-page.bt-fpd-compact-upload .bt-fpd-editor .bt-fpd-step.bt-fpd-has-photo .fpd-photo-grid > .fpd-item {
    width: 100% !important;
    height: var(--bt-fpd-photo-width) !important;
    min-width: 0 !important;
}

body.single-product.bt-product-page.bt-fpd-compact-upload .bt-fpd-editor .bt-fpd-step.bt-fpd-has-photo .fpd-photo-grid > .fpd-item > picture {
    background-color: var(--bt-product-surface);
    background-size: contain !important;
}

body.single-product.bt-product-page .bt-fpd-editor .fpd-add-text {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

body.single-product.bt-product-page .bt-fpd-editor .fpd-add-text textarea {
    min-height: 46px !important;
    padding: 11px 13px !important;
    border: 1px solid var(--bt-product-border) !important;
    border-radius: 9px !important;
    background: #fff;
    color: var(--bt-product-ink);
}

body.single-product.bt-product-page .bt-fpd-review-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: calc(var(--bt-product-radius) - 3px);
    border-left: 3px solid var(--bt-product-accent);
    background: color-mix(in srgb, var(--bt-product-primary) 6%, #fff);
    color: #44536a;
    font-size: 12px;
    line-height: 1.45;
}

body.single-product.bt-product-page .bt-fpd-review-note > span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bt-product-accent);
    color: #fff;
    font-weight: 900;
}

body.single-product.bt-product-page .bt-fpd-review-note p {
    margin: 1px 0 0;
}

body.single-product.bt-product-page .bt-mobile-product-heading {
    display: none;
}

@media (max-width: 767px) {
    body.single-product.bt-product-page .product-image-summary {
        padding-top: 18px;
    }

    body.single-product.bt-product-page .bt-product-stock {
        margin-top: 14px;
    }

    body.single-product.bt-product-page .bt-product-cart:not(.variations_form):not(.grouped_form) {
        width: 100%;
    }

    body.single-product.bt-product-page .bt-product-cart .single_add_to_cart_button {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 48px;
        padding-right: 12px;
        padding-left: 12px;
    }

    body.single-product.bt-product-page .bt-product-trust {
        margin-top: 14px;
    }

    body.single-product.bt-product-page .bt-product-trust > .vc_row {
        padding: 11px !important;
    }

    body.single-product.bt-product-page .bt-product-description-collapsible:not(.is-expanded) {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: var(--bt-product-description-lines);
    }

    body.single-product.bt-product-page .bt-product-description-toggle {
        display: inline-flex;
    }

    body.single-product.bt-product-page.bt-is-fpd .bt-product-description-toggle {
        display: none;
    }

    body.single-product.bt-product-page.bt-is-fpd .product-images {
        margin-bottom: 18px;
    }

    body.single-product.bt-product-page.bt-is-fpd .fpd-product-designer-wrapper {
        width: 100%;
        box-shadow: 0 8px 24px rgba(22, 46, 82, .07);
    }

    body.single-product.bt-product-page.bt-is-fpd.bt-fpd-mobile-floating-preview .product-images.bt-fpd-mobile-preview-active > .bt-fpd-mobile-preview-placeholder {
        display: block;
    }

    body.single-product.bt-product-page.bt-is-fpd.bt-fpd-mobile-floating-preview .fpd-product-designer-wrapper.bt-fpd-mobile-preview-active {
        position: fixed !important;
        top: var(--bt-fpd-mini-top, var(--bt-fpd-mobile-preview-top)) !important;
        left: 10px !important;
        width: var(--bt-fpd-mini-source-width) !important;
        max-width: none !important;
        margin: 0 !important;
        z-index: 380;
        transform: scale(var(--bt-fpd-mini-scale));
        transform-origin: top left;
        border-color: color-mix(in srgb, var(--bt-product-primary) 58%, #fff) !important;
        box-shadow:
            0 0 0 2px rgba(255, 255, 255, .94),
            0 13px 32px rgba(20, 42, 75, .24) !important;
        pointer-events: none !important;
        animation: bt-fpd-mobile-preview-in .18s ease-out both;
    }

    body.single-product.bt-product-page.bt-is-fpd.bt-fpd-mobile-floating-preview .fpd-product-designer-wrapper.bt-fpd-mobile-preview-active fpd-element-toolbar {
        display: none !important;
    }

    body.single-product.bt-product-page.bt-fpd-mobile-title-first .bt-mobile-product-heading {
        display: block;
        grid-column: 1 / -1;
        width: 100%;
        margin: 0 0 16px;
    }

    body.single-product.bt-product-page.bt-fpd-mobile-title-first .bt-mobile-product-heading .product_title {
        margin: 0 0 9px;
        color: var(--bt-product-ink);
        font-size: clamp(24px, 7vw, 31px);
        line-height: 1.18;
    }

    body.single-product.bt-product-page.bt-fpd-mobile-title-first .bt-mobile-product-heading .woocommerce-product-rating {
        margin-bottom: 8px;
    }

    body.single-product.bt-product-page.bt-fpd-mobile-title-first .bt-mobile-product-heading .price {
        margin: 0;
        font-size: 23px;
    }

    body.single-product.bt-product-page.bt-fpd-mobile-title-first .summary-inner > .single-breadcrumbs-wrapper {
        display: none;
    }

    body.single-product.bt-product-page .bt-fpd-intro {
        padding: 13px 14px;
    }

    body.single-product.bt-product-page .bt-fpd-editor .bt-fpd-step .vc_tta-panel-title > a {
        grid-template-columns: 32px minmax(0, 1fr) 16px;
        gap: 9px;
        min-height: 68px;
        padding: 10px 12px !important;
    }

    body.single-product.bt-product-page .bt-fpd-step-number {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    body.single-product.bt-product-page .bt-fpd-step-copy {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    body.single-product.bt-product-page .bt-fpd-optional {
        grid-row: 1;
        justify-self: end;
        margin-left: 8px;
    }

    body.single-product.bt-product-page .bt-fpd-step-copy:has(.bt-fpd-optional),
    body.single-product.bt-product-page .bt-fpd-step-copy:has(.bt-fpd-complete) {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    body.single-product.bt-product-page .bt-fpd-complete {
        grid-row: 1;
        justify-self: end;
        margin-left: 8px;
    }

    body.single-product.bt-product-page .bt-fpd-step-description {
        grid-column: 1 / -1;
    }

    body.single-product.bt-product-page .bt-fpd-editor .bt-fpd-step .vc_tta-panel-body {
        padding: 12px !important;
    }

    body.single-product.bt-product-page .bt-fpd-editor [data-type="designs"] .fpd-scroll-area {
        height: 240px !important;
        min-height: 190px;
    }

    body.single-product.bt-product-page .bt-fpd-editor .fpd-upload-image {
        min-height: 124px;
        padding: 20px 14px !important;
    }

    body.single-product.bt-product-page.bt-fpd-compact-upload .bt-fpd-editor .bt-fpd-step.bt-fpd-has-photo .fpd-upload-image {
        min-height: 50px;
        padding: 7px 8px !important;
    }

    body.single-product.bt-product-page .bt-fpd-editor .fpd-add-text {
        grid-template-columns: 1fr;
    }

    body.single-product.bt-product-page .bt-fpd-editor .fpd-add-text > .fpd-btn {
        width: 100%;
    }
}

@keyframes bt-fpd-mobile-preview-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 1024px) {
    /* Zunaj platna je navpični poteg namenjen strani. */
    body.single-product.bt-product-page.bt-is-fpd.bt-fpd-mobile-page-scroll .fpd-product-designer-wrapper,
    body.single-product.bt-product-page.bt-is-fpd.bt-fpd-mobile-page-scroll .fpd-product-designer-wrapper *,
    body.single-product.bt-product-page.bt-is-fpd.bt-fpd-mobile-page-scroll .bt-fpd-editor,
    body.single-product.bt-product-page.bt-is-fpd.bt-fpd-mobile-page-scroll .bt-fpd-editor * {
        touch-action: pan-y pinch-zoom !important;
    }

    body.single-product.bt-product-page.bt-is-fpd.bt-fpd-mobile-page-scroll .bt-fpd-editor .fpd-scroll-area,
    body.single-product.bt-product-page.bt-is-fpd.bt-fpd-mobile-page-scroll .bt-fpd-editor .fpd-module-tabs-content,
    body.single-product.bt-product-page.bt-is-fpd.bt-fpd-mobile-page-scroll .fpd-product-designer-wrapper fpd-element-toolbar .fpd-sub-panel {
        overscroll-behavior-y: auto !important;
    }

    /*
     * Fabricovo platno mora ohraniti touch-action:none, da FPD dobi celotno
     * potezo in lahko izbrano fotografijo premakne vodoravno ali navpično.
     */
    body.single-product.bt-product-page.bt-is-fpd.bt-fpd-mobile-page-scroll .fpd-product-designer-wrapper .fpd-product-stage .canvas-container,
    body.single-product.bt-product-page.bt-is-fpd.bt-fpd-mobile-page-scroll .fpd-product-designer-wrapper .fpd-product-stage .canvas-container *,
    body.single-product.bt-product-page.bt-is-fpd.bt-fpd-mobile-page-scroll .fpd-product-designer-wrapper .fpd-product-stage canvas {
        touch-action: none !important;
        overscroll-behavior: contain !important;
    }

    /* Vodoravni seznam mora preglasiti splošni pan-y tudi na svojih otrocih. */
    body.single-product.bt-product-page.bt-is-fpd.bt-fpd-mobile-page-scroll.bt-fpd-backgrounds-horizontal .bt-fpd-editor [data-type="designs"] .fpd-scroll-area,
    body.single-product.bt-product-page.bt-is-fpd.bt-fpd-mobile-page-scroll.bt-fpd-backgrounds-horizontal .bt-fpd-editor [data-type="designs"] .fpd-scroll-area *,
    body.single-product.bt-product-page.bt-is-fpd.bt-fpd-mobile-page-scroll .bt-fpd-editor .fpd-photo-grid {
        touch-action: pan-x pan-y pinch-zoom !important;
        overscroll-behavior-x: contain !important;
        overscroll-behavior-y: auto !important;
    }

    body.single-product.bt-product-page .single-breadcrumbs-wrapper .wd-products-nav {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.single-product.bt-product-page .bt-fpd-editor .bt-fpd-step {
        transition: none;
    }

    body.single-product.bt-product-page .fpd-product-designer-wrapper.bt-fpd-mobile-preview-active {
        animation: none;
    }
}
