/* --------------------------------
   Quote Page (scoped styling)
   Only affects .pgc-view-quote area
----------------------------------*/

/* Limit box-sizing to the quote block */
.pgc-view-quote,
.pgc-view-quote *,
.pgc-view-quote *::before,
.pgc-view-quote *::after {
  box-sizing: border-box;
}

/* Theme vars (safe globally – just variables) */
:root {
  --brand-blue: #022A53;
  --brand-blue-hover: #0077CC;
  --text: #111827;
  --muted: #374151; /* slate-700 */
  --border: #e5e7eb; /* gray-200 */
  --card-bg: #ffffff;
  --surface: #f9fafb;
}

/* Wrapper – let Elementor control outer width, just pad inside */
.pgc-view-quote {
  width: 100%;
  padding: 24px 16px;
}

/* =========================
   Items List / Cards
   ========================= */
.pgc-view-quote .quote-list,
.pgc-view-quote .pgc-quote-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pgc-view-quote .quote-item,
.pgc-view-quote .pgc-quote-line {
  display: grid;
  grid-template-columns: 120px 1fr; /* thumb + details */
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  background: var(--card-bg);
  align-items: center;
}

/* Thumb wrappers */
.pgc-view-quote .qi-thumb img,
.pgc-view-quote .pgc-quote-line .pgc-thumb,
.pgc-view-quote .pgc-quote-line img {
  width: 120px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

/* Product title links, but NOT the Remove / Clear controls */
.pgc-view-quote .qi-main a,
.pgc-view-quote .pgc-quote-line a:not(.pgc-remove):not(.pgc-clear-quote) {
  text-decoration: none;
  color: var(--brand-blue);
}

.pgc-view-quote .qi-main a:hover,
.pgc-view-quote .pgc-quote-line a:not(.pgc-remove):not(.pgc-clear-quote):hover {
  color: var(--brand-blue-hover);
}

.pgc-view-quote .qi-main a strong,
.pgc-view-quote .pgc-title {
  font-weight: 700;
  line-height: 1.25;
}

/* Details / options */
.pgc-view-quote .quote-details,
.pgc-view-quote .qi-meta,
.pgc-view-quote .pgc-quote-line .pgc-options {
  margin: 8px 0 10px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.pgc-view-quote .quote-details li strong,
.pgc-view-quote .qi-meta li strong,
.pgc-view-quote .pgc-quote-line .pgc-options strong {
  margin-right: 6px;
}

/* =========================
   Buttons (inside quote only)
   ========================= */
.pgc-view-quote button,
.pgc-view-quote .btn,
.pgc-view-quote .button {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  background: var(--brand-blue);
  color: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease, transform .02s ease-in-out;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pgc-view-quote button:hover,
.pgc-view-quote .btn:hover,
.pgc-view-quote .button:hover {
  background: var(--brand-blue-hover);
}

.pgc-view-quote button:focus-visible,
.pgc-view-quote .btn:focus-visible,
.pgc-view-quote .button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,119,204,.25);
}

.pgc-view-quote button:active,
.pgc-view-quote .btn:active,
.pgc-view-quote .button:active {
  transform: translateY(1px);
}

/* Gray secondary buttons: Remove & Clear */
.pgc-view-quote .pgc-remove,
.pgc-view-quote .pgc-clear-quote {
  background: #6b7280;      /* gray-500 */
  color: #ffffff;           /* white text */
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hover state for Remove / Clear */
.pgc-view-quote .pgc-remove:hover,
.pgc-view-quote .pgc-clear-quote:hover {
  background: #4b5563;      /* gray-600 */
  color: #ffffff;
}

/* Belt-and-suspenders text color override */
.pgc-view-quote .pgc-quote-line .pgc-remove,
.pgc-view-quote .pgc-quote-line .pgc-remove *,
.pgc-view-quote .pgc-quote-line a.pgc-remove {
  color: #ffffff !important;
}

/* Secondary / danger utility (only when used in quote area) */
.pgc-view-quote .btn-secondary,
.pgc-view-quote .remove-from-quote {
  background: #6b7280;
  color: #fff;
}

.pgc-view-quote .btn-secondary:hover,
.pgc-view-quote .remove-from-quote:hover {
  background: #4b5563;
}

/* Actions row, inside quote only */
.pgc-view-quote .quote-actions,
.pgc-view-quote .pgc-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* =========================
   Quote Form (View Quote page)
   ========================= */

.pgc-view-quote .quote-form,
.pgc-view-quote #pgc-details {
  margin-top: 32px;
  padding: 20px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  max-width: 720px;
}

/* Headings inside form */
.pgc-view-quote .quote-form h2,
.pgc-view-quote #pgc-details h2 {
  margin: 0 0 16px;
  font-size: 20px;
  color: #022A53;
}

