/*
 * Consumer Portal styles
 * Isolated from the dealer portal (assets/css/dealer-portal.css) and the
 * main site theme (creditwheel-2026). Everything here is scoped under
 * .cwc-portal so it never leaks into or inherits from other stylesheets.
 *
 * Login layout mirrors the consumer login screen in the Flutter app
 * reference (presentationforreference/loginscreen_screen).
 */

:root {
  color-scheme: light;

  /* Matches the dealer portal's palette/font (assets/css/dealer-portal.css)
     so the two login screens read as one product. Every colour used
     anywhere in this file goes through one of these tokens (see the
     :root[data-theme="dark"] block below) — that's what makes dark mode
     a straight value-swap instead of a second stylesheet. */
  --cwc-red: #d0021b;
  --cwc-red-dark: #a00015;
  --cwc-black: #111111;
  --cwc-white: #ffffff;
  --cwc-gray-mid: #e5e5e5;
  --cwc-gray-light: #f9f9f9;
  --cwc-gray-text: #888888;
  --cwc-border-soft: #d8d8d8;
  --cwc-page-bg: #f3f4f6;
  --cwc-error-bg: #fdecea;
  --cwc-error-border: #f5c6c0;
  --cwc-green: #1a7f37;
  --cwc-green-bg: #e9f7ed;
  --cwc-amber: #b98900;
  --cwc-amber-bg: #fdf3d9;
  --cwc-placeholder: #bbbbbb;
  --cwc-body-text: #3d3d3d;
  --cwc-glass-bg: rgba(255, 255, 255, 0.94);
  --cwc-glass-border: rgba(255, 255, 255, 0.34);
  --cwc-icon-btn-bg: rgba(17, 17, 17, 0.08);
  --cwc-icon-btn-bg-hover: rgba(17, 17, 17, 0.15);
  --cwc-font: 'DM Sans', sans-serif;
  --cwc-radius-sm: 8px;
  /* Dark-at-bottom fade used behind the "Your Applications" cards, over
     either a real vehicle photo or (when there isn't one) a plain colour
     gradient — same overlay either way so the whole list stays consistent.
     Deliberately theme-independent: it's always sitting on top of a photo
     or a fixed dark gradient, never the page background, so it doesn't
     need a dark-mode variant. */
  --cwc-card-overlay: linear-gradient(to top, rgba(17, 17, 17, 0.88), rgba(17, 17, 17, 0.15) 55%, rgba(17, 17, 17, 0) 100%);
}

/*
 * Dark mode
 * Toggled by setting data-theme="dark" on <html> (see cwc_theme_init_
 * script() in consumer-portal.php for the no-flash-of-wrong-theme inline
 * script, and the "Theme toggle" section below for the switch itself).
 * Not pure black — Material's ~#121212 baseline avoids the halation/
 * eye-strain pure #000 causes with white text, and every accent is
 * brightened rather than reused as-is so text/icons keep enough contrast
 * against the now-dark surfaces.
 */
:root[data-theme='dark'] {
  color-scheme: dark;

  --cwc-red: #ff6659;
  --cwc-red-dark: #ff8a75;
  --cwc-black: #f2f2f3;
  --cwc-white: #1c1c1e;
  --cwc-gray-mid: #3a3a3d;
  --cwc-gray-light: #232326;
  --cwc-gray-text: #a3a3a8;
  --cwc-border-soft: #46464a;
  --cwc-page-bg: #121212;
  --cwc-error-bg: #3a1f1d;
  --cwc-error-border: #6b2f2a;
  --cwc-green: #6fd68a;
  --cwc-green-bg: #163a20;
  --cwc-amber: #ffc94d;
  --cwc-amber-bg: #3a2c0f;
  --cwc-placeholder: #6c6c70;
  --cwc-body-text: #d6d6d8;
  --cwc-glass-bg: rgba(28, 28, 30, 0.92);
  --cwc-glass-border: rgba(255, 255, 255, 0.1);
  --cwc-icon-btn-bg: rgba(255, 255, 255, 0.08);
  --cwc-icon-btn-bg-hover: rgba(255, 255, 255, 0.14);
}

html {
  background: var(--cwc-page-bg);
}

@media (prefers-reduced-motion: no-preference) {
  .cwc-portal-body,
  .cwc-login-card,
  .cwc-signup-card,
  .cwc-modal,
  .cwc-dash-header,
  .cwc-panel,
  .cwc-stat-card {
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  }
}

.cwc-portal {
  font-family: var(--cwc-font);
  color: var(--cwc-black);
}

.cwc-portal *,
.cwc-portal *::before,
.cwc-portal *::after {
  box-sizing: border-box;
}

