html[data-danz-restoring-name] h1.product-detail-name:not([data-danz-name-ready]) {
    visibility: hidden;
}
html[data-danz-family-layout] .cms-element-buy-box .product-detail-configurator-container,
html[data-danz-family-layout] #productDetailPageBuyProductForm .selected-color:has([data-bs-target="#colorModal"]) {
    display: none !important;
}
.danz-white-options {
    --danz-choice-height: 40px;
    --danz-logo-bands: linear-gradient(115deg, #ffed0b 25%, #f6970e 25% 50%, #e2001b 50% 75%, #9a57ad 75%);
}
.danz-white-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
    margin: 0 0 14px;
    font-size: 14px;
}
.danz-white-options[hidden] { display: none; }
.danz-white-options .danz-wunschfarbton-link::before {
    content: '';
    box-sizing: border-box;
    flex: none;
    width: 19px;
    height: 19px;
    border: 1px solid #0003;
    border-radius: 50%;
    background: var(--danz-logo-bands);
}
.danz-white-options[data-danz-white-picker]:not([hidden]) {
    display: grid;
    grid-template-columns: max-content max-content minmax(0, 1fr);
    justify-items: start;
}
.danz-white-options__label { grid-column: 1 / -1; }
.danz-family-size {
    grid-column: 1 / -1;
    width: min(48%, 269px);
    margin: 0 0 14px;
}
.danz-family-size select { width: 100%; min-height: 40px; }
.danz-white-options__label {
    flex-basis: 100%;
    font-size: 12px;
    font-weight: 600;
    color: #484848;
}
.danz-white-options__current, .danz-white-options .danz-wunschfarbton-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: var(--danz-choice-height);
    padding: 0 10px;
    border: 1px solid #d4d4d4;
    border-radius: 5px;
    background: #fff;
    color: #202020;
    line-height: 1.2;
    text-decoration: none;
}
.danz-white-options .danz-wunschfarbton-link {
    inline-size: max-content;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}
