/* ClearTheCode tweaks on top of Red Parts (Envato) theme */

.site-logo__img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.site-logo__img--desktop {
  max-width: 240px;
  max-height: 44px;
}

.site-logo__img--compact {
  max-width: 200px;
  max-height: 37px;
}

.site-logo__img--mobile {
  max-width: 164px;
  max-height: 30px;
}

.mobile-header__logo .site-logo__img {
  max-width: 164px;
  max-height: 30px;
}

.header__logo .logo__image {
  min-width: 0;
}

.carcox-header__navbar-menu .main-menu__item--has-submenu > .main-menu__link svg {
  display: none;
}

.carcox-header__navbar-menu .main-menu__item--has-submenu > .main-menu__submenu {
  display: none !important;
}

.header__navbar-departments.carcox-nav-departments {
  display: none;
}

/* Header search — right column (aligned with topbar Sign out) */
.header__search.carcox-header__search-slot {
  display: none !important;
}

.header__indicators.carcox-header__search-indicators {
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  align-self: center;
  grid-column: 4;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

[dir='ltr'] .header__indicators.carcox-header__search-indicators {
  padding-left: 20px;
}

[dir='rtl'] .header__indicators.carcox-header__search-indicators {
  padding-right: 20px;
}

.carcox-header-search {
  width: 100%;
  max-width: min(640px, 100%);
  margin-left: auto;
}

[dir='rtl'] .carcox-header-search {
  margin-left: 0;
  margin-right: auto;
}

/* Unified search bar (desktop + mobile) */
.carcox-search-bar {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 42px;
  background: linear-gradient(180deg, #fafafa 0%, #e6e6e6 100%);
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.carcox-search-bar__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0 14px;
  font-size: 15px;
  color: #262626;
  outline: none;
}

.carcox-search-bar__input::placeholder {
  color: #6c757d;
}

.carcox-search-bar__actions {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  border-left: 1px solid #c8c8c8;
  background: linear-gradient(180deg, #f5f5f5 0%, #dedede 100%);
}

.carcox-search-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.carcox-search-bar__btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #ef3a3a 0%, #c41f1f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.carcox-search-bar__btn--primary:hover {
  background: linear-gradient(180deg, #d92b2b 0%, #a81818 100%);
}

.carcox-search-bar__btn--secondary {
  color: #333;
  background: linear-gradient(180deg, #fff 0%, #e4e4e4 100%);
  border-left: 1px solid #c8c8c8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.carcox-search-bar__btn--secondary:hover {
  color: #e52727;
}

.carcox-search-bar--mobile {
  min-height: 40px;
}

.carcox-search-bar--mobile .carcox-search-bar__btn {
  padding: 0 12px;
  font-size: 12px;
}

/* Mobile header — centered logo, search on second row */
.carcox-mobile-header__body {
  display: flex !important;
  flex-direction: column;
  height: auto !important;
  min-height: 50px;
  padding-bottom: 10px;
}

.carcox-mobile-header__top {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  width: 100%;
  height: 50px;
}

.carcox-mobile-header__logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.carcox-mobile-header__logo-wrap .mobile-header__logo {
  padding: 0;
  justify-content: center;
}

.carcox-mobile-header__menu-spacer {
  width: 52px;
  flex-shrink: 0;
}

.carcox-mobile-header__search-row {
  width: 100%;
  padding: 0 12px;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  .carcox-header__navbar-menu {
    justify-content: flex-start;
  }
}


/* Red top bar — tagline left */
.carcox-topbar-start {
  display: flex;
  align-items: center;
  min-height: 100%;
  padding-left: 12px;
  padding-right: 12px;
}

.carcox-header-tagline {
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}

@media (max-width: 1199px) {
  .carcox-header-tagline {
    font-size: 0.78rem;
    max-width: 28vw;
  }
}

/* Top bar right — single row, white links */
.carcox-topbar-end {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0 12px;
  padding-right: 8px;
}

.carcox-topbar-end .topbar__item-text {
  margin: 0;
  white-space: nowrap;
}

.carcox-topbar-end .carcox-topbar-link,
.carcox-topbar-end button.carcox-topbar-link {
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.carcox-topbar-end .carcox-topbar-link:hover,
.carcox-topbar-end button.carcox-topbar-link:hover {
  color: rgba(255, 255, 255, 0.72) !important;
}

@media (max-width: 1199px) {
  .carcox-topbar-end {
    gap: 0 8px;
  }

  .carcox-topbar-end .carcox-topbar-link,
  .carcox-topbar-end button.carcox-topbar-link {
    font-size: 0.8rem;
  }
}

/* Logo — vertically centered in header band (theme sits logo high by default) */
.header__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding-top: 10px;
  padding-bottom: 2px;
}

.header__logo .logo__image {
  display: flex;
  align-items: center;
}

.header__logo .logo__slogan {
  display: none !important;
}

/* Single natural document scroll — one scrollbar on <html>, no nested scroll,
   no fixed viewport-height cap that creates the trailing blank "second page". */
html {
  overflow-x: hidden;
  overflow-y: scroll; /* reserve gutter so layout never shifts when content grows */
  height: auto !important;
}

body {
  overflow-x: hidden;
  overflow-y: visible !important;
  height: auto !important;
  min-height: 100vh;
  margin: 0;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: auto !important;
  overflow: visible !important;
}

.site__body {
  flex: 1 0 auto;
  overflow: visible !important;
}

.site__body-inner {
  overflow: visible !important;
}

/* Homepage — comfortably wide centered content (not full-bleed),
   full-bleed backgrounds remain on hero/strip/CTA sections only */
.home-section-inner {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.home-hero-inner {
  width: 100%;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  text-align: center;
}

@media (min-width: 768px) {
  .home-section-inner,
  .home-hero-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.carcox-content-column {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Homepage hero — auto height; no fixed 500px blank area */
.block.block-finder,
div.block-finder.block {
  height: auto !important;
  min-height: 0 !important;
  align-items: flex-start;
  padding-top: 2.75rem;
  padding-bottom: 3.75rem;
  overflow: hidden;
  position: relative;
}

/* Decorative wedge often causes extra scroll height on mobile */
.block-finder__decor {
  display: none;
}

.block-finder__image {
  opacity: 0.32;
}

.block-finder::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 15, 0.72) 0%,
    rgba(60, 14, 14, 0.68) 45%,
    rgba(15, 15, 15, 0.78) 100%
  );
  pointer-events: none;
}

/* Prevent RedParts select2 from hijacking React diagnostic dropdowns */
.diagnostic-calculator select {
  -webkit-appearance: menulist;
  appearance: menulist;
}

.diagnostic-calculator .select2-container {
  display: none !important;
}

.block-finder__body {
  width: 100%;
  padding-top: 0.5rem;
  z-index: 2;
}

.block-finder__title {
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  font-weight: 700;
  max-width: 46rem;
  margin: 0 auto;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.block-finder__subtitle--hero-lead {
  max-width: 44rem;
  margin: 1.5rem auto 1.75rem;
  padding-top: 0.5rem;
  line-height: 1.6;
  font-size: 1.05rem;
}

.block-finder__footer-links {
  margin-top: 1.75rem;
  margin-bottom: 0.25rem;
  padding-top: 0.5rem;
  padding-bottom: 0.25rem;
  font-size: 0.9rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  opacity: 0.95;
}

.block-finder__body.container--max--lg,
.block-finder__body.carcox-content-column,
.block-finder__body.home-hero-inner {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .block-finder {
    padding-top: 3.25rem;
    padding-bottom: 4rem;
  }

  .block-finder__subtitle--hero-lead {
    margin-top: 1.75rem;
    margin-bottom: 1.65rem;
  }

  .block-finder__footer-links {
    margin-top: 2rem;
    padding-bottom: 0.5rem;
  }

  .block-finder__body.container--max--lg,
  .block-finder__body.carcox-content-column,
  .block-finder__body.home-hero-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Homepage feature cards */
.home-features-strip {
  background: #fafafa;
  border-bottom: 1px solid #ebebeb;
  padding: 1.75rem 0 2rem;
}

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

@media (min-width: 640px) {
  .home-features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .home-features-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
  }
}

.home-features-grid__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1rem 0.75rem;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  min-height: 100%;
}

.home-features-grid__card:hover {
  border-color: #e52727;
  box-shadow: 0 6px 18px rgba(229, 39, 39, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.home-features-grid__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff5f5;
  color: #e52727;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
}

.home-features-grid__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.home-features-grid__subtitle {
  font-size: 0.82rem;
  color: #e52727;
  line-height: 1.35;
}

/* Homepage sections */
.carcox-home-intro {
  padding: 3rem 0;
}

.carcox-home-intro .home-section-inner,
.carcox-home-values .home-section-inner,
.carcox-home-steps .home-section-inner,
.carcox-home-newsletter .home-section-inner,
.carcox-home-cta .home-section-inner,
.carcox-home-services .home-section-inner {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .carcox-home-intro .home-section-inner,
  .carcox-home-values .home-section-inner,
  .carcox-home-steps .home-section-inner,
  .carcox-home-newsletter .home-section-inner,
  .carcox-home-cta .home-section-inner,
  .carcox-home-services .home-section-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.carcox-home-intro__title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.carcox-home-intro__lead {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.carcox-home-stats--inline {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  background: transparent;
  border: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .carcox-home-stats--inline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.carcox-home-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.carcox-home-intro__actions .btn {
  margin-left: 0 !important;
}

.carcox-home-steps__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .carcox-home-steps__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .carcox-home-steps__grid {
    grid-template-columns: 1fr;
  }
}

.carcox-home-stats {
  list-style: none;
  padding: 1.25rem;
  margin: 0;
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 6px;
}

.carcox-home-stats li {
  padding: 0.65rem 0;
  border-bottom: 1px solid #eee;
}

.carcox-home-stats li:last-child {
  border-bottom: 0;
}

.carcox-home-stats strong {
  display: block;
  font-size: 1.05rem;
  color: #e52727;
}

.carcox-home-stats span {
  font-size: 0.9rem;
  color: #555;
}

/* Stat tiles (inline variant) */
.carcox-home-stats--inline li {
  padding: 1.1rem 1rem;
  border: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.carcox-home-stats--inline strong {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: #e52727;
}

.carcox-home-stats--inline span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.35;
}

.carcox-home-values {
  padding: 3rem 0;
}

/* Value cards — flexible columns that fill the wider layout cleanly */
.carcox-home-values__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .carcox-home-values__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .carcox-home-values__grid {
    grid-template-columns: 1fr;
  }
}

.carcox-home-value-card {
  height: 100%;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.carcox-home-value-card:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.carcox-home-value-card__title {
  font-size: 1.05rem;
  margin: 0.75rem 0 0.5rem;
}

.carcox-home-steps {
  padding: 3rem 0;
}

.carcox-home-step-card {
  height: 100%;
  padding: 1.5rem;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.carcox-home-step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #e52727;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.carcox-home-step-card__title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.carcox-home-newsletter {
  padding: 2.75rem 0;
  background: #f8f8f8;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.carcox-newsletter {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.carcox-newsletter__title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.carcox-newsletter__lead {
  color: #555;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.carcox-newsletter__form {
  text-align: left;
}

.carcox-newsletter__fields {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

@media (min-width: 576px) {
  .carcox-newsletter__fields {
    grid-template-columns: 1.4fr 1fr;
  }
}

.carcox-newsletter__field {
  display: block;
  margin: 0;
}

.carcox-newsletter__input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-size: 15px;
}

.carcox-newsletter__submit {
  width: 100%;
}

.carcox-newsletter__feedback {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.carcox-newsletter__feedback--success {
  color: #0d6832;
}

.carcox-newsletter__feedback--error {
  color: #b42318;
}

.carcox-home-cta {
  padding: 2.75rem 0;
}

.carcox-home-services {
  padding: 3rem 0 3.5rem;
}

.carcox-home-services ul {
  padding-left: 1.15rem;
  color: #555;
}

.carcox-home-services a {
  color: #e52727;
}

/* Section heading helpers (shared) */
.carcox-home-section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2rem;
}

.carcox-home-section-head h2 {
  margin-bottom: 0.5rem;
}

.carcox-home-section-head p {
  color: #555;
  line-height: 1.55;
  margin: 0;
}

/* Browse-the-library link clusters */
.carcox-home-browse {
  padding: 3rem 0;
  background: #f7f7f7;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.carcox-home-browse__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .carcox-home-browse__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.carcox-home-browse__card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 1.5rem;
}

.carcox-home-browse__card h3 {
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.carcox-home-browse__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.carcox-home-browse__tags a {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  background: #fff5f5;
  color: #e52727;
  border: 1px solid #f6dada;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.carcox-home-browse__tags a:hover {
  background: #e52727;
  border-color: #e52727;
  color: #fff;
  text-decoration: none;
}

.carcox-home-browse__more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e52727;
}

/* Homepage FAQ */
.carcox-home-faq {
  padding: 3rem 0 3.5rem;
}

.carcox-home-faq__list {
  max-width: 52rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.carcox-home-faq__item {
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  background: #fff;
}

.carcox-home-faq__q {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #1a1a1a;
}

.carcox-home-faq__a {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

/* /diagnose — cost table + internal-link chips */
.diagnose-landing__cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.diagnose-landing__cost-table th,
.diagnose-landing__cost-table td {
  border: 1px solid #e6e6e6;
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.diagnose-landing__cost-table thead th {
  background: #fafafa;
  font-weight: 700;
}

.diagnose-landing__cost-table tbody tr:nth-child(even) {
  background: #fcfcfc;
}

.diagnose-landing__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0.5rem 0 1.75rem;
}

.diagnose-landing__chips a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: #fff5f5;
  color: #e52727;
  border: 1px solid #f6dada;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.diagnose-landing__chips a:hover {
  background: #e52727;
  border-color: #e52727;
  color: #fff;
  text-decoration: none;
}

/* Advanced search modal */
.carcox-search-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.55);
}

.carcox-search-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: auto;
  background: #fff;
  border-radius: 8px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.carcox-search-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
}

.carcox-search-modal__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.carcox-search-modal__lead {
  margin: 0 0 1.25rem;
  color: #555;
  font-size: 0.95rem;
}

.carcox-search-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Header search loading */
.carcox-search-bar--loading .carcox-search-bar__input {
  opacity: 0.75;
}

.search-page__loading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #555;
  font-size: 1rem;
  margin-top: 1rem;
}

.search-page__spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #e0e0e0;
  border-top-color: #e52727;
  border-radius: 50%;
  animation: carcox-spin 0.7s linear infinite;
}

@keyframes carcox-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Reason / cancel modal */
.carcox-reason-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.45);
}

.carcox-reason-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.carcox-reason-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
}

