.wcq-wrap {
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  color: #333;
  width: 100%;
  box-sizing: border-box;
}
/* ── Two-column field row ───────────────────────────────── */
.wcq-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.wcq-fields-row .wcq-field-wrap {
  margin-bottom: 0;
}
.wcq-panel { padding: 20px; box-sizing: border-box; }
.wcq-panel--left  { flex: 1 1 300px; border-right: 1px solid #e5e5e5; }
.wcq-panel--right { flex: 1 1 300px; }

.wcq-currency-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #ccc; border-radius: 4px;
  padding: 5px 10px; font-size: 13px; color: #444;
  margin-bottom: 16px;
}
.wcq-grid {
  display: grid;
  grid-template-columns: 1fr 100px 120px;
  gap: 8px; align-items: center;
}
.wcq-grid--header { margin-bottom: 6px; }
.wcq-col-head { font-size: 12px; color: #555; text-align: center; line-height: 1.3; }
.wcq-col-head strong { font-size: 13px; color: #111; display: block; }
.wcq-green { color: #2e7d32 !important; }
.wcq-grid--row { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.wcq-label { font-size: 13px; }
.wcq-purchase-val { text-align: center; font-size: 13px; color: #666; }
.wcq-input {
  width: 100%; box-sizing: border-box;
  padding: 7px 8px; border: 2px solid #e0e0e0;
  border-radius: 4px; font-size: 14px; text-align: right;
  transition: border-color .15s;
}
.wcq-input:focus { outline: none; border-color: #d32f2f; }
.wcq-input--vat { width: 60px; }
.wcq-check-label {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 13px;
}
.wcq-check-label input[type="checkbox"] { display: none; }
.wcq-checkmark {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid #ccc; border-radius: 3px;
  background: #fff; display: inline-flex;
  align-items: center; justify-content: center;
  transition: all .15s;
}
.wcq-check-label input:checked + .wcq-checkmark { background: #d32f2f; border-color: #d32f2f; }
.wcq-check-label input:checked + .wcq-checkmark::after {
  content: ''; width: 5px; height: 9px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px); display: block;
}
.wcq-check-label--inline { white-space: nowrap; align-self: flex-end; }
.wcq-check-label--block { display: flex; margin: 12px 0; }
.wcq-divider { border: none; border-top: 1px solid #e0e0e0; margin: 12px 0; }
.wcq-grid--total { padding: 7px 0; font-size: 14px; }
.wcq-bold { font-weight: 700; text-align: center; }
.wcq-vat-wrap { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.wcq-pct { font-size: 14px; color: #555; }
.wcq-grid--gross { padding: 10px 0; border-top: 2px solid #333; margin-top: 4px; font-size: 15px; }
.wcq-gross-val { font-size: 20px; font-weight: 800; color: #111; text-align: right; }
.wcq-profit-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid #f0f0f0; font-size: 13px; color: #555;
}
.wcq-profit-val { font-weight: 700; font-size: 16px; color: #2e7d32; }

/* Right panel */
.wcq-top-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.wcq-field-label { font-size: 12px; color: #555; display: block; margin-bottom: 4px; }
.wcq-select {
  padding: 0px 28px 8px 10px; border: 1px solid #ccc;
  border-radius: 4px; font-size: 14px; background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}
.wcq-select:focus { outline: none; border-color: #d32f2f; }
.wcq-section-title { font-size: 16px; font-weight: 700; margin: 0 0 14px; color: #222; }
.wcq-field-wrap { position: relative; margin-bottom: 10px; }
.wcq-field-wrap--icon {}
.wcq-text-input {
  width: 100%; box-sizing: border-box;
  padding: 10px 36px 10px 12px;
  border: 1px solid #ccc; border-radius: 4px;
  font-size: 14px; transition: border-color .15s;
}
.wcq-text-input:focus { outline: none; border-color: #d32f2f; }
.wcq-icon-info {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%); color: #888;
  cursor: help; font-size: 16px;
}
.wcq-info-text { font-size: 12px; color: #555; line-height: 1.5; margin: 8px 0; }
.wcq-message {
  padding: 10px 14px; border-radius: 4px;
  font-size: 13px; margin: 10px 0;
}
.wcq-message.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.wcq-message.error   { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.wcq-btn-submit {
  display: inline-flex; align-items: center; gap: 8px;
  background: #d32f2f; color: #fff; border: none;
  padding: 12px 22px; border-radius: 4px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .2s;
  margin-top: 10px; width: 100%; justify-content: center;
}
.wcq-btn-submit:hover { background: #b71c1c; }
.wcq-btn-submit:disabled { background: #e57373; cursor: not-allowed; }
.wcq-legal { font-size: 11px; color: #888; margin-top: 10px; line-height: 1.5; }
.wcq-legal a { color: #d32f2f; }
@media (max-width: 580px) {
  .wcq-panel--left { border-right: none; border-bottom: 1px solid #e5e5e5; }
  .wcq-grid { grid-template-columns: 1fr 80px 90px; }
}

/* ── Preview panel ──────────────────────────────────────────── */
.wcq-preview-panel {
  width: 100%;
  box-sizing: border-box;
}

.wcq-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  gap: 10px;
  flex-wrap: wrap;
}

.wcq-preview-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.wcq-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  color: #444;
  transition: border-color .15s, color .15s;
}
.wcq-btn-back:hover { border-color: #999; color: #111; }

.wcq-btn-submit--small {
  padding: 8px 16px !important;
  font-size: 13px !important;
  width: auto !important;
  margin-top: 0 !important;
}

/* ── The rendered document ──────────────────────────────────── */
.wcq-preview-doc {
  padding: 28px 24px;
  background: #fff;
}

.wcq-doc-header {
  background: #d32f2f;
  color: #fff;
  padding: 20px 24px;
  border-radius: 6px 6px 0 0;
  margin: -28px -24px 24px;
}
.wcq-doc-header h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
}
.wcq-doc-header p {
  margin: 0;
  font-size: 12px;
  opacity: .85;
}

.wcq-doc-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  margin-bottom: 20px;
}

/* Items table */
.wcq-doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 16px;
}
.wcq-doc-table th {
  background: #f5f5f5;
  padding: 9px 10px;
  text-align: left;
  border-bottom: 2px solid #e0e0e0;
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.wcq-doc-table th.r { text-align: right; }
.wcq-doc-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}
.wcq-doc-table td.r { text-align: right; }
.wcq-doc-table tbody tr:nth-child(even) td { background: #fafafa; }
.wcq-doc-table .wcq-item-name { font-weight: 600; color: #222; }
.wcq-doc-table .wcq-item-variation { font-size: 11px; color: #888; margin-top: 3px; }
.wcq-doc-table .wcq-item-attrs { font-size: 11px; color: #aaa; margin-top: 2px;  }
.wcq-doc-table .wcq-price-sales { color: #2e7d32; font-weight: 600; }

/* Totals */
.wcq-doc-totals {
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  font-size: 13px;
  border-collapse: collapse;
}
.wcq-doc-totals td { padding: 5px 8px; }
.wcq-doc-totals td:last-child { text-align: right; }
.wcq-doc-totals .wcq-tot-gross td {
  border-top: 2px solid #222;
  font-size: 16px;
  font-weight: 800;
  padding-top: 8px;
}
.wcq-doc-totals .wcq-tot-gross td:last-child { color: #2e7d32; }

.wcq-doc-profit {
  background: #f1f8e9;
  border: 1px solid #c5e1a5;
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #555;
}
.wcq-doc-profit strong { font-size: 17px; color: #2e7d32; }

.wcq-doc-footer {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 11px;
  color: #bbb;
  text-align: center;
}
/* ── Product image in preview table ────────────────────── */
.wcq-img-th {
    width: 64px;
}
.wcq-item-img-cell {
    width: 64px;
    padding: 6px 8px !important;
    vertical-align: middle;
}
.wcq-item-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
    display: block;
}
/* ── Header with logo ───────────────────────────────────── */
.wcq-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.wcq-doc-header-left h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.wcq-doc-header-left p  { margin: 0; font-size: 12px; opacity: .85; }
.wcq-doc-header-right   { text-align: right; }
.wcq-doc-logo {
  max-height: 52px;
  max-width: 160px;
  object-fit: contain;
  /*filter: brightness(0) invert(1);  white logo on red bg */
}

/* ── Meta row: client + date ────────────────────────────── */
.wcq-doc-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 20px;
}
.wcq-doc-client {
  font-size: 13px;
  line-height: 1.7;
  color: #333;
}
.wcq-doc-client a { color: #d32f2f; text-decoration: none; }
.wcq-doc-client-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #aaa;
  margin-bottom: 4px;
}
.wcq-doc-date {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  text-align: right;
}
/* ══════════════════════════════════════════════════
   APPEND TO assets/css/quote.css
   Guest quote form — [guest_quote] shortcode
══════════════════════════════════════════════════ */

/* ── Outer wrap ─────────────────────────────────── */
.wcq-guest-wrap {
    max-width: 820px;
    margin: 0 auto;
    font-family: inherit;
}

/* ── Sections ───────────────────────────────────── */
.wcq-guest-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 22px 24px;
    margin-bottom: 18px;
}
.wcq-guest-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.wcq-guest-section-title svg { color: #d32f2f; flex-shrink: 0; }
.wcq-guest-section-hint {
    font-size: 12px;
    font-weight: 400;
    color: #aaa;
    margin-left: 4px;
}

/* ── Field labels ───────────────────────────────── */
.wcq-guest-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 5px;
}
.wcq-required { color: #d32f2f; }

/* ── Three column row ───────────────────────────── */
.wcq-fields-row--three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

/* ── Item rows table ────────────────────────────── */
.wcq-items-header {
    display: grid;
    grid-template-columns: 2fr 2fr 70px 120px 36px;
    gap: 8px;
    padding: 0 4px 8px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
}
.wcq-items-header span {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.wcq-ih-qty, .wcq-ih-price, .wcq-ih-action { text-align: center; }

.wcq-item-row {
    display: grid;
    grid-template-columns: 2fr 2fr 70px 120px 36px;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 4px;
    border-radius: 6px;
    transition: background .15s;
}
.wcq-item-row:hover { background: #fafafa; }

.wcq-item-row .wcq-text-input {
    margin-bottom: 0;
    padding: 8px 10px;
    font-size: 13px;
}

/* Price input with currency symbol prefix */
.wcq-item-price-wrap {
    position: relative;
}
.wcq-item-price-sym {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #999;
    pointer-events: none;
}
.wcq-item-price-wrap .wcq-text-input {
    padding-left: 22px;
}

/* Remove button */
.wcq-item-remove {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
}
.wcq-item-remove:hover { color: #d32f2f; background: #fff0f0; }

/* Add row button */
.wcq-guest-add-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px dashed #d32f2f;
    color: #d32f2f;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    transition: background .15s;
}
.wcq-guest-add-row:hover { background: #fff8f8; }

/* Running total */
.wcq-guest-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 12px 16px;
    background: #f8fdf8;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
}
.wcq-guest-total-val {
    font-size: 18px;
    font-weight: 800;
    color: #2e7d32;
}
.wcq-guest-total-note {
    font-size: 11px;
    color: #bbb;
    margin: 8px 0 0;
    font-style: italic;
}

/* ── Submit row ─────────────────────────────────── */
.wcq-guest-submit-row {
    text-align: center;
    padding-top: 8px;
}
.wcq-btn-submit--large {
    padding: 14px 40px;
    font-size: 16px;
    border-radius: 8px;
}

/* ── Success screen ─────────────────────────────── */
.wcq-guest-success {
    text-align: center;
    padding: 60px 24px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}
.wcq-guest-success-icon { margin-bottom: 20px; }
.wcq-guest-success-title {
    font-size: 24px;
    font-weight: 800;
    color: #2e7d32;
    margin: 0 0 12px;
}
.wcq-guest-success-msg {
    font-size: 15px;
    color: #555;
    margin: 0 0 8px;
}
.wcq-guest-success-sub { font-size: 13px; color: #aaa; margin: 0; }

/* ── Spinner for submit button ──────────────────── */
@keyframes wcq-spin { to { transform: rotate(360deg); } }
.wcq-spin { animation: wcq-spin .8s linear infinite; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 640px) {
    .wcq-items-header       { display: none; }
    .wcq-item-row           { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 6px; padding: 10px; background: #fafafa; border: 1px solid #eee; border-radius: 6px; margin-bottom: 10px; }
    .wcqg-row-name          { grid-column: 1 / -1; }
    .wcqg-row-desc          { grid-column: 1 / -1; }
    .wcq-item-remove        { grid-column: 2; justify-self: end; }
    .wcq-fields-row--three  { grid-template-columns: 1fr; }
    .wcq-btn-submit--large  { width: 100%; justify-content: center; }
}


/* ══════════════════════════════════════════════════
   APPEND TO assets/css/quote.css
   Guest quote additions — notes, upload, success
══════════════════════════════════════════════════ */

/* Empty cart state */
.wcq-empty-cart {
    text-align: center;
    padding: 50px 20px;
    color: #aaa;
    font-size: 14px;
}
.wcq-empty-cart svg { display: block; margin: 0 auto 14px; }
.wcq-empty-cart a { color: #d32f2f; }

/* Input display (read-only value span, same look as .wcq-input) */
.wcq-input-display {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 14px;
    font-weight: 600;
    padding-right: 4px;
}

/* Notes label */
.wcq-notes-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 6px;
}
.wcq-notes-hint {
    font-weight: 400;
    text-transform: none;
    color: #aaa;
    font-size: 11px;
    letter-spacing: 0;
}
.wcq-field-wrap--notes { margin-top: 12px; }

/* Textarea */
.wcq-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color .15s;
}
.wcq-textarea:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211,47,47,.08);
}

/* Upload drop area */
.wcq-upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    margin-top: 6px;
}
.wcq-upload-area:hover,
.wcq-upload-area--over {
    border-color: #d32f2f;
    background: #fff8f8;
}
.wcq-upload-area p { margin: 8px 0 2px; font-size: 13px; color: #666; }
.wcq-upload-area span { font-size: 11px; color: #bbb; }
.wcq-upload-browse {
    color: #d32f2f;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
}

/* File list */
.wcq-file-list  { margin-top: 8px; }
.wcq-file-item  {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 5px;
    font-size: 13px;
}
.wcq-file-icon { font-size: 15px; flex-shrink: 0; }
.wcq-file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333; }
.wcq-file-size { color: #aaa; font-size: 11px; flex-shrink: 0; }
.wcq-file-remove {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 2px;
    flex-shrink: 0;
    transition: color .15s;
}
.wcq-file-remove:hover { color: #d32f2f; }
.wcq-file-limit { font-size: 11px; color: #aaa; margin: 4px 0 0; font-style: italic; }

/* Notes block in preview doc */
.wcq-doc-notes {
    margin: 14px 0 0;
    padding: 11px 14px;
    background: #fffde7;
    border-left: 3px solid #f9a825;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}
.wcq-doc-notes--files {
    background: #f3f0ff;
    border-left-color: #7c4dff;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

/* Success screen */
.wcq-guest-success {
    text-align: center;
    padding: 60px 24px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}
.wcq-guest-success-icon { margin-bottom: 18px; }
.wcq-guest-success h2 { font-size: 22px; font-weight: 800; color: #2e7d32; margin: 0 0 10px; }
.wcq-guest-success p  { color: #555; font-size: 14px; margin: 0 0 6px; }

/* Spinner */
@keyframes wcq-spin { to { transform: rotate(360deg); } }
.wcq-spin { animation: wcq-spin .8s linear infinite; }