.cwc-portal a {
  color: inherit;
}

.cwc-portal-body {
  margin: 0;
  background: var(--cwc-page-bg);
}

.cwc-login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem 1rem;
  position: relative;
}

/* Top-right links on the login page, same look as the dealer login's .cw-public-nav. */
.cwc-public-nav {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* .cwc-portal prefix needed to beat the theme's body.c-section__dealers a { color: #000 } */
.cwc-portal .cwc-public-nav a {
  color: var(--cwc-red);
  text-decoration: none;
}

.cwc-public-nav a:hover,
.cwc-public-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cwc-public-nav-sep {
  color: var(--cwc-black);
}

/* Too wide for the corner on a phone, so it sits centred above the logo. */
@media (max-width: 600px) {
  .cwc-public-nav {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1rem;
    margin-bottom: 2rem;
    font-size: 12px;
  }

  /* The links wrap here, which would leave a separator hanging at a line end. */
  .cwc-public-nav-sep {
    display: none;
  }
}

.cwc-login-logo {
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
}

.cwc-login-brand-logo {
  display: block;
  width: auto;
  height: 42px;
}

.cwc-login-card {
  width: 100%;
  max-width: 420px;
  padding: 2.25rem 2rem;
  border: 1px solid var(--cwc-gray-mid);
  border-radius: 14px;
  background: var(--cwc-white);
}

.cwc-login-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--cwc-error-border);
  border-radius: var(--cwc-radius-sm);
  background: var(--cwc-error-bg);
  color: var(--cwc-red);
  font-size: 13px;
}

.cwc-login-error svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.cwc-login-form {
  display: grid;
  gap: 0.85rem;
}

.cwc-login-form label {
  display: block;
  color: var(--cwc-red);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.cwc-login-form input,
.cwc-login-form select {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--cwc-border-soft);
  border-radius: var(--cwc-radius-sm);
  background: var(--cwc-white);
  color: var(--cwc-black);
  font-size: 14px;
  font-family: inherit;
}

.cwc-login-form input:focus,
.cwc-login-form select:focus {
  outline: none;
  border-color: var(--cwc-red);
}

.cwc-login-form input::placeholder {
  color: var(--cwc-placeholder);
}

.cwc-login-form input:disabled,
.cwc-login-form input[readonly] {
  background: var(--cwc-gray-light);
  color: var(--cwc-body-text);
  cursor: not-allowed;
}

.cwc-forgot-row {
  margin-top: -0.35rem;
  text-align: left;
}

.cwc-forgot-link {
  color: var(--cwc-gray-text);
  font-size: 13px;
  text-decoration: none;
}

.cwc-forgot-link:hover {
  color: var(--cwc-red);
  text-decoration: underline;
}

.cwc-primary-btn,
.cwc-secondary-btn,
.cwc-danger-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--cwc-radius-sm);
  font-family: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cwc-primary-btn {
  background: var(--cwc-red);
  color: var(--cwc-white);
}

.cwc-primary-btn:hover {
  background: var(--cwc-red-dark);
}

.cwc-secondary-btn {
  background: transparent;
  border-color: var(--cwc-gray-mid);
  color: var(--cwc-black);
}

.cwc-secondary-btn:hover {
  border-color: var(--cwc-red);
  color: var(--cwc-red);
}

.cwc-danger-btn {
  background: transparent;
  border-color: var(--cwc-error-border);
  color: var(--cwc-red);
}

.cwc-danger-btn:hover {
  background: var(--cwc-error-bg);
}

.cwc-primary-btn:disabled,
.cwc-primary-btn:disabled:hover {
  background: var(--cwc-gray-mid);
  color: var(--cwc-gray-text);
  cursor: not-allowed;
}

.cwc-login-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0;
}

.cwc-auth-alt-link {
  margin-top: 1.25rem;
  text-align: center;
}

.cwc-login-footer {
  margin-top: 2rem;
  color: var(--cwc-gray-text);
  font-size: 12px;
  text-align: center;
}

/*
 * Sign-up form sections/grid
 * All manual-entry fields (account, personal details, address) live on
 * one page, grouped into labeled sections.
 */

.cwc-form-section {
  display: grid;
  gap: 0.85rem;
}

.cwc-form-section + .cwc-form-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cwc-gray-mid);
}

