/* Owner polish, 2026-10-12 (docs/brand-guidelines.md, "One look for buttons and badges"). Buttons keep their own looks.
   Loaded after every other stylesheet. Rules are scoped to #app so they win over the layered
   app styles without touching the cookie banner, whose choices must stay equally prominent. */

/* 1. Headings and regions that code focuses (tabindex -1) show the focus ring to keyboard users
      only. html[data-rlu-input] is set by app-v794.js from the last input (key or pointer). */
html:not([data-rlu-input="keyboard"]) #app [tabindex="-1"]:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* 3. Policies and Cookie settings: one line at the bottom of every signed-in page. */
#app :is(.app-main, .shop-approval-only-main) > .rlu-legal-footer {
  margin: 40px 0 0;
  padding: 14px 0 6px;
  border-top: 1px solid var(--brand-line, #e2e5df);
  background: transparent;
}
#app :is(.app-main, .shop-approval-only-main) > .rlu-legal-footer nav { gap: 0 22px; }
#app :is(.app-main, .shop-approval-only-main) > .rlu-legal-footer :is(a, button) { font-size: 13px !important; }

/* 4. "Find an Automotive Business": no icon tile (owner, 2026-10-12); the markup is gone and this hides any cached copy. */
#app .directory-coming-soon-card .directory-coming-soon-icon { display: none !important; }
/* 4b. Find an Automotive Business, open again (owner, 2026-10-20): slim result cards with a light initials
       tile (no dark tile in the light look), a results heading that is a real h2, and the public page's
       Back button above the page title. */
#app .automotive-directory-public { width: min(1380px, 100%); margin: 0 auto; }
#app .automotive-directory-public > .automotive-directory-back { margin: 0 0 18px; }
#app .automotive-directory-results-head h2.automotive-directory-results-title {
  margin: 0;
  color: var(--brand-ink, #242824);
  font-size: 20px !important;
  line-height: 1.3 !important;
  letter-spacing: -.01em !important;
}
/* The search form: the location row on top, then words, ZIP, repair type and Search Nearby in one row
   (the fixed 8-mile radius is said in the location row, so it has no box of its own). */
#app .automotive-directory-page .nearby-directory-controls {
  grid-template-columns: minmax(0, 2fr) 120px minmax(0, 1.2fr) auto;
  align-items: end;
  overflow: visible;
}
#app .automotive-directory-page .nearby-directory-location {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--brand-line, #e2e5df);
}
#app .automotive-directory-page .nearby-directory-location-actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #c9e9f6;
  border-radius: 999px;
  background: #eaf6fb;
  color: var(--brand-blue-ink, #175b75);
  font-size: 13px;
}
#app .automotive-directory-page .nearby-directory-submit {
  min-width: 150px;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
@media (max-width: 900px) {
  #app .automotive-directory-page .nearby-directory-controls { grid-template-columns: 120px minmax(0, 1fr); }
  #app .automotive-directory-page .nearby-directory-query,
  #app .automotive-directory-page .nearby-directory-submit { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  #app .automotive-directory-page .nearby-directory-controls { grid-template-columns: minmax(0, 1fr); }
  #app .automotive-directory-page .nearby-directory-controls > * { grid-column: auto; }
  #app .automotive-directory-page .nearby-directory-location { display: grid; }
}
#app .automotive-directory-listing-note {
  margin: 0 0 12px;
  color: #626862;
  font-size: 12px;
  line-height: 1.5;
}
#app .automotive-business-card { padding-top: 14px; padding-bottom: 14px; }
#app .automotive-business-card .directory-distance-badge { white-space: nowrap; }
/* The business dialog: the small label sits on its own line above the name, and the initials tile is light. */
#app .automotive-business-modal .modal-head small { display: block; }
#app .automotive-business-modal .automotive-business-modal-logo {
  border: 1px solid #c9e9f6;
  background: #e2f3fa;
  color: var(--brand-blue-ink, #175b75);
}
@media (max-width: 640px) {
  #app .automotive-business-card .automotive-business-card-actions { padding-top: 8px; }
}
#app .automotive-business-card-photo {
  width: 64px;
  height: 64px;
  border: 1px solid #c9e9f6;
  border-radius: 14px;
  background: #e2f3fa;
  color: var(--brand-blue-ink, #175b75);
  font-size: 17px;
}

