#orderCartModal.cq-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s ease;
}

#orderCartModal.cq-modal-container.cq-open {
  pointer-events: auto;
  visibility: visible;
}

#orderCartModal .cq-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#orderCartModal.cq-open .cq-modal-backdrop {
  opacity: 1;
}

#orderCartModal .cq-modal-sheet {
  position: relative;
  width: 100%;
  max-height: 90vh;
  background: #FFFFFF;
  border-top: 1px solid #121212;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

#orderCartModal.cq-open .cq-modal-sheet {
  transform: translateY(0);
}

#orderCartModal .cq-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #E8E8E8;
  background: #FFFFFF;
  flex-shrink: 0;
}

#orderCartModal .cq-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #121212;
}

#orderCartModal .cq-modal-subtitle {
  font-size: 0.8rem;
  color: #595959;
  display: block;
}

#orderCartModal .cq-close-btn {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #121212;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

#orderCartModal .cq-close-btn:hover {
  color: #C93B2B;
}

#orderCartModal .cq-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
  background: #F8F8F8;
}

#orderCartModal .cq-modal-columns {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  #orderCartModal .cq-modal-columns {
    flex-direction: row;
    align-items: flex-start;
  }
  #orderCartModal .cq-modal-items-col {
    flex: 1 1 60%;
  }
  #orderCartModal .cq-modal-summary-col {
    flex: 1 1 40%;
    position: sticky;
    top: 0;
  }
}

#orderCartModal .cq-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

#orderCartModal .cq-card {
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 4px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
}

#orderCartModal .cq-card-img-wrap {
  width: 100%;
  height: 140px;
  background: #F0F0F0;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

#orderCartModal .cq-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#orderCartModal .cq-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

#orderCartModal .cq-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #121212;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#orderCartModal .cq-card-pricing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

#orderCartModal .cq-card-price {
  font-weight: 700;
  color: #121212;
}

#orderCartModal .cq-card-subtotal {
  color: #595959;
  font-size: 0.8rem;
}

#orderCartModal .cq-card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

#orderCartModal .cq-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #D0D0D0;
  border-radius: 2px;
  background: #FFFFFF;
}

#orderCartModal .cq-qty-btn {
  background: transparent;
  border: none;
  width: 26px;
  height: 26px;
  font-size: 0.9rem;
  line-height: 1;
  color: #121212;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

#orderCartModal .cq-qty-btn:hover {
  background: #F0F0F0;
}

#orderCartModal .cq-qty-val {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 0.4rem;
  color: #121212;
}

#orderCartModal .cq-remove-btn {
  background: transparent;
  border: none;
  color: #8C8C8C;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 0.15s;
}

#orderCartModal .cq-remove-btn:hover {
  color: #C93B2B;
}

#orderCartModal .cq-empty-msg {
  text-align: center;
  color: #8C8C8C;
  font-size: 0.95rem;
  padding: 2rem 0;
  margin: 0;
}

#orderCartModal .cq-summary-card {
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 4px;
  padding: 1.25rem;
}

#orderCartModal .cq-summary-header {
  border-bottom: 1px solid #E8E8E8;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

#orderCartModal .cq-summary-title {
  font-size: 1rem;
  font-weight: 700;
  color: #121212;
}

#orderCartModal .cq-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

#orderCartModal .cq-summary-lbl {
  font-size: 0.95rem;
  color: #595959;
}

#orderCartModal .cq-summary-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: #C93B2B;
}

#orderCartModal .cq-summary-note {
  font-size: 0.75rem;
  color: #8C8C8C;
  margin-bottom: 1.25rem;
}

#orderCartModal .cq-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#orderCartModal .cq-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  box-sizing: border-box;
}

#orderCartModal .cq-btn-accent {
  background: #C93B2B;
  border: 1px solid #C93B2B;
  color: #FFFFFF;
}

#orderCartModal .cq-btn-accent:hover {
  background: #A82B1D;
  border-color: #A82B1D;
  color: #FFFFFF;
}

#orderCartModal .cq-btn-secondary {
  background: #FFFFFF;
  border: 1px solid #121212;
  color: #121212;
}

#orderCartModal .cq-btn-secondary:hover {
  background: #F0F0F0;
  color: #121212;
}