.cwc-form-section-title {
  margin: 0;
  color: var(--cwc-black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cwc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.cwc-form-grid > .cwc-span-2 {
  grid-column: 1 / -1;
}

@media (max-width: 480px) {
  .cwc-form-grid {
    grid-template-columns: 1fr;
  }
}

/*
 * Sign-up sheet — two columns side by side: account fields the user sets
 * themselves on the left, identity-verified fields on the right (locked/
 * blurred behind a phone-capture box until verification "succeeds").
 */

.cwc-signup-sheet {
  width: 100%;
  max-width: 900px;
}

.cwc-signup-columns {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
}

.cwc-signup-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 2.25rem 2rem;
  border: 1px solid var(--cwc-gray-mid);
  border-radius: 14px;
  background: var(--cwc-white);
}

@media (max-width: 760px) {
  .cwc-signup-columns {
    flex-direction: column;
  }
}

.cwc-signup-verify-content {
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.cwc-signup-verify-card.is-locked .cwc-signup-verify-content {
  filter: blur(6px);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.cwc-signup-verify-scrim {
  display: none;
}

.cwc-signup-verify-card.is-locked .cwc-signup-verify-scrim {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.cwc-phone-capture {
  width: min(260px, 85%);
  padding: 1.25rem;
  border: 1px solid var(--cwc-gray-mid);
  border-radius: 14px;
  background: var(--cwc-white);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.12);
  text-align: left;
}

.cwc-phone-capture label {
  display: block;
  color: var(--cwc-red);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.cwc-phone-capture input {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--cwc-border-soft);
  border-radius: var(--cwc-radius-sm);
  background: var(--cwc-white);
  color: var(--cwc-black);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 0.85rem;
}

.cwc-phone-capture input:focus {
  outline: none;
  border-color: var(--cwc-red);
}

.cwc-proceed-btn {
  width: 100%;
  min-height: 2.25rem;
  padding: 0.5rem 1rem;
}

.cwc-phone-capture-error {
  margin: -0.35rem 0 0.85rem;
  padding: 8px 10px;
  border: 1px solid var(--cwc-error-border);
  border-radius: var(--cwc-radius-sm);
  background: var(--cwc-error-bg);
  color: var(--cwc-red);
  font-size: 12px;
  line-height: 1.4;
}

/*
 * "Check your phone" / verification-error views — swapped in for
 * .cwc-phone-capture inside the same scrim while a Persona one-time link
 * is outstanding (see consumer-portal.js startVerification/pollStatus).
 */
.cwc-phone-waiting,
.cwc-phone-verify-error {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
}

.cwc-phone-waiting p,
.cwc-phone-verify-error p {
  margin: 0;
  color: var(--cwc-gray-text);
  font-size: 13px;
  line-height: 1.5;
}

.cwc-phone-waiting strong {
  color: var(--cwc-black);
}

.cwc-phone-verify-error p {
  color: var(--cwc-red);
}

.cwc-phone-waiting .cwc-secondary-btn,
.cwc-phone-verify-error .cwc-primary-btn {
  width: 100%;
  min-height: 2.25rem;
  padding: 0.5rem 1rem;
}

.cwc-signup-next-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.cwc-signup-back-btn,
.cwc-signup-next-btn {
  width: auto;
}

/*
 * Identity verification consent modal
 * Mirrors the dealer portal's message-modal look (assets/css/dealer-portal.css
 * .cw-video-overlay/.cw-message-modal), rebuilt under the cwc- namespace so
 * the consumer portal stays isolated from the dealer portal's stylesheet.
 */

.cwc-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(17, 17, 17, 0.72);
  z-index: 5000;
}

.cwc-modal-overlay.active {
  display: flex;
}

.cwc-modal {
  position: relative;
  width: min(420px, 100%);
  background: var(--cwc-glass-bg);
  border: 1px solid var(--cwc-glass-border);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(17, 17, 17, 0.16);
  backdrop-filter: blur(14px);
}

.cwc-modal-body {
  padding: 1.9rem 1.75rem 1.75rem;
  text-align: center;
}

.cwc-modal-body h2 {
  margin: 0 0 0.75rem;
  font-size: 20px;
  line-height: 1.2;
}

.cwc-modal-body p {
  margin: 0;
  color: var(--cwc-gray-text);
  font-size: 14px;
  line-height: 1.5;
}

.cwc-modal-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cwc-modal-actions .cwc-primary-btn,
.cwc-modal-actions .cwc-secondary-btn,
.cwc-modal-actions .cwc-danger-btn {
  width: auto;
}

/*
 * Client dashboard
 * Shell (header/inner) mirrors the dealer portal's dashboard chrome
 * (assets/css/dealer-portal.css .cw-header/.cw-dash-inner/.cw-stat-grid)
 * so the two portals read as one product, rebuilt under the cwc-
 * namespace to stay isolated from the dealer portal's stylesheet.
 */

.cwc-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 2rem;
  background: var(--cwc-white);
  border-bottom: 1px solid var(--cwc-gray-mid);
}

.cwc-dash-brand-logo {
  display: block;
  width: auto;
  height: 34px;
}

/* Logo/mark artwork that only reads correctly on one theme (e.g. a black
   logo disappears on a dark page) — swap which one is visible instead of
   trying to filter/invert real artwork. */
.cwc-logo-dark {
  display: none;
}

:root[data-theme='dark'] .cwc-logo-light {
  display: none;
}

:root[data-theme='dark'] .cwc-logo-dark {
  display: block;
}

.cwc-dash-header-right {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cwc-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 1px solid var(--cwc-gray-mid);
  border-radius: 50%;
  background: var(--cwc-white);
  color: var(--cwc-black);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.cwc-theme-toggle:hover {
  border-color: var(--cwc-red);
  color: var(--cwc-red);
}

.cwc-theme-icon-moon {
  display: none;
}

:root[data-theme='dark'] .cwc-theme-icon-sun {
  display: none;
}

:root[data-theme='dark'] .cwc-theme-icon-moon {
  display: block;
}

.cwc-dash-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem 0.4rem 0.4rem;
  border: 1px solid var(--cwc-gray-mid);
  border-radius: 999px;
  background: var(--cwc-white);
  color: var(--cwc-black);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.cwc-dash-user-btn:hover {
  border-color: var(--cwc-red);
}

.cwc-dash-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cwc-red);
  color: var(--cwc-white);
  font-size: 11px;
  font-weight: 700;
}

