body {
  margin: 0;
  background: var(--paper, #f7f6f5);
  font-family:
    "DM Sans",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.desktop-public-header {
  display: none;
}

.desktop-chrome-trigger {
  display: none;
}

#app {
  box-sizing: border-box;
  max-width: 500px;
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 100vh;
    box-sizing: border-box;
    padding: 20px 24px 118px;
  }

  .desktop-public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(860px, 100%);
    margin: 0 auto;
    padding: 0 10px 8px;
    box-sizing: border-box;
    border-bottom: 1px solid #cfdee3;
    color: var(--public-brand-dark, var(--ink, #0d0d0f));
  }

  .desktop-public-header strong {
    font-size: 17px;
    letter-spacing: 0.01em;
  }

  .desktop-public-header span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #58707a;
  }

  .desktop-quick-mark {
    width: 14px;
    height: 14px;
    color: var(--public-brand, #087b91);
  }

  #app {
    align-self: center;
    margin: 0 auto;
  }

  body.public-form-expanded {
    display: flex;
    justify-content: flex-start;
    padding-bottom: 28px;
  }

  body.public-form-expanded .desktop-public-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 8;
    width: min(860px, calc(100% - 48px));
    margin: 0 auto;
    padding-top: 14px;
    background: var(--paper, #f7f6f5);
    transform: translateY(-100%);
    transition: transform 160ms ease;
  }

  body.public-form-expanded #app {
    align-self: auto;
    margin: 0 auto;
    transition: transform 160ms ease;
  }

  body.public-form-expanded .desktop-orcamento-footer {
    display: block !important;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 8;
    margin: 0;
    transform: translateY(100%);
    transition: transform 160ms ease;
  }

  body.public-form-expanded .desktop-chrome-trigger {
    display: block;
    position: fixed;
    right: 0;
    left: 0;
    z-index: 9;
    height: 7px;
    background: color-mix(in srgb, var(--public-brand, #087b91) 70%, transparent);
  }

  body.public-form-expanded .desktop-chrome-trigger-top {
    top: 0;
  }

  body.public-form-expanded .desktop-chrome-trigger-bottom {
    bottom: 0;
  }

  body.public-form-expanded:has(.desktop-chrome-trigger-top:hover) .desktop-public-header,
  body.public-form-expanded:has(.desktop-public-header:hover) .desktop-public-header {
    transform: translateY(0);
  }

  body.public-form-expanded:has(.desktop-chrome-trigger-top:hover) #app,
  body.public-form-expanded:has(.desktop-public-header:hover) #app {
    transform: translateY(64px);
  }

  body.public-form-expanded:has(.desktop-chrome-trigger-bottom:hover) .desktop-orcamento-footer,
  body.public-form-expanded:has(.desktop-orcamento-footer:hover) .desktop-orcamento-footer {
    transform: translateY(0);
  }

  body.public-form-expanded:has(.desktop-chrome-trigger-bottom:hover) #app,
  body.public-form-expanded:has(.desktop-orcamento-footer:hover) #app {
    transform: translateY(-44px);
  }

  #app .standard-footer {
    display: none;
  }

  .desktop-orcamento-footer {
    display: block !important;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    background: var(--paper, #f7f6f5);
    border-top: 1px solid #cfdee3;
  }

  .desktop-orcamento-footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    width: min(860px, calc(100% - 48px));
    margin: 0 auto;
    padding: 12px 2px;
    color: #71858d;
    font-size: 10px;
    line-height: 1.4;
  }

  .desktop-orcamento-footer-inner a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .desktop-orcamento-footer-inner a:hover,
  .desktop-orcamento-footer-inner a:focus-visible {
    color: var(--public-brand, #087b91);
  }

  .desktop-orcamento-product {
    justify-self: end;
    color: #58707a;
    font-weight: 700;
  }
}

.desktop-orcamento-footer {
  display: none;
}

h1 {
  margin: 0 0 12px;
  font-family: "Plus Jakarta Sans", inherit;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink, #0d0d0f);
  text-align: center;
  line-height: 1.25;
}

.desktop-title {
  display: inline;
}

.mobile-title {
  display: none;
}

@media (max-width: 480px) {
  .desktop-title {
    display: none;
  }

  .mobile-title {
    display: inline;
  }
}

p {
  margin: 0 0 16px;
  font-size: 15px;
  color: #444;
}

#stepArea p {
  font-weight: 600;
}

#subText {
  text-align: center;
  font-weight: 600;
  color: #0069a8;
  margin-top: -4px;
}

.choice {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  font-family: inherit;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 15px;
  background: #fff;
  transition: all 0.2s ease;
}

