.liza-cart-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 350px;
    height: 100%;
    background: #fff;
    z-index: 10001;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.liza-cart-sidebar.active {
    left: 0;
}

.liza-cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
}

.liza-cart-sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.liza-cart-sidebar-header {
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #555555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.liza-cart-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    color: #555555;
}

.liza-cart-sidebar-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555555;
}

.liza-cart-sidebar-content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.liza-cart-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--liza-cart-border);
    position: relative;
}

.liza-cart-item-image img {
    width: 70px;
    height: auto;
    border-radius: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.liza-cart-item-details {
    padding-left: 15px;
    flex: 1;
}

.liza-cart-item-name a {
    color: var(--liza-cart-link);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.liza-cart-item-name a:hover {
    color: var(--liza-cart-link-hover);
}

/* Custom CSS aus Export-Daten: WCPA / Meta-Boxen entschärfen */
.liza-cart-item-meta,
.liza-cart-item-meta .wcpa_cart_meta,
.liza-cart-item-meta dl.variation {
    background-color: #f8fafa !important;
    border: 1px solid var(--liza-cart-line) !important;
    border-radius: 4px;
    padding: 8px !important;
    margin-bottom: 12px;
    box-shadow: none !important;
    font-size: 11px;
}

.liza-cart-item-meta dt {
    font-weight: bold;
    margin-top: 5px;
}

.liza-cart-item-meta dd {
    margin: 0 0 5px 0;
}

/* Eingabefelder neutralisieren */
.liza-cart-item-meta input,
.liza-cart-item-meta textarea,
.liza-cart-item-meta select {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.liza-cart-item-price {
    margin: 5px 0;
    font-weight: bold;
    color: #222;
}

/* Aktions-Buttons: Grün erzwingen */
#liza-cart-sidebar .liza-apply-coupon,
#liza-cart-sidebar .liza-btn-checkout,
#liza-cart-sidebar .liza-upsell-atc {
    background-color: var(--liza-cart-success) !important;
    color: #ffffff !important;
    border: none !important;
}

#liza-cart-sidebar .liza-apply-coupon:hover,
#liza-cart-sidebar .liza-btn-checkout:hover,
#liza-cart-sidebar .liza-upsell-atc:hover {
    opacity: 0.8 !important;
    background-color: var(--liza-cart-success) !important;
}

.liza-cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.liza-qty-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin: 0 5px;
    padding: 3px;
    font-size: 13px;
}

.liza-qty-minus, .liza-qty-plus {
    background: #f0f0f0;
    border: 1px solid #ddd;
    width: 28px;
    height: 28px;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #555;
    transition: all 0.2s;
}

.liza-qty-minus:hover, .liza-qty-plus:hover {
    background: #e0e0e0;
    color: #000;
}

.liza-cart-item-remove a {
    color: var(--liza-cart-delete);
    text-decoration: none;
    font-size: 14px;
    position: absolute;
    top: 0;
    right: 0;
}

.liza-cart-item-remove a:hover {
    color: var(--liza-cart-delete-hover);
}

.liza-cart-sidebar-footer {
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #e6e6e6;
}

.liza-cart-coupon {
    display: flex;
    margin-bottom: 15px;
    gap: 5px;
}

.liza-coupon-input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--liza-cart-border);
    border-radius: 4px;
    font-size: 13px;
}

.liza-apply-coupon {
    background: var(--liza-cart-success);
    color: #ffffff !important;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: opacity 0.2s;
}

.liza-apply-coupon:hover {
    opacity: 0.8;
    background: var(--liza-cart-success);
    color: #ffffff !important;
}

.liza-cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: bold;
    color: #181818;
    margin-bottom: 15px;
}

.liza-btn-checkout {
    display: block;
    width: 100%;
    background: var(--liza-cart-success);
    color: #ffffff !important;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: opacity 0.2s;
}

.liza-btn-checkout:hover {
    opacity: 0.8;
    background: var(--liza-cart-success);
    color: #ffffff !important;
}

.liza-upsell-item {
    margin-bottom: 15px;
    padding: 10px;
    background: #fff;
    border: 1px dashed #ddd;
}

.liza-upsell-item h4 {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #555;
}

.liza-upsell-content {
    display: flex;
    align-items: center;
}

.liza-upsell-info {
    flex: 1;
    padding: 0 10px;
}

.liza-upsell-title {
    display: block;
    font-size: 12px;
    font-weight: bold;
}

.liza-upsell-atc {
    background: var(--liza-cart-success);
    color: #ffffff !important;
    padding: 5px 10px;
    font-size: 11px;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.liza-upsell-atc:hover {
    opacity: 0.8;
    background: var(--liza-cart-success);
    color: #ffffff !important;
}

/* Loading Animation */
.liza-cart-loading {
    display: none;
    justify-content: center;
    padding: 10px;
}

.liza-loading-ball {
    width: 8px;
    height: 8px;
    margin: 0 3px;
    background: #555555;
    border-radius: 50%;
    animation: liza-ball-bounce 0.6s infinite alternate;
}

.liza-loading-ball:nth-child(2) { animation-delay: 0.2s; }
.liza-loading-ball:nth-child(3) { animation-delay: 0.4s; }

@keyframes liza-ball-bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

/* Fly-to-Cart CSS */
.liza-fly-item {
    position: fixed;
    z-index: 10001;
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.42, 0, 0.58, 1);
}

body.liza-cart-open {
    overflow: hidden;
}