.cwc-dash-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  min-width: 180px;
  border: 1px solid var(--cwc-gray-mid);
  border-radius: 10px;
  background: var(--cwc-white);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.12);
  overflow: hidden;
  z-index: 10;
}

.cwc-dash-dropdown.active {
  display: block;
}

.cwc-dash-dropdown-item {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border-bottom: 1px solid var(--cwc-gray-light);
  text-decoration: none;
  font-size: 14px;
  color: var(--cwc-black);
}

.cwc-dash-dropdown-item:last-child {
  border-bottom: 0;
}

.cwc-dash-dropdown-item:hover {
  background: var(--cwc-gray-light);
}

.cwc-dash-dropdown-item.cwc-logout {
  color: var(--cwc-red);
}

.cwc-dash-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

/*
 * Profile Settings — read-only account page ported from the reference
 * app's shared customerprofilescreen_screen.dart (consumer branch). Uses
 * the same full-width shell as the dashboard (this is a web page, not a
 * ported mobile screen, so it isn't constrained to a phone-width single
 * column) with its panels arranged in two side-by-side columns.
 */
.cwc-page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  color: var(--cwc-gray-text);
  font-size: 13px;
  text-decoration: none;
}

.cwc-page-back-link:hover {
  color: var(--cwc-red);
}

.cwc-profile-header-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cwc-dash-avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 20px;
  flex-shrink: 0;
}

.cwc-profile-header-card .cwc-dash-title {
  margin-bottom: 0.15rem;
}

.cwc-profile-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.cwc-profile-col .cwc-panel {
  margin-bottom: 1.5rem;
}

.cwc-profile-col .cwc-panel:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .cwc-profile-columns {
    grid-template-columns: 1fr;
  }
}

.cwc-dash-welcome-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cwc-dash-title {
  margin: 0 0 0.25rem;
  font-size: 24px;
  font-weight: 700;
}

.cwc-dash-subtitle {
  margin: 0;
  color: var(--cwc-gray-text);
  font-size: 13px;
}

.cwc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.cwc-status-pill.cwc-status-paid {
  background: var(--cwc-green-bg);
  color: var(--cwc-green);
}

.cwc-status-pill.cwc-status-due {
  background: var(--cwc-amber-bg);
  color: var(--cwc-amber);
}

.cwc-status-pill.cwc-status-active {
  background: var(--cwc-green-bg);
  color: var(--cwc-green);
}

.cwc-status-pill.cwc-status-declined {
  background: var(--cwc-error-bg);
  color: var(--cwc-red);
}

.cwc-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cwc-stat-card,
.cwc-panel {
  border: 1px solid var(--cwc-gray-mid);
  border-radius: 12px;
  background: var(--cwc-white);
}

.cwc-stat-card {
  padding: 1rem 1.1rem;
}

.cwc-stat-card span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--cwc-gray-text);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cwc-stat-card strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.cwc-stat-card small {
  display: block;
  margin-top: 0.2rem;
  color: var(--cwc-gray-text);
  font-size: 12px;
}

.cwc-dash-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.cwc-dash-panel-full {
  grid-column: 1 / -1;
}

.cwc-panel {
  padding: 1.5rem;
}

.cwc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cwc-panel-head-left {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-width: 0;
}

