/*
 * SHV Hundemarken-LiveDesigner 1.3.218
 * Copyright © 2026 SHV-Verlag, Inh. K.-H. Kanitz. Alle Rechte vorbehalten.
 * Proprietäre und vertrauliche Software. Siehe LICENSE.md.
 */
@font-face {
    font-family: 'SHV Dog Barlow';
    src: url('../fonts/Barlow-Regular.ttf?v=0.2.0') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

.shv-dog-access-gate {
    margin: 1.5rem 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(20, 128, 45, .28);
    border-radius: 1rem;
    background: #f1faf3;
    color: #17211a;
}

.shv-dog-access-gate h2 {
    margin: 0 0 .75rem;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    line-height: 1.2;
}

.shv-dog-access-gate p {
    max-width: 48rem;
    margin: 0 0 1.1rem;
    line-height: 1.55;
}

.shv-dog-access-gate .btn {
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@font-face {
    font-family: 'Barlow Regular';
    src: url('../fonts/Barlow-Regular.ttf?v=0.2.0') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: block;
}

@font-face {
    font-family: 'Barlow SemiBold';
    src: url('../fonts/Barlow-SemiBold.ttf?v=0.2.0') format('truetype');
    font-style: normal;
    font-weight: 600;
    font-display: block;
}

@font-face {
    font-family: 'Barlow Bold';
    src: url('../fonts/Barlow-Bold.ttf?v=0.2.0') format('truetype');
    font-style: normal;
    font-weight: 700;
    font-display: block;
}

@font-face {
    font-family: 'SHV Dog Barlow';
    src: url('../fonts/Barlow-SemiBold.ttf?v=0.2.0') format('truetype');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'SHV Dog Barlow';
    src: url('../fonts/Barlow-Medium.ttf?v=0.2.0') format('truetype');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'SHV Dog Barlow';
    src: url('../fonts/Barlow-Bold.ttf?v=0.2.0') format('truetype');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

.shv-dog-designer,
.shv-dog-designer *,
.shv-dog-gallery,
.shv-dog-gallery * {
    box-sizing: border-box;
    min-width: 0;
}

.shv-dog-designer {
    --shv-dog-ink: #202932;
    --shv-dog-muted: #66717c;
    --shv-dog-border: #dce2e7;
    --shv-dog-green: #24733e;
    margin: 1.5rem 0;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--shv-dog-ink);
    border: 1px solid var(--shv-dog-border);
    border-radius: 1rem;
    background: linear-gradient(145deg, #fff, #f7f9f8);
    box-shadow: 0 .75rem 2rem rgba(28, 43, 35, .07);
    font-family: 'SHV Dog Barlow', Arial, sans-serif;
}

.shv-dog-designer__quantity-first {
    display: block;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    font-family: 'SHV Dog Barlow', Arial, sans-serif;
}

.shv-dog-designer__quantity-slot:empty {
    display: none;
}

/* Joomla: Hinweis zum Mengenschritt (z. B. 100er-Schritte) */
.shv-dog-designer__quantity-step-hint {
    margin: .4rem 0 0;
    color: #526273;
    font-size: .95rem;
    line-height: 1.4;
}

.shv-dog-designer__quantity-step-hint.is-rounded {
    color: #8a5300;
    font-weight: 600;
}

/* Joomla: Mengenfeld – 2/3 Menge (−, Zahl, +), 1/3 Einheit */
.shv-hd-quantity .input-group,
.shv-dog-designer__quantity-slot .input-group,
.shv-dog-offer-fallback-form__quantity .input-group {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.shv-hd-quantity .input-group > .form-control,
.shv-dog-designer__quantity-slot .input-group > .form-control,
.shv-dog-offer-fallback-form__quantity .input-group > .form-control {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

.shv-hd-quantity .input-group > .input-group-text,
.shv-dog-designer__quantity-slot .input-group > .input-group-text,
.shv-dog-offer-fallback-form__quantity .input-group > .input-group-text {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    justify-content: center;
}

.shv-dog-offer-delivery-note {
    margin-top: .45rem;
    color: #526273;
    font-size: 1rem;
    line-height: 1.45;
}

.shv-dog-offer-delivery-note strong {
    color: #202932;
}

.shv-dog-designer__quantity-label {
    float: none;
    width: auto;
    margin: 0 0 .5rem;
    padding: 0;
    color: #202932;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.shv-dog-designer__quantity-first .quantity-selector-group {
    width: 100%;
    max-width: none;
}

.shv-dog-designer__quantity-first .quantity-selector-group > .btn {
    border-color: #8f969d !important;
    color: #4b535b !important;
    background-color: #fff !important;
    box-shadow: none !important;
}

.shv-dog-designer__quantity-first .quantity-selector-group > .btn:hover,
.shv-dog-designer__quantity-first .quantity-selector-group > .btn:focus,
.shv-dog-designer__quantity-first .quantity-selector-group > .btn:focus-visible,
.shv-dog-designer__quantity-first .quantity-selector-group > .btn:active,
.shv-dog-designer__quantity-first .quantity-selector-group > .btn.active {
    border-color: #68717a !important;
    color: #202932 !important;
    background-color: #f4f6f7 !important;
    box-shadow: inset 0 0 0 1px #68717a !important;
}

/*
 * Angebotsprodukte werden direkt an den Hundemarken-Angebotsentwurf
 * uebergeben. Ein ggf. von einer unabhaengigen Erweiterung ausgegebener
 * Warenkorb-Hinweis ist in diesem Kontext sachlich falsch und wird nur
 * innerhalb derselben Buy-Widget-Instanz ausgeblendet.
 */
.shv-dog-designer[data-shv-dog-offer-only="true"] ~ .my-offer-buy-widget-stack .my-offer-product-detail-hint {
    display: none !important;
}

/* Optionale, konfliktfreie Anzeigeintegration. Die Selektoren greifen nur,
 * wenn das unabhaengige SHV-Bilder-Plugin die jeweiligen Elemente ausgibt. */
.product-detail-buy:has(.shv-dog-designer[data-shv-dog-offer-only="true"][data-show-payment-shipping-extra-images="false"]) .shv-payment-shipping-extra-image,
.product-detail-buy:has(.shv-dog-designer[data-shv-dog-offer-only="true"][data-show-payment-shipping-icons="false"]) .shv-payment-shipping-icons-detail-below-buybox {
    display: none !important;
}

.shv-dog-designer__heading {
    margin-bottom: 1.25rem;
}

.shv-dog-designer__heading h2 {
    margin: .1rem 0 0;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 700;
}

.shv-dog-designer__draft-notice,
.shv-dog-designer__draft-status {
    margin: 0 0 1rem;
    padding: .55rem .75rem;
    border: 1px solid #cfe1d5;
    border-radius: .55rem;
    background: #f3f9f5;
    color: #315a3f;
    font-size: .82rem;
    line-height: 1.45;
}

.shv-dog-designer__draft-status {
    border-color: #99caaa;
    background: #eaf6ee;
    font-weight: 600;
}

.shv-dog-designer__eyebrow {
    display: block;
    color: var(--shv-dog-green);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: .025em;
    line-height: 1.15;
    white-space: nowrap;
    text-transform: uppercase;
}

.shv-dog-designer__section {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--shv-dog-border);
}

.shv-dog-designer__section h3 {
    margin: 0 0 .85rem;
    font-size: 18px;
    font-weight: 700;
}

.shv-dog-designer__basic-step {
    display: flex;
    margin: 0 0 .85rem;
    align-items: center;
    gap: .7rem;
    font-size: 17px;
    line-height: 1.25;
}

.shv-dog-designer__accordion {
    display: grid;
    gap: .65rem;
}

.shv-dog-designer__accordion--optional {
    margin-top: 1.25rem;
}

.shv-dog-designer__accordion-section {
    overflow: hidden;
    border: 1px solid var(--shv-dog-border);
    border-radius: .8rem;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.shv-dog-designer__accordion-section.is-open {
    position: relative;
    z-index: 20;
    overflow: visible;
    border-color: #b9dcc4;
    box-shadow: 0 .35rem 1rem rgba(28, 43, 35, .06);
}

/* Joomla: Abschnitt mit geöffneter Bild-Auswahl (Form, Motiv) liegt über den folgenden Abschnitten. */
.shv-dog-designer__accordion-section.has-open-select,
.shv-dog-designer__accordion-section:has(.shv-dog-icon-select.is-open) {
    position: relative;
    z-index: 40;
    overflow: visible;
}

.shv-dog-designer__accordion-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: 100%;
    min-height: 62px;
    padding: .8rem 1rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--shv-dog-ink);
    border: 0;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color .16s ease;
}

.shv-dog-designer__accordion-toggle:hover {
    background: #f7faf8;
}

.shv-dog-designer__accordion-toggle:focus-visible {
    outline: 3px solid rgba(36, 115, 62, .22);
    outline-offset: -3px;
}

.shv-dog-designer__accordion-title,
.shv-dog-designer__accordion-status {
    display: flex;
    align-items: center;
}

.shv-dog-designer__accordion-title {
    flex: 0 0 auto;
    gap: .7rem;
    font-size: 17px;
    line-height: 1.25;
}

.shv-dog-designer__accordion-number {
    display: inline-grid;
    width: 1.85rem;
    height: 1.85rem;
    flex: 0 0 1.85rem;
    color: var(--shv-dog-green);
    border: 1px solid #b9dcc4;
    border-radius: 999px;
    background: #eff9f2;
    font-size: 15px;
    font-weight: 700;
    place-items: center;
}

.shv-dog-designer__accordion-status {
    justify-content: flex-end;
    gap: .7rem;
}

.shv-dog-designer__accordion-summary {
    overflow: hidden;
    color: var(--shv-dog-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shv-dog-designer__accordion-neutral,
.shv-dog-designer__accordion-check,
.shv-dog-designer__accordion-error {
    display: none;
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 700;
}

.shv-dog-designer__accordion-neutral {
    color: #85908a;
    font-size: 20px;
    font-weight: 500;
}

.shv-dog-designer__accordion-check {
    color: var(--shv-dog-green);
}

.shv-dog-designer__accordion-error {
    color: #b42318;
}

.shv-dog-designer__accordion-optional {
    display: inline-flex;
    padding: .18rem .5rem;
    color: #5f6b66;
    border: 1px solid #d8dfdb;
    border-radius: 999px;
    background: #f6f8f7;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.shv-dog-designer__accordion-section.is-visited:not(.is-complete):not(.is-error):not(.is-optional) .shv-dog-designer__accordion-neutral,
.shv-dog-designer__accordion-section.is-complete .shv-dog-designer__accordion-check,
.shv-dog-designer__accordion-section.is-error .shv-dog-designer__accordion-error {
    display: inline;
}

.shv-dog-designer__accordion-section.is-complete .shv-dog-designer__accordion-optional,
.shv-dog-designer__accordion-section.is-error .shv-dog-designer__accordion-optional {
    display: none;
}

.shv-dog-designer__accordion-chevron {
    width: .65rem;
    height: .65rem;
    flex: 0 0 .65rem;
    border-right: 2px solid #66717c;
    border-bottom: 2px solid #66717c;
    transform: rotate(45deg) translate(-.1rem, -.1rem);
    transition: transform .16s ease;
}

.shv-dog-designer__accordion-section.is-open .shv-dog-designer__accordion-chevron {
    transform: rotate(225deg) translate(-.05rem, -.05rem);
}

.shv-dog-designer__accordion-panel {
    padding: 1rem;
    border-top: 1px solid var(--shv-dog-border);
}

.shv-dog-designer__accordion-panel[hidden] {
    display: none !important;
}

.shv-dog-designer__accordion-panel > .shv-dog-designer__section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.shv-dog-designer__accordion-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.shv-dog-designer__subsection {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--shv-dog-border);
}

.shv-dog-designer__subsection h3 {
    margin: 0 0 .85rem;
    font-size: 18px;
    font-weight: 700;
}

.shv-dog-designer__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.shv-dog-designer .form-group {
    margin: 0;
}

.shv-dog-designer .form-label {
    display: block;
    margin-bottom: .45rem;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.3;
}

.shv-dog-designer .form-control,
.shv-dog-designer .form-select {
    width: 100%;
    min-height: 40px;
    padding: 7px 12px;
    color: #111;
    background-color: #fff;
    font-size: 16px !important;
    font-weight: 500;
    line-height: 1.35;
}

.shv-dog-designer .form-select {
    padding-right: 40px;
}

.shv-dog-icon-select__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.shv-dog-designer [data-shv-dog-field="color"],
.shv-dog-designer [data-shv-dog-field="yearMode"] {
    height: 50px;
    min-height: 50px;
}

.shv-dog-icon-select {
    position: relative;
    width: 100%;
}

.shv-dog-icon-select__toggle,
.shv-dog-icon-select__option {
    display: flex;
    align-items: center;
    width: 100%;
    color: #111;
    background: #fff;
    font: inherit;
    text-align: left;
}

.shv-dog-icon-select__toggle {
    min-height: 48px;
    padding: 6px 40px 6px 12px;
    border: 1px solid #9aa2a9;
    border-radius: 4px;
}

.shv-dog-icon-select__toggle:focus-visible {
    outline: 2px solid #24733e;
    outline-offset: 2px;
}

.shv-dog-icon-select__value {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
    font-size: 16px;
    font-weight: 500;
}

.shv-dog-icon-select__chevron {
    position: absolute;
    top: 50%;
    right: 15px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #4f5962;
    border-bottom: 2px solid #4f5962;
    transform: translateY(-70%) rotate(45deg);
    transition: transform .15s ease;
}

.shv-dog-icon-select.is-open .shv-dog-icon-select__chevron {
    transform: translateY(-25%) rotate(225deg);
}

.shv-dog-icon-select__list {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 320px;
    padding: 5px;
    overflow-y: auto;
    border: 1px solid #aeb6bd;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(26, 35, 43, .16);
}

.shv-dog-icon-select__list[hidden] {
    display: none !important;
}

.shv-dog-icon-select__option {
    min-height: 48px;
    gap: .8rem;
    padding: 5px 10px;
    border: 0;
    border-radius: 4px;
    font-size: 16px;
}

.shv-dog-icon-select__option:hover,
.shv-dog-icon-select__option:focus-visible {
    background: #eef7f1;
    outline: none;
}

.shv-dog-icon-select__option.is-selected {
    color: #1e6537;
    background: #e5f3e9;
    font-weight: 700;
}

.shv-dog-icon-select__icon {
    display: block;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    color: #36414a;
    object-fit: contain;
    overflow: hidden;
}

.shv-dog-icon-select__option.is-selected .shv-dog-icon-select__icon {
    color: #24733e;
}

.shv-dog-icon-select[data-shv-dog-icon-select="shape"] .shv-dog-icon-select__toggle .shv-dog-icon-select__icon {
    color: #24733e;
}

.shv-dog-icon-select[data-shv-dog-icon-select="motif"] .shv-dog-icon-select__toggle {
    overflow: hidden;
}

.shv-dog-icon-select[data-shv-dog-icon-select="motif"] .shv-dog-icon-select__value {
    width: 100%;
}

.shv-dog-icon-select[data-shv-dog-icon-select="motif"] .shv-dog-icon-select__value > span:last-child {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shv-dog-icon-select__icon image {
    filter: brightness(0) saturate(100%);
}

.shv-dog-designer .form-text {
    display: block;
    margin-top: .3rem;
    color: var(--shv-dog-muted);
    font-size: 14px;
}

.shv-dog-designer__color-swatches {
    display: grid;
    grid-template-columns: repeat(12, minmax(14px, 1fr));
    gap: .35rem;
    margin-top: .65rem;
}

.shv-dog-designer__color-swatches span,
.shv-dog-designer__color-swatches button {
    height: .55rem;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
    opacity: .45;
    transition: opacity .15s, transform .15s;
}

/* Joomla: wählbare Farbfelder mit größerer Klickfläche und Tastaturfokus. */
.shv-dog-designer__color-swatches button {
    display: block;
    width: 100%;
    min-width: 0;
    height: 1.1rem;
    padding: 0;
    border: 0;
    background-clip: content-box;
    border-top: .28rem solid transparent;
    border-bottom: .28rem solid transparent;
    cursor: pointer;
    appearance: none;
}

.shv-dog-designer__color-swatches button:hover {
    opacity: .8;
}

.shv-dog-designer__color-swatches button:focus-visible {
    outline: 2px solid var(--shv-dog-green, #24733e);
    outline-offset: 2px;
    opacity: 1;
}

.shv-dog-designer__color-swatches span.is-selected,
.shv-dog-designer__color-swatches button.is-selected {
    opacity: 1;
    transform: scaleY(1.5);
}

.shv-dog-designer__start-actions {
    display: grid;
    gap: .55rem;
    margin: 1rem 0;
}

.shv-dog-designer__start-actions .btn {
    width: 100%;
}

.shv-dog-designer__start-hint {
    margin: 0;
    color: #5f6b76;
    font-size: .95rem;
    line-height: 1.45;
    text-align: center;
}

.shv-dog-designer__quantity-note {
    margin: .75rem 0 0;
    color: var(--shv-dog-green);
    font-size: 16px;
    font-weight: 600;
}

.shv-dog-designer__offer-error {
    margin: 1rem 0 0;
    color: #b42318;
    font-size: .95rem;
    font-weight: 600;
}

.shv-dog-designer__logo-upload .form-control[type="file"] {
    width: 100%;
    padding: .5rem .7rem;
}

.shv-dog-designer__logo-file {
    grid-column: 1 / -1;
    width: 100%;
}

.shv-dog-designer__logo-file[hidden] {
    display: none !important;
}

.shv-dog-designer__logo-remove,
.shv-dog-designer__logo-copy {
    width: 100%;
    margin-top: .55rem;
}

.shv-dog-designer__logo-upload .form-text {
    min-height: 1.25rem;
}

.shv-dog-offer-price,
.shv-dog-offer-listing-price,
.shv-dog-offer-line-price {
    color: #205d36;
    font-family: 'SHV Dog Barlow', Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.shv-dog-offer-cart-summary {
    margin: 1rem 0;
    padding: 1rem 1.15rem;
    color: #203328;
    border: 1px solid #b9dcc4;
    border-radius: .75rem;
    background: #eff9f2;
    font-family: 'SHV Dog Barlow', Arial, sans-serif;
}

.shv-dog-offer-cart-summary {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.shv-dog-gallery {
    position: relative;
    display: flex;
    overflow: hidden;
    width: 100%;
    min-height: clamp(29rem, 58vw, 44rem);
    padding: clamp(4.5rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem) 1.5rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid #e2e7e3;
    border-radius: 1rem;
    background: radial-gradient(circle at 50% 40%, #fff 0%, #fff 56%, #f7f9f8 100%);
}

.shv-dog-gallery__live {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    display: inline-flex;
    gap: .45rem;
    align-items: center;
    padding: .4rem .75rem;
    color: #205d36;
    border: 1px solid #b9dcc4;
    border-radius: 999px;
    background: #eff9f2;
    font-size: 14px;
    font-weight: 700;
}

.shv-dog-gallery__live i {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: #38a05a;
    box-shadow: 0 0 0 .2rem rgba(56, 160, 90, .15);
}

.shv-dog-gallery__tabs {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    padding: .2rem;
    border: 1px solid #dfe3e8;
    border-radius: .7rem;
    background: #f4f6f7;
}

.shv-dog-gallery__tabs button {
    min-height: 36px;
    padding: .35rem .7rem;
    color: #46515c;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
}

.shv-dog-gallery__tabs button.is-active {
    color: #fff;
    background: #24733e;
    box-shadow: 0 .15rem .4rem rgba(36, 115, 62, .2);
}

.shv-dog-gallery__preview {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 22rem;
    flex: 1 1 auto;
    place-items: center;
}

.shv-dog-gallery__preview > svg {
    display: block;
    width: min(var(--shv-dog-preview-width, 88%), var(--shv-dog-preview-max-width, 34rem));
    height: auto;
    max-height: 34rem;
    overflow: visible;
    filter: drop-shadow(0 .22rem .13rem rgba(18, 28, 22, .2));
    touch-action: none;
    user-select: none;
}

.shv-dog-editor-overlay [data-shv-edit-mode="move"] {
    cursor: move;
}

.shv-dog-editor-object {
    cursor: move;
}

.shv-dog-editor-overlay__handle {
    cursor: nwse-resize;
}

.shv-dog-editor-overlay__curve {
    cursor: ns-resize;
}

.shv-dog-gallery__watermark {
    --shv-dog-watermark-opacity: .10;
    --shv-dog-watermark-font-size: 18px;
    --shv-dog-watermark-angle: -24deg;
    --shv-dog-watermark-columns: 4;
    position: absolute;
    inset: 0;
    z-index: 5;
    overflow: hidden;
    border-radius: .75rem;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.shv-dog-gallery__watermark-grid {
    position: absolute;
    inset: -18%;
    display: grid;
    grid-template-columns: repeat(var(--shv-dog-watermark-columns), minmax(8rem, 1fr));
    gap: 2.6rem 1.9rem;
    align-content: space-around;
    transform: rotate(var(--shv-dog-watermark-angle));
    transform-origin: center;
}

.shv-dog-gallery__watermark-grid span {
    display: block;
    color: rgb(15, 23, 42);
    opacity: var(--shv-dog-watermark-opacity);
    font-family: Arial, Helvetica, sans-serif;
    font-size: var(--shv-dog-watermark-font-size);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .04em;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
    white-space: nowrap;
}

.shv-dog-safety-guide {
    pointer-events: none;
}

.shv-dog-gallery__guide {
    width: 100%;
    align-self: stretch;
    margin: 1.2rem 0 0;
}

.shv-dog-gallery__guide > summary {
    display: flex;
    width: 100%;
    min-height: 46px;
    padding: .7rem .9rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #374151;
    border: 1px solid #dfe3e8;
    border-radius: .65rem;
    background: #f7f8fa;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    list-style: none;
}

.shv-dog-gallery__guide > summary::-webkit-details-marker {
    display: none;
}

.shv-dog-gallery__guide > summary:hover,
.shv-dog-gallery__guide > summary:focus-visible {
    border-color: #b7bec8;
    background: #f1f3f5;
}

.shv-dog-gallery__guide > summary:focus-visible {
    outline: 3px solid rgba(55, 65, 81, .16);
    outline-offset: 2px;
}

.shv-dog-gallery__guide-chevron {
    width: .65rem;
    height: .65rem;
    flex: 0 0 .65rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-.1rem, -.1rem);
    transition: transform .16s ease;
}

.shv-dog-gallery__guide[open] .shv-dog-gallery__guide-chevron {
    transform: rotate(225deg) translate(-.05rem, -.05rem);
}

.shv-dog-gallery > .shv-dog-gallery__notice {
    width: 100%;
    max-width: none;
    align-self: stretch;
    margin: 1.2rem 0 0;
    padding: 14px 18px;
    color: rgba(0, 0, 0, .64);
    border: 1px solid #dfe3e8;
    border-radius: .65rem;
    background: #f7f8fa;
    font-size: 16px !important;
    font-weight: 600;
    line-height: 1.5;
    text-align: justify !important;
    text-align-last: left !important;
}

.shv-dog-gallery > .shv-dog-gallery__notice > strong:first-child {
    display: block;
    margin-bottom: .35rem;
    color: #374151;
}

.shv-dog-gallery__guide-content {
    margin-top: .75rem;
    padding: 16px 20px 18px;
    color: rgba(0, 0, 0, .72);
    border: 1px solid #dfe3e8;
    border-radius: .65rem;
    background: #f7f8fa;
    font-size: 15px;
    line-height: 1.55;
}

.shv-dog-gallery__guide-content > p {
    margin: 0 0 .75rem;
    font-weight: 700;
}

.shv-dog-gallery__guide-content > ol {
    margin: 0;
    padding-left: 1.5rem;
}

.shv-dog-gallery__guide-content > ol > li {
    padding-left: .2rem;
}

.shv-dog-gallery__guide-content > ol > li + li {
    margin-top: .65rem;
}

.shv-dog-gallery__mockup {
    width: 100%;
    margin-top: 1rem;
    align-self: stretch;
}

.shv-dog-gallery__mockup-toggle {
    display: flex;
    width: 100%;
    min-height: 46px;
    padding: .7rem .9rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #205d36;
    border: 1px solid #b9dcc4;
    border-radius: .65rem;
    background: #eff9f2;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.shv-dog-gallery__mockup-toggle:hover,
.shv-dog-gallery__mockup-toggle:focus-visible {
    border-color: #72b486;
    background: #e4f4e9;
}

.shv-dog-gallery__mockup-toggle:focus-visible {
    outline: 3px solid rgba(36, 115, 62, .2);
    outline-offset: 2px;
}

.shv-dog-gallery__mockup-chevron {
    width: .65rem;
    height: .65rem;
    flex: 0 0 .65rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-.1rem, -.1rem);
    transition: transform .16s ease;
}

.shv-dog-gallery__mockup.is-open .shv-dog-gallery__mockup-chevron {
    transform: rotate(225deg) translate(-.05rem, -.05rem);
}

.shv-dog-gallery__mockup-panel {
    margin-top: .75rem;
}

.shv-dog-gallery__mockup-panel[hidden] {
    display: none !important;
}

.shv-dog-gallery__mockup-scene {
    position: relative;
    overflow: hidden;
    width: min(100%, 42rem);
    margin: 0 auto;
    aspect-ratio: 3 / 2;
    border: 1px solid #d7ddd9;
    border-radius: .75rem;
    background: #e8dcc9;
    box-shadow: 0 .65rem 1.6rem rgba(31, 37, 33, .16);
    perspective: 900px;
}

.shv-dog-gallery__mockup-scene > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shv-dog-gallery__mockup-tag {
    position: absolute;
    /* Insgesamt 2 mm naeher am 18-mm-Schluesselring (bezogen auf die 30-mm-Referenzmarke). */
    top: 75.7%;
    left: 50%;
    z-index: 3;
    width: 6.9%;
    transform: translateX(-50%) rotate(1.5deg) rotateX(4deg);
    transform-origin: 50% 4%;
    filter: drop-shadow(.35rem .55rem .35rem rgba(23, 18, 12, .42));
    pointer-events: none;
}

.shv-dog-gallery__mockup-tag > svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.shv-dog-gallery__mockup-panel > p {
    width: min(100%, 42rem);
    margin: .65rem auto 0;
    color: #66717c;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

.shv-dog-line-item-design {
    display: grid;
    gap: .2rem;
    margin: .55rem 0 0;
    font-size: 14px;
    line-height: 1.35;
}

.shv-dog-line-item-design > div {
    display: grid;
    grid-template-columns: minmax(5.75rem, auto) 1fr;
    gap: .5rem;
}

.shv-dog-line-item-design dt {
    color: #65707b;
    font-weight: 700;
}

.shv-dog-line-item-design dd {
    margin: 0;
}

.shv-dog-line-item-previews {
    display: flex;
    width: 100%;
    height: 100%;
    gap: .2rem;
    align-items: center;
    justify-content: center;
}

.shv-dog-line-item-preview {
    position: relative;
    display: grid;
    overflow: hidden;
    width: calc(50% - .1rem);
    height: 100%;
    min-height: 4.5rem;
    place-items: center;
}

.shv-dog-line-item-preview > svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    max-height: 7rem;
    overflow: visible;
    font-family: 'SHV Dog Barlow', Arial, sans-serif;
    filter: drop-shadow(0 .08rem .055rem rgba(18, 28, 22, .2));
}

.shv-dog-line-item-watermark {
    --shv-dog-cart-watermark-opacity: .10;
    --shv-dog-cart-watermark-font-size: 10px;
    --shv-dog-cart-watermark-angle: -24deg;
    --shv-dog-cart-watermark-columns: 5;
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.shv-dog-line-item-watermark__grid {
    position: absolute;
    inset: -24%;
    display: grid;
    grid-template-columns: repeat(var(--shv-dog-cart-watermark-columns), minmax(2.75rem, 1fr));
    gap: .7rem .45rem;
    align-content: space-around;
    transform: rotate(var(--shv-dog-cart-watermark-angle));
    transform-origin: center;
}

.shv-dog-line-item-watermark__grid i {
    display: block;
    color: rgb(15, 23, 42);
    opacity: var(--shv-dog-cart-watermark-opacity);
    font-family: Arial, Helvetica, sans-serif;
    font-size: var(--shv-dog-cart-watermark-font-size);
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
    text-align: center;
    white-space: nowrap;
}

/* Die gesamte linke Karte bleibt innerhalb der Konfigurationszeile stehen:
   2D-Vorschau, Kurzanleitung und beide aufklappbaren Bereiche laufen mit. */
@media (min-width: 768px) {
    .shv-dog-config-layout {
        overflow-anchor: none;
    }

    .shv-dog-config-layout > .product-detail-media {
        align-self: stretch;
    }

    .shv-dog-config-layout .shv-dog-gallery {
        position: sticky;
        top: var(--shv-dog-sticky-offset, var(--shv-dog-sticky-top, 5rem));
        min-height: 0;
        max-height: calc(100vh - var(--shv-dog-sticky-top, 5rem) - 1rem);
        max-height: calc(100dvh - var(--shv-dog-sticky-top, 5rem) - 1rem);
        padding: 4.5rem 1rem 1rem;
        overflow-y: auto;
        scrollbar-width: thin;
        justify-content: flex-start;
    }

    .shv-dog-config-layout .shv-dog-gallery > * {
        flex-shrink: 0;
    }

    .shv-dog-config-layout .shv-dog-gallery__preview {
        min-height: 0;
        flex: 0 0 auto;
    }

    .shv-dog-config-layout .shv-dog-gallery__preview > svg {
        max-height: clamp(10rem, calc(100vh - var(--shv-dog-sticky-top, 5rem) - 26rem), 34rem);
        max-height: clamp(10rem, calc(100dvh - var(--shv-dog-sticky-top, 5rem) - 26rem), 34rem);
    }

    /* Geöffnete Inhalte wachsen im Dokumentfluss. So werden die Anleitung
       und die Produktbeschreibung nach unten verschoben und nicht innerhalb
       der auf Bildschirmhöhe begrenzten Vorschau abgeschnitten. */
    .shv-dog-config-layout .shv-dog-gallery:has(.shv-dog-gallery__mockup-toggle[aria-expanded="true"]),
    .shv-dog-config-layout .shv-dog-gallery:has(.shv-dog-gallery__guide[open]) {
        max-height: none;
        overflow: hidden;
    }
}

/* Auch das iPad-Hochformat braucht nebeneinanderliegende Spalten, damit die
   Vorschau während der rechts fortgesetzten Konfiguration sichtbar bleibt. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .shv-dog-config-layout > .product-detail-media {
        flex: 0 0 42%;
        width: 42%;
        max-width: 42%;
    }

    .shv-dog-config-layout > .product-detail-buy {
        flex: 0 0 58%;
        width: 58%;
        max-width: 58%;
    }

    .shv-dog-config-layout .shv-dog-gallery {
        padding-top: 6rem;
    }

    .shv-dog-config-layout .shv-dog-gallery__live {
        top: 3.8rem;
        left: 1rem;
        right: auto;
    }

    .shv-dog-config-layout .shv-dog-gallery > .shv-dog-gallery__notice {
        padding: .7rem;
        font-size: 14px !important;
        line-height: 1.45;
    }

    .shv-dog-config-layout .shv-dog-designer__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .shv-dog-designer__eyebrow {
        font-size: 1rem;
        letter-spacing: .01em;
    }

    .shv-dog-designer__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .shv-dog-designer__accordion-toggle {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "title status"
            "summary summary";
        min-height: 68px;
        padding: .75rem .85rem;
        align-items: flex-start;
    }

    .shv-dog-designer__accordion-title {
        grid-area: title;
        font-size: 16px;
    }

    .shv-dog-designer__accordion-status {
        grid-area: status;
        align-self: center;
    }

    .shv-dog-designer__accordion-summary {
        grid-area: summary;
        padding-left: 2.55rem;
        max-width: none;
        font-size: 13px;
        text-align: left;
        text-overflow: clip;
        white-space: normal;
    }

    .shv-dog-designer__accordion-panel {
        padding: .85rem;
    }

    .shv-dog-gallery {
        min-height: 27rem;
        padding-top: 5.5rem;
    }

    .shv-dog-gallery__tabs {
        top: 1rem;
        right: auto;
    }

    .shv-dog-gallery__live {
        top: 3.8rem;
        right: auto;
        left: 1rem;
    }

    .shv-dog-gallery__preview {
        min-height: 18rem;
    }
}

@media (min-width: 992px) and (max-width: 1366px) and (pointer: coarse) {
    .shv-dog-designer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shv-dog-designer .form-control,
    .shv-dog-designer .form-select {
        min-height: 40px;
        font-size: 16px !important;
    }
}
