/* =====================================================================
   MINI‑CART  ·  Polished 2025‑06 – Elementor‑Variables
   ===================================================================== */

/* Variable Mapping
   ---------------
   --e-global-typography-primary-font-family  → Hauptschrift
   --e-global-color-primary                  → Brand‑Highlight (ehem. #c2125c)
   --e-global-color-accent                   → Primärer Text (ehem. #1f1f1d / #111)
   --e-global-color-dc44792                 → Positive‑Grün (ehem. #4caf50 / rgb(60,141,64))
*/

/* ------------------------------ 1 · Wrapper / Scroll ---------------- */
.mc-cart-list {
    max-height: calc(100vh - 240px);
    overflow-y: auto;
}

/* ------------------------------ 2 · Cart-Item ----------------------- */
.mc-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
}

.mc-separator {
    border: 0;
    border-top: 1px solid #e9e9e9;
    margin: .75rem 0;
}

/* Bild */
.mc-thumb {
    flex: 0 0 90px;
}

.mc-thumb img {
    width: 90px !important;
    height: auto !important;
    border-radius: 0px;
    display: block;
}

/* Titel + Attribute */
.mc-title {
    font-family: var(--e-global-typography-primary-font-family), sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--e-global-color-primary) !important;
    padding: 0 0 .25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
    display: block;
}

.mc-content dl.variation {
    margin: 8px 0;
    font-size: 0.7rem;
    color: #555;
}

.mc-content .variation dt {
    float: left;
    clear: left;
    width: 52%;
    font-weight: 400;
}

.mc-content .variation dd {
    margin: 0 0 .25rem 52%;
    width: 48%;
}

.mc-content .variation dd p {
    margin: 0;
}

.mc-content .variation::after {
    content: "";
    display: table;
    clear: both;
}

/* ------------------------------ 3 · Preis, Qty, Entfernen ----------- */
.mc-price-qty {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: .25rem;
    flex-wrap: wrap;
}

.mc-price {
    font-weight: 700;
    font-size: 12px;
    color: var(--e-global-color-accent);
    width: 100%;
}

/* Preis */
.ls-price {
    font-weight: 500 !important;
    display: block;
    color: var(--e-global-color-accent);
    font-family: var(--e-global-typography-primary-font-family), sans-serif;
}

.mc-price ins {
    font-weight: 500 !important;
    text-decoration: none;
    color: var(--e-global-color-accent)
}

.mc-price del {
    color: var(--e-global-color-497f867) !important;
    font-weight: 500;
    text-decoration: line-through;
    opacity: 1 !important;
    margin-left: 4px;
}

/* Quantity-Buttons */
.mc-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #ededed;
}

.mc-qty-wrap .quantity .qty {
    width: 48px !important;
    text-align: center;
    border: 1px solid #ccc;
    border-inline: 0;
    padding: 0;
    height: 24px;
    font-family: var(--e-global-typography-primary-font-family), sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--e-global-color-accent);
}

.mc-qty-btn {
    width: 24px;
    height: 24px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid #ccc;
    background: #fafafa;
    color: var(--e-global-color-primary);
    cursor: pointer;
    transition: .15s;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.mc-qty-btn.minus {
    border-right: 0;
    border-radius: 4px 0 0 4px;
}

.mc-qty-btn.plus {
    border-left: 0;
    border-radius: 0 4px 4px 0;
}

.mc-qty-btn:hover:not(.is-disabled) {
    background: #f0edf0;
}

.mc-qty-btn.is-disabled,
.mc-qty-btn.is-disabled:hover {
    background: #f9f9f9;
    color: #bbb;
    cursor: not-allowed;
}

/* Entfernen-Link rechts */
.mc-remove {
    margin-left: 0;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #999;
    transition: .15s;
}

.mc-remove:hover {
    color: var(--e-global-color-primary);
    text-decoration: none;
}

.widget_shopping_cart_content,
.widget_shopping_cart_content * {
    font-family: var(--e-global-typography-primary-font-family), sans-serif;
}

/* ------------------------------ 4 · Gratisversand-Banner ------------ */
.mc-free-shipping {
    padding: 0;
    margin: 0 0 1.1rem;
    text-align: center;
    font-size: .875rem;
    border-radius: 0;
}

p.progress {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 500;
}

.mc-free-shipping .bar {
    height: 4px;
    background: #d4d4d4;
    border-radius: 0;
    margin-top: .6rem;
    overflow: hidden;
}

.mc-free-shipping .bar span {
    display: block;
    height: 100%;
    background: var(--e-global-color-dc44792);
    border-radius: 0;
}

/* ------------------------------ 5 · Header-Hinweis ------------------ */
.mc-coupon-note {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin: 0 0 0.5rem;
    padding-inline: 0;
}

/* ------------------------------ 6 · Footer -------------------------- */
.mc-footer {
    padding: 0;
    margin-top: auto;
}

ul.woocommerce-mini-cart.mc-cart-list {
    padding: 0px;
}

.mc-shipping,
.mc-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: .6rem 0 0;
    margin-bottom: 0;
}

