#mss2-shop {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.mss2-frame {
    width: min(100vw, 430px);
    aspect-ratio: 9 / 16;
    max-height: 100vh;
    background: #fff;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    font-family: Tahoma, Arial, sans-serif;
}

.mss2-slider {
    height: 100%;
    display: flex;
    transition: transform .35s ease;
}

.mss2-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.mss2-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mss2-placeholder {
    height: 100%;
    background: #500000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    font-size: 22px;
}

.mss2-global-nav {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(120,120,120,.55);
    color: #fff;
    font-size: 24px;
    line-height: 34px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    z-index: 50;
    transition: background .2s ease, transform .2s ease;
}

.mss2-global-nav:hover {
    background: rgba(80,80,80,.85);
    transform: translateY(-50%) scale(1.06);
}

.mss2-prev { left: 10px; }
.mss2-next { right: 10px; }

/* Slidepfeile können pro Slide deaktiviert werden */
#mss2-shop.mss2-hide-nav .mss2-global-nav {
    display: none;
}


.mss2-mini-cart {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 36px;
    background: rgba(255,255,255,.94);
    color: #500000;
    padding: 0;
    z-index: 45;
    border: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.mss2-mini-cart:hover {
    background: rgba(255,255,255,1);
}

.mss2-cart-icon {
    width: 19px;
    height: 19px;
    fill: currentColor;
    display: block;
}

#mss2-mini-count {
    min-width: 12px;
    font-size: 11px;
    line-height: 1;
    font-weight: bold;
    color: #500000;
    text-align: center;
}

.mss2-btn {
    background: #500000;
    color: #fff;
    border: none;
    border-radius: 12px;
    height: 38px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
}

.mss2-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.mss2-product-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 20%;
    background: rgba(255,255,255,.95);
    padding: 10px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 72px 1fr 1fr;
    gap: 8px;
    align-items: center;
    z-index: 30;
}

.mss2-opening-slide .mss2-product-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mss2-qty {
    height: 38px;
    text-align: center;
    font-size: 17px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #bbb;
    background: #fff;
}

.mss2-opening-text {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 30%;
    background: rgba(255,255,255,.92);
    color: #222;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.35;
    max-height: 45%;
    overflow-y: auto;
}

.mss2-cart-inner,
.mss2-address-inner,
.mss2-content-inner {
    height: 100%;
    padding: 13px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.mss2-cart-inner h2,
.mss2-address-inner h2,
.mss2-content-inner h2 {
    margin: 0 0 6px 0;
    color: #500000;
    font-size: 19px;
    line-height: 1.05;
}

.mss2-cart-head {
    display: grid;
    grid-template-columns: 1fr 70px 70px 22px;
    gap: 5px;
    font-size: 10px;
    line-height: 1;
    color: #666;
    padding-bottom: 3px;
    border-bottom: 1px solid #ddd;
}

#mss2-cart-list {
    height: 295px;
    max-height: 295px;
    overflow-y: auto;
    border-bottom: 1px solid #ddd;
    padding: 2px 0;
    flex-shrink: 0;
}

.mss2-empty-cart {
    font-size: 12px;
    margin: 4px 0;
}

.mss2-cart-item {
    display: grid;
    grid-template-columns: 1fr 70px 70px 22px;
    gap: 5px;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 3px 0;
    font-size: 10.8px;
    line-height: 1.1;
    min-height: 22px;
}

.mss2-cart-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mss2-cart-qty-control {
    display: grid;
    grid-template-columns: 20px 24px 20px;
    gap: 2px;
    align-items: center;
    justify-content: center;
}

.mss2-qty-btn {
    width: 20px;
    height: 22px;
    border: none;
    border-radius: 7px;
    background: #500000;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.mss2-cart-qty-number {
    display: block;
    text-align: center;
    font-size: 11px;
    line-height: 22px;
    height: 22px;
    border: 1px solid #bbb;
    border-radius: 7px;
    background: #fff;
}

.mss2-cart-price {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.mss2-remove {
    background: #ddd;
    border: none;
    border-radius: 8px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#mss2-shipping-options {
    width: 100%;
    box-sizing: border-box;
    height: 31px;
    padding: 5px 6px;
    font-size: 12px;
    border: 1px solid #bbb;
    border-radius: 9px;
    margin: 7px 0;
    flex-shrink: 0;
    background: #fff;
}

.mss2-sum-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    line-height: 1.15;
    margin-bottom: 3px;
    font-variant-numeric: tabular-nums;
}

.mss2-total {
    font-size: 14px;
    font-weight: bold;
    color: #500000;
    margin-bottom: 8px;
}

#mss2-address-button {
    margin-top: auto;
}

.mss2-address-form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mss2-address-form input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 7px;
    padding: 8px;
    font-size: 13px;
    border: 1px solid #bbb;
    border-radius: 9px;
    background: #fff;
}

