/**
 * ═══════════════════════════════════════════════════════════════════════════
 * ملك الطابون - أنماط السلة الجانبية (الكاشير اليدوي)
 * Sidebar Cart, Checkout, Discount, Main Content Adjustment,
 * Employee Selector, Payment Calculator, Change Calculator, Addons Modal
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════════════════ */
/* Sidebar Cart - السلة الجانبية */
/* ═══════════════════════════════════════════════════════════════════════ */

.sidebar-cart {
    position: fixed;
    left: 0;
    top: 52px;
    width: 230px;
    height: calc(100vh - 52px);
    background-color: var(--bg-card);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar-backdrop {
    display: none;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.sidebar-header {
    padding: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
    background-color: var(--bg-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-primary);
}

.sidebar-header h2 i {
    color: var(--primary);
}

.btn-close-sidebar {
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.btn-close-sidebar:hover {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

.sidebar-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    text-align: center;
    color: var(--text-muted);
}

.sidebar-empty i {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.5;
}

.sidebar-empty p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.sidebar-empty small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sidebar-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-sm);
}

.sidebar-items::-webkit-scrollbar {
    width: 6px;
}

.sidebar-items::-webkit-scrollbar-track {
    background: var(--border-light);
}

.sidebar-items::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--radius-full);
}

.sidebar-item {
    background-color: var(--bg-main);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.sidebar-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.sidebar-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-xs);
}

.item-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.3;
}

.btn-remove-item {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
    flex-shrink: 0;
}

.btn-remove-item:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.sidebar-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
}

.item-price {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.item-quantity-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background-color: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 2px;
}