.mc-shipping {
    border-block: 1px solid #e6e6e6;
    padding: .6rem 0 .6rem;
}

.mc-shipping .label {
    font-weight: 500;
    color: var(--e-global-color-accent);
}

.mc-shipping .value {
    color: #555;
}

.mc-shipping .value.free {
    color: var(--e-global-color-dc44792);
    font-weight: 600;
}

.mc-subtotal strong {
    font-weight: 700;
}

.mc-legal {
    font-size: 10px;
    color: #707070;
    margin: 0 0 1rem;
    font-weight: 500;
    text-align: end;
}

/* Checkout-Button */
.mc-checkout {
    display: flex!important;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: .8rem 1rem!important;
    border-radius: 4px!important;
    background-color: var(--e-global-color-accent)!important;
    color: #fff !important;
    font-weight: 500!important;
    transition: .2s;
    font-family: var(--e-global-typography-primary-font-family), sans-serif;
}


/* Zahlungs-Icons */
.mc-payments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-top: 1.25rem;
}

.mc-payments img {
    filter: none;
    opacity: .85;
    transition: .25s;
}

@media (max-width:550px) {
    .mc-payments img {
        width: 38px;
    }
}

.mc-payments img:hover {
    filter: none;
    opacity: 1;
}

/* ------------------------------ 7 · Loader -------------------------- */
.mc-loader {
    width: 18px;
    height: 18px;
    margin-right: .5rem;
    border: 2px solid #bbb;
    border-top-color: transparent;
    border-radius: 50%;
    animation: mc-spin .8s linear infinite;
}

@keyframes mc-spin {
    to {
        transform: rotate(360deg);
    }
}

.mc-footer.is-loading {
    opacity: .55;
    pointer-events: none;
}

/* ------------------------------ 8 · Scrollbar (Webkit) -------------- */
.mc-cart-list::-webkit-scrollbar {
    width: 6px;
}

.mc-cart-list::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

.mc-cart-list::-webkit-scrollbar-thumb:hover {
    background: #b5b5b5;
}

/* Menge-Feld: rein Anzeige ----------------------------------------- */
.mc-qty-wrap .qty[readonly] {
    pointer-events: none;
    background: #fff;
    cursor: default;
    height: 24px;
    width: 40px;
    padding: 10px;
    text-align: center;
    border: 0px;
}

.mc-qty-wrap .qty[readonly]::-webkit-inner-spin-button,
.mc-qty-wrap .qty[readonly]::-webkit-outer-spin-button {
    display: none;
}

.mc-qty-wrap .qty[readonly] {
    -moz-appearance: textfield;
}

/* Remove link */
a.mc-remove.remove_from_cart_button {
    font-size: 16px;
    color: var(--e-global-color-primary);
    font-weight: 600;
    font-family: var(--e-global-typography-primary-font-family), sans-serif;
    margin-top: 3px;
}

a.mc-remove.remove_from_cart_button:hover {
    color: var(--e-global-color-497f867);
}

button.mc-qty-btn {
    border: none;
    background-color: unset;
    color: #BFBFBF;
    width: 32px;
    height: 32px;
    margin-top: -2px;
    border-radius: 0px!important;
}

.mc-handmade-note {
    background: #dfe7e057;
    border: 1px solid #bbd9bc99;
    border-radius: 0;
    padding: .5rem;
    margin: 0 .75
}


.mc-sale-badge {
    /* Basis-Styles, Farben später im Child-Theme anpassen */
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: var(--e-global-color-accent);
    color: #fff;
    font: 500 12px/1 var(--e-global-typography-primary-font-family);
    padding: 2px 6px;
    border-radius: 3px;
}

.mc-thumb-container {
    position: relative;
}

.elementor-menu-cart__close-button-custom {
    margin-right: 8px;
    margin-bottom: 21px;
}

.elementor-menu-cart__close-button-custom .e-close-cart-custom-icon {
    color: var(--cart-close-button-color, #69727d);
    font-size: 16px;
}