/* ============================================================
   WC Request Quote — Stylesheet
   ============================================================ */
:root {
  --wcrq-primary:     #1a1a2e;
  --wcrq-accent:      #e94560;
  --wcrq-accent-h:    #c73652;
  --wcrq-surface:     #ffffff;
  --wcrq-surface2:    #f7f7fb;
  --wcrq-border:      #e4e4ef;
  --wcrq-text:        #1a1a2e;
  --wcrq-muted:       #6b7280;
  --wcrq-radius:      10px;
  --wcrq-radius-sm:   6px;
  --wcrq-shadow:      0 2px 16px rgba(26,26,46,.07);
  --wcrq-shadow-lg:   0 8px 40px rgba(26,26,46,.12);
  --wcrq-trans:       0.2s ease;
  --wcrq-font:        inherit;
}

/* ── Wrap ─────────────────────────────────────────────────── */
.wcrq-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 0 60px;
  font-family: var(--wcrq-font);
  color: var(--wcrq-text);
}

/* ── Notices ──────────────────────────────────────────────── */
.wcrq-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--wcrq-radius);
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.wcrq-notice--success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.wcrq-notice--error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}
.wcrq-notice svg { flex-shrink: 0; }

/* ── Section title ────────────────────────────────────────── */
.wcrq-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--wcrq-primary);
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--wcrq-border);
}
.wcrq-section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--wcrq-primary);
  color: #fff;
  border-radius: var(--wcrq-radius-sm);
  flex-shrink: 0;
}

/* ── Products section ─────────────────────────────────────── */
.wcrq-products {
  background: var(--wcrq-surface);
  border: 1px solid var(--wcrq-border);
  border-radius: var(--wcrq-radius);
  padding: 28px 28px 20px;
  margin-bottom: 28px;
  box-shadow: var(--wcrq-shadow);
}

/* ── Empty state ──────────────────────────────────────────── */
.wcrq-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--wcrq-muted);
}
.wcrq-empty p {
  margin: 16px 0 24px;
  font-size: 15px;
}

/* ── Table ────────────────────────────────────────────────── */
.wcrq-table-wrap {
  overflow-x: auto;
  border-radius: var(--wcrq-radius-sm);
  border: 1px solid var(--wcrq-border);
}
.wcrq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0;
  background: var(--wcrq-surface);
}
.wcrq-table thead tr {
  background: var(--wcrq-primary);
  color: #fff;
}
.wcrq-table th {
  padding: 12px 14px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
  text-align: left;
}
.wcrq-table th.col-sku,
.wcrq-table th.col-qty,
.wcrq-table th.col-price { text-align: center; }
.wcrq-table th.col-remove { width: 40px; }

.wcrq-item {
  border-bottom: 1px solid var(--wcrq-border);
  transition: background var(--wcrq-trans);
}
.wcrq-item:last-child { border-bottom: none; }
.wcrq-item:hover { background: var(--wcrq-surface2); }
.wcrq-table td {
  padding: 14px 14px;
  vertical-align: middle;
  color: var(--wcrq-text);
}
.wcrq-table td.col-sku,
.wcrq-table td.col-qty,
.wcrq-table td.col-price { text-align: center; }

/* Product cell */
.wcrq-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wcrq-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--wcrq-radius-sm);
  border: 1px solid var(--wcrq-border);
  flex-shrink: 0;
}
.wcrq-product-name { font-weight: 600; }

/* Qty controls */
.wcrq-qty-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--wcrq-border);
  border-radius: var(--wcrq-radius-sm);
  overflow: hidden;
}
.wcrq-qty-btn {
  background: var(--wcrq-surface2);
  border: none;
  padding: 6px 10px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: var(--wcrq-primary);
  transition: background var(--wcrq-trans);
}
.wcrq-qty-btn:hover { background: var(--wcrq-border); }
.wcrq-qty-input {
  width: 42px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--wcrq-border);
  border-right: 1px solid var(--wcrq-border);
  padding: 6px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wcrq-text);
  background: #fff;
  -moz-appearance: textfield;
}
.wcrq-qty-input::-webkit-inner-spin-button,
.wcrq-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Remove btn */
.wcrq-remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--wcrq-border);
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  color: var(--wcrq-muted);
  transition: all var(--wcrq-trans);
  padding: 0;
}
.wcrq-remove-btn:hover {
  background: #fff1f2;
  border-color: #fecdd3;
  color: var(--wcrq-accent);
}

/* Table footer actions */
.wcrq-table-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* ── Form section ─────────────────────────────────────────── */
.wcrq-form-section {
  background: var(--wcrq-surface);
  border: 1px solid var(--wcrq-border);
  border-radius: var(--wcrq-radius);
  padding: 28px 28px 32px;
  box-shadow: var(--wcrq-shadow);
}

/* ── Form grid ────────────────────────────────────────────── */
.wcrq-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.wcrq-field--full { grid-column: 1 / -1; }
.wcrq-field--half { grid-column: span 1; }
@media (max-width: 600px) {
  .wcrq-form-grid { grid-template-columns: 1fr; }
  .wcrq-field--half { grid-column: span 1; }
}

