/**
 * 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;
}

.nbu-start-hidden { display: none !important; }

#nbuServiceOffer {
  margin-top: 14px;
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
}
#nbuServiceOffer .nbu-method-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
#nbuServiceOffer .nbu-method-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#nbuServiceOffer .nbu-method-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  min-height: 92px;
  padding: 14px;
  border: 2px solid #c5d4e0;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
#nbuServiceOffer .nbu-method-card.is-selected {
  border-color: #0f6b5c;
  background: #f4fbf8;
  box-shadow: inset 0 0 0 1px #0f6b5c;
}
#nbuServiceOffer .nbu-method-card.is-unavailable {
  cursor: not-allowed;
  opacity: 0.72;
  background: #f6f7f8;
}
#nbuServiceOffer .nbu-method-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: #0f6b5c;
}
#nbuServiceOffer .nbu-method-icon svg { width: 36px; height: 36px; }
#nbuServiceOffer .nbu-method-copy { display: grid; gap: 4px; }
#nbuServiceOffer .nbu-method-copy strong { font-size: 16px; }
#nbuServiceOffer .nbu-method-copy span { font-size: 13px; line-height: 1.45; color: #3d4060; }
#nbuServiceOffer .nbu-method-reason { color: #8a4b12; }
#nbuServiceOffer .nbu-method-detail { margin-top: 14px; display: grid; gap: 10px; }
#nbuServiceOffer .nbu-method-single .nbu-method-detail { margin-top: 0; }
#nbuServiceOffer .nbu-region { margin: 0; font-weight: 700; }
#nbuServiceOffer .nbu-week-title { margin: 4px 0 0; font-size: 14px; font-weight: 700; }
#lpPostalSection,
#nbuServiceOffer {
  scroll-margin-top: 88px;
}
#nbuServiceOffer .nbu-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
#nbuServiceOffer .nbu-day {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 6px 2px;
  border: 1px solid #d8dde6;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  overflow: visible;
  min-width: 0;
}
#nbuServiceOffer .nbu-day-label {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
#nbuServiceOffer .nbu-day-mark { font-size: 16px; font-weight: 700; }
#nbuServiceOffer .nbu-day-text {
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  overflow: visible;
}
#nbuServiceOffer .travel-fee-actual strong,
#nbuServiceOffer .travel-fee-detail {
  white-space: nowrap;
}
#nbuServiceOffer .travel-fee-detail {
  display: inline-block;
  max-width: 100%;
}
#nbuServiceOffer [data-week-refreshing="1"] {
  opacity: 0.85;
}
#nbuServiceOffer .nbu-day[data-symbol="○"] .nbu-day-mark,
#nbuServiceOffer .nbu-day[data-symbol="◎"] .nbu-day-mark,
#nbuServiceOffer .nbu-day[data-symbol="○"] .nbu-day-text,
#nbuServiceOffer .nbu-day[data-symbol="◎"] .nbu-day-text {
  color: var(--accent, #006fb9);
}
#nbuServiceOffer .nbu-day[data-symbol="△"] .nbu-day-mark,
#nbuServiceOffer .nbu-day[data-symbol="△"] .nbu-day-text {
  color: #d97706;
}
#nbuServiceOffer .nbu-day[data-symbol="×"] .nbu-day-mark,
#nbuServiceOffer .nbu-day[data-symbol="×"] .nbu-day-text {
  color: #94a3b8;
}
#nbuServiceOffer .nbu-week-status { margin: 0; font-weight: 700; }
#nbuServiceOffer .nbu-store-list { display: grid; gap: 12px; }
#nbuServiceOffer .nbu-store {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #d5e3ea;
  border-radius: 12px;
  background: #fff;
}
#nbuServiceOffer .nbu-store-name { margin: 0; font-size: 18px; }
#nbuServiceOffer .nbu-store-address,
#nbuServiceOffer .nbu-store-route { margin: 0; font-size: 14px; }
#nbuServiceOffer .travel-fee-actual-label::after { content: '（税込）'; }
#nbuServiceOffer #nbuTravelProceed,
#nbuServiceOffer [data-store-proceed] {
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
@media (max-width: 800px) {
  #nbuServiceOffer .nbu-method-cards { grid-template-columns: 1fr; }
  #nbuServiceOffer .nbu-day-text { font-size: 11px; }
}

/* 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;
}
