/* Tanoro Puzzle Designer v0.6.1 */
body.fancy-product #fpd-start-customizing-button,
#fpd-start-customizing-button {
    display: none !important;
}

body.tanoro-wizard-active {
    overflow: hidden !important;
    background: #f7f3ef !important;
}

body.tanoro-wizard-active #header-outer,
body.tanoro-wizard-active #header-space,
body.tanoro-wizard-active #footer-outer,
body.tanoro-wizard-active .nectar-global-section,
body.tanoro-wizard-active:not(.tanoro-wizard-fpd-step) .fpd-product-designer-wrapper,
body.tanoro-wizard-active .nectar-slide-in-cart,
body.tanoro-wizard-active .nectar-slide-in-cart-bg {
    display: none !important;
}

.tanoro-wizard-app {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #f7f3ef;
    color: #171717;
    font-family: inherit;
    overflow: auto;
}

.tanoro-wizard-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.tanoro-wizard-header {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 42px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.tanoro-brand {
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 20px;
}

.tanoro-header-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.tanoro-price-label {
    color: #777;
    font-size: 13px;
}

.tanoro-price {
    font-size: 20px;
}

.tanoro-wizard-main {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 34px;
}

.tanoro-wizard-intro {
    text-align: center;
    margin-bottom: 24px;
}

.tanoro-eyebrow {
    margin: 0 0 8px;
    color: #8a6b4f;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 700;
}

.tanoro-step-title {
    margin: 0;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.05;
}

.tanoro-progress {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 26px 0 34px;
}

.tanoro-progress-item {
    position: relative;
    text-align: center;
    color: #999;
}

.tanoro-progress-item span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e8e1da;
    color: #8a7b6d;
    font-weight: 700;
    margin-bottom: 7px;
}

.tanoro-progress-item small {
    display: block;
    font-size: 12px;
    font-weight: 600;
}

.tanoro-progress-item.is-active span {
    background: #171717;
    color: #ffffff;
}

.tanoro-progress-item.is-active small,
.tanoro-progress-item.is-current small {
    color: #171717;
}

.tanoro-step-content {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 30px;
    padding: clamp(24px, 4vw, 46px);
    box-shadow: 0 24px 70px rgba(0,0,0,0.08);
}

.tanoro-card-grid {
    display: grid;
    gap: 22px;
}