.carcox-reason-modal__title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  color: #111;
}

.carcox-reason-modal__lead {
  margin: 0 0 1rem;
  color: #555;
  font-size: 0.92rem;
}

.carcox-reason-modal__error {
  color: #b91c1c;
  font-size: 0.88rem;
  margin: 0.5rem 0 0;
}

.carcox-reason-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: flex-end;
}

/* Content spacing below header */
.site__body .site__body-inner {
  padding-top: 1.25rem;
}

/* Footer */
.carcox-footer__brand {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.carcox-footer__logo-link {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.75rem;
}

.carcox-footer__logo {
  max-width: 200px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

.carcox-footer__tagline {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 22rem;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .carcox-footer__brand {
    align-items: flex-start;
    text-align: left;
  }

  .carcox-footer__logo-link {
    justify-content: flex-start;
  }

  .carcox-footer__logo {
    margin: 0;
  }

  .carcox-footer__tagline {
    margin: 0;
  }
}

.carcox-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  margin-top: 1.25rem;
}

.carcox-footer {
  margin-top: 2.5rem;
}

.carcox-footer__copyright--centered {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.carcox-footer__copyright--centered p {
  text-align: center;
}

.carcox-footer__copyright p {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

.carcox-footer__legal-note {
  font-size: 0.78rem !important;
  opacity: 0.7;
}

@media (max-width: 767px) {
  .carcox-footer__grid > [class*='col-'] {
    margin-bottom: 1.25rem;
  }
}

/* Info / legal content pages */
.info-page__intro {
  color: #555;
  max-width: 40rem;
  margin-bottom: 1rem;
}

.info-page__related {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.info-page__toc {
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.info-page__section {
  margin-bottom: 2rem;
}

.info-page__section h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.info-page__body ul,
.info-page__body ol {
  padding-left: 1.25rem;
}

.info-page__contact {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

/* About page — interactive highlights */
.about-page {
  padding-top: 2.5rem !important;
}

.about-page__highlights {
  margin-bottom: 2.5rem;
}

.about-page__highlights-title {
  text-align: center;
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}

.about-page__highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 991px) {
  .about-page__highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .about-page__highlights-grid {
    grid-template-columns: 1fr;
  }
}

.about-page__highlight-card {
  display: block;
  height: 100%;
  padding: 1.25rem;
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.about-page__highlight-card:hover {
  border-color: #e52727;
  box-shadow: 0 4px 16px rgba(229, 39, 39, 0.1);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}

.about-page__highlight-card i {
  font-size: 1.75rem;
  color: #e52727;
  margin-bottom: 0.65rem;
  display: block;
}

.about-page__highlight-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: #222;
}

.about-page__highlight-card p {
  font-size: 0.92rem;
  color: #555;
  margin: 0 0 0.65rem;
  line-height: 1.5;
}

.about-page__highlight-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e52727;
}

.about-page__related {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.about-page__toc {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.about-page__section {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  max-width: 40rem;
  margin: 0 auto 2rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
}

.about-page__section-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229, 39, 39, 0.08);
  border-radius: 50%;
  color: #e52727;
  font-size: 1.15rem;
}

.about-page__section-body h2 {
  font-size: 1.15rem;
  margin: 0 0 0.65rem;
}

.about-page__section-body {
  flex: 1;
  min-width: 0;
}

@media (max-width: 575px) {
  .about-page__section {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Results toolbar (pagination + per page) */
.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.page-size-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.page-size-select__label {
  font-size: 0.88rem;
  color: #555;
  white-space: nowrap;
}

.page-size-select__input {
  width: auto;
  min-width: 4.5rem;
}

.list-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.list-pagination__info {
  font-size: 0.88rem;
  color: #555;
}

/* Search results page */
.search-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-results-list__item {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.search-results-list__kind {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #e52727;
  margin-right: 0.5rem;
}

.search-results-list__title {
  font-weight: 600;
  font-size: 1.05rem;
}

.search-results-list__sub {
  margin: 0.25rem 0 0;
  color: #666;
  font-size: 0.9rem;
}

.search-results-list__excerpt {
  margin: 0.35rem 0 0;
  color: #444;
  font-size: 0.92rem;
  line-height: 1.5;
  font-style: italic;
}

/* Tables — horizontal scroll on small screens */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

.codes-table {
  min-width: 480px;
}

/* Mobile menu extras */
.carcox-mobile-menu__heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  padding: 1rem 20px 0.35rem;
  margin: 0;
}

.carcox-mobile-menu__links--secondary .mobile-menu__links-link {
  font-size: 0.95rem;
}

/* Articles page intro */
.articles-page__intro {
  color: #555;
  max-width: 42rem;
  margin-bottom: 1rem;
}

@media (max-width: 991px) {
  .articles-explorer__filters {
    position: static;
    margin-bottom: 1.25rem;
  }

  .articles-explorer .row {
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .list-pagination {
    justify-content: space-between;
  }

  .carcox-header-tagline {
    white-space: normal;
    max-width: 100%;
  }
}

/* Account dashboard + shared left sidebar columns */
.account-dashboard__nav {
  margin-bottom: 1rem;
}

@media (min-width: 992px) {
  .account-dashboard__nav {
    margin-bottom: 0;
  }

  .account-dashboard .account-nav__item a {
    white-space: nowrap;
  }

  .carcox-sidebar-col .card-title--sm {
    white-space: nowrap;
  }
}

/* Articles explorer */
.articles-explorer__filters {
  position: sticky;
  top: 1rem;
}

.articles-explorer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.articles-explorer__item {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.articles-explorer__title {
  font-weight: 600;
  font-size: 1.05rem;
  color: #222;
}

.articles-explorer__meta {
  font-size: 0.88rem;
  color: #777;
  margin-top: 0.25rem;
}

.articles-explorer__desc {
  margin: 0.35rem 0 0;
  color: #555;
  font-size: 0.95rem;
}

.articles-explorer__links {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

/* Marketing page heroes (shops, about, etc.) */
.marketing-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 3.5rem 0 4rem;
  background: #1a1a1a;
  text-align: center;
}

.marketing-hero__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  z-index: 0;
}

.marketing-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    145deg,
    rgba(20, 20, 20, 0.88) 0%,
    rgba(80, 18, 18, 0.82) 45%,
    rgba(229, 39, 39, 0.78) 100%
  );
  pointer-events: none;
}

.marketing-hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.06;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}

.marketing-hero__glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 2;
}

.marketing-hero__glow--left {
  top: -80px;
  left: -60px;
  background: #e52727;
}

.marketing-hero__glow--right {
  bottom: -100px;
  right: -40px;
  background: #8b1a1a;
}

.marketing-hero__icon {
  position: absolute;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  line-height: 1;
  z-index: 2;
}

.marketing-hero__icon--primary {
  font-size: clamp(6rem, 14vw, 10rem);
  top: 50%;
  left: 8%;
  transform: translateY(-50%) rotate(-12deg);
}

.marketing-hero__icon--secondary {
  font-size: clamp(4rem, 10vw, 7rem);
  top: 18%;
  right: 10%;
  transform: rotate(18deg);
}

.marketing-hero__inner {
  position: relative;
  z-index: 3;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .marketing-hero__inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.marketing-hero__title {
  color: #fff;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  margin: 0 auto 1rem;
  max-width: 36rem;
  line-height: 1.25;
}

.marketing-hero__subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.94;
  max-width: 38rem;
  margin: 0 auto 1.5rem;
}

.marketing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.marketing-hero__actions .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.marketing-hero__actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* Shops directory */
.shops-directory__body {
  margin-top: 2rem;
  padding-bottom: 2.5rem;
}

.shops-directory__body .row {
  --bs-gutter-x: 1rem;
}

.shop-card--featured {
  border: 1px solid #ebebeb;
  transition: box-shadow 0.15s ease;
}

.shop-card--featured:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.shop-directory-list__item {
  margin-bottom: 0.75rem;
}

.articles-explorer__pagination {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.articles-explorer__page-info {
  font-size: 0.9rem;
  color: #555;
}

@media (min-width: 1200px) {
  .header__navbar-menu.carcox-header__navbar-menu {
    margin-left: 0;
  }
}

.site__body .carcox-page {
  padding: 2rem 0 3rem;
}

.site__body .carcox-page a {
  color: #e52727;
}

.site__body .carcox-page table {
  width: 100%;
  max-width: 100%;
}

.site__body .carcox-page th,
.site__body .carcox-page td {
  border: 1px solid #ebebeb;
  padding: 0.5rem 0.65rem;
}

.site__body .carcox-page th {
  background: #f7f7f7;
}

.site__body .ctc-prose {
  max-width: 48rem;
  line-height: 1.65;
}

.site__body .articles-page {
  max-width: none;
}

.site__body .ctc-prose h1,
.site__body .ctc-prose h2,
.site__body .ctc-prose h3 {
  margin-top: 1.25em;
}

.carcox-disclaimer {
  margin: 0;
  padding: 1rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.carcox-disclaimer strong {
  color: #fff;
}

.block-finder__form input[type='search'] {
  color: #262626;
}

/* Notification bell (header + account) */
.carcox-notif-bell {
  position: relative;
}

.carcox-topbar-notif {
  display: flex;
  align-items: center;
}

.carcox-notif-bell__btn {
  position: relative;
  border: none;
  background: transparent;
  color: #333;
  padding: 0.25rem 0.5rem;
}

.carcox-notif-bell__badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  color: #fff;
  background: #e52727;
  border-radius: 999px;
}

.carcox-notif-bell__backdrop {
  position: fixed;
  inset: 0;
  z-index: 1199;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: default;
}

.carcox-notif-bell__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 1200;
  width: min(22rem, 92vw);
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.carcox-notif-bell__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: #fff;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  color: #111;
}

.carcox-notif-bell__panel-head strong {
  color: #111;
  font-weight: 700;
}

.carcox-notif-bell__mark-all {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e52727;
  cursor: pointer;
  text-decoration: underline;
}

.carcox-notif-bell__panel-foot {
  padding: 0.55rem 0.85rem;
  background: #fafafa;
  border-top: 1px solid #eee;
  font-size: 0.85rem;
  text-align: center;
}

.carcox-notif-bell__panel-foot a {
  color: #e52727;
  font-weight: 600;
  text-decoration: none;
}

.carcox-notif-bell__panel-foot a:hover {
  text-decoration: underline;
}

.carcox-notif-bell__empty {
  margin: 0;
  padding: 0.85rem;
  color: #555;
  font-size: 0.88rem;
}

.carcox-notif-bell__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(24rem, 60vh);
  overflow-x: hidden;
  overflow-y: auto;
}

.carcox-notif-bell__list li {
  border-bottom: 1px solid #f0f0f0;
}

.carcox-notif-bell__list li:last-child {
  border-bottom: none;
}

.carcox-notif-bell__list a,
.carcox-notif-bell__list a.carcox-notif-bell__item-link,
.carcox-notif-bell__list > li > div {
  display: block;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
  color: #1a1a1a !important;
}

.topbar--spaceship-end .carcox-notif-bell__panel,
.topbar--spaceship-end .carcox-notif-bell__panel * {
  color: inherit;
}

.topbar--spaceship-end .carcox-notif-bell__panel {
  color: #1a1a1a;
}

.topbar--spaceship-end .carcox-notif-bell__panel-head strong,
.topbar--spaceship-end .carcox-notif-bell__panel .carcox-notif-bell__title {
  color: #111 !important;
}

.topbar--spaceship-end .carcox-notif-bell__panel .carcox-notif-bell__body,
.topbar--spaceship-end .carcox-notif-bell__panel .carcox-notif-bell__empty {
  color: #444 !important;
}

.topbar--spaceship-end .carcox-notif-bell__panel-foot .carcox-notif-bell__foot-link {
  color: #e52727 !important;
}

.carcox-topbar-end .carcox-notif-bell__btn {
  color: #fff !important;
}

.carcox-notif-bell__list a:hover {
  background: #f8f8f8;
}

.carcox-notif-bell__item--unread a,
.carcox-notif-bell__item--unread > div {
  background: #fff5f5;
  border-left: 3px solid #e52727;
  padding-left: calc(0.85rem - 3px);
}

.carcox-notif-bell__title {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: #111;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.carcox-notif-bell__body {
  display: block;
  font-size: 0.82rem;
  color: #444;
  margin-top: 0.2rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

/* Shop product manager (owner) */
.shop-product-manager__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.shop-product-manager__item {
  margin-bottom: 0.75rem;
}

.shop-product-manager__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.shop-product-manager__badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.shop-product-manager__badge--ok {
  color: #1a5c1a;
  background: #e8f5e9;
}

.shop-product-manager__badge--warn {
  color: #8a1f1f;
  background: #fff0f0;
}

.shop-product-manager__thumb {
  max-width: 120px;
  margin: 0.35rem 0 0.5rem;
  display: block;
  border-radius: 4px;
}

.shop-product-manager__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.shop-product-manager__edit-form {
  margin-top: 0.75rem;
}

.shop-product-manager__confirm-label {
  font-size: 0.88rem;
  color: #333;
  margin-right: 0.25rem;
}

.shop-product-manager__remove-btn {
  margin-left: auto;
}

.shop-product-manager__msg {
  margin: 0.5rem 0;
  color: #333;
}

.shop-merch__oos {
  margin: 0.5rem 0 0;
  color: #8a1f1f;
  font-size: 0.9rem;
}

.carcox-forums-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Forum rich editor + rendered markdown */
.forum-editor {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.forum-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
  border-bottom: 1px solid #e8e8e8;
}

.forum-editor__toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-items: center;
}

.forum-editor__toolbar-group--accent {
  margin-left: auto;
}

.forum-editor__btn {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: #333;
}

.forum-editor__btn:hover {
  border-color: #e52727;
  color: #e52727;
}

.forum-editor__btn--label {
  min-width: auto;
  padding: 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.forum-editor__mode {
  margin-left: 0.5rem;
}

.forum-editor__mode-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: #666;
  border-radius: 4px;
}

.forum-editor__mode-btn--active {
  background: #fff;
  color: #e52727;
  font-weight: 600;
  box-shadow: 0 0 0 1px #e52727;
}

.forum-editor__insert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid #eee;
  background: #fcfcfc;
}

.forum-editor__insert-field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  flex: 1;
  min-width: 12rem;
}

