/**
 * Sidecart Elementor Compatibility CSS
 * Entfernt !important flags wo Elementor Kontrolle braucht
 */

/* CSS Variables für Elementor Steuerung */
:root {
    --sidecart-bg: #fff; /* Default Hintergrund */
}

/* Elementor Widget kann Hintergrund setzen */
.elementor-widget[data-widget_type*="cart"] {
    --sidecart-bg: transparent; /* Transparent wenn im Widget */
}

/* Erlaubt Elementor inline styles zu überschreiben */
.elementor-widget #wcc-sidecart-container[style*="background"] {
    background: inherit !important;
}

/* Toggle Button - Styles werden durch nfds-button-reset.css und Elementor-Widget definiert */

/* Icon und Text Farben von Elementor steuerbar - aber Größen durch nfds-button-reset.css fixiert */

/* Close Button - Elementor kann Farben setzen */
html body #wcc-sidecart-container .wcc-sidecart-close {
    color: inherit;
}

html body #wcc-sidecart-container .wcc-sidecart-close svg {
    stroke: currentColor;
}

/* Overlay - Elementor Background */
.wcc-sidecart-overlay {
    background: rgba(0, 0, 0, 0.5); /* Fallback */
}

/* Buttons - Elementor Kontrolle */
html body #wcc-sidecart-container .wcc-sidecart-btn-cart {
    background-color: #f8f9fa;
    color: #333;
}

html body #wcc-sidecart-container .wcc-sidecart-btn-cart:hover {
    background-color: #e9ecef;
    color: #333;
}

html body #wcc-sidecart-container .wcc-sidecart-btn-checkout {
    background-color: #0071a1;
    color: #fff;
}

html body #wcc-sidecart-container .wcc-sidecart-btn-checkout:hover {
    background-color: #005a87;
    color: #fff;
}

/* Coupon Button - Elementor Kontrolle */
html body #wcc-sidecart-container .wcc-sidecart-coupon-btn {
    background-color: #0071a1;
    color: #fff;
}

html body #wcc-sidecart-container .wcc-sidecart-coupon-btn:hover {
    background-color: #005a87;
    color: #fff;
}

/* Border Radius - Elementor Kontrolle */
html body #wcc-sidecart-container .wcc-sidecart-btn {
    border-radius: 4px;
}

/* Coupon Merged Field Style - Elementor Setting */
.elementor-widget .wcc-sidecart-coupon-merged .wcc-sidecart-coupon-input,
html body #wcc-sidecart-container .wcc-sidecart-coupon-merged .wcc-sidecart-coupon-input {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.elementor-widget .wcc-sidecart-coupon-merged .wcc-sidecart-coupon-btn,
html body #wcc-sidecart-container .wcc-sidecart-coupon-merged .wcc-sidecart-coupon-btn {
    border-radius: 0 4px 4px 0;
    border: 1px solid #ddd;
    border-left: none;
}

/* Remove gap when merged */
.elementor-widget .wcc-sidecart-coupon-merged,
html body #wcc-sidecart-container .wcc-sidecart-coupon-merged {
    gap: 0;
}

/* Icon Orders - Elementor Kontrolle */
html body #wcc-sidecart-container .wcc-sidecart-btn svg {
    order: 0;
    margin-right: 8px;
}

html body #wcc-sidecart-container .wcc-sidecart-btn.icon-after svg {
    order: 1;
    margin-right: 0;
    margin-left: 8px;
}