.cq-cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}
.cq-cart-modal.cq-modal-open {
  visibility: visible;
  opacity: 1;
}
.cq-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(19, 24, 33, 0.6);
  backdrop-filter: blur(2px);
}
.cq-modal-panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  background-color: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
.cq-modal-open .cq-modal-panel {
  transform: translateY(0) scale(1);
}
.cq-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #D8DCE4;
  background-color: #F9F9FA;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.cq-modal-title {
  color: #131821;
  font-weight: 700;
}
.cq-modal-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #5E6678;
  cursor: pointer;
  padding: 0 0.5rem;
  transition: color 0.2s ease;
}
.cq-modal-close-btn:hover {
  color: #131821;
}
.cq-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(85vh - 70px);
}
.cq-section-subtitle {
  color: #131821;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}
.cq-modal-list-container {
  min-height: 120px;
}
.cq-items-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.cq-cart-card {
  background-color: #F9F9FA;
  border: 1px solid #D8DCE4;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  transition: box-shadow 0.2s ease;
}
.cq-cart-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.cq-card-img-wrap {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  background-color: #FFFFFF;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cq-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cq-card-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  flex-grow: 1;
  min-width: 0;
}
.cq-card-title {
  font-weight: 600;
  color: #131821;
  font-size: 0.88rem;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cq-card-price {
  color: #F57B19;
  font-weight: 700;
  font-size: 0.92rem;
  flex: 0 0 auto;
  white-space: nowrap;
}
.cq-card-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}
.cq-qty-pill {
  display: inline-flex;
  align-items: center;
  background-color: #FFFFFF;
  border: 1px solid #D8DCE4;
  border-radius: 20px;
  padding: 2px 6px;
}
.cq-btn-qty {
  background: none;
  border: none;
  color: #131821;
  font-weight: 700;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}
.cq-btn-qty:hover {
  background-color: #F3ECE7;
}
.cq-qty-val {
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0 6px;
  color: #131821;
}
.cq-btn-remove {
  background: none;
  border: none;
  color: #5E6678;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.2s ease;
}
.cq-btn-remove:hover {
  color: #dc3545;
}
.cq-summary-card {
  background-color: #F3ECE7;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #D8DCE4;
}
.cq-grand-total-val {
  color: #F57B19;
  font-weight: 800;
  font-size: 1.25rem;
}
.cq-btn-primary {
  background-color: #111111 !important;
  color: #F57B19 !important;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: opacity 0.2s ease;
}
.cq-btn-primary:hover {
  opacity: 0.9;
  color: #F57B19 !important;
}
.cq-btn-secondary {
  background-color: #FFFFFF !important;
  color: #131821 !important;
  border: 1px solid #D8DCE4 !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.6rem 1rem;
}
.cq-btn-secondary:hover {
  background-color: #F9F9FA !important;
}
@media (max-width: 576px) {
  .cq-cart-modal {
    padding: 0.75rem;
  }
  .cq-modal-body {
    padding: 1rem;
  }
  .cq-cart-card {
    align-items: flex-start;
  }
  .cq-card-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .cq-card-title {
    width: 100%;
    white-space: normal;
  }
  .cq-card-controls {
    width: 100%;
    justify-content: space-between;
  }
}