.ccbbp-mini-cart {
    display: inline-block;
	padding-bottom: 5px;
	padding-top: 10px;
    position: relative;
    text-decoration: none;
	z-index: 20;
}

.ccbbp-mini-cart .cart-contents{
	display: inline-block;
	white-space: nowrap;
}

.ccbbp-mini-cart a {
    text-decoration: none;
}
.ccbbp-cart-icon-badge {
	display: inline-block;
    position: relative;
	vertical-align: bottom;
}

.ccbbp-cart-subtotal{
	display: inline-block;
    font-weight: 600;
	margin-left: .8rem;
    vertical-align: bottom;
    white-space: nowrap;
}


.ccbbp-cart-icon{
	display: inline-block;
	width: 22px;
}

.ccbbp-cart-icon svg {
	height: auto;
    width: 100%;
}
/* Badge optisch auf Icon positionieren */

.ccbbp-cart-badge-outer{
    bottom: 0;
	left: 0;
	margin-bottom: 30%;
    margin-left: 80%;
    position: absolute;
    z-index: 2;
}
/*
.ccbbp-cart-badge-outer{
    margin-top: -.4rem;
    margin-right: -.3rem;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
}
*/
.ccbbp-cart-badge{
    color: var(--cc-global-schrift-hell);
    display: inline-block;
    font-size: 12px;
    /* font-size: var(--cc-font-size-xs); */
    font-weight: 400;
    line-height: 1;
	min-height: 20px;
	min-width: 12px;
    padding-top: 45%; 
    padding-bottom: 35%;
    position: relative;
    text-align: center;
    vertical-align: top;
}
.ccbbp-cart-badge::after{
    aspect-ratio: 1 / 1;
    background-color: var(--cc-global-schrift-dunkel);
    border-radius: 50%;
    content: '';
    display: block;
    height: 100%;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

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

.ccbbp-mini-cart .woocommerce-Price-currencySymbol {
    display: inline-block;
    font-family: 'Archeron Pro';
    font-size: 70%;
    margin-right: 2px;
}

/* 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) {

	.ccbbp-mini-cart .woocommerce-Price-amount {
		font-size: var(--cc-font-size-sm); 
	}

    /* 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;
    }
}