.choice:hover {
  background: #f2f2f2;
}

.choiceTitle {
  display: block;
  font-weight: 700;
}

.choiceHint {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #666;
}

.navbar {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 10px;
}

.nav-btn {
  flex: 1;
  padding: 14px;
  border-radius: 8px;
  border: 0;
  background: #444;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn[style*="not-allowed"] {
  background: #cfd8dc !important;
  color: #ffffff !important;
}

.nav-btn:hover {
  opacity: 0.85;
}

.btn {
  padding: 14px;
  border-radius: 8px;
  border: 0;
  font-size: 16px;
  width: 100%;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

#whatsBtn {
  background: #25d366;
  margin-top: 14px;
  color: #fff;
}

#resetBtn {
  background: #007bbf;
  margin-top: 10px;
  color: #fff;
}

.btn:hover {
  opacity: 0.9;
}

.inputBox {
  position: relative;
  margin-bottom: 16px;
}

.inputBox input {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #239ddb;
  font-size: 15px;
  background: #e8f6ff;
  box-sizing: border-box;
}

.inputBox input.plain {
  background: #fff !important;
}

.measurementNotice {
  margin: -7px 0 8px;
  padding: 6px 9px;
  border-left: 3px solid #16869a;
  border-radius: 4px;
  background: #eef8fa;
  color: #1f535e;
  font-size: 12px;
  line-height: 1.35;
}

.measurementNotice strong {
  color: var(--public-brand-dark, #8e1c17);
}
.inputBox.hasInputWarning input {
  border-color: #d32f2f;
  background: #fff4f4;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.14);
}

.inputFeedback {
  display: none;
  margin-top: 7px;
  padding: 8px 10px;
  border-left: 3px solid #d32f2f;
  border-radius: 6px;
  background: #fff4f4;
  font-size: 12px;
  font-weight: 700;
  color: #9f1d1d;
  line-height: 1.3;
}

.inputBox.hasInputWarning .inputFeedback {
  display: block;
}

.quantityConfirmOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(17, 25, 40, 0.38);
}

.quantityConfirmDialog {
  width: min(92vw, 360px);
  padding: 18px;
  border: 1px solid #d8dde5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  color: #111;
}

