/* PDP Request quotation — secondary CTA + modal */

.sunpal-product-quote {
  flex: 1 1 100%;
  width: 100%;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}

.sunpal-product-quote-hint {
  margin: 0;
  color: #24432f;
  font-size: 13px;
  font-weight: 700;
}

.single-product form.cart .button.sunpal-request-quote,
.single-product .woocommerce button.sunpal-request-quote,
.sunpal-request-quote {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line, #d5ddd7) !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: var(--ink, #0f1712) !important;
  font-weight: 750 !important;
  letter-spacing: -.01em;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.single-product form.cart .button.sunpal-request-quote:hover,
.single-product .woocommerce button.sunpal-request-quote:hover,
.sunpal-request-quote:hover {
  border-color: var(--green, #168b3d) !important;
  background: #f2faf4 !important;
}

.sunpal-product-quote-note {
  margin: 0;
  color: var(--muted, #5b6b61);
  font-size: 12px;
  line-height: 1.45;
}

.sunpal-quote-modal[hidden] {
  display: none !important;
}

.sunpal-quote-modal {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: grid;
  place-items: center;
  padding: 18px;
}

.sunpal-quote-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 11, .48);
  backdrop-filter: blur(2px);
  animation: sunpal-quote-fade .22s ease;
}

.sunpal-quote-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  border: 1px solid rgba(15, 23, 18, .08);
  border-radius: 10px;
  background:
    radial-gradient(520px 180px at 0% 0%, rgba(22, 139, 61, .1), transparent 60%),
    #fff;
  box-shadow: 0 24px 60px rgba(9, 14, 11, .22);
  animation: sunpal-quote-rise .28s cubic-bezier(.2, .8, .2, 1);
}

.sunpal-quote-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 8px;
}

.sunpal-quote-modal-eyebrow {
  margin: 0 0 6px;
  color: var(--green, #168b3d);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sunpal-quote-modal-header h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 30px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.sunpal-quote-modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f3f6f4;
  color: #18241c;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.sunpal-quote-form,
.sunpal-quote-success {
  padding: 8px 22px 22px;
}

.sunpal-quote-product {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #e4ebe6;
  border-radius: 8px;
  background: #f7fbf8;
}

.sunpal-quote-product span {
  color: var(--muted, #5b6b61);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sunpal-quote-product strong {
  font-size: 15px;
  line-height: 1.35;
}

.sunpal-quote-product small {
  color: #33443a;
  font-size: 12px;
}

.sunpal-quote-product code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.sunpal-quote-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sunpal-quote-fields label {
  display: grid;
  gap: 6px;
}

.sunpal-quote-fields label.is-full {
  grid-column: 1 / -1;
}

.sunpal-quote-fields span {
  font-size: 12px;
  font-weight: 700;
  color: #24352b;
}

.sunpal-quote-fields input,
.sunpal-quote-fields textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d5ddd7;
  border-radius: 6px;
  background: #fff;
  color: #0f1712;
  font: inherit;
}

.sunpal-quote-fields textarea {
  min-height: 84px;
  resize: vertical;
}

.sunpal-quote-fields input:focus,
.sunpal-quote-fields textarea:focus {
  outline: 2px solid rgba(22, 139, 61, .28);
  border-color: var(--green, #168b3d);
}

.sunpal-quote-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.sunpal-quote-form-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 650;
}

.sunpal-quote-form-status.is-error {
  background: #fff1f0;
  color: #8a1f17;
}

.sunpal-quote-form-status.is-success {
  background: #edf8f0;
  color: #14532d;
}

.sunpal-quote-form-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.sunpal-quote-form-actions .button,
.sunpal-quote-whatsapp {
  min-height: 48px;
  border: 0 !important;
  border-radius: 6px !important;
  background: var(--green, #168b3d) !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.sunpal-quote-form-actions .button[disabled] {
  opacity: .72;
}

.sunpal-quote-form-actions p {
  margin: 0;
  color: var(--muted, #5b6b61);
  font-size: 12px;
  line-height: 1.45;
}

.sunpal-quote-success {
  display: grid;
  gap: 14px;
  text-align: center;
  padding-top: 18px;
  padding-bottom: 28px;
}

.sunpal-quote-success[hidden] {
  display: none !important;
}

.sunpal-quote-success p {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.sunpal-quote-success-close {
  border: 0;
  background: transparent;
  color: #33443a;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

body.sunpal-quote-open {
  overflow: hidden;
}

@keyframes sunpal-quote-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sunpal-quote-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .sunpal-quote-fields {
    grid-template-columns: 1fr;
  }

  .sunpal-quote-modal {
    padding: 0;
    align-items: end;
  }

  .sunpal-quote-modal-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 14px 14px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sunpal-quote-modal-backdrop,
  .sunpal-quote-modal-dialog,
  .single-product form.cart .button.sunpal-request-quote {
    animation: none !important;
    transition: none !important;
  }
}