.danz-white-options__white, .danz-white-options__colors {
    box-sizing: border-box;
    width: 19px;
    height: 19px;
    border: 1px solid rgb(0 0 0 / 20%);
    border-radius: 50%;
}
.danz-white-options__white { display: grid; place-items: center; background: #fff; font-size: 12px; }
.danz-white-options__colors { background: var(--danz-logo-bands); }
.danz-white-options .danz-wunschfarbton-link::after {
    content: '';
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 1px 1px 0 0;
    transform: rotate(45deg);
}
.danz-white-options .danz-wunschfarbton-link:hover { border-color: #858585; background: #fafafa; }
.danz-white-options .danz-white-options__current[aria-pressed="true"],
.danz-white-options .danz-wunschfarbton-link[aria-pressed="true"],
.danz-farbatelier-entry button[data-danz-farbatelier-trigger][aria-pressed="true"] {
    background-color: rgba(0, 0, 0, 0.04);
    border-color: #858585;
}
.danz-white-options .danz-wunschfarbton-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.danz-white-options [data-danz-farbatelier-selection][hidden] { display: none; }
.danz-white-options .danz-chosen-color:not([hidden]) {
    grid-column: 1; justify-self: stretch; contain: inline-size;
    display: block; width: auto; min-width: 0;
    margin: 0; padding: 0; border: 0; background: transparent;
}
.danz-white-options:has(> .danz-white-options__current) > .danz-chosen-color:not([hidden]) {
    grid-column: 1 / 3;
}
.danz-color-sample {
    display: flex; align-items: center; gap: 7px; min-width: 0;
    min-height: var(--danz-choice-height, 40px); box-sizing: border-box;
    padding: 0 10px; border: 1px solid #d4d4d4; border-radius: 5px;
    background: #fff; color: #202122; text-align: left;
}
.danz-color-sample__surface {
    flex: none; width: 16px; height: 16px; box-sizing: border-box;
    border: 1px solid rgb(0 0 0 / 18%); border-radius: 2px;
}
.danz-color-sample__caption {
    min-width: 0; white-space: nowrap; overflow-x: auto; scrollbar-width: none;
    color: #454749; font-size: 13px; font-weight: 400; line-height: 1.35;
}
.danz-color-sample__caption::-webkit-scrollbar { display: none; }
.danz-color-sample__caption strong { color: #202122; font-weight: 600; }
@media (max-width: 480px) {
    .danz-color-sample__caption { font-size: 12px; }
}
.danz-farbatelier-entry:has(button[data-danz-farbatelier-trigger]:not([hidden])) { margin-bottom: 8px; }
.danz-farbatelier-entry button[data-danz-farbatelier-trigger] {
    box-sizing: border-box;
    width: var(--danz-field-width, 269px);
    max-width: 100%;
    height: var(--danz-field-height, 40px);
    min-height: 0;
    position: relative;
    padding: 0 23px 0 9px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 5px;
    background: rgba(0, 0, 0, .04);
    color: #161616;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
    box-shadow: none;
}
.danz-farbatelier-entry button[data-danz-farbatelier-trigger]::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 6px;
    height: 6px;
    border: solid #585d61;
    border-width: 1.5px 1.5px 0 0;
    transform: translateY(-50%) rotate(45deg);
}
.danz-farbatelier-entry button[data-danz-farbatelier-trigger]:hover {
    background: rgba(0, 0, 0, .065);
    border-color: rgba(0, 0, 0, .19);
}
.danz-farbatelier-entry button[data-danz-farbatelier-trigger]:focus:not(:focus-visible) { outline: 0; }
.danz-farbatelier-entry button[data-danz-farbatelier-trigger]:focus-visible {
    outline: 2px solid #646a6e;
    outline-offset: 2px;
}
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
    .danz-white-options .danz-wunschfarbton-link::after,
    .danz-farbatelier-entry button[data-danz-farbatelier-trigger]::after {
        content: none;
        display: none;
    }
}
.danz-mobile-back, .danz-mobile-hint { display: none; }
.danz-picker-title { display: flex; flex: 1; min-width: 0; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; }
.danz-picker-title > span { font-size: 12px; line-height: 1.25; color: #66645f; }
.danz-picker-logo { display: none; }
.danz-picker-credit { display: block; flex: none; object-fit: contain; width: clamp(52px, 7vw, 72px); height: auto; }
[data-danz-farbatelier-modal] .danz-farbatelier-modal__header {
    border-top: 0; border-bottom: 1px solid #e8e6e2; background: #faf9f7;
}
[data-danz-farbatelier-modal] .danz-farbatelier-modal__close {
    color: #383732; background: #fff; border: 1px solid #dedbd5;
    min-width: 44px; min-height: 44px; font-weight: 400;
}
html.is-embedded #atelierModal .modal-dialog::before { display: none; }
html.is-embedded .danz-app-credit, html.is-embedded #atelierTitle { display: none; }
html.is-embedded #atelierModal .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.is-embedded #atelierModal .preview #familyFilter { display: none; }
#atelierModal .danz-color-search { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 0; }
#atelierModal .danz-color-search > [hidden], #atelierModal .danz-color-search > small:empty { display: none; }
.danz-zoom-target { position: relative; }
.danz-zoom-target > button {
    position: absolute; inset: 0; z-index: 4; display: flex; justify-content: flex-end; align-items: flex-start;
    width: 100%; border: 0; background: transparent; padding: 8px; cursor: zoom-in;
}
.danz-zoom-target > button > span, .danz-swatch-zoom > button {
    border: 1px solid #0002; border-radius: 18px; background: #fff; color: #33312e;
    padding: 6px 12px; font-size: 12px; line-height: 1.3;
}
dialog.danz-swatch-zoom[open] {
    position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
    box-sizing: border-box; margin: 0; padding: 0; border: 0; overflow: hidden;
}
dialog.danz-swatch-zoom[open] > .preview-swatch {
    width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; margin: 0; border: 0; border-radius: 0;
}
.danz-swatch-zoom > button { position: absolute; top: 10px; right: 10px; z-index: 5; min-height: 44px; }

@media (min-width: 701px) {
    [data-danz-farbatelier-modal] .danz-farbatelier-modal__dialog {
        width: clamp(701px, calc(100% - 24px), 1560px);
        height: calc(100vh - 24px);
        height: min(calc(100dvh - 24px), 1120px);
        margin: max(12px, calc((100dvh - 1120px) / 2)) auto;
        grid-template-rows: auto minmax(0, 1fr);
    }
    [data-danz-farbatelier-modal] .danz-farbatelier-modal__header { padding: 5px 16px; }
    [data-danz-farbatelier-modal] [data-danz-farbatelier-frame] { height: 100%; min-height: 0; }

    html.is-embedded #atelierModal .modal-header { padding: 10px 18px; align-items: center; }
    html.is-embedded #atelierModal .modal-header .eyebrow,
    html.is-embedded #atelierModal .color-disclaimer--preview { display: none; }
    html.is-embedded #atelierModal .color-disclaimer--header { margin-top: 4px; max-width: none; }
    html.is-embedded #atelierModal .modal-footer { padding: 7px 16px; }
    html.is-embedded #atelierModal .modal-body {
        grid-template-columns: minmax(0, 1fr) clamp(285px, 31%, 445px);
        grid-template-rows: auto minmax(0, 1fr);
    }
    html.is-embedded #atelierModal .filters { grid-area: 1 / 1; padding: 10px 14px; }
    html.is-embedded #atelierModal .colors-area { grid-area: 2 / 1; min-height: 0; }
    html.is-embedded #atelierModal .toolbar { padding: 8px 14px; }
    html.is-embedded #atelierModal .color-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        grid-auto-rows: max-content;
        align-content: start;
        padding: 10px 14px;
    }
    html.is-embedded #atelierModal .color-button {
        display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto;
        align-content: start; align-items: start; gap: 7px;
        position: relative; height: auto; min-height: 0; padding: 8px; text-align: left;
    }
    html.is-embedded #atelierModal .color-button .swatch {
        width: 100%; height: clamp(42px, 4vw, 64px); min-height: 0; box-sizing: border-box;
    }
    html.is-embedded #atelierModal .color-text { min-width: 0; gap: 3px; }
    html.is-embedded #atelierModal .color-text strong,
    html.is-embedded #atelierModal .color-text small {
        white-space: normal; word-break: normal; hyphens: manual; overflow-wrap: break-word;
        text-wrap: balance;
    }
    html.is-embedded #atelierModal .color-text strong { font-size: 13px; line-height: 1.3; }
    html.is-embedded #atelierModal .color-text small { font-size: 11.5px; line-height: 1.3; }
    html.is-embedded #atelierModal .danz-card-collection { display: block; text-wrap: wrap; }
    html.is-embedded #atelierModal .danz-card-separator,
    html.is-embedded #atelierModal .danz-card-code:empty { display: none; }
    html.is-embedded #atelierModal .danz-card-code {
        position: absolute; top: 13px; left: 13px; max-width: calc(100% - 58px);
        padding: 2px 5px; border-radius: 4px; background: rgb(255 255 255 / 94%); color: #262626;
        font-size: 11px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    html.is-embedded #atelierModal .preview {
        grid-area: 1 / 2 / span 2;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px;
        border-left: 1px solid var(--danz-line);
    }
    html.is-embedded #atelierModal .preview > * { flex-shrink: 0; }
    html.is-embedded #atelierModal .preview > .danz-zoom-target { flex: 1 0 84px; max-height: 440px; }
    html.is-embedded #atelierModal .danz-zoom-target > .preview-swatch {
        position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; aspect-ratio: auto;
    }
    html.is-embedded #atelierModal .preview .contrast-actions { margin: 0; }
    html.is-embedded #atelierModal .preview dl { margin: 0; gap: 0; }
    html.is-embedded #atelierModal .preview dl > div { padding: 5px 0; }
}