.mss2-check {
    display: block;
    font-size: 10.5px;
    line-height: 1.15;
    margin-bottom: 5px;
}

.mss2-check input {
    width: auto;
    margin-right: 4px;
}

#mss2-submit-button {
    margin-top: 4px;
}

#mss2-message {
    font-size: 11px;
    color: #500000;
    margin-top: 5px;
}

.mss2-content-body {
    flex: 1;
    overflow-y: auto;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 8px 4px 8px 0;
    font-size: 12px;
    line-height: 1.4;
}

.mss2-content-body p { margin: 0 0 8px 0; }
.mss2-content-body h1,
.mss2-content-body h2,
.mss2-content-body h3 {
    color: #500000;
    font-size: 14px;
    margin: 10px 0 5px;
}
.mss2-content-body ul,
.mss2-content-body ol {
    margin: 0 0 8px 18px;
    padding: 0;
}

.mss2-content-nav {
    margin-top: 10px;
    flex-shrink: 0;
}

@media (max-height: 740px) {
    .mss2-cart-inner,
    .mss2-address-inner,
    .mss2-content-inner { padding: 10px; }
    #mss2-cart-list { height: 250px; max-height: 250px; }
    .mss2-address-form input { padding: 6px; font-size: 12px; margin-bottom: 5px; }
    .mss2-check { font-size: 9.5px; margin-bottom: 3px; }
    .mss2-btn { height: 34px; font-size: 13px; }
}

.mss2-cart-product-name {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mss2-cart-unit-price {
    display: block;
    font-size: 9.4px;
    line-height: 1.15;
    color: #666;
    margin-top: 1px;
    white-space: normal;
}

.mss2-cart-tax-note {
    color: #777;
}

/* MSS2.1 2.0.4 layout refinements */
.mss2-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 16px;
    line-height: 16px;
    padding: 0 8px;
    box-sizing: border-box;
    background: rgba(255,255,255,.9);
    color: #555;
    font-size: 9px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 80;
}

.mss2-product-controls {
    bottom: 16px;
    height: calc(20% - 16px);
    min-height: 0;
    grid-template-columns: 82px 1fr 82px;
    justify-content: center;
    align-items: center;
}

.mss2-product-controls-add .mss2-qty {
    grid-column: 1;
}

.mss2-add-button {
    grid-column: 2;
    justify-self: center;
    width: min(100%, 190px);
    height: 44px;
    border: none;
    border-radius: 999px;
    background: #500000;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
}

.mss2-add-button:hover {
    filter: brightness(1.08);
}

.mss2-add-icon {
    font-size: 22px;
    line-height: 1;
    margin-top: -1px;
}

.mss2-add-text {
    font-weight: 600;
}

.mss2-cart-inner {
    position: relative;
    display: block;
    padding: 13px 13px calc(20% + 16px) 13px;
}

.mss2-cart-top {
    height: calc(80% - 16px);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#mss2-cart-list {
    flex: 1;
    height: auto;
    max-height: none;
    overflow-y: auto;
    border-bottom: 1px solid #ddd;
}

.mss2-cart-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    height: calc(20% - 16px);
    box-sizing: border-box;
    padding: 7px 13px 8px;
    background: rgba(255,255,255,.97);
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mss2-cart-bottom #mss2-shipping-options {
    height: 27px;
    margin: 0 0 4px;
    font-size: 11px;
}

.mss2-cart-bottom .mss2-sum-row {
    font-size: 11px;
    margin-bottom: 1px;
}

.mss2-cart-bottom .mss2-total {
    font-size: 13px;
    margin-bottom: 4px;
}

#mss2-address-button {
    margin-top: 0;
    height: 32px;
    font-size: 13px;
}

.mss2-address-inner {
    position: relative;
    display: block;
    padding: 13px 13px calc(20% + 16px) 13px;
}

.mss2-address-top {
    height: calc(80% - 16px);
    overflow-y: auto;
    min-height: 0;
    padding-bottom: 8px;
}

.mss2-address-intro {
    font-size: 12px;
    line-height: 1.35;
    background: #f7f2f2;
    border-left: 3px solid #500000;
    padding: 8px 10px;
    border-radius: 10px;
    margin: 0 0 9px;
    color: #222;
}

.mss2-address-intro p {
    margin: 0 0 6px;
}

.mss2-address-intro p:last-child {
    margin-bottom: 0;
}

.mss2-address-form {
    display: block;
}

.mss2-address-form input {
    margin-bottom: 6px;
    padding: 7px;
    font-size: 12px;
}

.mss2-address-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    height: calc(20% - 16px);
    box-sizing: border-box;
    padding: 10px 13px;
    background: rgba(255,255,255,.97);
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mss2-submit-button {
    margin-top: 0;
    height: 44px;
    font-size: 14px;
    border-radius: 999px;
}