.quantityConfirmTitle {
  margin: 0 0 8px;
  color: var(--ink, #0d0d0f);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.quantityConfirmText {
  margin: 0;
  color: #344055;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.quantityConfirmQty {
  color: #007bbf;
  font-weight: 800;
  white-space: nowrap;
}

.quantityConfirmActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.quantityConfirmActions button {
  min-width: 92px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.quantityConfirmOk {
  background: #007bbf;
  color: #fff;
}

.quantityConfirmEdit {
  border: 1px solid #b8dcef !important;
  background: #e8f6ff;
  color: var(--ink, #0d0d0f);
}

.skipDetailsDialog {
  width: min(92vw, 320px);
  padding: 16px;
  text-align: center;
}

.skipDetailsNotice,
.skipDetailsQuestion {
  margin: 0;
  color: #344055;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.skipDetailsQuestion {
  margin-top: 9px;
  color: var(--ink, #0d0d0f);
  font-weight: 800;
}

.skipDetailsDialog .quantityConfirmActions,
#leaveQuoteModal .quantityConfirmActions {
  justify-content: center;
  margin-top: 14px;
}

.skipDetailsDialog .quantityConfirmActions button {
  min-width: 100px;
  padding: 9px 12px;
}

@media (max-width: 420px) {
  .skipDetailsDialog .quantityConfirmActions {
    flex-direction: row;
  }

  .skipDetailsDialog .quantityConfirmActions button {
    width: auto;
    min-width: 0;
    flex: 1;
    padding: 9px 8px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .quantityConfirmActions {
    flex-direction: column-reverse;
  }

  .quantityConfirmActions button {
    width: 100%;
  }
}

.progressWrap {
  margin-bottom: 16px;
}

.progressText {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.progressBar {
  height: 6px;
  background: #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.progressInner {
  height: 100%;
  background: #007bbf;
  width: 0;
  transition: width 0.3s ease;
}

.fade {
  animation: fade 0.2s;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  .navbar {
    flex-direction: row;
  }

  .nav-btn {
    flex: 1;
  }
}

.choice.selected {
  border-color: #239ddb;
  background: #e8f6ff;
}

.choice.choiceWarning {
  border-color: #d32f2f;
  background: #fff4f4;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.14);
}

.choiceFeedback {
  display: block;
  margin: 2px 0 14px;
}

.choice.choice-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.choice.choice-check .mark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #239ddb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  background: #fff;
  flex: 0 0 auto;
}

.choice.selected.choice-check .mark {
  color: var(--ink, #0d0d0f);
  background: #fff;
}

.subHint {
  margin: -10px 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: #239ddb;
  text-align: left;
}

.hBold {
  font-weight: 900;
  color: #000;
}

.helperHint {
  margin: -10px 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #777;
  text-align: left;
}

.help-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

.help-question {
  margin: 0;
  flex: 1;
  font-weight: 600;
  font-size: 15px;
  color: #444;
}

.help-container {
  position: relative;
  flex: 0 0 auto;
}

.help-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--public-brand, #087b91);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.help-container.is-help-pinned .help-btn {
  background: var(--public-brand-dark, var(--public-brand-dark, #8e1c17));
  box-shadow: 0 0 0 3px var(--public-brand-soft, #e5f4f7);
  font-size: 0;
}

.help-container.is-help-pinned .help-btn::after {
  content: "×";
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
}

.help-box {
  display: none;
  position: absolute;
  z-index: 100;
  width: min(420px, calc(100vw - 48px));
  padding: 13px 15px;
  border-radius: 10px;
  background: var(--ink, #0d0d0f);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.help-box::before {
  position: absolute;
  top: -6px;
  right: 16px;
  width: 12px;
  height: 12px;
  background: var(--ink, #0d0d0f);
  content: "";
  transform: rotate(45deg);
}

.help-container.is-help-pinned .help-box {
  display: block;
}

.help-container.is-help-dismissed .help-box {
  display: none !important;
}

@media (min-width: 768px) {
  .help-box {
    top: 34px;
    right: -10px;
  }

  .help-container:hover .help-box {
    display: block;
  }
}

@media (max-width: 767px) {
  .help-box {
    top: 30px;
    right: 0;
    width: min(340px, calc(100vw - 32px));
    padding: 12px;
    font-size: 12px;
  }

  .help-box::before {
    right: 7px;
  }
}

@media (max-width: 420px) {
  .inputBox input::placeholder {
    font-size: 12px;
  }
}

.choice-sub {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #66738d;
  margin-top: 4px;
  line-height: 1.3;
}

.fieldLabel {
  display: block;
  margin: -4px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #444;
}

.fieldHint {
  margin: -8px 0 16px;
  font-size: 12px;
  font-weight: 600;
  color: #777;
}

.fieldHint.is-error {
  color: #b00020;
}
[hidden] {
  display: none !important;
}
#orderSummary {
  margin: 16px 0;
  text-align: left;
}
.order-item {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  margin: 8px 0;
  overflow-wrap: normal;
}
.order-item p {
  margin: 6px 0;
  font-size: 14px;
}
.order-item button {
  margin: 4px 8px 0 0;
  padding: 8px 12px;
  cursor: pointer;
}
#itemHeading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  line-height: 1.4;
}
#itemHeadingText {
  min-width: 0;
  overflow-wrap: normal;
}
#changeServiceBtn {
  padding: 7px 4px;
  border: 0;
  background: transparent;
  color: #006ca6;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
#changeServiceBtn:focus-visible {
  outline: 2px solid #007bbf;
  outline-offset: 2px;
  border-radius: 3px;
}
#orderFeedback {
  font-size: 14px;
}
#orderActions button:focus-visible {
  outline: 2px solid #007bbf;
  outline-offset: 3px;
}
.order-item summary {
  cursor: pointer;
}
.order-item-subtitle {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #666;
}
.review-client {
  font-size: 14px;
  color: #555;
}
#orderActions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
#orderActions .secondary-action {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #9bbdd1;
  border-radius: 8px;
  margin: 0;
  color: #006ca6;
  background: #f2f8fc;
  font-size: 14px;
  line-height: 1.3;
}
#orderActions .secondary-action:hover {
  filter: brightness(0.94);
  opacity: 1;
}
#orderActions.single-action {
  grid-template-columns: 1fr;
}
#navControls.final-navigation {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  margin-top: 14px;
}
#navControls.final-navigation button {
  min-height: 48px;
  font-weight: 600;
  padding: 12px 10px;
}
#navControls.final-navigation #backBtn {
  border: 0;
  background: #536477;
  color: #fff;
}
#orderFeedback:empty {
  display: none;
}
#orderFeedback:not(:empty) {
  margin: 12px 0;
  text-align: center;
  line-height: 1.4;
}
#resetBtn {
  display: flex;
  width: max-content;
  max-width: 100%;
  min-width: 128px;
  min-height: 44px;
  margin: 16px auto 0;
  padding: 8px 14px;
  font-size: 13px;
}
.button-icon {
  display: inline-flex;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
.button-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
#navControls button,
#orderActions button,
#resetBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
#navControls .button-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}
#navControls button:focus-visible,
#resetBtn:focus-visible {
  outline: 2px solid #007bbf;
  outline-offset: 3px;
}
#orderActions .fieldHint {
  margin: 10px 0 16px;
  line-height: 1.4;
}
#nextBtn.final-action {
  background: #536477;
  color: #fff;
}
#nextBtn.whatsapp-action {
  background: #187b40;
  color: #fff;
}
#orderActions #addItemBtn {
  background: #007bbf;
  border-color: #007bbf;
  color: #fff;
}
#orderActions #copyOrderBtn {
  background: #67528c;
  border-color: #67528c;
  color: #fff;
}
#navControls .nav-btn {
  background: #536477;
  color: #fff;
}
#navControls #nextBtn.whatsapp-action {
  background: #187b40;
  color: #fff;
}
#resetBtn,
.btn-soft-danger {
  background: #fff0ee !important;
  color: #9c302b !important;
  border: 1px solid #dca6a0 !important;
}
#resetHome #resetBtn {
  width: 100%;
  box-sizing: border-box;
}
#orderActions #resetBtn {
  width: 100%;
  min-width: 0;
  margin: 0;
  height: 44px;
  box-sizing: border-box;
}
#orderActions.with-reset #addItemBtn {
  order: 1;
}
#orderActions.with-reset #resetBtn {
  order: 2;
}
#orderActions.with-reset {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#orderActions.with-reset #copyOrderBtn {
  order: 3;
  width: 100%;
}
#mobileCopyOption {
  display: none;
}
#mobileCopyOption summary {
  color: #526579;
  font-size: 13px;
  line-height: 20px;
  padding: 12px 0;
  cursor: pointer;
}
#mobileCopyOption p {
  margin: 2px 0 10px;
  font-size: 13px;
  line-height: 1.4;
}
#mobileCopyBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 14px;
  background: #67528c;
  color: #fff;
  font-size: 14px;
}
#mobileCopyOption summary:focus-visible,
#mobileCopyBtn:focus-visible {
  outline: 2px solid #007bbf;
  outline-offset: 2px;
}
#navControls.final-navigation button,
#orderActions .secondary-action {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  padding: 8px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  border-radius: 8px;
}
#navControls #nextBtn.whatsapp-action {
  padding: 4px 6px;
  line-height: 16px;
}
.review-item-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 260px;
  margin: 12px auto 0;
}
.review-item-actions button {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}
@media (min-width: 481px) and (max-width: 600px) {
  h1 .desktop-title {
    display: none;
  }
  h1 .mobile-title {
    display: inline;
    font-size: 19px;
    white-space: nowrap;
  }
}
.quick-mark {
  width: 0.85em;
  height: 0.95em;
  margin-right: 4px;
  vertical-align: -0.05em;
}
.send-mobile {
  display: none;
}
#navControls .navigation-triangle {
  width: auto;
  height: auto;
  flex: none;
  font-size: 0.9em;
}
.order-item button {
  border: 1px solid #bbb;
  border-radius: 6px;
  background: #fff;
  color: #333;
  min-height: 38px;
}
@media (max-width: 480px) {
  #orderActions.with-reset {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #orderActions:not(.with-reset) {
    grid-template-columns: 1fr;
  }
  #copyOrderBtn {
    display: none !important;
  }
  #mobileCopyOption {
    display: block;
    margin-top: 2px;
  }
  h1 .mobile-title {
    font-size: clamp(14px, 4.25vw, 19px);
    white-space: nowrap;
  }
  #nextBtn.whatsapp-action .button-icon,
  .send-desktop {
    display: none;
  }
  .send-mobile {
    display: inline;
    white-space: nowrap;
  }
  #navControls #nextBtn.whatsapp-action {
    font-size: 13px;
    white-space: nowrap;
  }
  #navControls.ring-navigation #nextBtn {
    font-size: 12px;
    padding: 8px 6px;
    gap: 4px;
    white-space: nowrap;
  }
  body {
    padding: 12px;
  }
  #app {
    padding: 18px;
    min-width: 0;
  }
  .inputBox input,
  #orderText {
    font-size: 16px;
  }
  #changeServiceBtn {
    min-height: 44px;
    min-width: 44px;
  }
  #orderActions .secondary-action,
  .order-item button {
    min-height: 44px;
  }
  #orderActions .secondary-action {
    font-size: 13px;
    gap: 5px;
    white-space: nowrap;
  }
  #orderActions .button-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
  }
  .order-item summary {
    min-height: 44px;
  }
}