.cwc-panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.cwc-panel-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--cwc-red);
  color: var(--cwc-white);
  cursor: pointer;
  transition: background 0.15s;
}

.cwc-panel-add-btn:hover {
  background: var(--cwc-red-dark);
}

.cwc-app-filter-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cwc-app-filter-tab {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cwc-gray-text);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.15s;
}

.cwc-app-filter-tab:hover {
  color: var(--cwc-black);
}

.cwc-app-filter-tab.active {
  color: var(--cwc-red);
  font-weight: 700;
}

.cwc-app-filter-sep {
  color: var(--cwc-gray-mid);
  font-size: 12px;
}

.cwc-application-list {
  display: grid;
  gap: 0.6rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.cwc-application-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 148px;
  width: 100%;
  padding: 1rem;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--cwc-gray-light);
  background-repeat: no-repeat;
  background-size: cover, cover;
  background-position: center, center;
  color: var(--cwc-white);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-size 0.4s ease;
}

.cwc-application-card:hover {
  transform: translateY(-2px) scale(1.012);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.18);
  background-size: cover, 108%;
}

.cwc-application-card:focus-visible {
  outline: 2px solid var(--cwc-red);
  outline-offset: 2px;
}

/* Cards without a photo reuse the exact same overlay gradient as the
   ones with one — just layered over a plain colour gradient instead of
   an image — so the whole list reads as one consistent set. A centered,
   faded CreditWheel wordmark stands in for the missing photo instead of
   leaning on color alone. */
.cwc-application-card--gradient {
  background-image: var(--cwc-card-overlay), linear-gradient(135deg, #cfcfd5 0%, #2a2a2f 100%);
}

.cwc-application-card-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  max-width: 160px;
  opacity: 0.6;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
  pointer-events: none;
  z-index: 0;
}

.cwc-application-card-info {
  position: relative;
  z-index: 1;
  width: 100%;
}

.cwc-application-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.cwc-application-card-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.cwc-application-card-sub {
  margin: 0.15rem 0 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.cwc-application-card-sub-url {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cwc-application-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.cwc-application-card-price {
  color: var(--cwc-white);
  font-weight: 700;
}

.cwc-simple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cwc-simple-table th {
  text-align: left;
  padding: 0 0 0.6rem;
  color: var(--cwc-gray-text);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--cwc-gray-mid);
}

.cwc-simple-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cwc-gray-light);
}

.cwc-simple-table tr:last-child td {
  border-bottom: 0;
}

.cwc-action-list {
  display: grid;
  gap: 0.6rem;
}

.cwc-action-link {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--cwc-gray-mid);
  border-radius: 10px;
  background: var(--cwc-white);
  text-decoration: none;
  color: var(--cwc-black);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.cwc-action-link:hover {
  border-color: var(--cwc-red);
  color: var(--cwc-red);
}

.cwc-action-link svg {
  flex-shrink: 0;
  color: var(--cwc-red);
}

.cwc-action-link .cwc-action-chevron {
  margin-left: auto;
  color: var(--cwc-gray-text);
}

.cwc-store-badges {
  display: flex;
  flex-shrink: 0;
  gap: 0.6rem;
}

.cwc-store-badge-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  width: 165px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--cwc-gray-mid);
  background: transparent;
  transition: border-color 0.15s, transform 0.15s;
}

.cwc-store-badge-link:hover {
  border-color: var(--cwc-red);
  transform: translateY(-1px);
}

.cwc-store-badge-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 980px) {
  .cwc-dash-columns {
    grid-template-columns: 1fr;
  }

  .cwc-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .cwc-stat-grid {
    grid-template-columns: 1fr;
  }
}

/*
 * Dashboard — AutoONE Inventory panel
 * Same .cwc-panel shell as the rest of the dashboard; the vehicle list
 * scrolls internally so the panel doesn't grow to fit however many
 * vehicles were fetched. Data is rendered server-side (see
 * cwc_fetch_inventory_vehicles() in consumer-portal.php); search/filter
 * below is client-side over the already-rendered cards.
 */

.cwc-inventory-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.cwc-inventory-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--cwc-border-soft);
  border-radius: var(--cwc-radius-sm);
  background: var(--cwc-white);
  color: var(--cwc-gray-text);
}

.cwc-inventory-search svg {
  flex-shrink: 0;
}

.cwc-inventory-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--cwc-black);
  font-family: inherit;
  font-size: 13px;
}

.cwc-inventory-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--cwc-gray-mid);
  border-radius: var(--cwc-radius-sm);
  background: var(--cwc-white);
  color: var(--cwc-black);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.cwc-inventory-filter-toggle:hover {
  border-color: var(--cwc-red);
}