@media (max-height: 740px) {
    .mss2-cart-inner,
    .mss2-address-inner {
        padding: 10px 10px calc(20% + 16px) 10px;
    }

    .mss2-cart-bottom,
    .mss2-address-bottom {
        padding-left: 10px;
        padding-right: 10px;
    }

    #mss2-cart-list {
        height: auto;
        max-height: none;
    }

    .mss2-address-intro {
        font-size: 11px;
        padding: 7px 9px;
        margin-bottom: 7px;
    }
}

/* MSS2.1 2.0.5 layout refinements */
.mss2-product-slide .mss2-product-controls {
    bottom: 16px;
    height: calc(15% - 16px);
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 8px 13px;
    justify-content: center;
    align-items: center;
}

.mss2-product-slide .mss2-add-button {
    grid-column: 1;
    width: min(100%, 220px);
    height: 42px;
}

.mss2-cart-inner {
    padding: 13px 13px calc(25% + 16px) 13px;
}

.mss2-cart-top {
    height: calc(75% - 16px);
}

.mss2-cart-bottom {
    height: calc(25% - 16px);
    padding: 9px 13px 10px;
}

.mss2-address-inner {
    padding: 13px 13px calc(25% + 16px) 13px;
}

.mss2-address-top {
    height: calc(75% - 16px);
}

.mss2-address-bottom {
    height: calc(25% - 16px);
    padding: 10px 13px;
}

.mss2-content-nav {
    display: none;
}

.mss2-content-inner {
    padding-bottom: 22px;
}

@media (max-height: 740px) {
    .mss2-cart-inner,
    .mss2-address-inner {
        padding: 10px 10px calc(25% + 16px) 10px;
    }

    .mss2-cart-top,
    .mss2-address-top {
        height: calc(75% - 16px);
    }

    .mss2-cart-bottom,
    .mss2-address-bottom {
        height: calc(25% - 16px);
        padding-left: 10px;
        padding-right: 10px;
    }

    .mss2-product-slide .mss2-product-controls {
        height: calc(15% - 16px);
        padding-left: 10px;
        padding-right: 10px;
    }
}


/* MSS2.1 2.0.6: Warenkorb-Button und Preisbereich */
.mss2-cart-bottom {
    justify-content: flex-start;
    gap: 3px;
    padding-top: 7px;
    padding-bottom: 9px;
}

.mss2-cart-bottom #mss2-shipping-options {
    height: 26px;
    margin: 0 0 2px;
}

.mss2-cart-bottom .mss2-sum-row {
    font-size: 10.8px;
    line-height: 1.05;
    margin-bottom: 0;
}

.mss2-cart-bottom .mss2-total {
    font-size: 12.6px;
    line-height: 1.1;
    margin-bottom: 3px;
}

#mss2-address-button {
    height: 38px;
    min-height: 38px;
    font-size: 14px;
    line-height: 1.1;
    margin-top: auto;
    padding: 0 10px;
}

@media (max-height: 740px) {
    .mss2-cart-bottom {
        gap: 2px;
        padding-top: 6px;
        padding-bottom: 7px;
    }

    .mss2-cart-bottom #mss2-shipping-options {
        height: 25px;
    }

    .mss2-cart-bottom .mss2-sum-row {
        font-size: 10.4px;
    }

    .mss2-cart-bottom .mss2-total {
        font-size: 12px;
        margin-bottom: 2px;
    }

    #mss2-address-button {
        height: 34px;
        min-height: 34px;
        font-size: 13px;
    }
}

/* MSS2.1.7 Steuer- und Zahlungsstatus */
.mss2-tax-lines {
    font-size: 10px;
    line-height: 1.15;
    color: #555;
    margin: 2px 0 4px;
    min-height: 12px;
}


/* MSS2.1 2.0.8: Einheitliche Button-Optik und gleiche untere Ausrichtung */
:root {
    --mss2-footer-height: 16px;
    --mss2-bottom-gap: 12px;
    --mss2-button-height: 42px;
}

.mss2-add-button,
#mss2-address-button,
#mss2-submit-button {
    height: var(--mss2-button-height);
    min-height: var(--mss2-button-height);
    max-height: var(--mss2-button-height);
    border: none;
    border-radius: 999px;
    background: #500000;
    color: #fff;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
}

.mss2-add-button:hover,
#mss2-address-button:hover,
#mss2-submit-button:hover {
    filter: brightness(1.08);
}

.mss2-product-slide .mss2-product-controls {
    bottom: var(--mss2-footer-height);
    height: calc(15% - var(--mss2-footer-height));
    min-height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 8px 13px var(--mss2-bottom-gap);
    box-sizing: border-box;
}

.mss2-product-slide .mss2-add-button {
    width: min(100%, 220px);
}

