/* =========================================================
   Goldau & Noelle Custom Overrides
   =========================================================

   Inhaltsuebersicht
   1. Design Tokens / Variablen
   2. Loader & Global
   3. Configurator Layout
   4. Viewer Controls
   5. Produktmasse Overlay (ausgelagert)
   6. Toolbar & Steps
   7. Layer & Auswahl-Buttons
   8. Summary, Formulare & Hinweise
   9. Modals
   10. Warenkorb & Bestell-Ausgabe
   11. Responsive Overrides
   12. Animations

   Breakpoints
   <= 660px: Mobile
   <= 720px: kleine Modal-Layouts
   <= 989/990px: nicht-Desktop Overrides aus Plugin-Defaults
   >= 661px: Tablet und groesser
   >= 990px: Desktop
   >= 1300px: Large Desktop
   ========================================================= */

/* ========================= 1. Design Tokens / Variablen ========================= */

:root {
    --mkl_pc_goldaunoelle-toolbar-width: 46%;
}

/* ========================= 2. Loader & Global ========================= */

/* Loading Screen */

.mkl-configurator-inline.is-shortcode.configure-product:empty {
    height: 100vh;
}

.mkl-configurator-inline.is-shortcode.configure-product:empty::after {
    content: attr(data-loading);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-transform: uppercase;
    letter-spacing: 2px;
    -webkit-animation: configurator-load 1s infinite ease-in-out;
    animation: configurator-load 1s infinite ease-in-out;
}

/* Zusatz-Hinweise je nach aktivem Step anzeigen.
   Die Klasse .zusatz wird nur sichtbar, wenn ein Step wie .tischplatte oder .masse aktiv ist. */

.zusatz {
    display: none;
}

.mkl_pc_container:has(.tischplatte.active) .zusatz {
    display: block;
    z-index: 50;
}

.mkl_pc_container:has(.masse.active) .zusatz {
    display: block;
    position: absolute;
    z-index: 50;
    font-size: 10px;
    bottom: 72px;
    width: 100%;
    color: #bbb;

    .material-symbols-outlined {
        font-size: 15px;
        padding-right: 5px;
        vertical-align: top;
    }    
}

body.configurator_is_inline {
    background-color: var(--mkl_pc_color-main_background);
}

.mkl_pc,
.mkl_pc *,
.mkl-configurator-inline.is-shortcode.configure-product:empty::after {
    letter-spacing: 0 !important;
}

/* ========================= 3. Configurator Layout ========================= */

/* Close-Button */

