/* Home Insurance Quote app plaque — homeownersinsurancem.com only.
   Do not add to other insurance sites. Production JS shows this bar
   only on Android. iOS uses the apple-itunes-app meta (Safari banner).
   Target: one horizontal row, title + subtitle = 2 lines max, bar ≤52px. */
.him-app-plaque {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 8px;
  height: 48px;
  max-height: 52px;
  min-height: 0;
  background: #fff;
  border-bottom: 0;
  box-shadow: 0 1px 4px rgba(20, 40, 30, 0.14);
  position: relative;
  z-index: 2;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.15;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
.him-app-plaque *,
.him-sab-mock * { box-sizing: border-box; }
.him-app-plaque__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b6b70;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 16px;
}
.him-app-plaque__close:hover { background: rgba(0,0,0,0.06); color: #111; }
.him-app-plaque__icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: block;
  background: #0f5c4d;
}
.him-app-plaque__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.him-app-plaque__name,
.him-app-plaque__sub {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
.him-app-plaque__name {
  font-size: 13px;
  font-weight: 650;
  color: #111;
  line-height: 1.15;
}
.him-app-plaque__sub {
  margin-top: 1px;
  font-size: 11px;
  font-weight: 400;
  color: #6b6b70;
  line-height: 1.15;
}
.him-app-plaque__get {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 10px;
  margin: 0 0 0 2px;
  border-radius: 14px;
  background: #1a73e8;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  white-space: nowrap;
}
.him-app-plaque__get:hover { background: #1557b0; color: #fff !important; }
.him-app-plaque__get:focus-visible,
.him-app-plaque__close:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 2px;
}

/* iPhone mockup only: approximates Safari's Smart App Banner.
   Production never inserts this bar; Safari draws the real one and we
   do not control its height. */
.him-sab-mock {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  min-height: 76px;
  background: #f2f2f7;
  border-bottom: 1px solid #d9d9de;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.2;
  -webkit-text-size-adjust: 100%;
  position: relative;
}
.him-sab-mock__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b6b70;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 18px;
}
.him-sab-mock__close:hover { background: rgba(0,0,0,0.06); color: #111; }
.him-sab-mock__icon {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 13px;
  display: block;
  background: #0f5c4d;
}
.him-sab-mock__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.him-sab-mock__name,
.him-sab-mock__sub {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.him-sab-mock__name {
  font-size: 15px;
  font-weight: 600;
  color: #111;
}
.him-sab-mock__sub {
  margin-top: 1px;
  font-size: 12px;
  font-weight: 400;
  color: #6b6b70;
}
.him-sab-mock__get {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #007aff !important;
  font-size: 16px;
  font-weight: 700;
  min-width: auto;
  height: auto;
  padding: 4px 8px;
  margin: 0 2px 0 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  border-radius: 16px;
}
.him-sab-mock__get:hover { background: rgba(0,122,255,0.08); color: #007aff !important; }
.him-sab-mock__get:focus-visible,
.him-sab-mock__close:focus-visible {
  outline: 3px solid #007aff;
  outline-offset: 2px;
}
.him-sab-mock__badge {
  position: absolute;
  right: 8px;
  top: 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a5414;
  background: #f3e2c4;
  border: 1px solid #c47b2b;
  border-radius: 3px;
  padding: 1px 5px;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 360px) {
  .him-app-plaque { padding: 6px 6px; gap: 4px; }
  .him-app-plaque__get { min-width: 40px; padding: 0 8px; }
}

/* Mobile green disclaimer: at most 2 lines on 390/360. Desktop keeps the full sentence.
   Full meaning is also repeated under the ZIP form. */
.notice .him-notice-short { display: none; }
@media (max-width: 480px) {
  body .notice {
    padding: 0.22rem 0.65rem;
    font-size: 0.78rem;
    line-height: 1.3;
    text-wrap: pretty;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
  }
  body .notice .him-notice-full { display: none; }
  body .notice .him-notice-short {
    display: inline;
  }
}
