#basketModal { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1050; display: flex; align-items: center; justify-content: center; padding: 16px; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 0.25s ease, visibility 0.25s ease; box-sizing: border-box; } #basketModal.cx-modal-active { visibility: visible; opacity: 1; pointer-events: auto; } .cx-cart-backdrop { position: absolute; inset: 0; background-color: rgba(18, 22, 35, 0.55); backdrop-filter: blur(2px); cursor: pointer; } .cx-cart-window { position: relative; z-index: 1; width: 100%; max-width: 520px; max-height: 90vh; background-color: #FBFBFC; color: #121623; border: 1px solid #D8DBE4; border-radius: 14px; box-shadow: 0 16px 36px rgba(18, 22, 35, 0.16); display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box; } .cx-cart-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #D8DBE4; background-color: #F6F7F8; flex-shrink: 0; } .cx-cart-title { font-size: 1.15rem; font-weight: 700; color: #121623; margin: 0; } .cx-modal-close-btn { background: transparent; border: none; color: #5E6578; padding: 6px; display: flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; transition: color 0.15s, background-color 0.15s; } .cx-modal-close-btn:hover { color: #121623; background-color: #D8DBE4; } .cx-cart-body { padding: 12px 20px; overflow-y: auto; flex: 1 1 auto; -webkit-overflow-scrolling: touch; max-height: calc(90vh - 170px); } .cx-cart-footer { padding: 16px 20px; border-top: 1px solid #D8DBE4; background-color: #F6F7F8; flex-shrink: 0; } .cx-cart-summary { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; } .cx-cart-summary-label { font-size: 0.95rem; font-weight: 600; color: #5E6578; } .cx-cart-summary-val { font-size: 1.25rem; font-weight: 700; color: #121623; } .cx-cart-actions { display: flex; gap: 10px; } @media (max-width: 480px) { .cx-cart-actions { flex-direction: column; } } .cx-btn-primary { display: inline-flex; align-items: center; justify-content: center; background: #9FE75B; color: #111111; border: 2px solid #325115; border-radius: 8px; font-weight: 600; padding: 10px 16px; cursor: pointer; text-decoration: none; transition: background-color 0.2s, border-color 0.2s; } .cx-btn-primary:hover { background: #8AE237; border: 2px solid #274010; color: #111111; } .cx-btn-primary:active { background: #76CD27; border: 2px solid #1c2e0b; color: #111111; } .cx-btn-secondary { display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #121623; border: 1px solid #D8DBE4; border-radius: 8px; font-weight: 500; padding: 10px 16px; cursor: pointer; text-decoration: none; transition: background-color 0.2s, color 0.2s, border-color 0.2s; } .cx-btn-secondary:hover { background: #F6F7F8; color: #325115; border: 1px solid #325115; } .cx-cart-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #D8DBE4; } .cx-cart-item:last-child { border-bottom: none; } .cx-item-thumb-wrapper { flex-shrink: 0; } .cx-item-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid #D8DBE4; background-color: #F6F7F8; display: block; } .cx-item-details { flex: 1 1 auto; min-width: 0; } .cx-item-name { font-size: 0.95rem; font-weight: 600; color: #121623; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cx-item-price { font-size: 0.95rem; font-weight: 700; color: #325115; margin-bottom: 8px; } .cx-item-controls { display: flex; align-items: center; justify-content: space-between; } .cx-qty-control { display: inline-flex; align-items: center; border: 1px solid #D8DBE4; border-radius: 6px; background-color: #F6F7F8; overflow: hidden; } .cx-qty-btn { background: transparent; border: none; color: #121623; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; cursor: pointer; transition: background-color 0.15s; } .cx-qty-btn:hover { background-color: #D8DBE4; } .cx-qty-value { min-width: 24px; text-align: center; font-size: 0.85rem; font-weight: 600; color: #121623; padding: 0 4px; } .cx-remove-link { background: transparent; border: none; padding: 0; font-size: 0.82rem; color: #325115; cursor: pointer; text-decoration: underline; transition: color 0.15s; } .cx-remove-link:hover { color: #1c2e0b; } .cx-empty-cart { color: #5E6578; font-size: 0.95rem; text-align: center; padding: 24px 0; margin: 0; } .cx-cart-counter { display: inline-flex; align-items: center; justify-content: center; background-color: #9FE75B; color: #111111; border: 1px solid #325115; font-size: 0.75rem; font-weight: 700; line-height: 1; padding: 2px 7px; border-radius: 9999px; min-width: 20px; height: 20px; vertical-align: middle; }