/**
 * MR-2026-09-002 — Shared booking postal entry (car production owner).
 * Single CSS owner for postal-split / geo / entry panel shell used by
 * /lp/contact/ and /lp/book/. Car page still layers diagnosis-ui + sim-renewal.
 */

/* --- Split postal inputs (from contact/index.html inline) --- */
.postal-split {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.postal-split-part {
  box-sizing: border-box;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  padding-left: 0.35em;
  padding-right: 0.35em;
}
.postal-split-part--3 { width: 4.2em; max-width: 4.8em; }
.postal-split-part--4 { width: 5.4em; max-width: 6em; }
.postal-split-sep { color: #666; user-select: none; flex-shrink: 0; }

/* --- Geo row (from contact/index.html inline) --- */
.lp-postal-geo-row {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.lp-postal-geo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  max-width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  border: 1.5px solid var(--accent, #006fb9);
  background: #f3f8fc;
  color: var(--accent, #006fb9);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.3;
  border-radius: var(--radius-btn, 8px);
  padding: 8px 14px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.lp-postal-geo-btn::before {
  content: '';
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lp-postal-geo-btn:hover:not(:disabled) {
  background: #e8f3fa;
  border-color: var(--accent-hover, #005a96);
  color: var(--accent-hover, #005a96);
}
.lp-postal-geo-btn:disabled { opacity: .65; cursor: wait; }
.lp-postal-geo-status {
  min-height: 1.2em;
  font-size: 13px;
  color: var(--ink-muted, #707070);
  line-height: 1.5;
  text-align: center;
}
.lp-postal-geo-status:empty { display: none; }
.lp-postal-geo-status.is-error { color: #b91c1c; font-weight: 700; }

/* --- Self-contained entry shell (lp-brand + diagnosis-ui postal bits) --- */
.lp-postal-entry.booking-postal-entry-shared,
.booking-postal-entry-shared.lp-postal-entry {
  margin-top: 8px;
  padding: 24px 20px 28px;
}
.booking-postal-entry-shared .postal-entry-body {
  max-width: 420px;
  margin: 0 auto;
}
.booking-postal-entry-shared .lp-postal-head {
  text-align: center;
  margin-bottom: 18px;
}
.booking-postal-entry-shared .lp-postal-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent, #006fb9);
  line-height: 1.45;
  text-align: center;
}
.booking-postal-entry-shared .postal-field,
.booking-postal-entry-shared .lp-postal-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}
.booking-postal-entry-shared .postal-mark {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-muted, #707070);
  line-height: 1;
}
.booking-postal-entry-shared .postal-field input,
.booking-postal-entry-shared .lp-postal-field input,
.booking-postal-entry-shared .postal-split-part {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0 14px;
  min-height: 48px;
  height: 48px;
  border: 1px solid var(--line, #dde3ea);
  border-radius: var(--radius-input, 3px);
  background: #fff;
  color: var(--ink, #3d4060);
  font-family: inherit;
}
.booking-postal-entry-shared .postal-split-part--3 {
  width: 4.2em;
  max-width: 4.8em;
  flex: 0 0 auto;
}
.booking-postal-entry-shared .postal-split-part--4 {
  width: 5.4em;
  max-width: 6em;
  flex: 0 0 auto;
}
.booking-postal-entry-shared .lp-postal-after {
  margin-top: 18px;
}
.booking-postal-entry-shared .lp-postal-after.hidden {
  display: none !important;
}
.booking-postal-entry-shared .postal-entry-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  min-height: 0;
  width: 100%;
  text-align: center;
}
.booking-postal-entry-shared .postal-address-result {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  width: 100%;
}
.booking-postal-entry-shared .postal-address-line {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink, #3d4060);
  text-align: center;
}
.booking-postal-entry-shared .postal-area-note {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--bad, #c21a1a);
  text-align: center;
  width: 100%;
}
.booking-postal-entry-shared .postal-area-note.hidden,
.booking-postal-entry-shared .area-travel-fee.hidden,
.booking-postal-entry-shared .postal-address-result.hidden {
  display: none !important;
}
.booking-postal-entry-shared .area-travel-fee {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-panel, 4px);
  background: var(--accent-soft, #e6faff);
  color: var(--accent, #006fb9);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.booking-postal-entry-shared .lp-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 20px;
  width: 100%;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}
.booking-postal-entry-shared .lp-cta-actions .btn {
  width: 100%;
  max-width: none;
  min-height: 48px;
  height: 48px;
  padding: 0 20px;
  font-size: 16px;
  box-sizing: border-box;
}
.booking-postal-entry-shared .lp-postal-field-label {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #3d4060);
  text-align: center;
}
.booking-postal-entry-shared .lp-postal-week {
  width: 100%;
  margin-top: 8px;
}
.booking-postal-entry-shared .lp-postal-week.hidden {
  display: none !important;
}
.booking-postal-entry-shared .lp-postal-week-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #3d4060);
  text-align: center;
}
.booking-postal-entry-shared .lp-postal-alt-links {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.booking-postal-entry-shared .error-msg {
  color: var(--bad, #c21a1a);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  width: 100%;
}
.booking-postal-entry-shared .error-msg.hidden {
  display: none !important;
}

/* Generic book host: shared panel fills #app card chrome */
#app.booking-postal-host,
.booking-postal-host {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  min-height: 0;
}
#app .lp-postal-entry.booking-postal-entry-shared {
  margin-top: 0;
  border: 1px solid var(--line, #dde3ea);
  border-radius: var(--radius-panel, 4px);
  background: var(--paper, #fff);
  box-shadow: 0 4px 16px rgba(0, 111, 185, 0.1);
  border-color: #b8dce8;
}