.mss2-cart-bottom {
    bottom: var(--mss2-footer-height);
    height: calc(25% - var(--mss2-footer-height));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
    padding: 7px 13px var(--mss2-bottom-gap);
    box-sizing: border-box;
}

.mss2-cart-bottom #mss2-shipping-options {
    height: 25px;
    min-height: 25px;
    margin: 0 0 2px;
}

.mss2-cart-bottom .mss2-sum-row {
    font-size: 10.6px;
    line-height: 1.05;
    margin-bottom: 0;
}

.mss2-cart-bottom .mss2-total {
    font-size: 12.4px;
    line-height: 1.05;
    margin-bottom: 1px;
}

.mss2-cart-bottom .mss2-tax-lines {
    font-size: 9.4px;
    line-height: 1.05;
    margin: 1px 0 2px;
    min-height: 0;
}

#mss2-address-button {
    width: 100%;
    margin-top: auto;
}

.mss2-address-bottom {
    bottom: var(--mss2-footer-height);
    height: calc(25% - var(--mss2-footer-height));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 7px;
    padding: 8px 13px var(--mss2-bottom-gap);
    box-sizing: border-box;
}

#mss2-submit-button {
    width: 100%;
    margin: 0;
    flex-shrink: 0;
}

@media (max-height: 740px) {
    :root {
        --mss2-bottom-gap: 9px;
        --mss2-button-height: 38px;
    }

    .mss2-add-button,
    #mss2-address-button,
    #mss2-submit-button {
        font-size: 13px;
    }

    .mss2-product-slide .mss2-product-controls,
    .mss2-cart-bottom,
    .mss2-address-bottom {
        padding-left: 10px;
        padding-right: 10px;
    }

    .mss2-cart-bottom {
        gap: 1px;
        padding-top: 6px;
    }

    .mss2-cart-bottom .mss2-sum-row {
        font-size: 10.2px;
    }

    .mss2-cart-bottom .mss2-total {
        font-size: 11.8px;
    }

    .mss2-cart-bottom .mss2-tax-lines {
        font-size: 8.9px;
        line-height: 1;
    }

    .mss2-address-bottom {
        gap: 5px;
        padding-top: 6px;
    }
}

.mss2-payment-title {
    color: #500000;
    font-weight: 700;
    margin-bottom: 3px;
}

.mss2-payment-options-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.mss2-payment-option {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    color: #222;
}

.mss2-payment-option input {
    width: auto;
    margin: 0;
}

.mss2-cash-note {
    margin-top: 3px;
    color: #666;
    font-size: 9.2px;
    line-height: 1.1;
}

/* Widerrufsformular */
.mss2-withdrawal-slide {
    background: #fff;
}

.mss2-withdrawal-inner {
    height: 100%;
    padding: 14px 14px calc(25% + 18px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.mss2-withdrawal-top {
    flex: 1;
    overflow-y: auto;
    padding: 0 2px;
    box-sizing: border-box;
}

.mss2-withdrawal-top h2 {
    margin: 0 0 8px;
    color: #500000;
    font-size: 19px;
    line-height: 1.1;
}

.mss2-withdrawal-intro {
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 10px;
}

.mss2-withdrawal-legal {
    font-size: 11.4px;
    line-height: 1.35;
    color: #222;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 8px 2px;
    margin-bottom: 10px;
}

.mss2-withdrawal-legal p {
    margin: 0 0 7px 0;
}

.mss2-withdrawal-legal h1,
.mss2-withdrawal-legal h2,
.mss2-withdrawal-legal h3 {
    color: #500000;
    font-size: 13px;
    margin: 9px 0 5px;
}

.mss2-secondary-btn {
    width: 100%;
    min-height: 36px;
    border: 1px solid #500000;
    border-radius: 999px;
    background: #fff;
    color: #500000;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
}

.mss2-withdrawal-form input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
    padding: 8px;
    font-size: 12px;
    border: 1px solid #bbb;
    border-radius: 10px;
    background: #fff;
}

#mss2-withdrawal-message {
    min-height: 18px;
    font-size: 11px;
    line-height: 1.25;
    color: #500000;
}

.mss2-withdrawal-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--mss2-footer-height, 16px);
    height: calc(25% - var(--mss2-footer-height, 16px));
    padding: 10px 13px var(--mss2-bottom-gap, 12px);
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(255,255,255,.96);
}

#mss2-withdrawal-submit {
    height: var(--mss2-button-height, 42px);
    min-height: var(--mss2-button-height, 42px);
    max-height: var(--mss2-button-height, 42px);
    border-radius: 999px;
    width: 100%;
}

.mss2-remove {
    line-height: 1;
}

/* Widerrufsformular direkt oberhalb des Buttons */
.mss2-withdrawal-inner {
    padding-bottom: calc(25% + 118px);
}

.mss2-withdrawal-top {
    padding-bottom: 0;
}

