.bs-cart-lock-scroll {
  overflow: hidden !important;
}
.bs-cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 1rem;
  box-sizing: border-box;
}
.bs-cart-overlay.is-visible {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}
.bs-cart-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1;
}
.bs-cart-modal-window {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}
.bs-cart-overlay.is-visible .bs-cart-modal-window {
  transform: translateY(0) scale(1);
}
.bs-cart-modal-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2F6 100%);
  border-bottom: 1px solid #E2E8F0;
}
.bs-cart-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
}
.bs-cart-btn-close {
  background: transparent;
  border: none;
  color: #64748B;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s, background-color 0.15s;
}
.bs-cart-btn-close:hover {
  color: #0F172A;
  background-color: #E2E8F0;
}
.bs-cart-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1 1 auto;
  background-color: #F8FAFC;
}
.bs-cart-items-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.bs-cart-item-card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
}
.bs-cart-card-img-wrap {
  width: 100%;
  height: 140px;
  background-color: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bs-cart-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bs-cart-card-body {
  padding: 0.85rem 1rem;
}
.bs-cart-item-name {
  font-weight: 600;
  color: #0F172A;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  line-height: 1.35;
}
.bs-cart-item-price-single {
  font-size: 0.85rem;
  color: #475569;
}
.bs-qty-control {
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  background: #FFFFFF;
  overflow: hidden;
}
.bs-qty-btn {
  border: none;
  background: transparent;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F172A;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.15s;
}
.bs-qty-btn:hover {
  background-color: #F1F5F9;
}
.bs-qty-value {
  padding: 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0F172A;
}
.bs-cart-item-subtotal {
  font-weight: 700;
  font-size: 0.95rem;
  color: #4F46E5;
}
.bs-remove-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background-color 0.15s;
}
.bs-remove-btn:hover {
  color: #DC2626;
  background-color: #FEE2E2;
}
.bs-cart-modal-footer {
  padding: 1rem 1.25rem;
  background-color: #FFFFFF;
  border-top: 1px solid #E2E8F0;
}
.bs-cart-total-label {
  font-weight: 600;
  color: #475569;
  font-size: 1rem;
}
.bs-cart-total-amount {
  font-weight: 700;
  font-size: 1.25rem;
  color: #0F172A;
}
.bs-cart-btn-view {
  background-color: #4F46E5 !important;
  border-color: #4F46E5 !important;
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  transition: background-color 0.15s;
}
.bs-cart-btn-view:hover {
  background-color: #4338CA !important;
  border-color: #4338CA !important;
}
.bs-cart-btn-continue {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}
.bs-cart-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background-color: #0B1021;
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.15);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.bs-cart-toast.bs-toast-active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}
.bs-cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background-color: #4F46E5;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}