.forum-editor__insert-field .form-control {
  flex: 1;
  min-width: 8rem;
}

.forum-editor__post-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  padding: 0.5rem 0.65rem;
  background: #fff8f8;
  border-bottom: 1px solid #f0d0d0;
}

.forum-editor__post-picker-label {
  font-size: 0.8rem;
  color: #666;
  margin-right: 0.35rem;
}

.forum-editor__panes {
  display: grid;
}

.forum-editor__panes--write {
  grid-template-columns: 1fr;
}

.forum-editor__panes--preview {
  grid-template-columns: 1fr;
}

.forum-editor__panes--split {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 767px) {
  .forum-editor__panes--split {
    grid-template-columns: 1fr;
  }
}

.forum-editor__pane--write {
  border-right: 1px solid #eee;
}

.forum-editor__panes--preview .forum-editor__pane--write,
.forum-editor__panes--write .forum-editor__pane--preview {
  display: none;
}

.forum-editor__textarea {
  border: none;
  border-radius: 0;
  resize: vertical;
  min-height: calc(var(--forum-editor-rows, 10) * 1.45rem + 1.5rem);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.55;
}

.forum-editor__textarea:focus {
  box-shadow: none;
  outline: 2px solid rgba(229, 39, 39, 0.25);
}

.forum-editor__pane--preview {
  padding: 1rem 1.1rem;
  max-height: 28rem;
  overflow-y: auto;
  background: #fafafa;
}