.cwc-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--cwc-red);
  color: var(--cwc-white);
  font-size: 11px;
  font-weight: 700;
}

.cwc-inventory-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--cwc-gray-mid);
  border-radius: var(--cwc-radius-sm);
  background: var(--cwc-gray-light);
}

.cwc-filter-field span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--cwc-gray-text);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cwc-filter-range-inputs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cwc-filter-range-inputs input {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--cwc-border-soft);
  border-radius: var(--cwc-radius-sm);
  background: var(--cwc-white);
  color: var(--cwc-black);
  font-family: inherit;
  font-size: 13px;
}

.cwc-filter-range-inputs input:focus {
  outline: none;
  border-color: var(--cwc-red);
}

.cwc-inventory-clear-btn {
  padding: 8px 12px;
  border: 1px solid var(--cwc-gray-mid);
  border-radius: var(--cwc-radius-sm);
  background: var(--cwc-white);
  color: var(--cwc-gray-text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.cwc-inventory-clear-btn:hover {
  border-color: var(--cwc-red);
  color: var(--cwc-red);
}

.cwc-inventory-count {
  margin: 0 0 0.6rem;
  color: var(--cwc-gray-text);
  font-size: 12px;
}

.cwc-inventory-list {
  display: grid;
  gap: 0.6rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.cwc-inventory-card {
  display: flex;
  width: 100%;
  gap: 0.85rem;
  padding: 0.6rem;
  border: 1px solid var(--cwc-gray-mid);
  border-radius: 10px;
  background: var(--cwc-white);
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s;
}

.cwc-inventory-card:hover {
  border-color: var(--cwc-red);
}

.cwc-inventory-card-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 96px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--cwc-gray-light);
  color: var(--cwc-gray-text);
}

.cwc-inventory-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cwc-inventory-card-info {
  flex: 1;
  min-width: 0;
}

.cwc-inventory-card-name {
  margin: 0 0 0.1rem;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cwc-inventory-card-trim {
  margin: 0 0 0.4rem;
  color: var(--cwc-gray-text);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cwc-inventory-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 12px;
}

.cwc-inventory-card-price {
  color: var(--cwc-red);
  font-weight: 700;
}

.cwc-inventory-empty,
.cwc-inventory-no-matches {
  margin: 0;
  padding: 1.5rem 0;
  text-align: center;
  color: var(--cwc-gray-text);
  font-size: 13px;
}

@media (max-width: 560px) {
  .cwc-inventory-filters {
    grid-template-columns: 1fr;
  }

  .cwc-inventory-clear-btn {
    width: 100%;
  }

  .cwc-inventory-card-photo {
    width: 76px;
    height: 56px;
  }
}

/*
 * Pre-Qualify modal (Dashboard -> Quick Actions -> "Pre-Qualify Yourself")
 * Reuses the .cwc-modal-overlay/.cwc-modal base from the other consent
 * modals, sized via .cwc-prequal-modal.
 */

.cwc-prequal-modal {
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
}

.cwc-prequal-modal-body {
  padding: 1.9rem 1.75rem 1.75rem;
  text-align: left;
}

.cwc-prequal-intro {
  margin: 0.35rem 0 1.25rem;
  color: var(--cwc-gray-text);
  font-size: 13px;
  line-height: 1.5;
}

.cwc-prequal-result-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

@media (max-width: 560px) {
  .cwc-prequal-result-grid {
    grid-template-columns: 1fr;
  }
}

/*
 * Vehicle detail modal (opened from an AutoONE Inventory card)
 * Two columns: the lease calculator on the left, the photo slideshow +
 * vehicle info on the right (Carfax is just a link here, not embedded).
 * Mirrors the mobile app's "I Want This Car" screen's calculator math/
 * gauge behavior. Reuses the .cwc-modal-overlay/.cwc-modal base from the
 * consent modals, widened via .cwc-vehicle-modal.
 */

.cwc-vehicle-modal {
  width: min(980px, 100%);
  max-height: 90vh;
  overflow-y: auto;
}

.cwc-vehicle-modal-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
}

.cwc-vehicle-modal-section-title {
  margin: 0 0 1rem;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cwc-gray-text);
}

.cwc-app-view-modal {
  width: min(460px, 100%);
  max-height: 90vh;
  overflow-y: auto;
}

.cwc-app-view-body {
  padding: 1.5rem;
  text-align: left;
}

.cwc-app-view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.65rem;
}

.cwc-app-view-title {
  margin: 0 0 0.25rem;
  font-size: 20px;
  font-weight: 700;
  color: var(--cwc-black);
}

.cwc-app-view-sub {
  margin: 0;
  font-size: 13px;
  color: var(--cwc-gray-text);
  word-break: break-word;
}