@media (min-width: 701px) and (max-height: 600px) {
    html.is-embedded #atelierModal .modal-header { padding-block: 5px; }
    html.is-embedded #atelierModal .preview { padding-block: 8px; gap: 5px; }
    html.is-embedded #atelierModal .preview dl > div { padding-block: 3px; }
}

@media (max-width: 700px) {
    /* iOS kann dem festen Overlay mehr Höhe geben, als oberhalb der Browserleiste sichtbar ist. */
    [data-danz-farbatelier-modal].danz-farbatelier-modal {
        top: var(--danz-visible-top, 0px); bottom: auto;
        height: 100vh; height: var(--danz-visible-height, 100dvh);
    }
    [data-danz-farbatelier-modal] .danz-farbatelier-modal__dialog { width: 100%; height: 100%; margin: 0; }
    [data-danz-farbatelier-frame] { min-height: 0; }
    [data-danz-farbatelier-modal] .danz-farbatelier-modal__header { gap: 10px; padding: 6px 12px; }
    .danz-picker-logo { display: block; width: 64px; height: 36px; object-fit: contain; mix-blend-mode: multiply; }
    .danz-picker-title strong { font-size: 13px; line-height: 1.2; font-weight: 600; }
    [data-danz-farbatelier-modal] .danz-farbatelier-modal__close { flex: none; }
    [data-danz-farbatelier-modal] .danz-farbatelier-modal__header:has([data-danz-farbatelier-status]:not([hidden])) { flex-wrap: wrap; }
    [data-danz-farbatelier-status]:not([hidden]) { order: 1; width: 100%; }
    html.is-embedded, html.is-embedded body, html.is-embedded #atelierModal {
        height: 100%; min-height: 0;
    }
    html.is-embedded #atelierModal .modal-dialog { display: flex; flex-direction: column; height: 100%; }
    html.is-embedded #atelierModal .modal-header {
        min-height: 0; display: block; padding: 6px 12px 0; border: 0; background: #fff;
    }
    #atelierModal .modal-header > div, #atelierModal .modal-footer [data-close],
    #atelierModal #shareColor { display: none; }
    #atelierModal .danz-mobile-hint {
        display: block; font-size: 11px; line-height: 15px; color: #505459; margin: 0;
    }
    html.is-embedded #atelierModal .modal-body {
        display: flex; flex: 1 1 0; min-height: 0; flex-direction: column; overflow: hidden;
    }
    html.is-embedded #atelierModal .filters {
        flex: 0 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end;
        padding: 5px 10px; gap: 4px 7px; border: 0; background: #fff;
    }
    #atelierModal .filters .danz-color-search { grid-column: 1 / -1; }
    #atelierModal .filters label { display: grid; min-width: 0; gap: 3px; }
    #atelierModal .filters label > span { font-size: 11px; line-height: 14px; }
    #atelierModal .filters input, #atelierModal .filters select {
        box-sizing: border-box; min-width: 0; width: 100%; min-height: 40px;
        height: 40px; padding: 5px 8px; font-size: 16px;
    }
    html.is-embedded #atelierModal .colors-area { flex: 1 1 0; height: auto; min-height: 0; overflow: hidden; }
    html.is-embedded #atelierModal .toolbar {
        display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center;
        justify-content: space-between; min-height: 34px; padding: 0 10px; gap: 5px;
    }
    #atelierModal #resultCount, #atelierModal #resetFilters { font-size: 11px; line-height: 15px; }
    #atelierModal #resetFilters { width: auto; min-height: 32px; margin: 0; padding: 3px 0 3px 6px; }
    html.is-embedded #atelierModal #colorGrid {
        display: grid; flex: 1 1 0; min-height: 0; overflow: auto; align-content: start;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        grid-auto-rows: max-content; gap: 5px; padding: 6px 8px 10px;
    }
    html.is-embedded #atelierModal .color-button {
        width: 100%; min-width: 0; height: auto; min-height: min-content; padding: 4px;
        display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto;
        align-content: start; align-items: start; gap: 4px;
    }
    html.is-embedded #atelierModal .color-button .swatch {
        box-sizing: border-box; width: 100%; height: clamp(34px, 10vw, 49px); min-height: 0;
    }
    #atelierModal .color-text { display: grid; min-width: 0; gap: 1px; }
    #atelierModal .color-text strong {
        font-size: 12px; line-height: 1.18; letter-spacing: 0; overflow-wrap: anywhere;
    }
    #atelierModal .color-text small {
        display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        font-size: 10.5px; line-height: 1.25; color: #505459;
    }
    #atelierModal .preview { display: none; }
    html.is-embedded #atelierModal.danz-details-open .filters,
    html.is-embedded #atelierModal.danz-details-open .colors-area { display: none; }
    html.is-embedded #atelierModal.danz-details-open .preview {
        display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; height: auto;
        gap: 6px; padding: 8px 12px; border: 0; overflow-y: auto;
    }
    #atelierModal.danz-details-open .preview > * { flex-shrink: 0; }
    #atelierModal.danz-details-open .color-disclaimer--preview { display: none; }
    #atelierModal.danz-details-open .preview > .danz-zoom-target { flex: 1 0 52px; max-height: 310px; }
    #atelierModal.danz-details-open .danz-zoom-target > .preview-swatch {
        position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; aspect-ratio: auto;
    }
    #atelierModal.danz-details-open .contrast-actions { margin: 0; }
    #atelierModal.danz-details-open .preview dl { margin: 0; gap: 0; font-size: 13px; line-height: 1.25; }
    #atelierModal.danz-details-open .preview dl > div {
        display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline;
        gap: 8px; padding: 4px 0;
    }
    #atelierModal.danz-details-open .preview dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
    html.is-embedded #atelierModal .modal-footer { display: none; }
    html.is-embedded #atelierModal.danz-details-open .modal-footer {
        display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
        flex: none; min-height: 0; gap: 8px; padding: 4px 10px;
        border-top: 0; border-bottom: 1px solid var(--danz-line);
    }
    #atelierModal .danz-mobile-back {
        display: inline-flex; align-items: center; justify-self: start; gap: 7px; min-height: 44px;
        padding: 4px 6px; background: transparent; color: #202328; border: 0; font-size: 14px; font-weight: 600;
    }
    #atelierModal .danz-mobile-back::before {
        content: ''; width: 8px; height: 8px; border-left: 2px solid currentColor;
        border-bottom: 2px solid currentColor; transform: rotate(45deg);
    }
    #atelierModal #acceptSelection { width: auto; min-height: 44px; padding: 8px 16px; font-size: 14px; }
}
@media (min-width: 500px) and (max-width: 700px) {
    html.is-embedded #atelierModal #colorGrid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
