.ecc-warranty-label {
    background: #fff;
    color: #0f172a;
    margin-block: 1.5rem;
    margin-inline: auto;
    max-width: 42rem;
}

.ecc-warranty-product-section {
    border-top: 1px solid #e2e8f0;
    margin-top: 2rem;
    padding-top: 0.5rem;
}

.ecc-warranty-tab-pane {
    padding-block: 1rem;
}

.ecc-warranty-tab-pane:target {
    display: block;
    opacity: 1;
}

.ecc-warranty-accordion details > summary {
    cursor: pointer;
    font-weight: 600;
    min-height: 2.75rem;
    padding: 0.75rem 1rem;
}

.ecc-warranty-accordion details > summary:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: -3px;
}

.ecc-warranty-label a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.ecc-warranty-label__figure {
    margin: 0;
}

.ecc-warranty-label__image-link,
.ecc-warranty-label__image {
    display: block;
}

.ecc-warranty-label__image {
    height: auto;
    max-width: 100%;
    width: 100%;
}

.ecc-warranty-label__caption {
    margin-top: 1rem;
    text-align: center;
}

.ecc-warranty-label__sr-only {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.ecc-gpsr-contact {
    background: #fff;
    border: 1px solid #d9e2ec;
    border-left: 0.3rem solid #2563eb;
    border-radius: 0.75rem;
    box-shadow: 0 0.35rem 1.25rem rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
    color: #0f172a;
    margin: 2rem auto;
    max-width: 48rem;
    padding: clamp(1rem, 2vw, 1.5rem);
}

.ecc-gpsr-contact h2 {
    font-size: 1.125rem;
    margin: 0 0 0.75rem;
}

.ecc-gpsr-contact address {
    font-style: normal;
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.ecc-gpsr-contact strong {
    color: #111827;
    font-size: 1.05rem;
}

.ecc-gpsr-contact a {
    overflow-wrap: anywhere;
}

.ecc-gpsr-contact a:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

.ecc-garan-test {
    background: #fff7ed;
    border: 3px dashed #c2410c;
    border-radius: 0.625rem;
    color: #431407;
    margin-block: 2rem;
    padding: 1rem;
}

.ecc-garan-test dl {
    display: grid;
    gap: 0.35rem 1rem;
    grid-template-columns: minmax(10rem, 14rem) 1fr;
    margin: 1rem 0 0;
}

.ecc-garan-test dt {
    font-weight: 700;
}

.ecc-garan-test dd {
    margin: 0;
}

@media (max-width: 575.98px) {
    .ecc-garan-test dl {
        display: block;
    }

    .ecc-garan-test dt {
        margin-top: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .ecc-warranty-label {
        margin-block: 1rem;
    }

    .ecc-warranty-label {
        padding: 0.75rem;
    }
}

/* Amtliches GARAN-Label: visuell neutraler Container, keine Zusatzelemente
   um das Label selbst (Leitlinien-Don'ts). */
.ecc-garan-label {
    margin-block: 1.5rem;
}

.ecc-garan-label__figure {
    margin: 0;
}

.ecc-garan-label__image {
    display: block;
    height: auto;
    max-width: 269px;
    width: 100%;
}

.ecc-garan-label__caption {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.ecc-garan-label--nested > summary {
    cursor: pointer;
    display: inline-block;
    list-style: none;
}

.ecc-garan-label--nested > summary::-webkit-details-marker {
    display: none;
}

.ecc-garan-label--nested > summary:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.ecc-garan-label--nested > summary img {
    display: block;
    height: auto;
    max-width: 368px;
    width: 100%;
}

.ecc-garan-label--nested[open] > summary {
    margin-bottom: 0.75rem;
}

.ecc-garan-section {
    border-top: 1px solid #e2e8f0;
    margin-top: 2rem;
    padding-top: 1rem;
}

.ecc-garan-section__title {
    font-size: 1.25rem;
    margin: 0 0 1rem;
}

.ecc-garan-label--nested > summary {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.ecc-garan-label__hint {
    font-size: 0.875rem;
    text-decoration: underline;
}

/* Direkt unter dem Kaufformular eingefügt */
form[id^="buy_form"] + .ecc-garan-label {
    margin-top: 1rem;
}

/* Im Kaufbereich: eigene Zeile unterhalb des Warenkorb-Buttons,
   auch wenn die Elternzeile ein Flex-Container ist. */
form[id^="buy_form"] .ecc-garan-label {
    flex-basis: 100%;
    margin-top: 1rem;
    min-width: 100%;
}

/* Checkout: GARAN-Kompaktlabels der Bestellpositionen oberhalb des
   Bestellbuttons, klar abgegrenzt. */
.ecc-garan-checkout {
    border-top: 1px solid #e2e8f0;
    margin: 1.5rem 0 1rem;
    padding-top: 1rem;
}

.ecc-garan-checkout__item + .ecc-garan-checkout__item {
    margin-top: 1rem;
}

/* Checkout kompakt: kleinere Abstände, kleineres Kompaktlabel. */
.ecc-garan-checkout {
    margin: 0.75rem 0 0.5rem;
    padding-top: 0.75rem;
}

.ecc-garan-checkout .ecc-garan-label {
    margin-block: 0;
}

.ecc-garan-checkout .ecc-garan-label--nested > summary {
    gap: 0.25rem 0.75rem;
}

.ecc-garan-checkout .ecc-garan-label--nested > summary img {
    max-width: 240px;
}

.ecc-garan-checkout .ecc-garan-label__hint {
    font-size: 0.8125rem;
}

.ecc-garan-checkout__item + .ecc-garan-checkout__item {
    margin-top: 0.5rem;
}