.cwc-modal-actions [hidden],
.cwc-delete-error[hidden] {
  display: none;
}

.cwc-modal-body .cwc-delete-error,
.cwc-signup-sheet .cwc-delete-error {
  padding: 10px;
  border: 1px solid var(--cwc-error-border);
  border-radius: var(--cwc-radius-sm);
  background: var(--cwc-error-bg);
  color: var(--cwc-red);
  font-size: 13px;
}

.cwc-rate-note {
  margin: 0.75rem 0;
  color: var(--cwc-body-text);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.cwc-app-view-quote-notice {
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--cwc-amber);
  border-radius: var(--cwc-radius-sm);
  background: var(--cwc-amber-bg);
  color: var(--cwc-amber);
  font-size: 12px;
  line-height: 1.5;
}

.cwc-app-view-close-btn {
  width: 100%;
  margin-top: 1rem;
}

/*
 * Submit a Deal — VIN decode wizard modal (Your Applications -> "+").
 * Three steps toggled via [hidden] on .cwc-deal-step: VIN entry, decoded
 * vehicle info + colour/mileage/price, payment structure. Prev/next arrows
 * are pinned to the vertical center of the modal's own left/right edges
 * (not the gallery-style corner nav used elsewhere) and only appear once
 * the current step allows moving in that direction.
 */
.cwc-deal-modal {
  /* Content-hugging rather than a fixed width: a flex item's width
     defaults to its own content size along the main axis of
     .cwc-modal-overlay's flex row, so the modal naturally grows toward
     max-width if any step's content (a long vehicle name, a long error
     message) needs more room, instead of that text getting clipped. */
  width: auto;
  min-width: min(420px, 100%);
  max-width: min(640px, 100%);
  max-height: 90vh;
  overflow-y: auto;
}

#cwcDealStepInfo .cwc-form-section-title {
  text-align: center;
}

.cwc-deal-modal-body {
  padding: 1.9rem 3.1rem 1.75rem;
  text-align: left;
}

.cwc-deal-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--cwc-glass-border);
  border-radius: 50%;
  background: var(--cwc-white);
  color: var(--cwc-black);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.16);
  transition: background 0.15s;
}

.cwc-deal-modal-nav:hover {
  background: var(--cwc-icon-btn-bg-hover);
}

.cwc-deal-modal-nav-prev {
  left: 10px;
}

.cwc-deal-modal-nav-next {
  right: 10px;
}

.cwc-vin-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--cwc-radius-sm);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.cwc-deal-step-centered {
  text-align: center;
}

.cwc-deal-vin-field {
  max-width: 260px;
  margin: 0 auto;
}

.cwc-deal-vin-field input {
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cwc-deal-step-centered .cwc-vin-status {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.cwc-vin-status-loading {
  border: 1px solid var(--cwc-border-soft);
  background: var(--cwc-gray-light);
  color: var(--cwc-gray-text);
}

.cwc-vin-status-success {
  border: 1px solid var(--cwc-green);
  background: var(--cwc-green-bg);
  color: var(--cwc-green);
}

.cwc-vin-status-error {
  border: 1px solid var(--cwc-error-border);
  background: var(--cwc-error-bg);
  color: var(--cwc-red);
}

.cwc-deal-vehicle-summary {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--cwc-border-soft);
  border-radius: var(--cwc-radius-sm);
  background: var(--cwc-gray-light);
}

.cwc-deal-vehicle-summary-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--cwc-green);
}

.cwc-deal-vehicle-summary-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
  font-size: 13px;
  font-weight: 700;
  color: var(--cwc-black);
}

.cwc-deal-vehicle-summary-vin {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cwc-gray-text);
}

.cwc-deal-submit-btn {
  width: 100%;
  margin-top: 1.25rem;
}

@media (max-width: 760px) {
  .cwc-vehicle-modal-columns {
    grid-template-columns: 1fr;
  }
}

.cwc-vehicle-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--cwc-icon-btn-bg);
  color: var(--cwc-black);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.cwc-vehicle-modal-close:hover {
  background: var(--cwc-icon-btn-bg-hover);
}

.cwc-vehicle-modal-body {
  padding: 1.5rem;
  text-align: left;
}

.cwc-vehicle-modal-image-wrap {
  position: relative;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cwc-gray-light);
}

.cwc-vehicle-modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cwc-vehicle-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.45);
  color: var(--cwc-white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.cwc-vehicle-modal-nav:hover {
  background: rgba(17, 17, 17, 0.65);
}

.cwc-vehicle-modal-nav-prev {
  left: 10px;
}

.cwc-vehicle-modal-nav-next {
  right: 10px;
}

.cwc-vehicle-modal-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 0.6rem;
}