/* 5. Facility Access: the plan card uses the light look of the rest of the app. */
#app .shop-subscription-hero .shop-subscription-plan {
  background: #e2f3fa !important;
  color: var(--brand-ink, #242824) !important;
}
#app .shop-subscription-hero .shop-subscription-plan > small { color: var(--brand-blue-ink, #175b75) !important; }
#app .shop-subscription-hero .shop-subscription-plan h2 { color: var(--brand-ink, #242824) !important; }
#app .shop-subscription-hero .shop-subscription-plan h2 span { color: #626862 !important; }
#app .shop-subscription-hero .shop-subscription-plan p { color: #626862 !important; }

/* 6. Phones and tablets: the account header and menu match the light desktop sidebar. */
#app aside.sidebar .repairlinkup-mobile-header {
  background: #fff !important;
  border-bottom: 1px solid var(--brand-line, #e2e5df) !important;
}
body.rmcw-account-app-active #app aside.sidebar {
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(16, 24, 40, .06) !important;
}
#app aside.sidebar .repairlinkup-menu-toggle {
  background: #f0f2f5 !important;
  border: 1px solid var(--brand-line, #e2e5df) !important;
  box-shadow: none !important;
}
#app aside.sidebar .repairlinkup-menu-toggle span { background: var(--brand-ink, #242824) !important; }
#app aside.sidebar .repairlinkup-menu-toggle:focus-visible { outline: 2px solid var(--brand-blue-ink, #175b75) !important; outline-offset: 2px !important; }
#app aside.sidebar .repairlinkup-mobile-avatar { color: var(--brand-ink, #242824) !important; }
#app aside.sidebar nav.repairlinkup-mobile-nav button.active {
  background: #e2f3fa !important;
  color: var(--brand-ink, #242824) !important;
}

/* 8. The live previews (new repair request, facility profile editor) use the light card look,
      like the rest of the app, instead of a dark navy panel. */
#app :is(.wizard-live-preview, .shop-profile-live-preview) {
  background: #f9fafc !important;
  color: var(--brand-ink, #242824) !important;
  border: 1px solid var(--brand-line, #e2e5df) !important;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .06) !important;
}
#app :is(.wizard-live-preview .live-preview-head small, .shop-profile-live-preview > small) {
  color: var(--brand-blue-ink, #175b75) !important;
}
#app .wizard-live-preview > p,
#app .wizard-live-preview > p.live-preview-visibility-note { color: #626862 !important; }
#app .wizard-live-preview .live-preview-tags span {
  background: #e2f3fa !important;
  color: var(--brand-blue-ink, #175b75) !important;
}
#app .wizard-live-preview .live-preview-details > div {
  background: #fff !important;
  border: 1px solid var(--brand-line, #e2e5df);
}
#app .wizard-live-preview .live-preview-details small { color: #626862 !important; }

/* 9. Badge text on the pale blue badge background stays at 4.5:1 or more. */
#app .owner-facility-approved { color: var(--brand-blue-ink, #175b75) !important; }
/* 10. "Approved facility" badge: the whole badge opens its meaning; a small info mark inside it
       replaces the separate "?" circle. At least 24px tall to tap (WCAG 2.5.8). */
#app .verified-shop-badge .verified-shop-info-toggle {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
#app .verified-shop-badge .verified-shop-info-toggle:hover { background: none; text-decoration: underline; text-underline-offset: 2px; }
#app .verified-shop-badge .verified-shop-info-toggle > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
#app .verified-shop-badge .verified-shop-info-icon { width: 13px; height: 13px; flex: 0 0 13px; }