.forum-editor__preview-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
  margin-bottom: 0.65rem;
}

.forum-editor__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  border-top: 1px solid #eee;
  background: #f9f9f9;
}

.forum-editor__count--warn {
  color: #c00;
}

.forum-editor__draft {
  color: #2a7a2a;
  font-weight: 600;
}

.forum-editor__hint code {
  font-size: 0.85em;
}

.forum-editor-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.forum-editor-dialog {
  background: #fff;
  border-radius: 8px;
  max-width: 32rem;
  width: 100%;
  max-height: 80vh;
  overflow: auto;
  padding: 1.25rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.forum-editor-dialog__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.forum-editor-dialog__hint {
  font-size: 0.88rem;
  color: #666;
  margin: 0 0 1rem;
}

.forum-editor-dialog__hits {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
  max-height: 16rem;
  overflow-y: auto;
}

.forum-editor-dialog__hit {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.forum-editor-dialog__hit:hover {
  background: #fff5f5;
}

.forum-editor-dialog__hit-title {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: #222;
}

.forum-editor-dialog__hit-meta {
  display: block;
  font-size: 0.78rem;
  color: #888;
  margin-top: 0.15rem;
}

.forum-md {
  line-height: 1.65;
  font-size: 0.95rem;
  word-break: break-word;
}

.forum-md p {
  margin: 0 0 0.85rem;
}

.forum-md__pre {
  background: #1e1e1e;
  color: #e8e8e8;
  padding: 1rem 1.1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.85rem;
}

.forum-md__code-inline {
  background: #f0f0f0;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.88em;
}

.forum-md__quote {
  border-left: 4px solid #e52727;
  margin: 0 0 1rem;
  padding: 0.5rem 0 0.5rem 1rem;
  color: #555;
  background: #fafafa;
}

.forum-md__thread-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  background: #fff5f5;
  border: 1px solid #f0c0c0;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none !important;
}

.forum-md__thread-link:hover {
  background: #ffe8e8;
  border-color: #e52727;
}

.forum-md__code-link {
  font-weight: 700;
  font-family: ui-monospace, monospace;
  color: #b81e1e !important;
}

.forum-md__post-link {
  font-weight: 600;
  color: #2a7a2a !important;
}

.forum-md__youtube {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 1rem 0;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.forum-md__youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.forum-md__table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.forum-post {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  background: #fff;
}

.forum-post--op {
  margin: 1rem 0;
}

.forum-post--solution {
  border: 2px solid #2a7a2a;
  background: #f8fff8;
}

.forum-post--admin {
  background: #f8f9ff;
}

.forum-post__badge {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.forum-post__badge--solution {
  color: #2a7a2a;
}

.forum-post__badge--admin {
  color: #e52727;
}

.forum-post__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.forum-post__meta {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.forum-post__body {
  margin-top: 0.75rem;
}

.forum-post__actions {
  margin-top: 0.65rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.forum-thread-page {
  padding-bottom: 3.5rem;
  margin-bottom: 2rem;
}

.forum-reply-box {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
}

.forum-reply-box__msg {
  margin-top: 0.5rem;
}

.forum-reply-box__msg--error {
  color: #b91c1c;
  font-size: 0.9rem;
}

/* Shop merch cart — keep checkout bar from overlapping Guides */
.shop-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
}

.shop-order-actions .btn {
  margin: 0;
}

.buyer-order-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-top: 0.35rem;
}

.buyer-order-actions__hint,
.buyer-order-actions__msg,
.buyer-order-actions__note {
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
  max-width: 14rem;
}

.order-tracking-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.88rem;
  margin: 0.25rem 0 0.5rem;
  width: 100%;
  text-align: center;
}

.order-tracking-link__carrier {
  font-weight: 600;
  color: #e52727;
  text-decoration: none;
}

.order-tracking-link__carrier:hover {
  text-decoration: underline;
}

.order-tracking-link__number {
  display: block;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  color: #444;
  word-break: break-all;
}

.account-orders-table__status {
  vertical-align: top;
}

.account-orders-table__status-label {
  display: block;
  font-weight: 600;
}

.account-orders-table__status-when {
  display: block;
  font-size: 0.82rem;
  color: #666;
  margin-top: 0.2rem;
  font-weight: 400;
}

.account-orders-table__actions {
  vertical-align: middle;
  text-align: center;
  min-width: 11rem;
}

.buyer-order-actions__buttons {
  margin-top: 0.35rem;
  width: 100%;
  justify-content: center;
}

.shop-orders-list .shop-order-actions,
.shop-payouts .shop-order-actions {
  justify-content: center;
}

.shop-orders-ship-form .shop-order-actions {
  justify-content: flex-start;
}

.order-plain-textarea__input {
  min-height: 6rem;
}

.order-plain-textarea__meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}

.shop-payouts {
  margin-bottom: 1.5rem;
  border: 1px solid #e8e8e8;
}

.shop-payouts__status {
  margin: 0 0 0.75rem;
}

.shop-payouts__badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.shop-payouts__badge--ok {
  background: #e8f5e9;
  color: #1b5e20;
}

.shop-payouts__badge--warn {
  background: #fff8e1;
  color: #7a5a00;
}

.shop-payouts__test-banner {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
  background: #f5f5f5;
  border-left: 3px solid #e52727;
  color: #333;
}

.shop-payouts__details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.shop-payouts__details dt {
  color: #666;
  margin: 0;
}

.shop-payouts__details dd {
  margin: 0;
  font-weight: 500;
}

.shop-orders-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.shop-orders-list__item {
  margin-bottom: 1rem;
  border: 1px solid #e8e8e8;
}

.shop-orders-list__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: baseline;
}

