.edelweiss-cart-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999; /* Immer on top */
    background-color: #fff;
    border: 2px solid #c3bf07; /* Akzentfarbe aus dem Plugin */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: grab; /* Signalisieren der Verschiebbarkeit */
    touch-action: none; /* Wichtig für mobiles Dragging ohne Scrollen */
    user-select: none;
    text-decoration: none;
    color: #333;
    font-family: inherit;
    transition: opacity 0.3s ease, transform 0.1s ease;
}

.edelweiss-cart-overlay:active {
    cursor: grabbing;
}

.edelweiss-cart-overlay:hover {
    color: #333;
}

.edelweiss-cart-overlay.is-user-hidden,
.edelweiss-cart-overlay.is-empty {
    display: none !important;
}

.edelweiss-cart-overlay-icon {
    display: flex;
    align-items: center;
    position: relative;
}

.edelweiss-cart-overlay-icon svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

.edelweiss-cart-overlay-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #c3bf07;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
}

.edelweiss-cart-overlay-total {
    font-weight: bold;
    font-size: 14px;
    margin-right: 10px;
}

.edelweiss-cart-overlay-close {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: color 0.2s;
}

.edelweiss-cart-overlay-close:hover {
    color: #d9534f;
}

/* Wiederherstellen Button im Shortcode */
.edelweiss-show-overlay-btn {
    background: none;
    border: none;
    color: #c3bf07;
    cursor: pointer;
    padding: 0 5px;
    display: none; /* Initial hidden */
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.edelweiss-show-overlay-btn:hover {
    transform: scale(1.1);
}

.edelweiss-show-overlay-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Wenn das Overlay versteckt ist, zeigen wir den Button im Wrapper an */
body.edelweiss-overlay-hidden .edelweiss-show-overlay-btn {
    display: inline-flex;
}
