/* Theme Plus: Produktsicherheit (GPSR) auf der Artikelseite.
   Zeile „Hersteller & Produktsicherheit“ in der Infokarte der Kaufbox (oder als eigene Karte unter den Reitern) und das
   Seitenfenster mit Hersteller, verantwortlicher Person in der EU, Sicherheitshinweisen, Dokumenten und Produkt. */

.bmx-gpsr-open,
.bmx-gpsr {
    --bmx-gpsr-ink: #1f2328;
    --bmx-gpsr-muted: #545a63;
    --bmx-gpsr-line: #e0e3e8;
    --bmx-gpsr-soft: #f6f7f9;
    --bmx-gpsr-link: var(--bmx-brand-accent-strong, #0077a3);
    /* Werk (Hersteller) statt des Schilds: das Schild steht schon bei der Gewährleistung darunter */
    --bmx-gpsr-ic-maker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 20.25h17'/%3E%3Cpath d='M4.75 20.25v-9.5l4.5 2.75v-2.75l4.5 2.75v-2.75l4.5 2.75'/%3E%3Cpath d='M18.25 13.5V4.75h2v15.5'/%3E%3Cpath d='M7.5 17h1.5M11.25 17h1.5M15 17h1.5'/%3E%3C/svg%3E");
    --bmx-gpsr-ic-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* ---------- Zeile ---------- */
#bmx-pb .bmx-pb__rows li.bmx-pb__row--gpsr {
    --bmx-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 20.25h17'/%3E%3Cpath d='M4.75 20.25v-9.5l4.5 2.75v-2.75l4.5 2.75v-2.75l4.5 2.75'/%3E%3Cpath d='M18.25 13.5V4.75h2v15.5'/%3E%3Cpath d='M7.5 17h1.5M11.25 17h1.5M15 17h1.5'/%3E%3C/svg%3E");
    display: block;
    min-height: 0;
    padding: 0 !important;
}

/* Handy (kompakte Infokarte): Symbol so groß und an derselben Stelle wie bei Artikel-Nr. und Versandart (20 Pixel,
   10 Pixel vom Rand), vorher 22 Pixel und 2 Pixel weiter rechts */
@media screen and (max-width: 767px) {
    #bmx-pb .bmx-pb__rows li.bmx-pb__row--gpsr {
        --bmx-icl: 10px;
    }

    #bmx-pb .bmx-pb__rows li.bmx-pb__row--gpsr::before {
        width: 20px;
        height: 20px;
        margin-top: -10px;
    }

    #bmx-pb .bmx-pb__rows li.bmx-pb__row--gpsr .bmx-gpsr-open {
        padding-left: 40px;
    }
}

/* Symbol über der Fläche des Knopfs (beim Darüberfahren), Klicks gehen durch */
#bmx-pb .bmx-pb__rows li.bmx-pb__row--gpsr::before {
    z-index: 1;
    pointer-events: none;
}

.bmx-gpsr-open {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 8px 40px 8px calc(var(--bmx-icl, 14px) + 36px);
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--bmx-gpsr-ink);
    font: inherit;
    font-size: 14.5px;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    cursor: pointer;
    transition: background-color .15s;
}

.bmx-gpsr-open::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    background: var(--bmx-gpsr-muted);
    -webkit-mask: var(--bmx-gpsr-ic-chev) center / contain no-repeat;
    mask: var(--bmx-gpsr-ic-chev) center / contain no-repeat;
    transition: transform .15s;
}

.bmx-gpsr-open:hover {
    background: var(--bmx-gpsr-soft);
}

.bmx-gpsr-open:hover::after {
    transform: translateX(2px);
}

.bmx-gpsr-open:focus-visible {
    outline: 2px solid var(--bmx-gpsr-link);
    outline-offset: -2px;
}

.bmx-gpsr-open__t {
    font-weight: 600;
}

.bmx-gpsr-open__s {
    max-width: 100%;
    color: var(--bmx-gpsr-muted);
    font-size: 13px;
    overflow-wrap: break-word;
}

/* Als eigene Karte unter den Reitern (Artikel ohne Kaufbox) */
.bmx-gpsr-card {
    margin: 16px 0 24px;
}

.bmx-gpsr-open--card {
    --bmx-icl: 14px;
    border: 1px solid var(--bmx-gpsr-line);
    border-radius: 8px;
    background: #fff;
}