.mss2-withdrawal-form {
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: calc(
        var(--mss2-footer-height, 16px)
        + var(--mss2-bottom-gap, 12px)
        + var(--mss2-button-height, 42px)
        + 10px
    );
    z-index: 25;
    background: rgba(255,255,255,.96);
    padding: 8px 0 0;
    box-sizing: border-box;
}

.mss2-withdrawal-form input {
    height: 34px;
    margin-bottom: 6px;
    padding: 7px 9px;
    font-size: 12px;
}

#mss2-withdrawal-message {
    min-height: 14px;
    max-height: 28px;
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.2;
    margin-top: 0;
}

.mss2-withdrawal-bottom {
    align-items: flex-end;
}

@media (max-height: 740px) {
    .mss2-withdrawal-inner {
        padding-bottom: calc(25% + 100px);
    }

    .mss2-withdrawal-form {
        left: 10px;
        right: 10px;
        bottom: calc(
            var(--mss2-footer-height, 16px)
            + var(--mss2-bottom-gap, 9px)
            + var(--mss2-button-height, 38px)
            + 8px
        );
        padding-top: 6px;
    }

    .mss2-withdrawal-form input {
        height: 31px;
        margin-bottom: 5px;
        font-size: 11.5px;
    }
}

/* 2.0.19: Widerrufsformular mit Überschrift und Anweisung direkt über dem Button */
.mss2-withdrawal-inner {
    padding-bottom: calc(25% + 168px);
}

.mss2-withdrawal-form {
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: calc(
        var(--mss2-footer-height, 16px)
        + var(--mss2-bottom-gap, 12px)
        + var(--mss2-button-height, 42px)
        + 10px
    );
    z-index: 25;
    background: rgba(255,255,255,.97);
    padding: 9px 0 0;
    box-sizing: border-box;
}

.mss2-withdrawal-form h3 {
    margin: 0 0 5px 0;
    color: #500000;
    font-size: 13px;
    line-height: 1.1;
    text-align: center;
}

.mss2-withdrawal-form .mss2-withdrawal-intro {
    margin: 0 0 7px 0;
    font-size: 10.5px;
    line-height: 1.25;
    text-align: center;
    color: #333;
}

.mss2-withdrawal-form .mss2-withdrawal-intro p {
    margin: 0;
}

.mss2-withdrawal-form input {
    height: 32px;
    margin-bottom: 5px;
    padding: 6px 9px;
    font-size: 11.5px;
}

#mss2-withdrawal-message {
    min-height: 13px;
    max-height: 26px;
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.2;
    margin-top: 0;
}

@media (max-height: 740px) {
    .mss2-withdrawal-inner {
        padding-bottom: calc(25% + 145px);
    }

    .mss2-withdrawal-form {
        left: 10px;
        right: 10px;
        bottom: calc(
            var(--mss2-footer-height, 16px)
            + var(--mss2-bottom-gap, 9px)
            + var(--mss2-button-height, 38px)
            + 8px
        );
    }

    .mss2-withdrawal-form h3 {
        font-size: 12.5px;
        margin-bottom: 4px;
    }

    .mss2-withdrawal-form .mss2-withdrawal-intro {
        font-size: 10px;
        margin-bottom: 5px;
    }

    .mss2-withdrawal-form input {
        height: 29px;
        margin-bottom: 4px;
        font-size: 11px;
    }
}


/* MSS2.1 2.0.20: überflüssige horizontale Linie im Warenkorb entfernen */
#mss2-cart-list {
    border-bottom: none !important;
}

.mss2-cart-bottom {
    border-top: none !important;
}

/* MSS2.1 2.1.1: Adresseingabe wie Inhaltsseiten, ohne hervorgehobenen Hinweisblock */
.mss2-address-inner h2,
.mss2-content-inner h2,
.mss2-cart-inner h2 {
    font-weight: 600;
}

.mss2-section-line {
    height: 1px;
    background: #ddd;
    margin: 0 0 8px 0;
}

.mss2-address-intro {
    background: transparent !important;
    border-left: none !important;
    border-radius: 0 !important;
    padding: 0 4px 8px 0 !important;
    margin: 0 !important;
    color: #222;
    font-size: 12px;
    line-height: 1.4;
}

.mss2-address-intro p {
    margin: 0 0 8px 0;
}

.mss2-address-intro p:last-child {
    margin-bottom: 0;
}


/* MSS2.1 2.1.2: Widerrufsbelehrung-Überschrift ebenfalls 600 */
.mss2-withdrawal-top h2,
.mss2-withdrawal-form h3 {
    font-weight: 600;
}



/* MSS2.1 2.1.7: schlankes Bestellportal, einheitliche 10%-Buttonzone */
:root {
    --mss2-footer-height: 16px;
    --mss2-bottom-gap: 12px;
    --mss2-button-height: 42px;
    --mss2-button-zone: 10%;
    --mss2-action-bottom: calc(var(--mss2-footer-height) + var(--mss2-bottom-gap));
}

