/*
 * Sticky "In den Warenkorb"-Leiste. Farben kommen als CSS-Variablen aus
 * den Modul-Einstellungen.
 */

.sit-sticky-atc {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    padding: 18px 20px;
    background: var(--sit-satc-bg, #fff);
    color: var(--sit-satc-text, #333);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    font-size: 1em;
    transform: translateY(110%);
    transition: transform 0.35s ease;
}

.sit-sticky-atc.is-active {
    transform: translateY(0);
}

.sit-sticky-atc__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.sit-sticky-atc__img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
}

.sit-sticky-atc__title {
    max-width: 40vw;
    overflow: hidden;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    hyphens: none;
}

.sit-sticky-atc__price {
    white-space: nowrap;
}

.sit-sticky-atc__price * {
    color: inherit;
}

.sit-sticky-atc form.cart {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
}

.sit-sticky-atc form.cart .quantity,
.sit-sticky-atc form.cart button,
.sit-sticky-atc__options {
    margin: 0 !important;
}

.sit-sticky-atc form.cart .qty {
    width: 4em;
}

/* Lagerbestand etc. aus dem Formular in der Leiste nicht wiederholen */
.sit-sticky-atc .stock {
    display: none;
}

/* Platz schaffen, damit die Leiste den Footer nicht verdeckt */
body.has-sit-sticky-atc {
    padding-bottom: 100px;
}

@media (max-width: 549px) {
    .sit-sticky-atc__title {
        display: none;
    }

    .sit-sticky-atc--hide-mobile {
        display: none;
    }

    body.has-sit-sticky-atc:has(.sit-sticky-atc--hide-mobile) {
        padding-bottom: 0;
    }
}

/* Button-Optik wird per JS vom Original übernommen; Hover dezent abdunkeln */
.sit-sticky-atc .single_add_to_cart_button:hover {
    filter: brightness(0.9);
}
