/* Popups (Reiter „Popups“). Eigenes CSS je Popup folgt auf der Seite und überschreibt diese Werte. */
.mtx-popup {
    box-sizing: border-box;
    width: calc(100% - 2rem);
    max-width: 600px;
    max-height: calc(100% - 2rem);
    padding: 2.25rem 1.75rem 1.75rem;
    overflow: auto;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #212529;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
    text-align: left;
}

.mtx-popup::backdrop {
    background: rgba(0, 0, 0, .6);
}

.mtx-popup:not([open]) {
    display: none;
}

/* Browser ohne <dialog>-Unterstützung */
.mtx-popup--fallback {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 100000;
    margin: 0;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .6);
}

html.mtx-popup-open {
    overflow: hidden;
}

.mtx-popup__close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 1.75rem;
    line-height: 1;
    opacity: .6;
    cursor: pointer;
}

.mtx-popup__close:hover,
.mtx-popup__close:focus-visible {
    opacity: 1;
}

.mtx-popup__content > :first-child {
    margin-top: 0;
}

.mtx-popup__content > :last-child {
    margin-bottom: 0;
}

.mtx-popup__content img,
.mtx-popup__content video,
.mtx-popup__content iframe {
    max-width: 100%;
}

.mtx-popup__content img {
    height: auto;
}

/* Artikel im Popup */
.mtx-popup__content + .mtx-popup__product {
    margin-top: 1.25rem;
}

.mtx-popup__product--name {
    margin-bottom: 0;
}

.mtx-popup__product-name {
    font-weight: 700;
}

.mtx-popup__product--full {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.mtx-popup__product-image {
    flex: 0 0 40%;
    max-width: 40%;
}

.mtx-popup__product-image img {
    display: block;
    width: 100%;
    height: auto;
}

.mtx-popup__product-body {
    flex: 1 1 auto;
    min-width: 0;
}

.mtx-popup__product--full .mtx-popup__product-name {
    display: block;
    margin-bottom: .5rem;
    font-size: 1.15rem;
}

.mtx-popup__product-description {
    margin-bottom: .75rem;
}

.mtx-popup__product-description > :last-child {
    margin-bottom: 0;
}

.mtx-popup__product .mtx-focus__price {
    margin-bottom: .75rem;
}

.mtx-popup__product .mtx-focus__price-current {
    font-size: 1.5rem;
}

.mtx-popup__product-button i {
    margin: 0 0 0 .25rem;
}

@media (max-width: 575.98px) {
    .mtx-popup__product--full {
        flex-direction: column;
    }

    .mtx-popup__product-image {
        flex-basis: auto;
        max-width: 100%;
        align-self: center;
    }
}