.mss2-btn,
.mss2-add-button,
#mss2-address-button,
#mss2-submit-button,
#mss2-withdrawal-submit,
.mss2-content-link-button {
    height: var(--mss2-button-height);
    min-height: var(--mss2-button-height);
    max-height: var(--mss2-button-height);
    border: none;
    border-radius: 999px;
    background: #500000;
    color: #fff;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
    text-decoration: none;
}

#mss2-submit-button.mss2-success {
    background: #1f7a3a;
}

.mss2-opening-slide .mss2-product-controls,
.mss2-product-slide .mss2-product-controls,
.mss2-cart-bottom,
.mss2-address-bottom,
.mss2-content-bottom,
.mss2-withdrawal-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--mss2-footer-height);
    height: calc(var(--mss2-button-zone) - var(--mss2-footer-height));
    min-height: 0;
    padding: 0 13px var(--mss2-bottom-gap);
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(255,255,255,.96);
    border-top: none !important;
    z-index: 31;
}

.mss2-opening-slide .mss2-product-controls .mss2-btn,
.mss2-product-slide .mss2-product-controls .mss2-add-button,
.mss2-cart-bottom .mss2-btn,
.mss2-address-bottom .mss2-btn,
.mss2-content-bottom .mss2-btn,
.mss2-withdrawal-bottom .mss2-btn,
.mss2-content-link-button {
    width: min(100%, 260px);
    margin: 0 auto;
}

.mss2-cart-inner,
.mss2-address-inner,
.mss2-content-inner,
.mss2-withdrawal-inner {
    position: relative;
    height: 100%;
    padding: 13px 13px calc(var(--mss2-button-zone) + var(--mss2-footer-height) + 10px);
    box-sizing: border-box;
    display: block;
    background: #fff;
}

.mss2-content-slide:not(.mss2-content-slide-has-button) .mss2-content-inner {
    padding-bottom: calc(var(--mss2-footer-height) + 10px);
}

.mss2-cart-top,
.mss2-address-top,
.mss2-withdrawal-top {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 8px;
    box-sizing: border-box;
}

.mss2-cart-summary {
    margin-top: 7px;
    padding: 7px 0 0;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.mss2-cart-summary #mss2-shipping-options {
    height: 30px;
    margin: 0 0 6px;
    font-size: 12px;
}

.mss2-cart-summary .mss2-sum-row {
    font-size: 11.5px;
    line-height: 1.15;
    margin-bottom: 2px;
}

.mss2-cart-summary .mss2-total {
    font-size: 13.2px;
    margin-bottom: 3px;
}

.mss2-cart-summary .mss2-tax-lines {
    font-size: 9.5px;
    line-height: 1.1;
    color: #555;
    margin-top: 2px;
}

#mss2-cart-list {
    flex: 1;
    height: auto;
    max-height: none;
    overflow-y: auto;
    border-bottom: none !important;
}

.mss2-cash-note {
    display: none !important;
}

.mss2-address-intro {
    background: transparent !important;
    border-left: none !important;
    border-radius: 0 !important;
    padding: 0 4px 8px 0 !important;
    margin: 0 !important;
    color: #222;
    font-size: 12px;
    line-height: 1.4;
}

.mss2-cart-inner h2,
.mss2-address-inner h2,
.mss2-content-inner h2,
.mss2-withdrawal-top h2 {
    margin-bottom: 10px;
    padding-right: 54px;
    font-weight: 600;
}

.mss2-section-line {
    margin-right: 54px;
    margin-bottom: 11px;
}

.mss2-cart-head {
    margin-right: 54px;
}

.mss2-content-body {
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
}

.mss2-content-slide-has-button .mss2-content-body {
    max-height: calc(100% - var(--mss2-button-zone));
}

.mss2-withdrawal-inner {
    padding-bottom: calc(var(--mss2-button-zone) + 150px);
}

.mss2-withdrawal-form {
    bottom: calc(var(--mss2-footer-height) + var(--mss2-bottom-gap) + var(--mss2-button-height) + 10px);
}

@media (max-height: 740px) {
    :root {
        --mss2-bottom-gap: 9px;
        --mss2-button-height: 38px;
    }

    .mss2-opening-slide .mss2-product-controls,
    .mss2-product-slide .mss2-product-controls,
    .mss2-cart-bottom,
    .mss2-address-bottom,
    .mss2-content-bottom,
    .mss2-withdrawal-bottom {
        padding-left: 10px;
        padding-right: 10px;
    }

    .mss2-cart-summary #mss2-shipping-options {
        height: 27px;
    }

    .mss2-cart-summary .mss2-sum-row {
        font-size: 10.8px;
    }

    .mss2-cart-summary .mss2-tax-lines {
        font-size: 8.9px;
    }
}