.mkl_pc .mkl_pc_container .gn-configurator-close {
    position: absolute;
    top: 14px;
    left: 10px;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #aaa;
    background: transparent;
    border: 0;
    border-radius: 50%;
    text-decoration: none;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.mkl_pc .mkl_pc_container .gn-configurator-close:hover,
.mkl_pc .mkl_pc_container .gn-configurator-close:focus-visible {
    color: #000;
    outline: none;
}

/* GN Logo darstellen und Mindesthoehe des Konfigurators festlegen */

.mkl_pc .mkl_pc_container {
    min-height: 100vh;

    .configurator-logo {
        display: flex;
        position: absolute;
        top: 20px;
        width: 100%;
        z-index: 20;
        justify-content: center;

        a {max-width: 115px;}
    }
}

/* Header mit Produktnamen ausblenden */

.mkl_pc .mkl_pc_container .mkl_pc_viewer > header {
    display: none;
}

/* ========================= 4. Viewer Controls ========================= */

/* Ansicht-Auswahl */

.mkl_pc .mkl_pc_container .mkl_pc_viewer .angles-select {
    --gn-angle-dot-color: #777;
    --gn-angle-dot-active-color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 7rem);
    padding: 14px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: auto;

    ul {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .angle {
        margin: 0;   
    }

    li a {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 0;
        line-height: 1;
    }

    li a span.angle-image {
        width: 18px;
        height: 18px;

        img {
            opacity: 0.4;
        }
    }    

    .angle.active {
        a span.angle-image img {
            opacity: 1;
        }
    }

    li.active a {
        border-bottom: 0;
    }

    li.angle.measurements a {
        text-transform: none;
    }

    li.angle.dot {
        margin-right: 0;

        a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            padding: 0;
            font-size: 0;
            line-height: 1;
        }

        a::before {
            content: "";
            display: block;
            width: 9px;
            height: 9px;
            border: 1px solid var(--gn-angle-dot-color, #777);
            border-radius: 50%;
            background: transparent;
            box-sizing: border-box;
        }

        span.angle-image {
            display: none;
        }

        &.active a::before {
            border-color: var(--gn-angle-dot-active-color, #000);
            background: var(--gn-angle-dot-active-color, #000);
        }
    }
}

/* Viewer-Footer und PDF-Button */

.mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .footer__section-right {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .save-your-design--pdf.mkl-footer--action-button {
    display: inline-flex;
    position: static;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    width: auto;
    height: 46px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    color: #000;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    opacity: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .save-your-design--pdf.mkl-footer--action-button:hover,
.mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .save-your-design--pdf.mkl-footer--action-button:focus-visible {
    color: #fff;
    background: #000;
    box-shadow: none;
    opacity: 1;
    outline: none;
}

.mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .save-your-design--pdf.mkl-footer--action-button.downloading,
.mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .save-your-design--pdf.mkl-footer--action-button.downloading:hover,
.mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .save-your-design--pdf.mkl-footer--action-button.downloading:focus,
.mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .save-your-design--pdf.mkl-footer--action-button.gn-pdf-loading,
.mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .save-your-design--pdf.mkl-footer--action-button.gn-pdf-loading:hover,
.mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .save-your-design--pdf.mkl-footer--action-button.gn-pdf-loading:focus {
    color: #000;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    cursor: wait;
}

.mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .save-your-design--pdf.mkl-footer--action-button.downloading::before,
.mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .save-your-design--pdf.mkl-footer--action-button.gn-pdf-loading::before {
    content: "";
    position: static;
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: none;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: gn-pdf-spinner 0.8s linear infinite;
    box-sizing: border-box;
}

.mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .save-your-design--pdf.mkl-footer--action-button.downloading svg,
.mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .save-your-design--pdf.mkl-footer--action-button.gn-pdf-loading svg {
    display: none;
}

.mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .save-your-design--pdf.mkl-footer--action-button.downloading span,
.mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .save-your-design--pdf.mkl-footer--action-button.gn-pdf-loading span {
    opacity: 1;
}

.mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .save-your-design--pdf.mkl-footer--action-button svg {
    width: 16px;
    height: 16px;
    margin: 0;
    fill: currentColor;
    flex: 0 0 auto;
}

.mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .save-your-design--pdf.mkl-footer--action-button svg path {
    fill: currentColor;
}

.mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .save-your-design--pdf.mkl-footer--action-button span {
    display: none;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
    white-space: nowrap;
}

/* ========================= 5. Produktmasse Overlay ========================= */

/* Produktmasse-Overlay, Toggle und zugehoerige Animationen sind ausgelagert nach gn-measurements.css. */

/* ========================= 6. Toolbar & Steps ========================= */

/* Ausblenden der Steps auf Handys verhindern */

.mkl_pc_toolbar .steps-progress--container {
    display: block !important;
    border-bottom-color: #eaeaea;
}

/* Erstem und letztem Step Abstand geben */

.mkl_pc_toolbar .steps-progress--container ol.steps-progress {
    li.steps-progress--item:first-child {
        margin-left: 2rem;
    }

    li.steps-progress--item:nth-last-child(2) {
        margin-right: 2rem;
    }

    li.steps-progress--item {
        margin-bottom: 2px;
    }

}

.mkl_pc_toolbar .steps-progress--container ol.steps-progress {
    padding: var(--mkl_pc_goldaunoelle-steps-spacing, 14px) 0;

    li.steps-progress--item {
        font-size: 14px;
        
        a::before {display: none;}

        a {
        font-weight: 400 !important;
        }

        &.active > a.step-link {
            color: var(--mkl_pc_color-layers_button_text_color, #000);
            font-weight: 400 !important;
        }
    }

    li.steps-progress--active-marker {
        bottom: 14px;
        border-bottom: 1px solid var(--mkl_pc_color-primary);
    }
}

/* Buttons zum Wechseln der Steps */

nav.mkl-pc--steps {
    padding-top: 0;

    button,
    .button {
        margin: 0;

        span {
            line-height: 2.5rem;
        }
    }
}

/* ========================= 7. Layer & Auswahl-Buttons ========================= */

/* Ebenenbezeichnung ausblenden und Ebenen-Beschreibung hervorheben */

.mkl_pc .mkl_pc_container .mkl_pc_toolbar section.choices .layers .layer-item {
    .layer-name .hide {
        display: none;
    }

    .description {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.5em;
        padding-top: 1rem;
    }
}

/* Layernamen und Beschreibung-Icons */

.mkl_pc .mkl_pc_container .mkl_pc_toolbar section.choices .layers .layer-item .layer-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.mkl_pc .mkl_pc_container .mkl_pc_toolbar section.choices .layers .layer-item .layer-name a.mkl-pc-show-description {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 24px;
    line-height: 1;
    vertical-align: middle;
}

.mkl_pc .mkl_pc_container .mkl_pc_toolbar section.choices .layers .layer-item .layer-name a.mkl-pc-show-description .gn-advanced-description-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 24px;
    line-height: 1;
}

/* Layernamen pro Layer ausblenden:
   im Layer-Feld "CSS-Klasse" gn-hide-layer-name oder hide_layer_name eintragen. */

.mkl_pc .mkl_pc_container .mkl_pc_toolbar section.choices li.layers-list-item.gn-hide-layer-name > .layer-item > .layer-name,
.mkl_pc .mkl_pc_container .mkl_pc_toolbar section.choices li.layers-list-item.hide_layer_name > .layer-item > .layer-name,
.mkl_pc .mkl_pc_container .mkl_pc_toolbar section.choices li.layers-list-item.hide-layer-name > .layer-item > .layer-name {
    display: none !important;
}

/* Allgemeine Anpassungen an Auswahl-Buttons */

.choices-list .choice a.mkl-pc-show-description {
    right: 25px;
    top: 24px;
    width: 22px;
    height: 22px;

    svg {
        width: 22px;
        height: 22px;

        use {
            fill: #f8f8f8;
        }
    }
    
}

.choices-list .choice a.mkl-pc-show-description:hover svg use, a.mkl-pc-show-description:hover svg path {
    fill: var(--gn-text-hover-color);
}

/* Auswahl-Buttons mit vollflaechigem Thumbnail - gesteuert ueber .show-swatches */

.mkl_pc .mkl_pc_container .mkl_pc_toolbar section.choices .layer_choices.show-swatches {
    &.swatch-size-s {
        li.choice.has-thumbnail:not(.is-group) {
            flex: 0 0 calc((100% - (var(--mkl_pc-choice-spacing, 0.8em) * 2)) / 3);

            button.choice-item {
                padding: 12px;
            }

            a.mkl-pc-show-description {
                right: 21px;
                top: 20px;
            }
        }
    }
    
    li.choice.has-thumbnail:not(.is-group) {
        width: calc((100% - (var(--mkl_pc-choice-spacing, 0.8em) * 1)) / 2);
        max-width: calc((100% - (var(--mkl_pc-choice-spacing, 0.8em) * 1)) / 2);
        flex: 0 0 calc((100% - (var(--mkl_pc-choice-spacing, 0.8em) * 1)) / 2);
        box-shadow: inset 0 0 0 1px var(--choice-border-color, var(--mkl_pc_color-border));

        &.active {
            box-shadow: inset 0 0 0 1px var(--choice-border-color, var(--choice-border-color));
        }

        &.active::before,
        &.active::after {
            z-index: 4;
        }

        &.active button.choice-item i.mkl-pc-thumbnail::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 3;
            pointer-events: none;
        }

        button.choice-item {
            flex-direction: column;
            align-items: stretch;
            overflow: hidden;
        }

        button.choice-item i.mkl-pc-thumbnail {
            display: block;
            width: 100%;
            height: auto;
            margin: 0;
            position: relative;
            left: auto;
            top: auto;
            transform: none;
            overflow: hidden;

            span {
                display: block;
                position: static;
                width: 100%;
                height: auto;
                overflow: visible;
            }

            img {
                display: block;
                position: static;
                width: 100%;
                max-width: 100%;
                height: auto;
                transform: none;
            }
        }

        button.choice-item .choice-text--container {
            width: 100%;
            padding: 12px 2px;
            display: block;

            span.text.choice-name {
                font-size: 14px;
                text-align: left;
            }
        }
    }
}

/* Auswahl-Buttons fuer Masse - gesteuert ueber .dimensions */

.mkl_pc .mkl_pc_container .mkl_pc_toolbar section.choices .layer_choices.columns-4.dimensions > li.choices-list > ul li.choice:not(.is-group) {
    button.choice-item {
        min-height: 54px;
    }
}

/* Advanced description info button */

a.mkl-pc-show-description span.gn-advanced-description-icon:not(.screen-reader-text) {
    display: inline-flex;
}

.choices-list .choice a.mkl-pc-show-description {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #000;
    background: transparent;
    border-radius: 50%;
    text-decoration: none;
}

.choices-list .choice a.mkl-pc-show-description::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #fff;
}

.choices-list .choice a.mkl-pc-show-description .gn-advanced-description-icon {
    display: inline-flex;
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    color: currentColor;
    font-size: 36px;
    font-style: normal;
    font-weight: 300;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.choices-list .choice a.mkl-pc-show-description:hover,
.choices-list .choice a.mkl-pc-show-description:focus-visible {
    color: var(--gn-text-hover-color);
}

.gn-advanced-description-text .gnm-inner {
    padding: 0rem 1rem 1rem 1rem;
}

.mkl-advanced-description--content {
    padding: 0 1.5rem 1rem 1.5rem;
}

/* ========================= 8. Summary, Formulare & Hinweise ========================= */

/* Formular und Uebersicht */

.mkl_pc .mkl_pc_container form.cart {
    display: none;
}

/* Uebersichtstabelle anpassen */
.mkl_pc .mkl_pc_container .mkl_pc_toolbar .mkl_pc_summary .mkl_pc_summary_item_group:not(.group) {
    flex-wrap: nowrap;
    margin-bottom: 0;
    font-size: 14px;

    h5 {
        width: 60%;
    }
}

.mkl_pc .gn-productpage-config-inner-row {
    padding: 1rem !important;
    background: var(--gn-bg-grey);

    .gn-bp-wrapper-headline {
        font-weight: 700;
        font-size: 16px;
        padding: 4px 0 8px 0;
        display: block;
    }
}

.mkl_pc .gn-notice-wrapper {
    padding: 1rem;
    background: var(--gn-bg-grey);
    font-size: 14px;
}

.mkl_pc .gn-notice-wrapper .gn-attribute-info-label {
    margin: 0;
}

/* Materialmusterbutton nur innerhalb der Choices anzeigen */

body.configurator_is_opened {
    
    .ddms-material-samples-section {
        display: none;
    }

    .choices-list {
        .ddms-material-samples-section {
            display: block;
        }
    }

}

/* Scroll-Hinweis fuer Choices */

.mkl_pc .mkl_pc_container .form.form-cart {
    overflow: visible;
}

.mkl_pc.gn-choices-can-scroll-further .mkl_pc_container .form.form-cart::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    transform: translateY(-100%);
    pointer-events: none;
    background: linear-gradient(to top, var(--mkl_pc_color-form_background, #efefef), rgba(239, 239, 239, 0));
}

/* ========================= 9. Modals ========================= */

/* Add-to-cart confirmation modal */

body.show-add-to-cart-modal .adding-to-cart--modal,
body.show-add-to-cart-modal .mkl_pc_container .adding-to-cart--modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100000;
}

.adding-to-cart--modal .adding-to-cart--adding {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
}

.adding-to-cart--modal .adding-to-cart--adding .header {
    display: none;
}

.adding-to-cart--modal .adding-to-cart--adding .spinner {
    width: 34px;
    height: 34px;
    margin: 0;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gn-atc-spinner 0.8s linear infinite;
}

.adding-to-cart--modal .adding-to-cart--added.has-box {
    width: min(710px, calc(100vw - 40px));
    max-width: none;
    padding: 80px 58px 94px;
    background: #fff;
    border: 1px solid #777;
    border-radius: 0;
    box-shadow: none;
}

.adding-to-cart--modal .adding-to-cart--added .header {
    display: none;
}

.adding-to-cart--modal .adding-to-cart--added .messages {
    margin: 0;
    padding: 0 0 56px;
    color: #000;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.adding-to-cart--modal .adding-to-cart--added .messages a.wc-forward,
.adding-to-cart--modal .adding-to-cart--adding-cta .or {
    display: none !important;
}

.adding-to-cart--modal .adding-to-cart--adding-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 62px;
    text-align: center;
}

.adding-to-cart--modal .adding-to-cart--adding-cta button.button,
.adding-to-cart--modal .adding-to-cart--adding-cta a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 270px;
    min-height: 60px;
    margin: 0;
    padding: 16px 24px;
    border-radius: 0;
    border: 1px solid #777;
    box-shadow: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    text-transform: none;
    text-shadow: none;
}

.adding-to-cart--modal .adding-to-cart--adding-cta button.continue-shopping {
    color: #000;
    background: #fff;
}

.adding-to-cart--modal .adding-to-cart--adding-cta a.view-cart {
    color: #fff;
    background: #000;
    border-color: #000;
}

.adding-to-cart--modal .adding-to-cart--adding-cta button.button:hover,
.adding-to-cart--modal .adding-to-cart--adding-cta button.button:focus-visible {
    color: #000;
    background: #f5f5f5;
}

.adding-to-cart--modal .adding-to-cart--adding-cta a.button:hover,
.adding-to-cart--modal .adding-to-cart--adding-cta a.button:focus-visible {
    color: #fff;
    background: #222;
}

/* Footer-Modals im Konfigurator */

body.configurator_is_inline .gn-custom-modal,
body.configurator_is_opened .gn-custom-modal {
    position: fixed;
    inset: 0;
    z-index: 100002;
    background: rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

body.configurator_is_inline .gn-custom-modal .gn-modal-content,
body.configurator_is_opened .gn-custom-modal .gn-modal-content {
    box-sizing: border-box;
    position: fixed;
    left: 50%;
    top: 50%;
    width: 80vw;
    max-width: 600px;
    height: auto;
    min-height: 300px;
    max-height: 85vh;
    padding: 0;
    background: #fff;
    overflow: auto;
    overscroll-behavior: contain;
    box-shadow: 0 10px 100px rgba(0, 0, 0, 0.1882352941);
    transform: translate(-50%, -50%) scale(1);
    animation: gn-configurator-modal-pop-in 0.45s ease both;
}

body.configurator_is_inline .gn-custom-modal .gn-modal-close,
body.configurator_is_opened .gn-custom-modal .gn-modal-close {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    z-index: 100;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0;
    color: #000;
    cursor: pointer;
}

body.configurator_is_inline .gn-custom-modal .gn-modal-close svg,
body.configurator_is_opened .gn-custom-modal .gn-modal-close svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    box-sizing: content-box !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.configurator_is_inline .gn-custom-modal .gn-modal-close svg line,
body.configurator_is_opened .gn-custom-modal .gn-modal-close svg line {
    stroke: #000 !important;
    stroke-width: 2 !important;
    stroke-linecap: square;
}

/* ========================= 10. Warenkorb & Bestell-Ausgabe ========================= */

dl.variation dt.variation-gn-pc-configuration {
    display: none !important;
}

dl.variation dd.variation-gn-pc-configuration {
    display: block;
    float: none;
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
}

.wc-item-meta li:has(> .order-configuration) > .wc-item-meta-label {
    display: none !important;
}

.wc-item-meta .order-configuration strong {
    font-weight: inherit;
}

/* ========================= 11. Responsive Overrides ========================= */

/* <= 660px: Mobile */

@media (max-width: 660px) {

  body.configurator_is_inline,
  body.configurator_is_inline .mkl_pc,
  body.configurator_is_inline .mkl_pc .mkl_pc_container {
        height: auto;
        max-height: none;
        overflow: visible !important;
  }

  /* Zusatz fuer iphone */
  html:has(body.configurator_is_inline),
  body.configurator_is_inline {
        overscroll-behavior-y: auto;
  }

  body.configurator_is_inline .mkl_pc .mkl_pc_container {
        touch-action: pan-y pinch-zoom;
        display: flex;
        flex-direction: column;
  }

  body.configurator_is_inline .mkl_pc .mkl_pc_container .mkl_pc_viewer {
        height: 100vw;
        min-height: 100vw;
        max-height: 100vw;
        position: relative;
        top: auto;
        z-index: 3;
        flex: 0 0 auto;
        overflow: hidden;
  }
  
  /* Mobile normal scrollen lassen */
  body.configurator_is_inline .mkl_pc .mkl_pc_container .mkl_pc_toolbar {
        height: auto;
        min-height: 0;
        overflow: visible;
        -webkit-overflow-scrolling: auto;
        overscroll-behavior: auto;
        flex: 1 1 auto;
  }

  /* Steps bar */
  .mkl_pc_toolbar .steps-progress--container {
        position: relative;
        top: auto;
        z-index: 20;
        background: var(--gn-bg-main, #fdfdfd);
        margin: 0;
        width: 100%;
  }

  /* Preis in mobile Ansicht im Viewer */
  .mkl_pc .mkl_pc_container .mkl_pc_viewer > .price-container {
        position: absolute;
        right: 1rem;
        bottom: 22px;
        z-index: 30;
        width: auto;
        border-bottom: 0;
        padding: 0 0 10px;
        text-align: right;
        background: transparent;
        font-weight: 700;

        .pc-total-price {
            font-size: 14px;
        }
  }

  .mkl_pc .mkl_pc_container .mkl_pc_viewer > footer {
        bottom: 6px;
        display: block;
        padding: 0 1rem 10px;
        pointer-events: none;
  }

  .gn-mini-viewer {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: min(44vw, 180px);
        transform: translateY(-10px);
        z-index: 100020;
        background: var(--mkl_pc_color-main_background, #f8f8f8);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
        opacity: 0;
        pointer-events: none;
        overflow: hidden;
        transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .mkl_pc.gn-mini-viewer-visible .gn-mini-viewer {
        opacity: 1;
        transform: translateY(0);
  }

  .gn-mini-viewer .mkl_pc_layers {
        position: absolute;
        inset: 0;
        text-align: center;
        user-select: none;
  }

  .gn-mini-viewer .mkl_pc_layers img {
        position: absolute;
        left: 50%;
        top: 50%;
        max-width: 100%;
        max-height: 100%;
        transform: translate(-50%, -50%);
  }

  .gn-mini-viewer .mkl_pc_layers img:not(.active),
  .gn-mini-viewer .mkl_pc_layers img.loading,
  .gn-mini-viewer .mkl_pc_layers .custom-html:not(.active),
  .gn-mini-viewer .mkl_pc_layers .images-loading {
        display: none;
  }

  .gn-mini-viewer .price-container {
        position: absolute;
        right: 1rem;
        bottom: 0.75rem;
        z-index: 4;
        width: auto;
        border-bottom: 0;
        padding: 0;
        text-align: right;
        background: transparent;
        font-weight: 700;
  }

  .gn-mini-viewer .price-container .pc-total-price {
        display: block;
        font-size: 14px;
        line-height: 1;
  }

    body.configurator_is_inline .gn-custom-modal .gn-modal-content,
    body.configurator_is_opened .gn-custom-modal .gn-modal-content {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: 100vw;
        max-width: none;
        height: auto;
        min-height: 320px;
        max-height: 90vh;
        transform: translate3d(0, 0, 0);
        animation: gn-configurator-modal-mobile-in 0.75s ease both;
    }
}

/* <= 720px: kleine Modal-Layouts */

@media (max-width: 720px) {
    .adding-to-cart--modal .adding-to-cart--added.has-box {
        width: calc(100vw - 28px);
        padding: 54px 22px 58px;
    }

    .adding-to-cart--modal .adding-to-cart--added .messages {
        padding-bottom: 34px;
        font-size: 16px;
    }

    .adding-to-cart--modal .adding-to-cart--adding-cta {
        flex-direction: column;
        gap: 14px;
    }

    .adding-to-cart--modal .adding-to-cart--adding-cta button.button,
    .adding-to-cart--modal .adding-to-cart--adding-cta a.button {
        width: 100%;
        min-width: 0;
    }

    .adding-to-cart--modal .adding-to-cart--adding-cta a.view-cart {
        order: -1;
    }
}

/* <= 989/990px: nicht-Desktop Overrides aus Plugin-Defaults */

@media (max-width: 989px) {
    .mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .save-your-design--pdf.mkl-footer--action-button {
        position: absolute;
        top: 50%;
        left: 0;
        width: 46px;
        padding: 0;
        transform: translateY(-50%);
    }
}

@media (max-width: 990px) {
    .mkl_pc .mkl_pc_container .mkl_pc_toolbar section.choices .layer_choices.columns-4.dimensions > li.choices-list > ul li.choice:not(.is-group) {
        width: calc(32% - var(--mkl_pc-choice-spacing) / 3);
    }
}

/* >= 661px: Tablet und groesser */

@media (min-width: 661px) {

  body.configurator_is_inline .mkl_pc,
  body.configurator_is_inline .mkl_pc .mkl_pc_container {
        height: 100vh;
        max-height: 100vh;
  }

  .mkl_pc .mkl_pc_container {
        align-items: stretch;
        overflow: hidden;
  }

  .mkl_pc .mkl_pc_container .mkl_pc_viewer,
  .mkl_pc .mkl_pc_container .mkl_pc_toolbar {
        height: 100%;
        max-height: 100%;
        min-height: 0;
  }

  .mkl_pc .mkl_pc_container .mkl_pc_toolbar {
        overflow: hidden;
  }

  .mkl_pc .mkl_pc_container .mkl_pc_toolbar .steps-progress--container {
        flex: 0 0 auto;
  }

  .mkl_pc .mkl_pc_container .mkl_pc_toolbar section.choices {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
  }

  .mkl_pc .mkl_pc_container .gn-configurator-close {
        top: 26px;
        left: 14px;
  }

  /* GN Logo darstellen */
  .mkl_pc .mkl_pc_container {
        .configurator-logo {
            top: 30px;
            left: 70px;
            width: auto;

            a {max-width: 150px;}
        }
  }

  /* Info zur Groesse des Fotomodells anzeigen */
  .mkl_pc_container:has(.masse.active) .zusatz {
        bottom: 52px;
        font-size: 12px;

        .material-symbols-outlined {
            font-size: 18px;
        }  
    }

}

/* >= 990px: Desktop */

@media (min-width: 990px) {
    .mkl_pc .mkl_pc_container .mkl_pc_viewer > footer .save-your-design--pdf.mkl-footer--action-button span {
        display: inline;
    }

    .mkl_pc_toolbar .steps-progress--container {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .mkl_pc .mkl_pc_container .mkl_pc_toolbar section.choices .layer_choices.show-swatches:not(.swatch-size-s) li.choice.has-thumbnail:not(.is-group) {
        width: calc((100% - (var(--mkl_pc-choice-spacing, 0.8em) * 2)) / 3);
        max-width: calc((100% - (var(--mkl_pc-choice-spacing, 0.8em) * 2)) / 3);
        flex: 0 0 calc((100% - (var(--mkl_pc-choice-spacing, 0.8em) * 2)) / 3);
    }

}

/* >= 1300px: Large Desktop */

@media (min-width: 1300px) {

    :root {
        --mkl_pc_goldaunoelle-toolbar-width: 30%;
    }

}

/* ========================= 12. Animations ========================= */

@keyframes gn-pdf-spinner {
    to {
        transform: rotate(360deg);
    }
}

@keyframes gn-atc-spinner {
    to {
        transform: rotate(360deg);
    }
}

@keyframes gn-configurator-modal-pop-in {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes gn-configurator-modal-mobile-in {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
