.qqsb-root {
  position: fixed;
  inset: 0;
  z-index: 99990;
  pointer-events: none;
}

.qqsb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.qqsb-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(560px, 100vw);
  height: 100%;
  background: #f3f3f3;
  transform: translateX(102%);
  transition: transform 0.24s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
}

.qqsb-root.is-open {
  pointer-events: auto;
}

.qqsb-root.is-open .qqsb-overlay {
  opacity: 1;
}

.qqsb-root.is-open .qqsb-panel {
  transform: translateX(0);
}

.qqsb-closeBtn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qqsb-productsWrap {
  padding: 32px 28px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: grid;
  gap: 18px;
  min-height: 0;
}

.qqsb-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #000;
}

.qqsb-subtitle {
  margin: 0;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
}

.qqsb-products {
  max-height: 52vh;
  overflow: auto;
}

.qqsb-productCard {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
}

.qqsb-imageWrap {
  width: 84px;
  height: 84px;
  overflow: hidden;
  background: #fff;
}

.qqsb-productImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qqsb-productMain {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.qqsb-productTop {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.qqsb-productName,
.qqsb-productSku,
.qqsb-productPrice,
.qqsb-summaryLabel,
.qqsb-summaryValue,
.qqsb-totalLabel,
.qqsb-totalValue,
.qqsb-message {
  margin: 0;
}

.qqsb-productName {
  font-size: 15px;
  font-weight: 600;
}

.qqsb-productSku {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.7);
}

.qqsb-productPrice {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.qqsb-productBottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qqsb-qtyBox {
  height: 34px;
  min-width: 70px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 8px;
}

.qqsb-trashBtn {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qqsb-divider {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  margin: 12px 0;
}

.qqsb-summary {
  padding: 24px 28px 26px;
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.qqsb-summaryRow,
.qqsb-totalRow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.qqsb-totalRow {
  margin-top: 8px;
}

.qqsb-totalLabel,
.qqsb-totalValue {
  font-size: 22px;
  font-weight: 600;
}

.qqsb-viewQuoteBtn {
  margin-top: 6px;
  height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
}

.qqsb-viewQuoteBtn.is-loading {
  opacity: .92;
  cursor: wait;
  pointer-events: none;
}

.qqsb-viewQuoteBtn.is-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: qqsb-view-quote-spin 0.8s linear infinite;
}

@keyframes qqsb-view-quote-spin {
  to {
    transform: rotate(360deg);
  }
}

.qqsb-message {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
}

body.qqsb-no-scroll {
  overflow: hidden;
}