.shop-orders-list__payout {
  font-size: 0.85rem;
  margin: 0.25rem 0;
}

.shop-orders-ship-form {
  margin-top: 0.75rem;
  max-width: 28rem;
}

.carcox-reason-modal__dialog--wide {
  max-width: 720px;
}

.carcox-rich-modal__uploads {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.shop-merch-section {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e8e8e8;
}

.shop-merch-cart {
  margin-top: 1.25rem;
  margin-bottom: 0;
  padding: 1rem 0 0.5rem;
  clear: both;
  position: relative;
  z-index: 1;
}

.shop-guides-heading {
  margin-top: 0;
  margin-bottom: 1rem;
  clear: both;
}

.shop-guides-list {
  margin-bottom: 2rem;
}

.shop-merch-payment {
  margin-top: 1.25rem;
  margin-bottom: 0;
  padding: 1.25rem 0 2rem;
  clear: both;
  position: relative;
  z-index: 0;
  border-top: 1px solid #e8e8e8;
  max-width: 480px;
}

.shop-merch-payment .btn-primary {
  position: static;
  margin-top: 0.75rem;
}

.shop-member-badges {
  display: inline-flex;
  gap: 0.35rem;
  margin-left: 0.25rem;
  vertical-align: middle;
}

.shop-member-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  line-height: 1.4;
}

.shop-member-badge--donor {
  background: #fef3c7;
  color: #92400e;
}

.shop-member-badge--follower {
  background: #dbeafe;
  color: #1e40af;
}