.tanoro-card-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tanoro-choice-card {
    appearance: none;
    border: 2px solid #ece7e1;
    background: #ffffff;
    border-radius: 24px;
    min-height: 250px;
    padding: 28px;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.tanoro-choice-card:hover {
    transform: translateY(-2px);
    border-color: #171717;
    box-shadow: 0 18px 38px rgba(0,0,0,0.10);
    background: #fffdfa;
}

.tanoro-choice-card.is-selected {
    position: relative;
    transform: translateY(-4px) scale(1.015);
    border-color: #171717;
    box-shadow: 0 22px 48px rgba(0,0,0,0.14);
    background: #fffdfa;
}

.tanoro-choice-card.is-selected::after {
    content: '✓ Wybrano';
    position: absolute;
    top: 18px;
    right: 22px;
    background: #171717;
    color: #fff;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 800;
}

.tanoro-choice-card strong {
    font-size: clamp(22px, 3vw, 30px);
}

.tanoro-choice-card small {
    color: #777;
    font-size: 15px;
    max-width: 260px;
}

.tanoro-orientation-preview {
    display: block;
    border: 4px solid #171717;
    border-radius: 14px;
    background: linear-gradient(135deg, #f7f7f7, #ffffff);
}

.tanoro-horizontal {
    width: 150px;
    height: 108px;
}

.tanoro-vertical {
    width: 108px;
    height: 150px;
}

.tanoro-photo-icons {
    font-size: 58px;
    line-height: 1;
}


.tanoro-card-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tanoro-count-card {
    min-height: 220px;
}

.tanoro-mini-photo-stack {
    width: 122px;
    height: 86px;
    display: grid;
    gap: 6px;
    padding: 8px;
    border-radius: 18px;
    background: #f7f3ef;
    border: 1px solid #ece7e1;
}

.tanoro-mini-photo-stack i {
    display: block;
    border-radius: 8px;
    background: linear-gradient(135deg, #e7ddd2, #ffffff);
    border: 2px solid #171717;
}

.tanoro-count-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tanoro-count-4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.tanoro-count-6 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.tanoro-count-9 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.tanoro-template-header {
    text-align: center;
    margin: -8px 0 26px;
    color: #666;
}

.tanoro-template-header p {
    margin: 0;
}

.tanoro-template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tanoro-template-card {
    min-height: 300px;
    position: relative;
}

.tanoro-template-code {
    position: absolute;
    top: 18px;
    left: 20px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f1ebe5;
    color: #6f5a45;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.tanoro-template-preview {
    width: 180px;
    height: 128px;
    display: grid;
    gap: 7px;
    padding: 9px;
    border-radius: 18px;
    border: 2px solid #171717;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

.tanoro-template-preview i {
    display: block;
    min-height: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #ded2c6, #fff7ef);
    border: 1px solid rgba(0,0,0,0.18);
}

.tanoro-template-single-horizontal {
    grid-template-columns: 1fr;
}

.tanoro-template-single-vertical {
    width: 128px;
    height: 180px;
    grid-template-columns: 1fr;
}

.tanoro-template-two-vertical {
    grid-template-columns: repeat(2, 1fr);
}

.tanoro-template-two-horizontal {
    grid-template-rows: repeat(2, 1fr);
}

.tanoro-template-four-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.tanoro-template-four-feature {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: repeat(3, 1fr);
}

.tanoro-template-four-feature i:first-child {
    grid-row: 1 / span 3;
}

.tanoro-template-six-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.tanoro-template-nine-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.tanoro-coming-soon {
    text-align: center;
    padding: 24px 0;
}

.tanoro-coming-soon h2 {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 34px);
}

.tanoro-coming-soon p {
    color: #666;
    margin: 8px 0;
}

.tanoro-wizard-footer {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 42px;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.tanoro-btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    min-width: 160px;
    min-height: 52px;
    padding: 0 24px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.tanoro-btn:not(:disabled):hover {
    transform: translateY(-1px);
}

.tanoro-btn-primary {
    background: #171717;
    color: #ffffff;
}

.tanoro-btn-secondary {
    background: #ffffff;
    color: #171717;
    border: 2px solid #171717;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.tanoro-btn-secondary:hover {
    background: #171717;
    color: #ffffff;
}

.tanoro-btn.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

.tanoro-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}



.tanoro-editor-wrap {
    display: grid;
    gap: 18px;
}

.tanoro-editor-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 18px;
    background: #f7f3ef;
    color: #555;
}

.tanoro-editor-status strong {
    color: #171717;
}

.tanoro-fpd-mount {
    min-height: min(72vh, 760px);
    border-radius: 24px;
    overflow: hidden;
    background: #f7f7f7;
    border: 1px solid rgba(0,0,0,0.08);
}

.tanoro-fpd-loading {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 700;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-step-content {
    padding: 18px;
}

.tanoro-fpd-mount .fpd-product-designer-wrapper,
.tanoro-fpd-mount .fpd-container,
.tanoro-fpd-mount [id^="fancy-product-designer-"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

.tanoro-fpd-mount .fpd-container {
    min-height: min(72vh, 760px);
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step #fpd-start-customizing-button {
    display: none !important;
}

@media (max-width: 760px) {
    .tanoro-wizard-header,
    .tanoro-wizard-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .tanoro-wizard-header {
        height: 66px;
    }

    .tanoro-brand {
        font-size: 17px;
    }

    .tanoro-price {
        font-size: 16px;
    }

    .tanoro-wizard-main {
        width: min(100% - 24px, 1120px);
        padding-top: 26px;
    }

    .tanoro-progress {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 6px;
    }

    .tanoro-card-grid-two,
    .tanoro-card-grid-four,
    .tanoro-template-grid {
        grid-template-columns: 1fr;
    }

    .tanoro-choice-card {
        min-height: 190px;
    }

    .tanoro-wizard-footer {
        position: sticky;
        bottom: 0;
    }

    .tanoro-btn {
        min-width: 0;
        flex: 1;
    }
}


/* v0.5.2: clean FPD editor page */
body.tanoro-fpd-clean-editor #header-outer,
body.tanoro-fpd-clean-editor #header-space,
body.tanoro-fpd-clean-editor #footer-outer,
body.tanoro-fpd-clean-editor .nectar-slide-in-cart,
body.tanoro-fpd-clean-editor .nectar-slide-in-cart-bg {
    display: none !important;
}

body.tanoro-fpd-clean-editor {
    background: #f7f3ef !important;
}

body.tanoro-fpd-clean-editor .container-wrap,
body.tanoro-fpd-clean-editor #ajax-content-wrap,
body.tanoro-fpd-clean-editor .main-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.tanoro-fpd-clean-editor .fpd-views-nav,
body.tanoro-fpd-clean-editor fpd-views-nav,
body.tanoro-fpd-clean-editor .fpd-view-nav,
body.tanoro-fpd-clean-editor .fpd-view-navigation,
body.tanoro-fpd-clean-editor .fpd-show-views-grid,
body.tanoro-fpd-clean-editor fpd-views-grid,
body.tanoro-fpd-clean-editor .fpd-views-grid,
body.tanoro-fpd-clean-editor .fpd-views-grid-toggle {
    display: none !important;
}

body.tanoro-fpd-clean-editor .fpd-container {
    margin: 0 auto !important;
}

.tanoro-loader {
    width: 42px;
    height: 42px;
    border: 4px solid #ece7e1;
    border-top-color: #171717;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 18px;
    animation: tanoro-spin 800ms linear infinite;
}

.tanoro-loading-list {
    display: inline-grid;
    gap: 8px;
    margin: 18px auto 0;
    padding: 0;
    list-style: none;
    text-align: left;
    color: #555;
}

.tanoro-loading-list li::before {
    content: '✓';
    font-weight: 900;
    margin-right: 8px;
    color: #171717;
}

@keyframes tanoro-spin {
    to { transform: rotate(360deg); }
}


/* v0.6.3: stabilny pełnoekranowy edytor FPD */
html.tanoro-fpd-clean-editor-html,
html.tanoro-fpd-clean-editor-html body.tanoro-fpd-clean-editor {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

body.tanoro-fpd-clean-editor .tanoro-editor-hidden {
    display: none !important;
}

body.tanoro-fpd-clean-editor #ajax-content-wrap,
body.tanoro-fpd-clean-editor .container-wrap,
body.tanoro-fpd-clean-editor .main-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

body.tanoro-fpd-clean-editor .fpd-product-designer-wrapper {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

/*
 * Nie wymuszamy 100vh na wewnętrznych elementach FPD.
 * FPD sam oblicza wysokości paska, modułów i obszaru roboczego.
 */
body.tanoro-fpd-clean-editor .fpd-product-designer-wrapper > .fpd-container,
body.tanoro-fpd-clean-editor .fpd-product-designer-wrapper > [id^="fancy-product-designer-"] {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

body.tanoro-fpd-clean-editor .fpd-views-nav,
body.tanoro-fpd-clean-editor fpd-views-nav,
body.tanoro-fpd-clean-editor .fpd-view-nav,
body.tanoro-fpd-clean-editor .fpd-view-navigation,
body.tanoro-fpd-clean-editor .fpd-show-views-grid,
body.tanoro-fpd-clean-editor fpd-views-grid,
body.tanoro-fpd-clean-editor .fpd-views-grid,
body.tanoro-fpd-clean-editor .fpd-views-grid-toggle,
body.tanoro-fpd-clean-editor .fpd-views-selection,
body.tanoro-fpd-clean-editor .fpd-views-pagination,
body.tanoro-fpd-clean-editor .fpd-view-switcher {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}


/* v0.6.8: natywny FPD osadzony w kroku 5 przez iframe tej samej domeny */
body.tanoro-wizard-active.tanoro-wizard-fpd-step {
    overflow: auto !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-main {
    width: min(1500px, calc(100% - 24px));
    padding-top: 22px;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-step-content {
    padding: 12px;
    border-radius: 22px;
}

.tanoro-fpd-frame-wrap {
    position: relative;
    width: 100%;
    height: clamp(620px, calc(100vh - 300px), 900px);
    min-height: 620px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    background: #ffffff;
}

.tanoro-fpd-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
    opacity: 0;
    transition: opacity 160ms ease;
}

.tanoro-fpd-frame.is-ready {
    opacity: 1;
}

.tanoro-fpd-frame-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    color: #666;
    font-weight: 700;
}

.tanoro-fpd-frame-loading.is-hidden {
    display: none;
}

@media (max-width: 760px) {
    body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-main {
        width: 100%;
        padding: 0;
    }

    body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-step-content {
        padding: 0;
        border-radius: 0;
    }

    .tanoro-fpd-frame-wrap {
        height: calc(100vh - 250px);
        min-height: 560px;
        border-radius: 0;
    }

    .tanoro-editor-status {
        margin: 0 12px 10px;
        flex-direction: column;
        align-items: flex-start;
    }
}


/* v0.6.9: duży obszar roboczy osadzonego edytora */
body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-main {
    width: 96vw !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 16px !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-step-content {
    width: 100% !important;
    max-width: none !important;
    padding: 10px !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-editor-wrap {
    width: 100% !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-fpd-frame-wrap {
    width: 100% !important;
    height: calc(100vh - 255px) !important;
    min-height: 650px !important;
    max-height: none !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-footer {
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
}

@media (max-width: 760px) {
    body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-main {
        width: 100vw !important;
    }

    body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-fpd-frame-wrap {
        height: calc(100vh - 215px) !important;
        min-height: 520px !important;
    }
}


/* v0.6.11: więcej miejsca dla edytora, bez paska informacji */
body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-app { overflow: hidden !important; }
body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-shell { height: 100vh !important; min-height: 0 !important; grid-template-rows: auto minmax(0, 1fr) auto !important; }
body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-main { min-height: 0 !important; overflow: hidden !important; padding-top: 10px !important; padding-bottom: 8px !important; }
body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-intro { margin-bottom: 8px !important; }
body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-step-title { font-size: clamp(24px, 2.2vw, 34px) !important; }
body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-progress { margin-top: 10px !important; margin-bottom: 10px !important; }
body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-step-content,
body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-editor-wrap { height: 100% !important; min-height: 0 !important; }
body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-fpd-frame-wrap { height: 100% !important; min-height: 0 !important; max-height: none !important; }
body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-footer { min-height: 54px !important; height: 54px !important; padding-top: 5px !important; padding-bottom: 5px !important; }
body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-editor-status { display: none !important; }


/* v0.6.12: tytuł kroku w nagłówku i maksymalna wysokość edytora */
body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-header {
    position: relative !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-intro {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 2 !important;
    width: auto !important;
    height: 76px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    white-space: nowrap !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-eyebrow {
    display: none !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-step-title {
    margin: 0 !important;
    font-size: clamp(20px, 1.7vw, 28px) !important;
    line-height: 1 !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-main {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-progress {
    margin-top: 4px !important;
    margin-bottom: 6px !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-footer {
    height: 46px !important;
    min-height: 46px !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}

@media (max-width: 760px) {
    body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-intro {
        height: 54px !important;
    }
    body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-step-title {
        font-size: 18px !important;
    }
}


/* v0.6.13: układ edytora jak aplikacja - panel boczny + maksymalny canvas */
body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-app {
    overflow: hidden !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-shell {
    height: 100vh !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: 50px minmax(0, 1fr) !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-header {
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 22px !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-intro {
    height: 50px !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-step-title {
    font-size: 19px !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-main {
    width: 100vw !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 14px 10px !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-rows: 54px minmax(0, 1fr) !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-progress {
    height: 54px !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 4px 22px 2px !important;
    align-items: center !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-progress-item span {
    width: 25px !important;
    height: 25px !important;
    margin-bottom: 2px !important;
    font-size: 11px !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-progress-item small {
    font-size: 10px !important;
    line-height: 1 !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-step-content,
body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-editor-wrap,
body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-fpd-frame-wrap {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-step-content {
    padding: 5px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-fpd-frame-wrap {
    border-radius: 11px !important;
    overflow: hidden !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-fpd-frame {
    width: 100% !important;
    height: 100% !important;
}

/* Wstecz jako mały przycisk nakładany, bez zabierania wysokości edytorowi. */
body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-footer {
    position: fixed !important;
    left: 18px !important;
    bottom: 12px !important;
    z-index: 2147482500 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    pointer-events: none !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-footer .tanoro-btn {
    min-width: 104px !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 16px !important;
    pointer-events: auto !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-footer [data-action="next"] {
    display: none !important;
}

@media (max-width: 760px) {
    body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-main {
        padding: 0 !important;
        grid-template-rows: 48px minmax(0, 1fr) !important;
    }

    body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-progress {
        height: 48px !important;
        min-height: 48px !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-step-content,
    body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-fpd-frame-wrap {
        border-radius: 0 !important;
    }
}


/* v0.6.14: większy edytor z przewijaniem strony, jak w pełnoekranowych konfiguratorach */
body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-app {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-shell {
    height: auto !important;
    min-height: 100vh !important;
    display: block !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-main {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 10px 28px !important;
    display: block !important;
    overflow: visible !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-progress {
    height: 54px !important;
    min-height: 54px !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-step-content,
body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-editor-wrap {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-fpd-frame-wrap {
    width: 100% !important;
    height: max(900px, calc(100vh - 135px)) !important;
    min-height: 900px !important;
    max-height: none !important;
    overflow: hidden !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-fpd-frame {
    width: 100% !important;
    height: 100% !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-footer {
    position: sticky !important;
    left: auto !important;
    bottom: 0 !important;
    width: 100% !important;
    padding: 8px 18px !important;
    background: rgba(255,255,255,0.96) !important;
    border-top: 1px solid rgba(0,0,0,0.08) !important;
    pointer-events: auto !important;
}

body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-wizard-footer .tanoro-btn {
    min-width: 120px !important;
}

/* Ukrywanie sekcji brandingu motywu pod kreatorem */
body.tanoro-wizard-active.tanoro-wizard-fpd-step .nectar-global-section,
body.tanoro-wizard-active.tanoro-wizard-fpd-step .before-footer,
body.tanoro-wizard-active.tanoro-wizard-fpd-step [class*="next-level"],
body.tanoro-wizard-active.tanoro-wizard-fpd-step [class*="nextlevel"],
body.tanoro-wizard-active.tanoro-wizard-fpd-step [id*="next-level"],
body.tanoro-wizard-active.tanoro-wizard-fpd-step [id*="nextlevel"] {
    display: none !important;
}

@media (max-width: 760px) {
    body.tanoro-wizard-active.tanoro-wizard-fpd-step .tanoro-fpd-frame-wrap {
        height: max(720px, calc(100vh - 110px)) !important;
        min-height: 720px !important;
    }
}