/* MSS2.1 2.1.7b: stabile Platzaufteilung für Warenkorb und Inhaltsseiten */
.mss2-content-inner {
    display: flex;
    flex-direction: column;
}

.mss2-content-body {
    flex: 1;
    height: auto;
    max-height: none;
    min-height: 0;
}

.mss2-cart-inner {
    padding-bottom: calc(var(--mss2-button-zone) + var(--mss2-footer-height) + 128px);
}

.mss2-cart-top {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.mss2-cart-summary {
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: calc(var(--mss2-footer-height) + var(--mss2-button-zone) + 8px);
    background: rgba(255,255,255,.98);
    z-index: 30;
}

.mss2-cart-summary #mss2-shipping-options {
    width: 100%;
    box-sizing: border-box;
}

@media (max-height: 740px) {
    .mss2-cart-inner {
        padding-bottom: calc(var(--mss2-button-zone) + var(--mss2-footer-height) + 116px);
    }

    .mss2-cart-summary {
        left: 10px;
        right: 10px;
        bottom: calc(var(--mss2-footer-height) + var(--mss2-button-zone) + 6px);
    }
}


/* MSS2.1 2.1.7: Kopfbereich von Inhaltsseiten vom Warenkorb-Symbol freihalten */
.mss2-content-inner h2 {
    padding-right: 64px;
    max-width: calc(100% - 64px);
    margin-bottom: 12px;
}

.mss2-content-body {
    border-top: none !important;
    position: relative;
    padding-top: 14px;
}

.mss2-content-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 64px;
    height: 1px;
    background: #ddd;
}

/* MSS2.x 2.2.0-x5: Grafik-Slide statt Opening, automatischer Startslide und kompakte Sortierpfeile */
.mss2-startscreen {
    position: absolute;
    inset: 0;
    z-index: 120;
    background: #fff;
    overflow: hidden;
    transition: opacity .4s ease, visibility .4s ease;
}

.mss2-startscreen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.mss2-startscreen-text {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 30%;
    background: rgba(255,255,255,.92);
    color: #222;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.35;
    max-height: 45%;
    overflow-y: auto;
}

.mss2-startscreen-text p {
    margin: 0 0 8px;
}

.mss2-startscreen-hidden {
    opacity: 0;
    visibility: hidden;
}

.mss2-graphic-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.mss2-graphic-text {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 30%;
    background: rgba(255,255,255,.92);
    color: #222;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.35;
    max-height: 45%;
    overflow-y: auto;
    z-index: 20;
}

.mss2-graphic-text p {
    margin: 0 0 8px;
}

.mss2-graphic-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--mss2-footer-height);
    height: calc(var(--mss2-button-zone) - var(--mss2-footer-height));
    min-height: 0;
    padding: 0 13px var(--mss2-bottom-gap);
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(255,255,255,.96);
    border-top: none !important;
    z-index: 31;
}

.mss2-graphic-bottom .mss2-btn,
.mss2-slide-action-button {
    width: min(100%, 260px);
    margin: 0 auto;
}

@media (max-height: 740px) {
    .mss2-graphic-bottom {
        padding-left: 10px;
        padding-right: 10px;
    }
}


/* MSS2.x 2.2.0-x6: Slidepfeile unten neben dem Hauptbutton */
.mss2-global-nav {
    top: auto !important;
    bottom: calc(var(--mss2-footer-height, 16px) + var(--mss2-bottom-gap, 12px)) !important;
    transform: none !important;
    width: var(--mss2-button-height, 42px) !important;
    height: var(--mss2-button-height, 42px) !important;
    min-width: var(--mss2-button-height, 42px) !important;
    min-height: var(--mss2-button-height, 42px) !important;
    border-radius: 999px !important;
    background: rgba(80,80,80,.72) !important;
    color: #fff !important;
    font-size: 24px !important;
    line-height: var(--mss2-button-height, 42px) !important;
    z-index: 80 !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
}

.mss2-global-nav:hover {
    background: rgba(60,60,60,.9) !important;
    transform: none !important;
}

.mss2-prev {
    left: 13px !important;
}

.mss2-next {
    right: 13px !important;
}