.bmx-gpsr-open--card::before {
    content: "";
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 14px;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    background: var(--bmx-gpsr-ink);
    -webkit-mask: var(--bmx-gpsr-ic-maker) center / contain no-repeat;
    mask: var(--bmx-gpsr-ic-maker) center / contain no-repeat;
}

/* ---------- Seitenfenster ---------- */
.bmx-gpsr {
    position: fixed;
    inset: 0;
    z-index: 10040;
    color: var(--bmx-gpsr-ink);
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
}

.bmx-gpsr[hidden] {
    display: none !important;
}

.bmx-gpsr__overlay {
    position: absolute;
    inset: 0;
    background: rgba(31, 35, 40, .45);
    opacity: 0;
    transition: opacity .25s ease;
}

.bmx-gpsr__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: min(440px, calc(100vw - 40px));
    background: #fff;
    box-shadow: -12px 0 40px rgba(31, 35, 40, .18);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.2, .7, .2, 1);
    outline: 0;
}

.bmx-gpsr.is--open .bmx-gpsr__overlay {
    opacity: 1;
}

.bmx-gpsr.is--open .bmx-gpsr__panel {
    transform: none;
}

.bmx-gpsr__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: none;
    padding: 14px 12px 14px 20px;
    border-bottom: 1px solid var(--bmx-gpsr-line);
}

.bmx-gpsr__title {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--bmx-gpsr-ink);
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.bmx-gpsr__close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--bmx-gpsr-ink);
    cursor: pointer;
}

.bmx-gpsr__close:hover {
    background: var(--bmx-gpsr-soft);
}

.bmx-gpsr__close:focus-visible {
    outline: 2px solid var(--bmx-gpsr-link);
    outline-offset: 1px;
}

.bmx-gpsr__close svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.bmx-gpsr__body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px 20px 28px;
    -webkit-overflow-scrolling: touch;
}

.bmx-gpsr__sec {
    padding: 16px 0;
    border-bottom: 1px solid #eceef1;
}

.bmx-gpsr__sec:last-child {
    border-bottom: 0;
}

.bmx-gpsr__h {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    color: var(--bmx-gpsr-muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bmx-gpsr__addr {
    display: flex;
    flex-direction: column;
    font-style: normal;
    overflow-wrap: anywhere;
}

.bmx-gpsr__company {
    font-weight: 700;
}

.bmx-gpsr__link,
.bmx-gpsr__legacy a {
    color: var(--bmx-gpsr-link);
    text-decoration: none;
}

.bmx-gpsr__link:hover,
.bmx-gpsr__legacy a:hover {
    text-decoration: underline;
}

.bmx-gpsr__legacy {
    overflow-wrap: anywhere;
}

.bmx-gpsr__legacy p {
    margin: 0 0 6px;
}

.bmx-gpsr__legacy p:last-child {
    margin-bottom: 0;
}

.bmx-gpsr__warn {
    margin: 0;
    padding: 10px 12px 10px 30px;
    border: 1px solid #f3dfa8;
    border-radius: 8px;
    background: #fff8e6;
    list-style: disc;
}

.bmx-gpsr__warn li {
    margin: 0 0 4px;
    padding: 0;
}

.bmx-gpsr__warn li:last-child {
    margin-bottom: 0;
}

.bmx-gpsr__docs {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bmx-gpsr__docs li {
    margin: 0 0 6px;
    padding: 0;
}

.bmx-gpsr__doc {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: var(--bmx-gpsr-link);
    text-decoration: none;
}

.bmx-gpsr__doc:hover .bmx-gpsr__docname {
    text-decoration: underline;
}

.bmx-gpsr__doctype {
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--bmx-gpsr-soft);
    color: var(--bmx-gpsr-muted);
    font-size: 11.5px;
    font-weight: 700;
}

.bmx-gpsr__product {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.bmx-gpsr__muted {
    color: var(--bmx-gpsr-muted);
    font-size: 14px;
}

/* Seite dahinter steht still */
html.bmx-gpsr-lock,
html.bmx-gpsr-lock body {
    overflow: hidden;
}

@media (max-width: 480px) {
    .bmx-gpsr__panel {
        width: calc(100vw - 24px);
    }

    .bmx-gpsr__head {
        padding-left: 16px;
    }

    .bmx-gpsr__body {
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bmx-gpsr__overlay,
    .bmx-gpsr__panel,
    .bmx-gpsr-open,
    .bmx-gpsr-open::after {
        transition: none;
    }
}

@media print {
    .bmx-gpsr-open::after {
        display: none;
    }
}
