/* ── WC Quote Button — Quote Cart Page ────────────────────────── */

.wcqb-quote-cart-page {
  padding: 40px 0 60px;
}

.wcqb-qc-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.wcqb-qc-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 32px;
  color: #111;
}

/* ── Empty state ─────────────────────────────────────────────── */
.wcqb-qc-empty {
  text-align: center;
  padding: 60px 20px;
}

.wcqb-qc-empty-icon {
  color: #ccc;
  margin-bottom: 16px;
}

.wcqb-qc-empty h2 {
  font-size: 22px;
  margin: 0 0 8px;
  color: #333;
}

.wcqb-qc-empty p {
  color: #888;
  margin: 0 0 24px;
}

.wcqb-qc-shop-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #222;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background .15s;
}

.wcqb-qc-shop-btn:hover {
  background: #444;
  color: #fff;
  text-decoration: none;
}

/* ── Layout ──────────────────────────────────────────────────── */
.wcqb-qc-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 860px) {
  .wcqb-qc-layout {
    grid-template-columns: 1fr;
  }
}

/* ── Item row ────────────────────────────────────────────────── */
.wcqb-qc-items {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
}

.wcqb-qc-item {
  display: grid;
  grid-template-columns: 88px 1fr auto auto auto auto;
  gap: 0 16px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s;
}

.wcqb-qc-item:last-child {
  border-bottom: none;
}

.wcqb-qc-item:hover {
  background: #fafafa;
}

@media (max-width: 640px) {
  .wcqb-qc-item {
    grid-template-columns: 64px 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px;
  }
}

/* Image */
.wcqb-qc-item-img {
  flex-shrink: 0;
}

.wcqb-qc-item-img img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #eee;
  display: block;
}

/* Info */
.wcqb-qc-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.wcqb-qc-item-name {
  font-weight: 600;
  font-size: 14px;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wcqb-qc-item-name:hover {
  color: #555;
  text-decoration: underline;
}

.wcqb-qc-item-sku,
.wcqb-qc-item-attr {
  font-size: 12px;
  color: #999;
}

/* Per-unit price */
.wcqb-qc-item-price {
  font-size: 14px;
  color: #555;
  text-align: right;
  white-space: nowrap;
}

.wcqb-qc-per-unit {
  display: block;
  font-size: 11px;
  color: #aaa;
}

/* Quantity control */
.wcqb-qc-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.wcqb-qty-btn {
  background: none;
  border: none;
  width: 32px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .1s;
  padding: 0;
  line-height: 1;
}

.wcqb-qty-btn:hover {
  background: #f5f5f5;
  color: #111;
}

.wcqb-qty-input {
  width: 44px !important;
  height: 36px !important;
  border: none !important;
  border-left: 1px solid #eee !important;
  border-right: 1px solid #eee !important;
  border-radius: 0 !important;
  text-align: center !important;
  font-size: 14px !important;
  padding: 0 !important;
  -moz-appearance: textfield;
  box-shadow: none !important;
  background: #fff !important;
}

.wcqb-qty-input::-webkit-inner-spin-button,
.wcqb-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* Row subtotal */
.wcqb-qc-item-subtotal {
  font-weight: 700;
  font-size: 14px;
  color: #111;
  text-align: right;
  white-space: nowrap;
  min-width: 70px;
}

/* Remove button */
.wcqb-qc-remove {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #bbb;
  border-radius: 50%;
  padding: 0;
  transition: color .15s, background .15s;
}

.wcqb-qc-remove:hover {
  color: #e44;
  background: #fff0f0;
}

/* Loading state on item */
.wcqb-qc-item.wcqb-loading {
  opacity: .5;
  pointer-events: none;
}

/* ── Summary sidebar ─────────────────────────────────────────── */
.wcqb-qc-summary {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px;
  position: sticky;
  top: 20px;
}

.wcqb-qc-summary h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.wcqb-qc-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  color: #555;
  border-bottom: 1px solid #f5f5f5;
}

.wcqb-qc-total-row {
  font-weight: 700;
  font-size: 16px;
  color: #111;
  border-bottom: none;
  padding-top: 12px;
  border-top: 2px solid #eee;
  margin-top: 4px;
}

.wcqb-qc-summary-note {
  font-size: 12px;
  color: #aaa;
  line-height: 1.6;
  margin: 12px 0 20px;
}

/* Quote button in sidebar */
.wcqb-qc-quote-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  gap: 10px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background .15s, transform .1s;
  letter-spacing: .01em;
}

.wcqb-qc-quote-btn:hover {
  background: #444;
  transform: translateY(-1px);
}

.wcqb-qc-continue-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: #888;
  text-decoration: none;
}

.wcqb-qc-continue-link:hover {
  color: #333;
  text-decoration: underline;
}
