.st-public-layout {
  min-height: 100vh;
}

.st-public-quote-page {
  background: #f7f5f0;
  font-family: "Inter", "Aptos", "Segoe UI", sans-serif;
  padding: 32px 16px 88px;
}

.st-public-quote-shell {
  display: grid;
  gap: 20px;
  margin: 0 auto;
  max-width: 720px;
}

.st-public-quote-page .st-card,
.st-public-quote-page .st-floating-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e5e1d8;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(28, 35, 38, 0.04);
}

.st-public-quote-page :is(h1, h2, h3, .st-btn, .st-eyebrow, .st-card-kicker, .st-public-quote-doc-label, .st-public-quote-doc-value, .st-public-quote-line-item-amount, .st-public-quote-totals-final span, .st-public-quote-totals-final strong) {
  font-family: "Rajdhani", "Aptos Display", "Segoe UI", sans-serif;
}

.st-public-quote-page .st-eyebrow,
.st-public-quote-page .st-card-kicker {
  color: #8d8b84;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.st-public-quote-skeleton,
.st-public-quote-section,
.st-public-quote-actions,
.st-public-quote-error,
.st-public-quote-intro {
  display: grid;
  gap: 16px;
}

.st-public-quote-page .st-status-info,
.st-public-quote-page .st-status-neutral {
  background: #eef3ef;
  border: 1px solid #d8e4dc;
  color: #294438;
}

.st-public-quote-page .st-status-success {
  background: #ecf8f0;
  border: 1px solid #d1f0dc;
  color: #1f5a35;
}

.st-public-quote-page .st-status-warning {
  background: #fff5e9;
  border: 1px solid #f5d3b3;
  color: #8f5407;
}

.st-public-quote-page .st-status-error {
  background: #fdf0ed;
  border: 1px solid #f2cec6;
  color: #a83422;
}

.st-public-quote-page .st-status-pill {
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(30, 58, 47, 0.08);
  display: inline-flex;
  font-size: 0.82rem;
  line-height: 1;
  padding: 7px 10px;
}

.st-public-quote-header {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: grid;
  gap: 18px;
  padding: 0;
}

.st-public-quote-section-heading,
.st-public-quote-status-heading,
.st-public-quote-line-item,
.st-public-quote-item-row,
.st-public-quote-history-item,
.st-public-quote-history-disclosure summary,
.st-public-quote-totals-row,
.st-public-quote-totals-final,
.st-quote-summary-row,
.st-public-quote-deposit-heading,
.st-public-quote-doc-row {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.st-public-quote-header-top {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(148px, max-content);
}

.st-public-quote-party-row {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
  min-width: 0;
}

.st-public-quote-party {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.st-public-quote-party .st-card-kicker {
  margin-bottom: 0;
}

.st-public-quote-brand,
.st-public-quote-status-copy {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.st-public-quote-brand-logo-frame {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 241, 0.98)),
    linear-gradient(45deg, rgba(30, 58, 47, 0.04) 25%, transparent 25%, transparent 75%, rgba(30, 58, 47, 0.04) 75%, rgba(30, 58, 47, 0.04) 100%),
    linear-gradient(45deg, rgba(30, 58, 47, 0.04) 25%, transparent 25%, transparent 75%, rgba(30, 58, 47, 0.04) 75%, rgba(30, 58, 47, 0.04) 100%);
  background-position: 0 0, 0 0, 10px 10px;
  background-size: auto, 20px 20px, 20px 20px;
  border: 1px solid #e5e1d8;
  border-radius: 8px;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  overflow: hidden;
  padding: 7px 9px;
}

.st-public-quote-brand-logo-frame.is-full {
  min-height: 46px;
  min-width: 108px;
}

.st-public-quote-brand-logo-frame.is-square {
  height: 44px;
  padding: 6px;
  width: 44px;
}

.st-public-quote-brand-logo {
  display: block;
  height: auto;
  max-height: 44px;
  max-width: min(150px, 24vw);
  object-fit: contain;
  width: auto;
}

.st-public-quote-brand-logo.is-square {
  aspect-ratio: 1 / 1;
  max-height: 32px;
  max-width: 32px;
}

.st-public-quote-brand-mark {
  background: #fff7ed;
  border: 1px solid #ecd7c2;
  border-radius: 8px;
  display: grid;
  flex-shrink: 0;
  gap: 5px;
  height: 42px;
  padding: 8px;
  width: 42px;
}

.st-public-quote-brand-mark span:first-child {
  background: var(--st-forest-green);
  border-radius: 999px;
  height: 10px;
  width: 100%;
}

.st-public-quote-brand-mark span:last-child {
  background: var(--st-chainsaw-orange);
  border-radius: 999px;
  height: 5px;
  margin-top: auto;
  width: 60%;
}

.st-public-quote-header-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.st-public-quote-header-copy h1 {
  color: var(--st-forest-green);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  line-height: 1;
  max-width: 18rem;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.st-public-quote-header-summary,
.st-public-quote-location,
.st-public-quote-prepared-meta,
.st-public-quote-line-item-copy span,
.st-public-quote-section-summary,
.st-public-quote-actions-copy,
.st-public-quote-total-note,
.st-public-dialog-copy,
.st-public-quote-inline-note,
.st-public-quote-disclosure-copy .st-page-copy,
.st-public-quote-status-text span,
.st-public-quote-intro-copy {
  color: var(--st-text-secondary);
  line-height: 1.7;
}

.st-public-quote-doc-meta {
  background: transparent;
  border: 0;
  display: grid;
  gap: 4px;
  justify-self: end;
  min-width: 148px;
  padding: 0;
  text-align: right;
}

.st-public-quote-doc-label {
  color: #9ca3af;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.st-public-quote-doc-value {
  color: var(--st-charcoal);
  font-size: 1.5rem;
  line-height: 0.96;
}

.st-public-quote-doc-row {
  color: var(--st-text-secondary);
  font-size: 0.84rem;
  gap: 8px;
  justify-content: flex-end;
}

.st-public-quote-doc-row strong {
  color: var(--st-charcoal);
  font-weight: 600;
}

.st-public-quote-header-details {
  display: grid;
  gap: 6px;
}

.st-public-quote-header-contact-stack {
  align-items: flex-start;
  display: grid;
  gap: 4px;
  justify-items: start;
}

.st-public-quote-contact-line {
  align-items: center;
  color: var(--st-text-secondary);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 500;
  gap: 8px;
  justify-self: start;
  line-height: 1.4;
  text-decoration: none;
  width: fit-content;
  max-width: 100%;
}

.st-public-quote-contact-line span {
  min-width: 0;
}

.st-public-quote-contact-icon {
  fill: none;
  flex-shrink: 0;
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 14px;
}

.st-public-quote-contact-line:hover {
  color: var(--st-forest-green);
}

.st-public-quote-location,
.st-public-quote-prepared-meta {
  font-size: 0.92rem;
}

.st-public-quote-header-divider {
  background: #ded8cd;
  height: 1px;
}

.st-public-quote-prepared-for {
  display: grid;
  gap: 8px;
}

.st-public-quote-party h2 {
  color: var(--st-charcoal);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.st-public-quote-status-banner {
  margin-bottom: 0;
  padding: 14px 18px;
}

.st-public-quote-status-copy {
  flex: 1;
}

.st-public-quote-status-mark {
  background: currentColor;
  border-radius: 999px;
  flex-shrink: 0;
  height: 10px;
  margin-top: 7px;
  opacity: 0.72;
  width: 10px;
}

.st-public-quote-status-text {
  display: grid;
  gap: 2px;
}

.st-public-quote-status-text strong {
  color: currentColor;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.st-public-quote-intro {
  padding: 20px 24px;
}

.st-public-quote-intro-copy {
  font-size: 0.95rem;
}

.st-public-quote-section-heading h2,
.st-public-quote-items-header h2,
.st-public-quote-deposit-heading h2,
.st-public-quote-help h2,
.st-public-dialog h3 {
  color: var(--st-charcoal);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.st-public-quote-section-summary {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.st-public-quote-group,
.st-public-quote-action-list,
.st-public-quote-secondary-actions,
.st-public-quote-mobile-secondary-actions,
.st-public-quote-deposit-list {
  display: grid;
  gap: 10px;
}

.st-public-quote-line-item {
  background: #fffaf4;
  border: 1px solid #f0dac4;
  border-radius: 8px;
  padding: 14px 16px;
}

.st-public-quote-change-item {
  background: #fffaf4;
}

.st-public-quote-line-item-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.st-public-quote-line-item-copy strong {
  color: var(--st-charcoal);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.st-public-quote-line-item-amount,
.st-quote-summary-row strong {
  color: var(--st-charcoal);
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
}

.st-public-quote-line-item-amount.is-adjustment,
.st-public-quote-line-item-amount.is-negative,
.st-public-quote-totals-row .is-negative {
  color: var(--st-chainsaw-orange);
}

.st-public-quote-line-item-amount.is-positive,
.st-public-quote-totals-row .is-positive {
  color: #1f7a48;
}

.st-public-quote-contractor-note {
  background: #faf8f1;
  border: 1px solid #e5e1d8;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
}

.st-public-quote-items-card {
  overflow: hidden;
  padding: 0;
}

.st-public-quote-items-header {
  align-items: center;
  border-bottom: 1px solid #e5e1d8;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 24px;
}

.st-public-quote-items-header .st-card-kicker {
  margin-bottom: 4px;
}

.st-public-quote-item-row {
  background: #fff;
  border-bottom: 1px solid #f0ede6;
  padding: 18px 24px;
}

.st-public-quote-item-row-muted {
  background: #fcfbf8;
}

.st-public-quote-adjustment-header {
  background: #f1f7f3;
  border-bottom: 1px solid #f0ede6;
  padding: 12px 24px;
}

.st-public-quote-adjustment-header-muted {
  background: #f7f5ef;
}

.st-public-quote-adjustment-header span {
  color: var(--st-forest-green);
  font-family: "Rajdhani", "Aptos Display", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.st-public-quote-totals-panel {
  background: #f8f6f1;
  display: grid;
  gap: 8px;
  padding: 20px 24px;
}

.st-public-quote-totals-row {
  color: var(--st-text-secondary);
  font-size: 0.92rem;
}

.st-public-quote-totals-row strong {
  color: var(--st-charcoal);
  font-family: "Inter", "Aptos", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
}

.st-public-quote-totals-divider {
  background: #ded8cd;
  height: 1px;
  margin: 4px 0 6px;
}

.st-public-quote-totals-final span {
  color: var(--st-charcoal);
  font-size: 1.45rem;
  font-weight: 700;
}

.st-public-quote-totals-final strong {
  color: var(--st-charcoal);
  font-size: 2rem;
}

.st-public-quote-deposit-card {
  align-items: flex-start;
  background: #fff7ed;
  border: 1px solid #f5d3b3;
  border-radius: 8px;
  display: flex;
  gap: 14px;
  padding: 18px 22px;
}

.st-public-quote-deposit-icon {
  align-items: center;
  background: rgba(255, 122, 26, 0.12);
  border-radius: 8px;
  display: flex;
  flex-shrink: 0;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.st-public-quote-deposit-icon span {
  border: 2px solid var(--st-chainsaw-orange);
  border-radius: 999px;
  display: block;
  height: 14px;
  position: relative;
  width: 14px;
}

.st-public-quote-deposit-icon span::before {
  background: var(--st-chainsaw-orange);
  content: "";
  height: 4px;
  left: 50%;
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  width: 2px;
}

.st-public-quote-deposit-icon span::after {
  background: var(--st-chainsaw-orange);
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  width: 2px;
}

.st-public-quote-deposit-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.st-quote-summary-row {
  gap: 12px;
}

.st-quote-summary-row span {
  color: var(--st-text-secondary);
  font-size: 0.88rem;
}

.st-quote-summary-row strong {
  color: var(--st-charcoal);
  font-family: "Inter", "Aptos", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
}

.st-public-quote-actions {
  border-color: #e1ddd3;
  padding: 24px;
}

.st-public-quote-actions .st-btn {
  min-height: 50px;
}

.st-public-quote-actions .st-btn-primary {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.st-public-quote-secondary-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.st-public-quote-mobile-actions {
  display: none;
}

.st-public-quote-change-pill,
.st-public-quote-disclosure-tag {
  background: #fff5e9;
  border: 1px solid #f5d3b3;
  border-radius: 999px;
  color: #9b5a15;
  font-family: "Rajdhani", "Aptos Display", "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  padding: 8px 10px;
  white-space: nowrap;
}

.st-public-quote-disclosure-meta {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.st-public-quote-disclosure-chevron {
  border-bottom: 2px solid #9b5a15;
  border-right: 2px solid #9b5a15;
  display: inline-block;
  flex-shrink: 0;
  height: 10px;
  margin-top: -2px;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
  width: 10px;
}

.st-public-quote-inline-note {
  background: #faf8f1;
  border: 1px solid #e5e1d8;
  border-radius: 8px;
  padding: 12px 14px;
}

.st-public-quote-terms {
  color: var(--st-text-secondary);
  line-height: 1.75;
  white-space: pre-line;
}

.st-public-quote-history-section {
  padding: 0;
}

.st-public-quote-history-disclosure {
  display: grid;
  gap: 16px;
  padding: 18px 24px;
}

.st-public-quote-history-disclosure summary {
  cursor: pointer;
  list-style: none;
}

.st-public-quote-history-disclosure summary::-webkit-details-marker {
  display: none;
}

.st-public-quote-history-disclosure[open] summary {
  border-bottom: 1px solid #e5e1d8;
  padding-bottom: 16px;
}

.st-public-quote-history-disclosure[open] .st-public-quote-disclosure-chevron {
  transform: rotate(225deg);
}

.st-public-quote-disclosure-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.st-public-quote-disclosure-copy .st-card-kicker {
  margin-bottom: 0;
}

.st-public-quote-history-item {
  background: #faf8f4;
  border: 1px solid #ece7df;
  border-radius: 8px;
  padding: 14px 16px;
}

.st-public-quote-history-item.is-current {
  background: #eef3ef;
  border-color: #d8e4dc;
}

.st-public-quote-history-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.st-public-quote-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.st-public-quote-contact-chip {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--st-text-secondary);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: auto;
  padding: 0;
}

.st-public-quote-contact-chip:hover {
  color: var(--st-forest-green);
}

.st-public-quote-help {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid #ded8cd !important;
  box-shadow: none !important;
  padding: 24px 0 0;
  text-align: center;
}

.st-public-quote-help .st-card-kicker {
  margin-bottom: 2px;
}

.st-public-quote-help .st-public-quote-contact-list {
  justify-content: center;
}

.st-public-form-grid {
  display: grid;
  gap: 12px;
}

.st-public-input {
  background: #fff;
  border: 1px solid #dcd6ca;
  border-radius: 8px;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.st-public-input:focus-visible,
.st-public-radio-option input:focus-visible,
.st-public-checkbox input:focus-visible {
  border-color: rgba(30, 58, 47, 0.28);
  box-shadow: 0 0 0 4px rgba(30, 58, 47, 0.08);
  outline: 2px solid rgba(30, 58, 47, 0.18);
  outline-offset: 2px;
}

.st-public-textarea {
  min-height: 120px;
  resize: vertical;
}

.st-public-checkbox,
.st-public-radio-option {
  align-items: flex-start;
  display: flex;
  gap: 10px;
}

.st-public-checkbox span,
.st-public-radio-option span {
  line-height: 1.5;
}

.st-public-radio-list {
  display: grid;
  gap: 10px;
}

.st-public-dialog-layer {
  inset: 0;
  position: fixed;
  z-index: 1100;
}

.st-public-dialog-backdrop {
  background: rgba(28, 35, 38, 0.42);
  border: 0;
  cursor: pointer;
  inset: 0;
  padding: 0;
  position: absolute;
  width: 100%;
}

.st-public-dialog {
  left: 50%;
  max-width: min(460px, calc(100% - 32px));
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.st-public-dialog.st-floating-card {
  border-radius: 8px;
  box-shadow: 0 20px 44px rgba(17, 24, 39, 0.12);
  padding: 24px;
}

.st-public-dialog h3 {
  font-size: 1.55rem;
}

.st-public-dialog .st-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.st-public-layout :is(button, [href], input, textarea, [tabindex]):focus-visible {
  box-shadow: 0 0 0 4px rgba(30, 58, 47, 0.12);
  outline: 2px solid rgba(30, 58, 47, 0.22);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .st-public-quote-page {
    padding: 20px 12px 116px;
  }

  .st-public-quote-page .st-card,
  .st-public-quote-page .st-floating-card {
    padding: 18px;
  }

  .st-public-quote-header {
    padding: 0;
  }

  .st-public-quote-section-heading,
  .st-public-quote-status-heading,
  .st-public-quote-item-row,
  .st-public-quote-line-item,
  .st-public-quote-history-item,
  .st-public-quote-history-disclosure summary,
  .st-public-quote-totals-row,
  .st-public-quote-totals-final,
  .st-quote-summary-row,
  .st-public-quote-deposit-heading {
    flex-direction: column;
  }

  .st-public-quote-header-top,
  .st-public-quote-party-row {
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .st-public-quote-doc-meta {
    justify-self: stretch;
    min-width: 0;
    text-align: left;
  }

  .st-public-quote-doc-row {
    justify-content: flex-start;
  }

  .st-public-quote-brand-logo-frame.is-full {
    min-width: 96px;
  }

  .st-public-quote-brand-logo {
    max-width: min(140px, 42vw);
  }

  .st-public-quote-line-item-amount,
  .st-quote-summary-row strong,
  .st-public-quote-totals-row strong {
    text-align: left;
  }

  .st-public-quote-items-card,
  .st-public-quote-history-section {
    padding: 0 !important;
  }

  .st-public-quote-items-header,
  .st-public-quote-item-row,
  .st-public-quote-adjustment-header,
  .st-public-quote-totals-panel,
  .st-public-quote-history-disclosure {
    padding-left: 18px;
    padding-right: 18px;
  }

  .st-public-quote-secondary-actions {
    grid-template-columns: 1fr;
  }

  .st-public-quote-mobile-actions {
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #e5e1d8;
    bottom: 0;
    display: grid;
    gap: 10px;
    left: 0;
    padding: 12px;
    position: fixed;
    right: 0;
    z-index: 900;
  }

  .st-public-quote-mobile-secondary-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .st-public-quote-action-list {
    display: none;
  }

  .st-public-quote-help .st-public-quote-contact-list {
    align-items: center;
    flex-direction: column;
    gap: 10px;
  }

  .st-public-dialog {
    bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 12px));
    left: 12px;
    max-width: none;
    right: 12px;
    top: auto;
    transform: none;
    width: auto;
  }
}

.st-public-quote-page {
  background: #f7f5f0;
  color: #0e1110;
  padding: 28px 16px 80px;
}

.st-public-quote-shell-simplified {
  gap: 18px;
  max-width: 840px;
}

.st-public-quote-page .st-public-quote-simple-card,
.st-public-quote-page .st-public-quote-detail-card {
  background: #fff;
  border: 1px solid #dadada;
  border-radius: 8px;
  box-shadow: none;
}

.st-public-quote-compact-header {
  align-items: center;
  color: #111;
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  padding: 0 4px;
}

.st-public-quote-compact-header .st-public-quote-brand {
  align-items: center;
}

.st-public-quote-compact-header .st-public-quote-brand-logo-frame {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  min-height: 48px;
}

.st-public-quote-compact-header .st-public-quote-brand-logo-frame.is-full {
  min-height: 48px;
  min-width: 120px;
}

.st-public-quote-compact-header .st-public-quote-brand-logo-frame.is-square {
  height: 48px;
  width: 48px;
}

.st-public-quote-compact-header .st-public-quote-brand-logo {
  max-height: 46px;
  max-width: min(180px, 28vw);
}

.st-public-quote-compact-header .st-public-quote-brand-logo.is-square {
  max-height: 34px;
  max-width: 34px;
}

.st-public-quote-compact-header .st-public-quote-header-copy {
  gap: 2px;
}

.st-public-quote-compact-header .st-public-quote-header-copy h1,
.st-public-quote-compact-header .st-public-quote-header-copy p {
  color: #111;
  margin: 0;
}

.st-public-quote-compact-header .st-public-quote-header-copy h1 {
  font-family: "Inter", "Aptos", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  max-width: none;
  text-transform: none;
}

.st-public-quote-compact-header .st-public-quote-header-copy p,
.st-public-quote-compact-meta span:not(.st-status-pill) {
  color: #686868;
  font-size: 0.9rem;
}

.st-public-quote-compact-meta {
  align-items: flex-end;
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.st-public-quote-compact-meta strong {
  color: #fff;
  font-size: 0.95rem;
}

.st-public-quote-page .st-status-pill {
  border: 0;
  border-radius: 999px;
  font-family: "Inter", "Aptos", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  padding: 7px 10px;
  text-transform: none;
}

.st-public-quote-page .st-status-info,
.st-public-quote-page .st-status-warning {
  background: #f4ecdc;
  color: #624719;
}

.st-public-quote-page .st-status-success {
  background: #e5f0dd;
  color: #23651f;
}

.st-public-quote-page .st-status-neutral {
  background: #ececec;
  color: #4b4b4b;
}

.st-public-quote-page .st-status-error {
  background: #f7e3df;
  color: #8b2417;
}

.st-public-quote-simple-card {
  display: grid;
  gap: 18px;
  padding: 30px 34px;
}

.st-public-quote-simple-heading {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.st-public-quote-simple-heading p {
  color: #8d8b84;
  font-family: "Rajdhani", "Aptos Display", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.st-public-quote-simple-lines {
  display: grid;
}

.st-public-quote-simple-line {
  align-items: center;
  border-bottom: 1px solid #dedede;
  display: grid;
  column-gap: 16px;
  grid-template-columns: minmax(0, 1fr) max-content minmax(112px, 132px);
  min-height: 66px;
  padding: 10px 0;
}

.st-public-quote-simple-line-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.st-public-quote-simple-line-copy strong,
.st-public-quote-simple-empty strong {
  color: var(--st-charcoal);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.st-public-quote-simple-line-copy span,
.st-public-quote-simple-empty span {
  color: #5a5a5a;
  line-height: 1.5;
}

.st-public-quote-simple-badge {
  background: #e5efdc;
  border-radius: 999px;
  color: #286923;
  font-size: 0.78rem;
  grid-column: 2;
  justify-self: start;
  line-height: 1;
  padding: 6px 10px;
  white-space: nowrap;
}

.st-public-quote-simple-amount {
  color: var(--st-charcoal);
  font-family: "Rajdhani", "Aptos Display", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  grid-column: 3;
  justify-self: end;
  line-height: 1.1;
  min-width: 112px;
  text-align: right;
  white-space: nowrap;
}

.st-public-quote-simple-amount.is-negative,
.st-public-quote-simple-total-row .is-negative,
.st-public-quote-detail-line .is-negative {
  color: #9f341d;
}

.st-public-quote-simple-amount.is-positive,
.st-public-quote-simple-total-row .is-positive,
.st-public-quote-detail-line .is-positive {
  color: #23651f;
}

.st-public-quote-simple-totals {
  display: grid;
  gap: 9px;
}

.st-public-quote-simple-total-row,
.st-public-quote-simple-final-total {
  align-items: baseline;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.st-public-quote-simple-total-row span,
.st-public-quote-simple-total-row strong {
  color: #4b4b4b;
  font-size: 0.92rem;
  font-weight: 400;
}

.st-public-quote-simple-total-row strong {
  color: var(--st-charcoal);
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
}

.st-public-quote-simple-total-row .is-struck {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.st-public-quote-simple-total-row .is-deposit-paid {
  color: #62685f;
  font-weight: 500;
}

.st-public-quote-simple-total-row .is-remaining-balance {
  color: var(--st-charcoal);
  font-weight: 700;
}

.st-public-quote-simple-divider {
  background: #dedede;
  height: 1px;
  margin: 18px 0 10px;
}

.st-public-quote-simple-final-total span {
  color: var(--st-charcoal);
  font-family: "Rajdhani", "Aptos Display", "Segoe UI", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.st-public-quote-simple-final-total strong {
  color: var(--st-charcoal);
  font-family: "Rajdhani", "Aptos Display", "Segoe UI", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.st-public-quote-simple-final-total.is-compact strong {
  font-size: 2rem;
}

.st-public-quote-simple-deposit {
  gap: 18px;
}

.st-public-invoice-card {
  border-color: #cfc7b5 !important;
  background: #ffffff !important;
  gap: 20px;
}

.st-public-invoice-card-warning {
  background: #ffffff !important;
  border-color: #d7d7d7 !important;
}

.st-public-invoice-card-success {
  background: #f7fbf4 !important;
  border-color: #c9e3bf !important;
}

.st-public-invoice-card-info {
  background: #f7faf8 !important;
  border-color: #d8e4dc !important;
}

.st-public-invoice-status-row {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.st-public-invoice-status-row .st-status-pill {
  flex: 0 0 auto;
}

.st-public-invoice-reference {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.st-public-invoice-reference span {
  color: #686868;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.st-public-invoice-reference strong {
  color: #101010;
  font-size: 0.98rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.st-public-invoice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0;
  min-width: 0;
}

.st-public-invoice-meta div {
  display: grid;
  gap: 3px;
}

.st-public-invoice-meta dt,
.st-public-invoice-meta dd {
  margin: 0;
}

.st-public-invoice-meta dt {
  color: #686868;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.st-public-invoice-meta dd {
  color: #101010;
  font-size: 0.98rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.st-public-invoice-hero {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(160px, max-content);
}

.st-public-invoice-primary {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.st-public-invoice-primary span,
.st-public-invoice-facts dt {
  color: #686868;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.st-public-invoice-primary strong {
  color: #101010;
  font-family: "Rajdhani", "Aptos Display", "Segoe UI", sans-serif;
  font-size: 3rem;
  line-height: 0.95;
}

.st-public-invoice-primary p {
  color: #454545;
  line-height: 1.55;
  margin: 0;
}

.st-public-invoice-facts {
  display: grid;
  gap: 12px;
  margin: 0;
  min-width: 0;
}

.st-public-invoice-facts div {
  display: grid;
  gap: 3px;
  text-align: right;
}

.st-public-invoice-facts dt,
.st-public-invoice-facts dd {
  margin: 0;
}

.st-public-invoice-facts dd {
  color: #101010;
  font-size: 0.98rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.st-public-invoice-breakdown {
  display: grid;
  gap: 9px;
}

.st-public-invoice-line-items {
  display: grid;
  gap: 12px;
}

.st-public-invoice-state-note {
  color: #454545;
  line-height: 1.55;
  margin: 0;
}

.st-public-invoice-actions {
  display: grid;
}

.st-public-invoice-actions .st-btn {
  border-radius: 8px;
  min-height: 52px;
}

.st-public-invoice-actions .st-btn-primary {
  background: var(--st-forest-green);
  border-color: var(--st-forest-green);
  color: #fff;
}

.st-public-quote-simple-empty {
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 20px;
}

.st-public-quote-simple-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.st-public-quote-simple-actions .st-btn {
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 8px;
  color: #202020;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-height: 50px;
}

.st-public-quote-simple-actions .st-btn-primary {
  background: var(--st-forest-green);
  border-color: var(--st-forest-green);
  color: #fff;
}

.st-public-quote-simple-actions .st-btn:disabled {
  background: #f0f0f0;
  border-color: #dedede;
  color: #9a9a9a;
  opacity: 1;
}

.st-public-quote-secondary-action-row {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: center;
  min-height: 34px;
}

.st-public-quote-text-action {
  background: transparent;
  border: 0;
  color: #4d4d4d;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.st-public-quote-text-action:hover:not(:disabled) {
  color: #23651f;
}

.st-public-quote-text-action:disabled {
  color: #aaa;
  cursor: default;
}

.st-public-quote-detail-stack {
  display: grid;
  gap: 14px;
}

.st-public-quote-detail-card {
  overflow: hidden;
}

.st-public-quote-detail-card summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  list-style: none;
  padding: 20px 24px;
}

.st-public-quote-detail-card summary::-webkit-details-marker {
  display: none;
}

.st-public-quote-detail-card summary > span:first-child {
  display: grid;
  gap: 4px;
}

.st-public-quote-more-card summary > span:first-child > span {
  color: #686868;
  font-size: 0.9rem;
}

.st-public-quote-detail-card summary strong {
  color: #101010;
  font-size: 1rem;
}

.st-public-quote-detail-card .st-card-kicker {
  color: #777;
  margin: 0;
}

.st-public-quote-detail-card[open] summary {
  border-bottom: 1px solid #e4e4e4;
}

.st-public-quote-detail-card[open] .st-public-quote-disclosure-chevron {
  transform: rotate(225deg);
}

.st-public-quote-detail-body {
  display: grid;
  gap: 22px;
  padding: 18px 24px 24px;
}

.st-public-quote-detail-group {
  display: grid;
  gap: 10px;
}

.st-public-quote-detail-group h3 {
  color: #111;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  text-transform: none;
}

.st-public-quote-detail-line {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.st-public-quote-detail-line div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.st-public-quote-detail-line strong {
  color: #101010;
}

.st-public-quote-detail-line > strong {
  white-space: nowrap;
}

.st-public-quote-detail-line span,
.st-public-quote-detail-note,
.st-public-quote-detail-body.st-public-quote-terms {
  color: #5a5a5a;
  line-height: 1.6;
}

.st-public-quote-detail-note {
  background: #f8f8f8;
  border-radius: 8px;
  margin: 4px 0 0;
  padding: 12px 14px;
}

@media (max-width: 760px) {
  .st-public-quote-page {
    padding: 18px 12px 40px;
  }

  .st-public-quote-shell-simplified {
    gap: 18px;
  }

  .st-public-quote-compact-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .st-public-quote-compact-meta {
    align-items: start;
    justify-items: start;
    text-align: left;
  }

  .st-public-quote-simple-card {
    gap: 18px;
    padding: 24px 20px;
  }

  .st-public-quote-simple-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .st-public-quote-simple-heading p {
    font-size: 0.8rem;
  }

  .st-public-quote-simple-line {
    column-gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 62px;
    padding: 12px 0;
  }

  .st-public-quote-simple-line-copy {
    grid-column: 1 / -1;
  }

  .st-public-quote-simple-line-copy strong {
    font-size: 1rem;
  }

  .st-public-quote-simple-badge {
    grid-column: 1;
    justify-self: start;
  }

  .st-public-quote-simple-amount {
    font-size: 1.2rem;
    grid-column: 2;
    min-width: 92px;
  }

  .st-public-quote-simple-total-row,
  .st-public-quote-simple-final-total,
  .st-public-quote-detail-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .st-public-quote-simple-final-total strong {
    font-size: 2rem;
  }

  .st-public-quote-simple-actions {
    grid-template-columns: 1fr;
  }

  .st-public-quote-simple-actions .st-btn {
    font-size: 1rem;
    min-height: 50px;
  }

  .st-public-invoice-hero {
    grid-template-columns: 1fr;
  }

  .st-public-invoice-primary strong {
    font-size: 2.4rem;
  }

  .st-public-invoice-facts div {
    text-align: left;
  }
}

@media print {
  @page {
    margin: 0.5in;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .st-public-layout,
  .st-public-quote-page {
    background: #fff !important;
    min-height: auto !important;
    padding: 0 !important;
  }

  .st-public-quote-shell,
  .st-public-quote-shell-simplified {
    gap: 12px !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }

  .st-public-quote-page .st-card,
  .st-public-quote-page .st-floating-card,
  .st-public-quote-page .st-public-quote-simple-card,
  .st-public-quote-page .st-public-quote-detail-card {
    border-color: #d7d2c8 !important;
    box-shadow: none !important;
  }

  .st-public-quote-header,
  .st-public-quote-simple-card,
  .st-public-quote-detail-card,
  .st-public-quote-help {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .st-public-quote-header {
    gap: 12px !important;
  }

  .st-public-quote-header-top {
    gap: 18px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .st-public-quote-party-row {
    gap: 18px !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  .st-public-quote-brand-logo-frame {
    background: #fff !important;
    padding: 5px 7px !important;
  }

  .st-public-quote-brand-logo-frame.is-full {
    min-height: 38px !important;
    min-width: 92px !important;
  }

  .st-public-quote-brand-logo-frame.is-square {
    height: 38px !important;
    width: 38px !important;
  }

  .st-public-quote-brand-logo {
    max-height: 34px !important;
    max-width: 118px !important;
  }

  .st-public-quote-brand-logo.is-square {
    max-height: 28px !important;
    max-width: 28px !important;
  }

  .st-public-quote-header-copy h1 {
    font-size: 18pt !important;
    line-height: 1 !important;
    max-width: none !important;
  }

  .st-public-quote-party h2 {
    font-size: 14pt !important;
  }

  .st-public-quote-doc-meta {
    min-width: 1.25in !important;
  }

  .st-public-quote-doc-value {
    font-size: 14pt !important;
  }

  .st-public-quote-contact-line,
  .st-public-quote-location,
  .st-public-quote-prepared-meta,
  .st-public-quote-doc-row,
  .st-public-quote-simple-total-row span,
  .st-public-quote-simple-total-row strong {
    font-size: 9pt !important;
  }

  .st-public-quote-simple-card {
    gap: 10pt !important;
    padding: 16pt 18pt !important;
  }

  .st-public-quote-simple-line {
    min-height: 0 !important;
    padding: 7pt 0 !important;
  }

  .st-public-quote-simple-line-copy strong {
    font-size: 10pt !important;
  }

  .st-public-quote-simple-amount {
    font-size: 12pt !important;
  }

  .st-public-quote-simple-total-row,
  .st-public-quote-simple-final-total,
  .st-public-quote-detail-line {
    align-items: baseline !important;
    flex-direction: row !important;
    gap: 12pt !important;
    justify-content: space-between !important;
  }

  .st-public-quote-simple-total-row span,
  .st-public-quote-simple-final-total span,
  .st-public-quote-detail-line > div {
    min-width: 0 !important;
  }

  .st-public-quote-simple-total-row strong,
  .st-public-quote-simple-final-total strong,
  .st-public-quote-detail-line > strong {
    margin-left: auto !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  .st-public-quote-simple-final-total span {
    font-size: 13pt !important;
  }

  .st-public-quote-simple-final-total strong {
    font-size: 18pt !important;
  }

  .st-public-quote-simple-actions {
    display: none !important;
  }

  .st-public-quote-help {
    padding-top: 14pt !important;
  }

  .st-public-quote-page a {
    color: inherit !important;
    text-decoration: none !important;
  }
}