/* ── Fields ───────────────────────────────────────────────── */
.wcrq-field { display: flex; flex-direction: column; gap: 6px; }
.wcrq-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--wcrq-text);
  letter-spacing: .2px;
}
.wcrq-field label .req { color: var(--wcrq-accent); margin-left: 2px; }
.wcrq-field label .opt { color: var(--wcrq-muted); font-weight: 400; }

.wcrq-field input[type="text"],
.wcrq-field input[type="email"],
.wcrq-field input[type="tel"],
.wcrq-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--wcrq-border);
  border-radius: var(--wcrq-radius-sm);
  font-size: 14px;
  color: var(--wcrq-text);
  background: var(--wcrq-surface);
  transition: border-color var(--wcrq-trans), box-shadow var(--wcrq-trans);
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
}
.wcrq-field input:focus,
.wcrq-field textarea:focus {
  border-color: var(--wcrq-accent);
  box-shadow: 0 0 0 3px rgba(233,69,96,.12);
}
.wcrq-field textarea { resize: vertical; min-height: 120px; }

/* Select */
.wcrq-select-wrap {
  position: relative;
}
.wcrq-select-wrap select {
  width: 100%;
  padding: 11px 36px 11px 14px;
  border: 1.5px solid var(--wcrq-border);
  border-radius: var(--wcrq-radius-sm);
  font-size: 14px;
  color: var(--wcrq-text);
  background: var(--wcrq-surface);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color var(--wcrq-trans), box-shadow var(--wcrq-trans);
  font-family: inherit;
  box-sizing: border-box;
}
.wcrq-select-wrap select:focus {
  border-color: var(--wcrq-accent);
  box-shadow: 0 0 0 3px rgba(233,69,96,.12);
}
.wcrq-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--wcrq-muted);
  display: flex;
}

/* Read-only products field */
.wcrq-readonly-field {
  min-height: 50px;
  padding: 10px 14px;
  border: 1.5px solid var(--wcrq-border);
  border-radius: var(--wcrq-radius-sm);
  background: var(--wcrq-surface2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.wcrq-product-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--wcrq-primary);
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
}
.wcrq-no-products {
  font-size: 13px;
  color: var(--wcrq-muted);
}
.wcrq-no-products a { color: var(--wcrq-accent); }
.wcrq-field-note {
  font-size: 12px;
  color: var(--wcrq-muted);
  margin: 0;
}

/* ── Form footer ──────────────────────────────────────────── */
.wcrq-form-footer {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.wcrq-privacy-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--wcrq-muted);
  margin: 0;
}
.wcrq-privacy-note svg { flex-shrink: 0; }

/* ── Submit button ────────────────────────────────────────── */
.wcrq-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: var(--wcrq-accent);
  color: #fff;
  border: none;
  border-radius: var(--wcrq-radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--wcrq-trans), transform var(--wcrq-trans), box-shadow var(--wcrq-trans);
  letter-spacing: .3px;
  font-family: inherit;
}
.wcrq-submit-btn:hover:not(:disabled) {
  background: var(--wcrq-accent-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(233,69,96,.35);
}
.wcrq-submit-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.wcrq-btn-icon { display: flex; align-items: center; }

/* ── Generic buttons ──────────────────────────────────────── */
.wcrq-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--wcrq-radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--wcrq-trans);
  text-decoration: none;
  font-family: inherit;
}
.wcrq-btn--outline {
  background: transparent;
  border: 1.5px solid var(--wcrq-accent);
  color: var(--wcrq-accent);
}
.wcrq-btn--outline:hover {
  background: var(--wcrq-accent);
  color: #fff;
}
.wcrq-btn--ghost {
  background: transparent;
  border: 1.5px solid var(--wcrq-border);
  color: var(--wcrq-muted);
}
.wcrq-btn--ghost:hover {
  border-color: var(--wcrq-primary);
  color: var(--wcrq-primary);
}

/* ── Shop-page "Add to cart" override ────────────────────── */
a.wcrq-add-btn,
button.wcrq-add-btn {
  background: var(--wcrq-primary) !important;
  color: #fff !important;
  border: none !important;
  transition: background var(--wcrq-trans), transform var(--wcrq-trans) !important;
}
a.wcrq-add-btn:hover,
button.wcrq-add-btn:hover {
  background: var(--wcrq-accent) !important;
  transform: translateY(-1px);
}

/* ── Count badge ──────────────────────────────────────────── */
.wcrq-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--wcrq-accent);
  color: #fff;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

/* ── Toast notification ───────────────────────────────────── */
.wcrq-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--wcrq-primary);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--wcrq-radius);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--wcrq-shadow-lg);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  transform: translateY(20px);
  opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.wcrq-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.wcrq-toast-link {
  color: #e94560;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.wcrq-toast-link:hover { text-decoration: underline; }

/* ── Mini link (shortcode) ────────────────────────────────── */
.wcrq-mini-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.wcrq-mini-link:hover { color: var(--wcrq-accent); }

/* ── View quote button beside single add-to-cart ──────────── */
.wcrq-view-quote-btn {
  background: transparent !important;
  border: 1.5px solid var(--wcrq-border) !important;
  color: var(--wcrq-primary) !important;
  font-size: 14px;
}
.wcrq-view-quote-btn:hover {
  border-color: var(--wcrq-primary) !important;
}
