html.oc-terms-locked, html.oc-terms-locked body { overflow: hidden !important; }
.oc-terms-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(20, 17, 23, .62); backdrop-filter: blur(5px); }
.oc-terms-modal { width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; gap: 14px; border: 1px solid #e7deeb; border-radius: 26px; padding: 24px; background: #fff; color: #241d29; box-shadow: 0 24px 64px rgba(27, 18, 32, .36); font-family: Arial, Helvetica, sans-serif; }
.oc-terms-kicker { color: #82518e; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.oc-terms-modal h2 { margin: -3px 0 0; font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.08; letter-spacing: -.04em; }
.oc-terms-intro { margin: -6px 0 2px; color: #6d6571; font-size: 13px; line-height: 1.45; }
.oc-onboarding-section { min-width: 0; margin: 0; border: 1px solid #e9e1eb; border-radius: 18px; padding: 14px; background: #fcfafc; }
.oc-onboarding-heading, .oc-onboarding-section legend { display: flex; align-items: center; gap: 9px; margin: 0 0 11px; padding: 0; color: #302737; font-size: 13px; font-weight: 850; }
.oc-onboarding-heading > span, .oc-onboarding-section legend > span { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: #f0e3f2; color: #6e3877; font-size: 11px; font-weight: 900; }
.oc-onboarding-heading h3 { margin: 0; font-size: inherit; }
.oc-location-field { display: grid; grid-template-columns: 56px minmax(0, 190px); align-items: center; gap: 9px; }
.oc-field-label, .oc-address-grid label > span { color: #594f5e; font-size: 11px; font-weight: 800; }
.oc-location-field input, .oc-address-grid input, .oc-address-grid select { width: 100%; min-height: 42px; border: 1px solid #d9cedd; border-radius: 11px; padding: 0 12px; background: #fff; color: #2b2330; font: inherit; font-size: 13px; }
.oc-location-field input:focus, .oc-address-grid input:focus, .oc-address-grid select:focus { border-color: #9860a1; outline: 3px solid rgba(130, 81, 142, .12); }
#oc-location-status { display: block; margin: 7px 0 0 65px; color: #7d7381; font-size: 10px; line-height: 1.4; }
#oc-location-status.is-loading { color: #6f5274; }
#oc-location-status.is-success { color: #2f7448; font-weight: 800; }
#oc-location-status.is-error, .oc-address-results .is-error { color: #a13c3c; font-weight: 750; }
.oc-address-toggle, .oc-address-back, .oc-location-defer { margin: 9px 0 0 65px; border: 0; padding: 0; background: transparent; color: #6e3877; font: inherit; font-size: 11px; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.oc-location-defer { margin-left: 12px; color: #8a5d35; }
.oc-location-defer[hidden] { display: none; }
.oc-address-mode[hidden], .oc-cep-mode[hidden] { display: none !important; }
.oc-address-mode > p { margin: 0 0 10px; color: #6f6674; font-size: 11px; }
.oc-address-grid { display: grid; grid-template-columns: 82px minmax(0, 1fr) minmax(0, 1.4fr); gap: 9px; }
.oc-address-grid label { display: grid; gap: 5px; }
.oc-address-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; }
.oc-address-back { margin: 0; }
.oc-address-search { min-height: 38px; border: 0; border-radius: 10px; padding: 0 14px; background: #4b184f; color: #ffbd24; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.oc-address-search:disabled { opacity: .55; cursor: wait; }
.oc-address-results { margin-top: 10px; }
.oc-address-results > p { margin: 0; color: #746a79; font-size: 11px; }
.oc-address-results-title { margin-bottom: 6px !important; font-weight: 800; }
.oc-address-results > div { max-height: 190px; display: grid; gap: 6px; overflow: auto; }
.oc-address-results button { display: grid; gap: 3px; border: 1px solid #e5dce8; border-radius: 11px; padding: 9px 11px; background: #fff; color: #332a38; font: inherit; text-align: left; cursor: pointer; }
.oc-address-results button:hover { border-color: #b993c0; background: #f9f1fa; }
.oc-address-results button strong { font-size: 11px; }
.oc-address-results button span { color: #756d79; font-size: 9px; }
.oc-choice-grid { display: grid; gap: 7px; }
.oc-choice-grid--profile { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.oc-choice-grid--purchase { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.oc-choice-grid label { min-width: 0; cursor: pointer; }
.oc-choice-grid input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.oc-choice-grid span { min-height: 39px; display: flex; align-items: center; justify-content: center; border: 1px solid #e0d6e3; border-radius: 11px; padding: 7px 9px; background: #fff; color: #504657; font-size: 10px; font-weight: 750; line-height: 1.2; text-align: center; transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease; }
.oc-choice-grid input:checked + span { border-color: #82518e; background: #f1e3f3; color: #54225b; box-shadow: inset 0 0 0 1px #82518e; }
.oc-choice-grid input:focus-visible + span { outline: 3px solid rgba(130, 81, 142, .18); outline-offset: 2px; }
.oc-terms-summary { display: flex; align-items: flex-start; gap: 9px; border-radius: 13px; padding: 10px 11px; background: #fff7df; color: #68541d; }
.oc-terms-summary > span { width: 18px; height: 18px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #f4d36b; color: #5b4814; font-size: 11px; font-weight: 900; }
.oc-terms-summary p { margin: 1px 0 0; font-size: 10px; line-height: 1.4; }
.oc-terms-check { display: flex; align-items: center; gap: 9px; border: 1px solid #e6dce9; border-radius: 13px; padding: 11px 12px; background: #faf7fb; color: #463e50; font-size: 12px; line-height: 1.4; cursor: pointer; }
.oc-terms-check input { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; accent-color: #5b205f; }
.oc-terms-check a { color: #672c70; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.oc-onboarding-error { margin: -4px 0 0; color: #a13c3c; font-size: 10px; font-weight: 750; }
.oc-terms-actions { display: flex; justify-content: flex-end; }
.oc-terms-actions button { min-width: 206px; min-height: 45px; border: 0; border-radius: 12px; padding: 0 19px; background: #4b184f; color: #ffbd24; font-size: 13px; font-weight: 900; cursor: pointer; }
.oc-terms-actions button:hover:not(:disabled) { background: #5b205f; }
.oc-terms-actions button:disabled { opacity: .38; cursor: not-allowed; }
@media (max-width: 700px) {
  .oc-terms-overlay { align-items: end; padding: 0; }
  .oc-terms-modal { width: 100%; max-height: 94dvh; gap: 12px; border-radius: 22px 22px 0 0; padding: 19px 15px calc(17px + env(safe-area-inset-bottom)); }
  .oc-choice-grid--profile, .oc-choice-grid--purchase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oc-address-grid { grid-template-columns: 72px minmax(0, 1fr); }
  .oc-address-street { grid-column: 1 / -1; }
  .oc-terms-actions button { width: 100%; }
}
@media (max-width: 420px) {
  .oc-location-field { grid-template-columns: 48px minmax(0, 1fr); }
  #oc-location-status, .oc-address-toggle { margin-left: 57px; }
  .oc-location-defer { margin-left: 10px; }
}

/* Onboarding em três etapas */
.oc-terms-modal {
  width: min(540px, 100%);
  gap: 16px;
  padding: 26px;
  overflow-x: hidden;
}
.oc-onboarding-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.oc-onboarding-header h2 { margin-top: 3px; }
.oc-onboarding-header .oc-terms-intro { margin: 5px 0 0; }
.oc-progress-copy {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 1px;
  color: #75687a;
  font-size: 10px;
}
.oc-progress-copy strong {
  color: #5b205f;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.03em;
}
.oc-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee7f0;
}
.oc-progress-track > span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #5b205f, #9a55a2);
  transition: width .24s ease;
}
.oc-step-caption {
  margin: -6px 0 0;
  color: #806f86;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.oc-onboarding-step[hidden] { display: none !important; }
.oc-onboarding-section {
  min-height: 220px;
  border: 0;
  border-radius: 0;
  padding: 4px 0 0;
  background: transparent;
}
.oc-onboarding-heading,
.oc-onboarding-section legend {
  margin-bottom: 16px;
  color: #2f2734;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.oc-step-help {
  margin: -8px 0 18px;
  color: #756b79;
  font-size: 11px;
  line-height: 1.45;
}
.oc-choice-grid--profile,
.oc-choice-grid--purchase {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.oc-choice-grid span {
  min-height: 48px;
  border-radius: 13px;
  padding: 9px 12px;
  font-size: 11px;
}
.oc-profile-other {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: #594f5e;
  font-size: 11px;
  font-weight: 800;
}
.oc-profile-other[hidden] { display: none !important; }
.oc-profile-other input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid #d9cedd;
  border-radius: 11px;
  padding: 0 12px;
  background: #fff;
  color: #2b2330;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
}
.oc-profile-other input:focus {
  border-color: #9860a1;
  outline: 3px solid rgba(130, 81, 142, .12);
}
.oc-location-field {
  grid-template-columns: 48px minmax(0, 220px);
}
#oc-location-status {
  margin-left: 57px;
  font-size: 11px;
}
.oc-location-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 0 57px;
}
.oc-location-links .oc-address-toggle,
.oc-location-links .oc-location-defer {
  margin: 0;
}
.oc-terms-note {
  margin: 17px 0 9px;
  color: #756b79;
  font-size: 10px;
  line-height: 1.45;
}
.oc-terms-check {
  border: 0;
  padding: 10px 0 0;
  background: transparent;
}
.oc-terms-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #eee7f0;
  padding-top: 16px;
}
.oc-terms-actions button {
  min-width: 138px;
  min-height: 44px;
}
.oc-terms-actions .oc-step-back {
  min-width: 86px;
  border: 1px solid #ddd2e0;
  background: #fff;
  color: #5b205f;
}
.oc-terms-actions .oc-step-back:hover {
  border-color: #b897bd;
  background: #faf6fb;
}
.oc-step-back[hidden] { display: none !important; }
.oc-terms-actions .oc-step-next { margin-left: auto; }

@media (max-width: 700px) {
  .oc-terms-modal {
    width: 100%;
    max-height: 92dvh;
    gap: 14px;
    padding: 21px 17px calc(17px + env(safe-area-inset-bottom));
  }
  .oc-onboarding-section { min-height: 250px; }
  .oc-onboarding-header { gap: 12px; }
  .oc-progress-copy strong { font-size: 18px; }
  .oc-choice-grid--profile,
  .oc-choice-grid--purchase { grid-template-columns: 1fr 1fr; }
  .oc-location-field { grid-template-columns: 44px minmax(0, 1fr); }
  #oc-location-status { margin-left: 53px; }
  .oc-location-links { margin-left: 53px; }
  .oc-terms-actions button { width: auto; }
  .oc-terms-actions .oc-step-next { flex: 1; max-width: 260px; }
}

@media (max-width: 380px) {
  .oc-choice-grid--profile,
  .oc-choice-grid--purchase { grid-template-columns: 1fr; }
  .oc-onboarding-section { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .oc-progress-track > span { transition: none; }
}

/* Boas-vindas antes do cadastro inicial */
.oc-welcome-step { display: grid; gap: 20px; padding: 8px 4px 2px; text-align: center; }
.oc-welcome-step[hidden] { display: none !important; }
.oc-welcome-brand { display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: #1f1730; font-size: 27px; font-weight: 900; letter-spacing: -.06em; line-height: 1; }
.oc-welcome-brand img { width: 48px; height: 48px; border-radius: 14px; object-fit: contain; }
.oc-welcome-brand em { color: #7540ce; font-style: normal; }
.oc-welcome-copy { display: grid; gap: 8px; }
.oc-welcome-copy h2 { margin: 0; color: #272033; font-size: clamp(1.9rem, 5vw, 2.45rem); letter-spacing: -.055em; }
.oc-welcome-copy p { margin: 0; color: #60566b; font-size: 14px; line-height: 1.45; }
.oc-welcome-copy strong { color: #5b2eaf; }
.oc-welcome-list { display: grid; gap: 0; text-align: left; }
.oc-welcome-list > div { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid #eee7f0; }
.oc-welcome-list > div:first-child { border-top: 0; }
.oc-welcome-list > div > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(145deg, #eee8ff, #f8f3ff); box-shadow: inset 0 1px 1px rgba(255,255,255,.9), 0 6px 16px rgba(89,43,166,.1); color: #6740c3; font-size: 22px; font-weight: 900; }
.oc-welcome-list p { display: grid; gap: 3px; margin: 0; }
.oc-welcome-list strong { color: #4f2d9d; font-size: 13px; }
.oc-welcome-list small { color: #706879; font-size: 11px; line-height: 1.4; }
.oc-welcome-trust { margin: -3px 0 0; color: #776d81; font-size: 11px; font-weight: 750; }
.oc-terms-modal.is-welcome { width: min(500px, 100%); gap: 12px; padding: 28px; }
.oc-terms-modal.is-welcome .oc-terms-actions { border-top: 0; padding-top: 0; }
.oc-terms-modal.is-welcome .oc-step-next { width: 100%; min-height: 50px; margin: 0; border-radius: 14px; background: linear-gradient(105deg, #5931b3, #8552d6); color: #fff; box-shadow: 0 11px 24px rgba(83, 43, 164, .22); font-size: 15px; }
.oc-terms-modal.is-welcome .oc-step-next:hover { background: linear-gradient(105deg, #4c269f, #7442c5); }

@media (max-width: 700px) {
  .oc-terms-modal.is-welcome { max-height: 94dvh; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); }
  .oc-welcome-step { gap: 16px; }
  .oc-welcome-copy h2 { font-size: 1.9rem; }
  .oc-welcome-list > div { padding: 11px 0; }
}