/* Form rows: two columns on desktop, stack on mobile */
.pgc-view-quote #pgc-details .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

/* Each field in a row */
.pgc-view-quote #pgc-details .form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Full-width field (textarea rows) */
.pgc-view-quote #pgc-details .form-field.full {
  flex: 1 1 100%;
}

/* Labels */
.pgc-view-quote #pgc-details label {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: #022A53;
}

/* Inputs / selects / textareas */
.pgc-view-quote #pgc-details input[type="text"],
.pgc-view-quote #pgc-details input[type="email"],
.pgc-view-quote #pgc-details input[type="tel"],
.pgc-view-quote #pgc-details input[type="file"],
.pgc-view-quote #pgc-details textarea,
.pgc-view-quote #pgc-details select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  background: #fff;
  color: #111827;
}

/* Focus state */
.pgc-view-quote #pgc-details input:focus,
.pgc-view-quote #pgc-details textarea:focus,
.pgc-view-quote #pgc-details select:focus {
  border-color: #022A53;
  outline: none;
  box-shadow: 0 0 0 2px rgba(2,42,83,0.15);
}

/* Actions row */
.pgc-view-quote #pgc-details .form-actions {
  margin-top: 12px;
}

/* Bigger submit button */
.pgc-view-quote .quote-form .btn,
.pgc-view-quote .quote-form button[type="submit"],
.pgc-view-quote .quote-form .form-actions .btn,
.pgc-view-quote #pgc-details .btn,
.pgc-view-quote #pgc-details button[type="submit"] {
  padding: 12px 20px;
  font-size: 16px;
}

/* Stack columns on smaller screens */
@media (max-width: 640px) {
  .pgc-view-quote #pgc-details .form-row {
    flex-direction: column;
  }
}

/* =========================
   Empty State
   ========================= */
.pgc-view-quote #quote-empty {
  display: none;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
}

/* =========================
   Heading (quote block only)
   ========================= */
.pgc-view-quote h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--text);
}

/* =========================
   Toast
   ========================= */
#pgc-toast {
  position: fixed;
  right: 30px;
  top: 30px;
  background: var(--brand-blue);
  color: #fff;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0,0,0,.25);
  display: none;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s, transform .3s;
  z-index: 99999;
}
#pgc-toast.show { display: flex; opacity: 1; transform: translateY(0); }
#pgc-toast .pgc-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* =========================
   Loader
   ========================= */
.pgc-loader {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99998;
}
.pgc-loader.show { display: flex; }
.pgc-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(2,42,83,.15);
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: pgc-spin .8s linear infinite;
}
@keyframes pgc-spin {
  to { transform: rotate(360deg); }
}

/* =========================
   Responsive (quote block)
   ========================= */
@media (max-width: 780px) {
  .pgc-view-quote .quote-item,
  .pgc-view-quote .pgc-quote-line {
    grid-template-columns: 1fr;
  }

  .pgc-view-quote .qi-thumb img,
  .pgc-view-quote .pgc-quote-line .pgc-thumb,
  .pgc-view-quote .pgc-quote-line img {
    width: 100%;
    max-width: 320px;
  }

  .pgc-view-quote .quote-actions,
  .pgc-view-quote .pgc-actions {
    flex-direction: column;
    align-items: stretch;
  }
}