.btn-qty {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.btn-qty:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.item-quantity {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.item-subtotal {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.sidebar-checkout {
    border-top: 2px solid var(--border-color);
    padding: var(--spacing-sm);
    background-color: var(--bg-main);
}

.checkout-totals-wrapper {
    margin-bottom: var(--spacing-sm);
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.checkout-subtotal,
.checkout-discount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px var(--spacing-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.checkout-discount-row {
    border-top: 1px dashed var(--border-color);
}

.discount-amount-text {
    color: var(--success);
    font-weight: 600;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
}

.checkout-total span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.checkout-total strong {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

/* Discount Section */
.discount-section {
    margin-bottom: var(--spacing-sm);
}

.discount-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.discount-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.discount-toggle-btn.active {
    border-color: var(--success);
    color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.discount-inputs {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    align-items: center;
}

.discount-type-select {
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.8rem;
    background: var(--bg-card);
    color: var(--text-primary);
    flex-shrink: 0;
}

.discount-value-input {
    flex: 1;
    min-width: 60px;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    text-align: center;
    transition: border-color var(--transition-fast);
}

.discount-value-input:focus {
    outline: none;
    border-color: var(--primary);
}

.checkout-notes {
    margin-bottom: var(--spacing-sm);
}

.checkout-notes label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.checkout-notes label i {
    color: var(--primary);
    font-size: 0.875rem;
}

.checkout-notes textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    resize: none;
    transition: border-color var(--transition-fast);
    font-family: inherit;
}

.checkout-notes textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.checkout-notes textarea::placeholder {
    color: var(--text-muted);
}

.btn-submit-order {
    width: 100%;
    padding: var(--spacing-sm);
    background-color: var(--primary);
    color: var(--text-white);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.btn-submit-order:hover:not(:disabled) {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-submit-order:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit-order:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Main Content Adjustment */
/* ═══════════════════════════════════════════════════════════════════════ */

.main-content.with-sidebar,
.barcode-section {
    margin-left: 340px;
}

.main-content.with-sidebar .container,
.barcode-section .container {
    max-width: calc(1400px - 340px);
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Utility Classes */
/* ═══════════════════════════════════════════════════════════════════════ */

.mobile-only {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Mobile Responsive (<768px) */
/* ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .sidebar-cart {
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        top: 0;
        height: 100vh;
        width: 85vw;
        max-width: 320px;
        z-index: 1040;
    }

    .sidebar-cart.active {
        transform: translateX(0);
    }

    .sidebar-cart.active .sidebar-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--bg-overlay);
        z-index: -1;
        animation: fadeIn 0.2s ease-out;
    }

    .mobile-only {
        display: flex !important;
    }

    .btn-close-sidebar {
        display: flex;
    }

    /* الفئات تعود أفقية على الموبايل */
    .categories-section {
        position: sticky;
        top: 48px;
        left: auto;
        width: 100%;
        height: auto;
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        overflow-y: visible;
        overflow-x: auto;
    }

    .categories-bar {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: visible;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .category-btn {
        white-space: nowrap;
        width: auto;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.85rem;
        border-radius: var(--radius-full);
    }

    .main-content.with-sidebar,
    .barcode-section {
        margin-left: 0;
    }

    .main-content.with-sidebar .container,
    .barcode-section .container {
        max-width: 100%;
    }

    .barcode-section {
        padding-top: 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .sidebar-item {
        font-size: 0.9rem;
    }

    .item-name {
        font-size: 0.875rem;
    }

    .checkout-total strong {
        font-size: 1.25rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar-cart {
        width: 200px;
    }

    .categories-section {
        left: 200px;
        width: 90px;
    }

    .main-content.with-sidebar,
    .barcode-section {
        margin-left: 300px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* ═══════════════════════════════════════════════════════════════
   Employee Selector Styles
   ═══════════════════════════════════════════════════════════════ */

.account-icon-btn {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.account-icon-btn:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

.account-icon-btn i {
    font-size: 1.1rem;
    color: var(--primary);
}

.account-icon-btn:hover i {
    color: var(--text-white);
}

#assignedEmployeeName:not(:empty) {
    padding-right: 4px;
    font-weight: 600;
    color: var(--primary);
}

.account-icon-btn:hover #assignedEmployeeName {
    color: var(--text-white);
}

.employee-selector-dropdown {
    position: fixed;
    top: 50px;
    left: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    width: 260px;
    z-index: 1000;
    overflow: hidden;
}

.employee-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.employee-selector-header button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 4px;
}

.employee-selector-list {
    max-height: 280px;
    overflow-y: auto;
}

.employee-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
    color: #333;
}

.employee-option:hover {
    background: #f5f5f5;
}

.employee-option.selected {
    background: #fff7ed;
    border-right: 3px solid #FF5722;
}

.employee-option.clear-option {
    color: #dc2626;
}

.employee-option i {
    font-size: 1rem;
    color: #888;
    width: 18px;
    text-align: center;
}

.employee-option.selected i {
    color: #FF5722;
}

/* Employee PIN Verification */
.employee-pin-verify {
    padding: 16px;
    text-align: center;
}

.employee-pin-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.employee-pin-info i {
    color: #f59e0b;
}

.employee-pin-msg {
    font-size: 0.8rem;
    color: #888;
    margin: 0 0 12px 0;
}

.employee-pin-field {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    font-family: inherit;
    letter-spacing: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.employee-pin-field:focus {
    outline: none;
    border-color: #FF5722;
}

.employee-pin-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 8px;
}

.employee-pin-error i {
    font-size: 0.85rem;
}

.employee-pin-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.employee-pin-btn-confirm {
    flex: 1;
    padding: 8px 12px;
    background: #FF5722;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.employee-pin-btn-confirm:hover {
    background: #e64a19;
}

.employee-pin-btn-confirm:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.employee-pin-btn-cancel {
    flex: 1;
    padding: 8px 12px;
    background: #f3f4f6;
    color: #555;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.employee-pin-btn-cancel:hover {
    background: #e5e7eb;
}

/* ═══════════════════════════════════════════════════════════════
   Payment Calculator Styles
   ═══════════════════════════════════════════════════════════════ */

.btn-payment-toggle {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background: transparent;
    border: 1px dashed #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-payment-toggle:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #555;
}

.payment-section {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 14px;
    margin-top: 10px;
    border: 1px solid #eee;
}

.payment-calc-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.calc-quick-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-bottom: 10px;
}

.calc-btn {
    padding: 6px 2px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.15s;
    text-align: center;
}

.calc-btn:hover {
    background: #FF5722;
    color: white;
    border-color: #FF5722;
}

.calc-btn:active {
    transform: scale(0.95);
}

.calc-input-row {
    margin-bottom: 10px;
}

.calc-input-row input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
    box-sizing: border-box;
}

.calc-change {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    min-height: 20px;
}

.calc-change.positive {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.calc-change.negative {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* ═══════════════════════════════════════════════════════════════
   Change Calculator Modal (بعد إرسال الطلب)
   ═══════════════════════════════════════════════════════════════ */

.change-calc-content {
    padding: 0;
    max-width: 360px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #1a1a2e;
}

/* شاشة المجموع */
.calc-display-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #16213e;
    color: #8892b0;
    font-size: 1rem;
}

.calc-total-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ccd6f6;
}

/* شاشة المبلغ المدفوع */
.calc-display-paid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #0f3460;
}

.calc-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.calc-paid-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    direction: ltr;
}

.calc-currency {
    font-size: 1.1rem;
    color: #8892b0;
    font-weight: 600;
}

/* نتيجة الباقي */
.calc-result {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.change-positive {
    width: 100%;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    background: #10b981;
    padding: 14px;
    text-align: center;
}

.change-negative {
    width: 100%;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    background: #ef4444;
    padding: 14px;
    text-align: center;
}

/* لوحة الأرقام */
.calc-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #2a2a3e;
    padding: 1px;
}

.calc-key {
    padding: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    border: none;
    background: #1a1a2e;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    text-align: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.calc-key:hover {
    background: #2a2a3e;
}

.calc-key:active {
    background: #0f3460;
    transform: scale(0.97);
}

.calc-key-dot {
    font-size: 2rem;
    font-weight: 900;
}

.calc-key-delete {
    color: #f59e0b;
    font-size: 1.3rem;
}

/* أزرار الإجراءات */
.calc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #2a2a3e;
    padding: 1px 1px 0 1px;
}

.calc-key-clear {
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    background: #ef4444;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.calc-key-clear:hover {
    background: #dc2626;
}

.calc-key-ok {
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    background: #10b981;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.calc-key-ok:hover {
    background: #059669;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Addons Modal */
/* ═══════════════════════════════════════════════════════════════════════ */
#addonsModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#addonsModal.active {
    display: flex;
}

#addonsModal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.addons-modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg, 16px);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.addons-modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.addons-modal-content .modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.addons-modal-content .modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.addons-modal-content .modal-close:hover {
    background: #f3f4f6;
}

.addons-modal-content .modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}

.addons-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.addon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.addon-item:hover {
    border-color: var(--primary-light);
    background: #fffbeb;
}

.addon-item.selected {
    border-color: var(--primary);
    background: #fffbeb;
}

.addon-item input[type="checkbox"] {
    display: none;
}

.addon-item-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

.addon-item-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.1rem;
}

.addon-item-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.addon-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.addon-item-price {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
}

.addon-checkmark {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: transparent;
    font-size: 0.7rem;
}

.addon-item.selected .addon-checkmark {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.addons-modal-content .modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border, #e5e7eb);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.addons-total {
    font-size: 1.05rem;
    color: var(--text-primary);
}

.addons-total strong {
    color: var(--primary);
    font-size: 1.15rem;
}

.addons-actions {
    display: flex;
    gap: 8px;
}

.addons-actions .btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.addons-actions .btn-secondary {
    background: #f3f4f6;
    color: var(--text-secondary);
}

.addons-actions .btn-secondary:hover {
    background: #e5e7eb;
}

.addons-actions .btn-primary {
    background: var(--primary);
    color: white;
}

.addons-actions .btn-primary:hover {
    background: var(--primary-dark);
}

/* Addon tags in sidebar cart */
.sidebar-item-addons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.addon-tag {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 8px;
    border: 1px solid #fde68a;
}
