
/* ==========================================================================
   Cart Quote (cq-*) sidebar form — coherence pass with WoodMart cart table
   ========================================================================== */

.cq-sidebar {
  padding: 24px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 24px;
}

.cq-sidebar-inner {
  max-width: 520px;
}

/* Heading — match cart table header weight/tracking */
.cq-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #1a1a1a;
}

.cq-products-label {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
  margin: 0 0 8px;
}

/* SKU table — echo the cart table's thead styling */
.cq-sku-table-wrap {
  margin-bottom: 20px;
}

.cq-sku-table {
  width: 100%;
  border-collapse: collapse;
}

.cq-sku-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(0, 0, 0, 0.55);
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cq-sku-table tbody td {
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
}

.cq-qty-col,
.cq-qty-cell {
  text-align: right;
  width: 60px;
}

.cq-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 20px 0;
}

.cq-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(0, 0, 0, 0.55);
  margin: 0 0 12px;
}

.cq-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: rgba(0, 0, 0, 0.4);
}

/* Form rows — two-column layout, consistent gutter */
.cq-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.cq-field {
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 16px;
}

.cq-form-row .cq-field {
  margin-bottom: 0;
}

.cq-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.cq-required {
  color: #d9483f;
}

/* Pill inputs — match the phone field's existing radius/border */
.cq-field input[type="text"],
.cq-field input[type="email"],
.cq-field input[type="tel"],
.cq-field input[type="time"],
.cq-field textarea,
.iti {
  width: 100%;
  height: 42px;
  padding: 0 18px;
  border: 1.6px solid rgba(0, 0, 0, 0.1);
  border-radius: 35px;
  background-color: transparent;
  font-size: 14px;
  color: #1a1a1a;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.cq-field textarea {
  height: auto;
  min-height: 90px;
  border-radius: 18px;
  padding: 14px 18px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.cq-field input:focus,
.cq-field textarea:focus,
.iti:focus-within {
  outline: none;
  border-color: rgba(0, 0, 0, 0.35);
}

.cq-field input::placeholder,
.cq-field textarea::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

/* Time range row */
.cq-time-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cq-time-row input[type="time"] {
  flex: 1 1 0;
  min-width: 0;
}

.cq-time-sep {
  color: rgba(0, 0, 0, 0.4);
  font-size: 13px;
  flex: 0 0 auto;
}

/* Checkboxes — align box + label baseline, consistent spacing */
.cq-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.75);
  margin-bottom: 10px;
  cursor: pointer;
}

.cq-check-label input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: #1a1a1a;
  cursor: pointer;
}

.cq-check-label a {
  color: #1a1a1a;
  text-decoration: underline;
}

/* Submit button — pill CTA matching theme button language */
.cq-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-top: 16px;
  border: none;
  border-radius: 35px;
  background-color: #1a1a1a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.cq-submit-btn:hover {
  background-color: #333;
}

.cq-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Toast feedback messages */
#cq-toast-wrap {
  margin-bottom: 12px;
}

#cq-toast-wrap .woocommerce-message,
#cq-toast-wrap .woocommerce-error {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 8px;
}

/* Responsive: stack two-column rows on small screens */
@media (max-width: 480px) {
  .cq-form-row {
    flex-direction: column;
    gap: 16px;
  }

  .cq-form-row .cq-field {
    margin-bottom: 0;
  }
}