.mss2-product-slide .mss2-product-controls .mss2-add-button,
.mss2-cart-bottom .mss2-btn,
.mss2-address-bottom .mss2-btn,
.mss2-content-bottom .mss2-btn,
.mss2-withdrawal-bottom .mss2-btn,
.mss2-graphic-bottom .mss2-btn,
.mss2-slide-action-button {
    width: min(calc(100% - 116px), 240px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.mss2-product-slide .mss2-product-controls,
.mss2-cart-bottom,
.mss2-address-bottom,
.mss2-content-bottom,
.mss2-withdrawal-bottom,
.mss2-graphic-bottom {
    padding-left: 13px !important;
    padding-right: 13px !important;
}

.mss2-content-slide:not(.mss2-content-slide-has-button) .mss2-content-inner {
    padding-bottom: calc(var(--mss2-button-zone) + var(--mss2-footer-height) + 10px) !important;
}

@media (max-height: 740px) {
    .mss2-global-nav {
        bottom: calc(var(--mss2-footer-height, 16px) + var(--mss2-bottom-gap, 9px)) !important;
        line-height: var(--mss2-button-height, 38px) !important;
    }
}

@media (max-width: 360px) {
    .mss2-product-slide .mss2-product-controls .mss2-add-button,
    .mss2-cart-bottom .mss2-btn,
    .mss2-address-bottom .mss2-btn,
    .mss2-content-bottom .mss2-btn,
    .mss2-withdrawal-bottom .mss2-btn,
    .mss2-graphic-bottom .mss2-btn,
    .mss2-slide-action-button {
        width: min(calc(100% - 104px), 210px) !important;
        font-size: 13px;
    }

    .mss2-prev {
        left: 10px !important;
    }

    .mss2-next {
        right: 10px !important;
    }
}


/* MSS2.x 2.2.0-x7: untere horizontale Linie bei Inhalts-/AGB-Slides entfernen */
.mss2-content-body {
    border-bottom: none !important;
}

.mss2-content-slide .mss2-content-body {
    border-bottom: none !important;
}


/* MSS2.2 2.2.0: Widerrufsformular entschlacken */
.mss2-withdrawal-legal {
    border-bottom: none !important;
}

.mss2-withdrawal-form {
    padding-top: 0 !important;
}

.mss2-withdrawal-form h3,
.mss2-withdrawal-form .mss2-withdrawal-intro {
    display: none !important;
}

.mss2-withdrawal-inner {
    padding-bottom: calc(var(--mss2-button-zone) + 92px) !important;
}

.mss2-withdrawal-form input {
    height: 34px;
    margin-bottom: 6px;
}

@media (max-height: 740px) {
    .mss2-withdrawal-inner {
        padding-bottom: calc(var(--mss2-button-zone) + 82px) !important;
    }

    .mss2-withdrawal-form input {
        height: 31px;
        margin-bottom: 5px;
    }
}


/* MSS2.2 2.2.3: Rücknahme-Seite an Inhaltsseiten-Linie angleichen */
.mss2-withdrawal-legal {
    border-top: 1px solid #ddd !important;
    border-bottom: none !important;
    padding-top: 8px !important;
}

.mss2-withdrawal-top h2 {
    padding-right: 54px !important;
    margin-bottom: 10px !important;
}


/* MSS2.2 2.2.4: Rücknahme-Seite exakt wie Inhaltsseiten-Kopf/Linie darstellen */
.mss2-withdrawal-top h2 {
    padding-right: 64px !important;
    max-width: calc(100% - 64px) !important;
    margin: 0 0 12px 0 !important;
    font-weight: 600 !important;
}

.mss2-withdrawal-legal {
    border-top: none !important;
    border-bottom: none !important;
    position: relative !important;
    padding: 14px 2px 8px 0 !important;
    margin-bottom: 10px !important;
}

.mss2-withdrawal-legal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 64px;
    height: 1px;
    background: #ddd;
}


/* MSS2.2 2.2.5: H2-Überschriften im Frontend auf 16px vereinheitlichen */
.mss2-cart-inner h2,
.mss2-address-inner h2,
.mss2-content-inner h2,
.mss2-withdrawal-top h2 {
    font-size: 16px !important;
    line-height: 1.15 !important;
}

/* MSS2.2 2.2.6: Inhaltsüberschrift rechts vom Warenkorb-Symbol freihalten */
.mss2-content-inner h2 {
    padding-right: 24px !important;
    max-width: calc(100% - 24px) !important;
    margin-bottom: 12px !important;
}


/* MSS2.2 2.2.7: Zusätzliches Hinweisfeld in der Adresseingabe */
.mss2-address-form textarea {
    width: 100%;
    min-height: 54px;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 6px;
    padding: 8px;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.25;
    border: 1px solid #bbb;
    border-radius: 9px;
    background: #fff;
}

@media (max-height: 740px) {
    .mss2-address-form textarea {
        min-height: 42px;
        padding: 6px;
        font-size: 11.5px;
        margin-bottom: 5px;
    }
}

/* Checkbox-Link auf relevante Slides */
.mss2-check-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 5px;
}

.mss2-check-row .mss2-check {
    flex: 1;
    margin-bottom: 0;
}

.mss2-check-link {
    appearance: none;
    border: none;
    background: transparent;
    color: #500000;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 10.5px;
    line-height: 1.15;
    text-decoration: underline;
    padding: 0;
    margin: 1px 0 0;
    cursor: pointer;
    white-space: nowrap;
}

.mss2-check-link:hover {
    text-decoration: none;
}
