/* ════════════════════════════════════════
   OVERLAY
════════════════════════════════════════ */
#wc-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
}
#wc-drawer-overlay.active { display: block; }

/* ════════════════════════════════════════
   DRAWER WRAPPER
════════════════════════════════════════ */
#wc-drawer {
    position: fixed;
    top: 0;
    right: -460px;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background-color: #FFFFFF;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', system-ui, sans-serif;
    font-size: 12px;
    font-synthesis: none;
    line-height: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
    box-sizing: border-box;
}
#wc-drawer.active { right: 0; }
body.wc-drawer-open { overflow: hidden; }

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
.wc-drawer__header {
    align-items: flex-start;
    border-bottom: 1px solid #E0DCE5;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    padding-bottom: 24px;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 32px;
    flex-shrink: 0;
}

.wc-drawer__header-titel {
    color: #212529;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}

.wc-drawer__header-close {
    align-items: center;
    background-color: #F4F2F7;
    border-radius: 5px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    height: 36px;
    justify-content: center;
    width: 36px;
}
.wc-drawer__header-close:hover { background-color: #EBE8EF; }

/* ════════════════════════════════════════
   ARTIKEL LISTE (scrollbar)
════════════════════════════════════════ */
#wc-drawer-items {
    flex: 1;
    overflow-y: auto;
    box-sizing: border-box;
}

.wc-drawer__empty {
    text-align: center;
    padding: 40px 24px;
    color: #6B6570;
    font-size: 14px;
}

/* ════════════════════════════════════════
   ARTIKEL ZEILE
════════════════════════════════════════ */
.wc-drawer__artikel {
    border-bottom: 1px solid #F0EDF3;
    box-sizing: border-box;
    display: flex;
    gap: 14px;
    padding-block: 20px;
    padding-inline: 24px;
}

.wc-drawer__artikel-bild-wrap {
    background-color: #EBE8EF;
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    flex-shrink: 0;
    height: 56px;
    overflow: hidden;
    width: 56px;
}

.wc-drawer__artikel-bild {
    background-position: center;
    background-size: cover;
    flex-shrink: 0;
    height: 56px;
    width: 56px;
}

.wc-drawer__artikel-info {
    box-sizing: border-box;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.wc-drawer__artikel-name {
    color: #212529;
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
}

.wc-drawer__artikel-gewicht {
    color: #6B6570;
    font-size: 12px;
    line-height: 16px;
}

.wc-drawer__artikel-preis-zeile {
    align-items: center;
    display: flex;
    gap: 8px;
    padding-top: 2px;
}

.wc-drawer__artikel-preis {
    color: #8B7BA8;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
}

.wc-drawer__artikel-badge {
    align-items: center;
    background-color: rgba(139, 123, 168, 0.12);
    border-radius: 4px;
    color: #8B7BA8;
    display: flex;
    font-size: 11px;
    font-weight: 500;
    line-height: 14px;
    padding-block: 2px;
    padding-inline: 8px;
}

/* ════════════════════════════════════════
   MENGE + LÖSCHEN (rechts)
════════════════════════════════════════ */
.wc-drawer__artikel-rechts {
    align-items: flex-start;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.wc-drawer__menge {
    align-items: center;
    border: 1.5px solid #E0DCE5;
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    overflow: hidden;
}

.wc-drawer__menge-btn {
    align-items: center;
    box-sizing: border-box;
    color: #212529;
    cursor: pointer;
    display: flex;
    font-size: 16px;
    height: 32px;
    justify-content: center;
    padding-inline: 10px;
    user-select: none;
}
.wc-drawer__menge-btn:hover { background-color: #F4F2F7; }

.wc-drawer__menge-zahl {
    border-left: 1.5px solid #E0DCE5;
    border-right: 1.5px solid #E0DCE5;
    box-sizing: border-box;
    color: #212529;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    min-width: 32px;
    padding-block: 6px;
    padding-inline: 12px;
    text-align: center;
}

.wc-drawer-item-remove {
    cursor: pointer;
    display: block;
    margin-top: 2px;
}
.wc-drawer-item-remove:hover path { stroke: #EF4444; }

/* ════════════════════════════════════════
   NACHRICHT AN DIE KÜCHE
════════════════════════════════════════ */
.wc-drawer__nachricht {
    align-items: flex-start;
    border-top: 1px solid #E0DCE5;
    box-sizing: border-box;
    display: flex;
    flex-shrink: 0;
    gap: 12px;
    margin-top: auto;
    padding-block: 24px;
    padding-inline: 24px;
}

.wc-drawer__nachricht-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.wc-drawer__nachricht-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.wc-drawer__nachricht-titel {
    color: #212529;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.wc-drawer__nachricht-sub {
    color: #6B6570;
    font-size: 12px;
    line-height: 18px;
}

.wc-drawer__nachricht-btn {
    align-items: center;
    border: 1.5px solid #8B7BA8;
    border-radius: 100px;
    box-sizing: border-box;
    color: #8B7BA8;
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
    padding-block: 6px;
    padding-inline: 14px;
}
.wc-drawer__nachricht-btn:hover {
    background-color: #8B7BA8;
    color: #FFFFFF;
}

/* ════════════════════════════════════════
   NACHRICHT TEXTAREA (ausgeklappt)
════════════════════════════════════════ */
.wc-drawer__nachricht-form {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 8px;
    padding-inline: 24px;
    padding-bottom: 16px;
}

.wc-drawer__nachricht-form textarea {
    border: 1.5px solid #E0DCE5;
    border-radius: 8px;
    box-sizing: border-box;
    color: #212529;
    font-family: 'Roboto', system-ui, sans-serif;
    font-size: 13px;
    line-height: 20px;
    outline: none;
    padding: 12px;
    resize: none;
    width: 100%;
    height: 80px;
}
.wc-drawer__nachricht-form textarea:focus { border-color: #8B7BA8; }

.wc-drawer__nachricht-form button {
    align-self: flex-end;
    background-image: linear-gradient(in oklab 150deg, oklab(60% 0.041 -0.105) 34%, oklab(65.6% 0.076 -0.081) 100%);
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    cursor: pointer;
    font-family: 'Roboto', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 20px;
}

/* ════════════════════════════════════════
   KASSE BUTTON
════════════════════════════════════════ */
#wc-drawer-footer {
    flex-shrink: 0;
    padding: 12px;
    box-sizing: border-box;
}

.wc-drawer__kasse-btn {
    align-items: center;
    background-image: linear-gradient(in oklab 150deg, oklab(60% 0.041 -0.105) 34%, oklab(65.6% 0.076 -0.081) 100%);
    border-radius: 12px;
    box-sizing: border-box;
    color: #FFFFFF !important;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    padding-block: 16px;
    padding-inline: 24px;
    text-decoration: none;
    width: 100%;
}
.wc-drawer__kasse-btn:hover { opacity: 0.92; }

.wc-drawer__kasse-links {
    align-items: center;
    display: flex;
    gap: 10px;
}

.wc-drawer__kasse-count {
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-sizing: border-box;
    color: #FFFFFF;
    display: flex;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    height: 28px;
    justify-content: center;
    line-height: 16px;
    width: 28px;
}

.wc-drawer__kasse-btn span {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
}

/* ════════════════════════════════════════
   MENÜ CART ICON
════════════════════════════════════════ */
.wc-drawer-menu-item a {
    position: relative;
    display: flex;
    align-items: center;
}
.wc-cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #8B7BA8;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 4px;
}
