.ccbbp-mini-cart {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-decoration: none;
}
.ccbbp-mini-cart a {
    text-decoration: none;
}
.ccbbp-cart-icon-badge {
    position: relative;
}

.ccbbp-cart-icon svg {
    width:30px;
}
/* Badge optisch auf Icon positionieren */
.ccbbp-cart-badge {
    position: absolute;
    top: -0.4rem;
    right: -0.3rem;
    background-color: var(--cc-global-schrift-dunkel);
    color: var(--cc-global-schrift-hell);
    font-size: var(--cc-font-size-xs);
    line-height: 1.4;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: var(--cc-space-1);
    text-align: center;
    border-radius: 100%;
    box-shadow: 0 0 0 2px  var(--cc-global-schrift-hell);
    z-index: 2;
    transition: transform 0.15s ease;
    font-weight: 400;
}
.ccbbp-cart-badge.ccbbp-cart-bump {
  transform: scale(1.3);
}
.ccbbp-mini-cart .woocommerce-Price-amount {
  font-family: 'Archeron Pro';
  font-size: var(--cc-font-size-md);
}

.ccbbp-mini-cart .woocommerce-Price-currencySymbol {
  font-family: 'Archeron Pro';
  font-size: var(--cc-font-size-sm);
}

/* Drawer default versteckt */
.ccbbp-mini-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 90%;
    height: 100vh;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}
.ccbbp-mini-cart-drawer.is-open {
    transform: translateX(0);
}

.ccbbp-mini-cart-close {
    background: none;
    border: 0;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    align-self: flex-end;
    padding: 1rem;
}

.ccbbp-mini-cart-inner {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* Overlay */
.ccbbp-mini-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 1990;
}
.ccbbp-mini-cart-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Verhalten */
@media (max-width: 767px) {
    /* Auf Mobile wollen wir Drawer faktisch nicht sichtbar halten.
       Wir lassen ihn technisch da (wegen Fragments), aber er soll nie gezeigt werden */
    .ccbbp-mini-cart-drawer,
    .ccbbp-mini-cart-overlay {
        display: none !important;
    }
}

.ccbbp-cart-subtotal {
    margin-left: 0.5rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .ccbbp-cart-subtotal {
       /* display: none; */
    }
}