.cwc-vehicle-modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cwc-gray-mid);
  transition: width 0.2s, background 0.2s;
}

.cwc-vehicle-modal-dot.is-active {
  width: 12px;
  background: var(--cwc-red);
}

.cwc-vehicle-modal-title {
  margin: 1rem 0 0.15rem;
  font-size: 18px;
  font-weight: 700;
}

.cwc-vehicle-modal-trim {
  margin: 0;
  color: var(--cwc-gray-text);
  font-size: 13px;
}

.cwc-vehicle-modal-description {
  margin: 0.75rem 0 0;
  color: var(--cwc-body-text);
  font-size: 14px;
  line-height: 1.6;
}

/* Carfax logo mark — matches the dealer portal's .cw-carfax-trigger
   (assets/css/dealer-portal.css) so the two portals use the same mark. */
.cwc-carfax-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.15s;
}

.cwc-carfax-trigger svg {
  display: block;
}

.cwc-carfax-trigger .cwc-carfax-mark,
.cwc-carfax-trigger .cwc-carfax-word,
.cwc-carfax-trigger .cwc-carfax-leaf {
  fill: var(--cwc-red);
  transition: fill 0.15s;
}

.cwc-carfax-trigger:hover {
  opacity: 0.8;
}

.cwc-gauge-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  padding: 1rem;
  border-radius: 16px;
  background: var(--cwc-white);
  box-shadow: 0 2px 6px rgba(17, 17, 17, 0.08);
}

.cwc-gauge-wrap {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}

.cwc-gauge-svg {
  width: 100%;
  height: auto;
  display: block;
  cursor: grab;
  touch-action: none;
}

.cwc-gauge-svg:active {
  cursor: grabbing;
}

.cwc-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cwc-gauge-value {
  font-family: var(--cwc-font);
  font-size: 22px;
  font-weight: 700;
  color: var(--cwc-black);
}

.cwc-gauge-label {
  font-family: var(--cwc-font);
  margin-top: 2px;
  font-size: 13px;
  color: var(--cwc-black);
}

.cwc-term-select-wrap {
  text-align: center;
  margin: 1rem 0;
}

.cwc-term-select {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid var(--cwc-gray-mid);
  border-radius: 12px;
  background: var(--cwc-white);
  color: var(--cwc-black);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.cwc-breakdown-card {
  padding: 1rem;
  border-radius: 16px;
  background: var(--cwc-white);
  box-shadow: 0 1px 4px rgba(17, 17, 17, 0.06);
}

.cwc-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 5px 0;
}

.cwc-breakdown-row span:first-child {
  color: var(--cwc-body-text);
  font-size: 14px;
  font-weight: 600;
}

.cwc-breakdown-row span:last-child {
  color: var(--cwc-body-text);
  font-size: 14px;
}

.cwc-breakdown-row input {
  width: 120px;
  padding: 6px 10px;
  border: 1px solid var(--cwc-gray-mid);
  border-radius: 8px;
  background: var(--cwc-white);
  color: var(--cwc-black);
  font-family: inherit;
  font-size: 14px;
  text-align: right;
}

.cwc-breakdown-row input:focus {
  outline: none;
  border-color: var(--cwc-red);
}

.cwc-disclosure-link {
  display: block;
  margin: 0.75rem auto 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cwc-black);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.cwc-want-this-car-btn {
  margin-top: 1.5rem;
}

@media (max-width: 560px) {
  .cwc-vehicle-modal {
    max-height: 92vh;
  }

  .cwc-vehicle-modal-body {
    padding: 1rem;
  }

  .cwc-breakdown-row input {
    width: 100px;
  }
}

/*
 * Deal confirm / success modals ("I Want This Car!" flow)
 */

.cwc-deal-confirm-body {
  text-align: left;
}

.cwc-deal-confirm-body > p {
  color: var(--cwc-gray-text);
  font-size: 13px;
}

.cwc-deal-summary {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--cwc-gray-light);
}

.cwc-deal-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 13px;
}

.cwc-deal-summary-row span {
  color: var(--cwc-gray-text);
}

.cwc-deal-summary-row strong {
  font-weight: 700;
}

.cwc-consent-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--cwc-gray-text);
  font-size: 12px;
  line-height: 1.5;
}

.cwc-consent-checkbox-row input {
  margin-top: 2px;
  flex-shrink: 0;
}

.cwc-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: var(--cwc-red);
  color: var(--cwc-white);
}

.cwc-deal-success-note {
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: var(--cwc-gray-light);
  color: var(--cwc-gray-text);
  font-size: 12px;
  text-align: left;
}
