html {
  font-size: 14px;
}

html[data-bs-theme="light"] {
  color-scheme: light;
}

html[data-bs-theme="dark"] {
  color-scheme: dark;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  color: #172033;
  background: #f7f8fa;
}

.theme-toggle {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  align-self: center;
  place-items: center;
  margin-inline: .2rem .45rem;
  border: 1px solid transparent;
  border-radius: 50%;
  padding: .4rem !important;
}

.mobile-primary-navigation,
.mobile-navbar-actions {
  display: none;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: #cbd2df;
  background: #f0f2f6;
}

.theme-icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-icon--sun {
  display: none;
}

[data-bs-theme="dark"] .theme-icon--moon {
  display: none;
}

[data-bs-theme="dark"] .theme-icon--sun {
  display: block;
}

.site-shell {
  width: 100%;
  padding-inline: clamp(.75rem, 1.6vw, 2rem);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.ram-catalogue {
  max-width: 1800px;
  margin: 0 auto;
}

.ram-hero {
  padding: 1.1rem 0 .7rem;
}

.ram-eyebrow {
  margin-bottom: .2rem;
  color: #526078;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ram-hero h1 {
  margin-bottom: .35rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 750;
  letter-spacing: -.04em;
}

.ram-introduction {
  width: 100%;
  margin-bottom: .45rem;
  font-size: 1rem;
  line-height: 1.45;
}

.ram-pitch {
  color: #526078;
  font-weight: 600;
}

.catalogue-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem 1rem;
}

.catalogue-updated-inline {
  color: #667085;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.catalogue-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: .4rem .75rem;
  margin: .65rem 0 .4rem;
}

.ram-filters {
  display: contents;
}

.ram-filter-sidebar {
  display: flex;
  grid-column: 1;
  grid-row: 1 / span 2;
  flex-direction: column;
  gap: .38rem;
  border: 1px solid #d9deea;
  border-radius: .65rem;
  padding: .45rem;
  background: #f7f8fa;
}

.ram-filter-title {
  margin: 0;
  padding-inline: .15rem;
  color: #475467;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}

.ram-filter-group {
  min-width: 0;
  width: 100%;
  margin: 0;
  border: 1px solid #cbd2df;
  border-radius: .45rem;
  padding: .05rem .3rem .25rem;
  background: #fff;
}

.ram-filter-group legend {
  float: none;
  width: auto;
  margin: 0;
  padding: 0 .18rem;
  color: #475467;
  font-size: .66rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.ram-filter-options {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: .2rem;
}

.ram-filter-option {
  display: inline-flex;
  width: 100%;
  align-items: center;
  gap: .22rem;
  min-height: 1.65rem;
  margin: 0;
  border: 1px solid #d4dae5;
  border-radius: .35rem;
  padding: .12rem .32rem;
  background: #fafbfc;
  font-size: .74rem;
  font-weight: 650;
  cursor: pointer;
  user-select: none;
}

.ram-filter-option:has(input:checked) {
  border-color: #172033;
  background: #e9edf4;
}

.ram-filter-option input {
  width: .8rem;
  height: .8rem;
  margin: 0;
  accent-color: #172033;
}

.ram-filter-actions {
  flex: 1 0 auto;
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: flex-end;
  gap: .5rem;
}

.ram-filter-footer {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-items: flex-end;
  justify-content: flex-end;
  gap: .42rem;
}

.ram-filter-footer .ram-result-count {
  align-self: center;
  margin: 0;
  white-space: nowrap;
}

.catalogue-results {
  min-width: 0;
  grid-column: 2;
  grid-row: 2;
}

.ram-filter-footer .ram-filter-options {
  flex-direction: row;
}

.ram-filter-footer .ram-filter-group {
  width: max-content;
}

.ram-filter-footer .ram-filter-option {
  width: auto;
}

.ram-filter-footer .ram-filter-actions {
  flex: 0 0 auto;
}

.ram-filter-actions a {
  color: #475467;
  font-size: .76rem;
  font-weight: 650;
}

.ram-filter-actions button {
  min-height: 1.85rem;
  border: 1px solid #172033;
  border-radius: .4rem;
  padding: .22rem .6rem;
  border-color: #172033;
  background: #172033;
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
}

.ram-filter-actions button:hover {
  background: #29344a;
}

.ram-filter-sidebar-actions {
  width: 100%;
  min-width: 0;
  margin-top: .1rem;
}

.ram-filter-sidebar-actions button {
  width: 100%;
}

.ram-result-count {
  margin: .35rem 0;
  color: #667085;
  font-size: .9rem;
}

.ram-table-wrap {
  overflow-x: auto;
  border: 1px solid #d9deea;
  border-radius: .55rem;
  background: #fff;
}

.ram-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}

.ram-table th,
.ram-table td {
  border-bottom: 1px solid #e7eaf0;
  text-align: left;
  vertical-align: middle;
}

.ram-table th {
  padding: .3rem .45rem;
}

.ram-table td {
  padding: .22rem .45rem;
}

.ram-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f0f2f6;
  color: #475467;
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ram-table tbody tr:last-child td {
  border-bottom: 0;
}

.ram-table tbody tr:hover {
  background: #fafbfc;
}

.ram-table .number {
  text-align: right;
  white-space: nowrap;
}

.product-meta-cell {
  white-space: nowrap;
}

.ram-table .product-cell strong {
  display: block;
  max-width: 35vw;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.condition {
  display: inline-block;
  border-radius: 999px;
  padding: .12rem .38rem;
  background: #eef2f6;
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
}

.condition-new {
  background: #e8f7ee;
  color: #17643a;
}

.condition-openbox {
  background: #fff4d8;
  color: #7a4d00;
}

.condition-used {
  background: #f1eafa;
  color: #5b3482;
}

.value-cell {
  color: #172033;
  font-weight: 700;
}

.price-cell {
  color: #0b6b49;
  font-weight: 750;
}

.offer-cell a {
  display: inline-block;
  border: 1px solid #172033;
  border-radius: .4rem;
  padding: .22rem .42rem;
  color: #172033;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.offer-cell a:hover {
  background: #172033;
  color: #fff;
}

.offer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .25rem;
}

.price-history-button {
  display: inline-grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid #98a2b3;
  border-radius: .4rem;
  background: #fff;
  color: #344054;
}

.price-history-button:hover,
.price-history-button:focus-visible {
  border-color: #0b6b49;
  background: #e8f7ee;
  color: #0b6b49;
}

.price-history-button svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.price-history-modal .modal-header {
  align-items: flex-start;
}

.price-history-eyebrow,
.price-history-merchant {
  margin: 0;
  color: #667085;
  font-size: .8rem;
}

.price-history-eyebrow {
  margin-bottom: .15rem;
  color: #0b6b49;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.price-history-status {
  margin: 1rem 0;
  color: #667085;
  text-align: center;
}

.price-history-chart {
  overflow-x: auto;
}

.price-history-chart svg {
  display: block;
  width: 100%;
  min-width: 34rem;
  height: auto;
}

.price-history-grid {
  stroke: #e4e7ec;
  stroke-width: 1;
}

.price-history-axis-label {
  fill: #667085;
  font-size: 12px;
}

.price-history-line {
  fill: none;
  stroke: #0b6b49;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.price-history-point {
  fill: #fff;
  stroke: #0b6b49;
  stroke-width: 3;
}

.price-history-point.is-unavailable {
  fill: #fda29b;
  stroke: #b42318;
}

.price-history-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin: 1rem 0 0;
}

.price-history-summary[hidden] {
  display: none;
}

.price-history-summary div {
  padding: .65rem .75rem;
  border-radius: .45rem;
  background: #f2f4f7;
}

.price-history-summary dt {
  color: #667085;
  font-size: .72rem;
  text-transform: uppercase;
}

.price-history-summary dd {
  margin: .1rem 0 0;
  color: #172033;
  font-weight: 750;
}

.ram-empty {
  padding: 2rem;
  border: 1px solid #d9deea;
  border-radius: .75rem;
  background: #fff;
  text-align: center;
}

.faq-page {
  max-width: 850px;
  margin: 0 auto;
  padding: 2rem 0;
  line-height: 1.7;
}

.faq-header h1 {
  margin-bottom: .75rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 750;
  letter-spacing: -.04em;
}

.faq-header {
  margin-bottom: 1rem;
}

.faq-questions details {
  border-top: 1px solid #d9deea;
  padding: .85rem 0;
}

.faq-questions summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-questions details p {
  margin: .75rem 0 0;
}

.ram-disclosure {
  margin-top: 1.5rem;
  color: #667085;
  font-size: .85rem;
}

[data-bs-theme="dark"] body {
  color: #e4e9f2;
  background: #0f141d;
}

[data-bs-theme="dark"] .navbar {
  border-color: #303b4b !important;
  background: #151c27 !important;
}

[data-bs-theme="dark"] .footer {
  border-color: #303b4b !important;
}

[data-bs-theme="dark"] .theme-toggle:hover,
[data-bs-theme="dark"] .theme-toggle:focus-visible {
  border-color: #526078;
  background: #263244;
}

[data-bs-theme="dark"] .btn:focus,
[data-bs-theme="dark"] .btn:active:focus,
[data-bs-theme="dark"] .btn-link.nav-link:focus,
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-check-input:focus {
  box-shadow: 0 0 0 .1rem #0f141d, 0 0 0 .25rem #66a9ff;
}

[data-bs-theme="dark"] .ram-eyebrow,
[data-bs-theme="dark"] .ram-pitch {
  color: #aeb9ca;
}

[data-bs-theme="dark"] .catalogue-updated-inline,
[data-bs-theme="dark"] .ram-result-count,
[data-bs-theme="dark"] .price-history-merchant,
[data-bs-theme="dark"] .price-history-status,
[data-bs-theme="dark"] .ram-disclosure {
  color: #98a7bc;
}

[data-bs-theme="dark"] .ram-filter-sidebar {
  border-color: #303b4b;
  background: #121923;
}

[data-bs-theme="dark"] .ram-filter-group {
  border-color: #3b485b;
  background: #192230;
}

[data-bs-theme="dark"] .ram-filter-group legend,
[data-bs-theme="dark"] .ram-filter-title,
[data-bs-theme="dark"] .ram-filter-actions a {
  color: #b6c1d1;
}

[data-bs-theme="dark"] .ram-filter-option {
  border-color: #3b485b;
  background: #202b3b;
}

[data-bs-theme="dark"] .ram-filter-option:hover {
  background: #283548;
}

[data-bs-theme="dark"] .ram-filter-option:has(input:checked) {
  border-color: #9bb8df;
  background: #30415a;
}

[data-bs-theme="dark"] .ram-filter-option input {
  accent-color: #8bbcff;
}

[data-bs-theme="dark"] .ram-filter-actions button {
  border-color: #8bbcff;
  background: #8bbcff;
  color: #101722;
}

[data-bs-theme="dark"] .ram-filter-actions button:hover {
  background: #acd0ff;
}

[data-bs-theme="dark"] .ram-table-wrap,
[data-bs-theme="dark"] .ram-empty {
  border-color: #303b4b;
  background: #151c27;
}

[data-bs-theme="dark"] .ram-table th,
[data-bs-theme="dark"] .ram-table td {
  border-color: #293444;
}

[data-bs-theme="dark"] .ram-table th {
  background: #202a38;
  color: #b6c1d1;
}

[data-bs-theme="dark"] .ram-table tbody tr:hover {
  background: #1b2533;
}

[data-bs-theme="dark"] .value-cell {
  color: #e4e9f2;
}

[data-bs-theme="dark"] .price-cell,
[data-bs-theme="dark"] .price-history-eyebrow {
  color: #6ce9a6;
}

[data-bs-theme="dark"] .offer-cell a {
  border-color: #aeb9ca;
  color: #e4e9f2;
}

[data-bs-theme="dark"] .offer-cell a:hover {
  border-color: #dce6f5;
  background: #dce6f5;
  color: #101722;
}

[data-bs-theme="dark"] .price-history-button {
  border-color: #526078;
  background: #192230;
  color: #d5deeb;
}

[data-bs-theme="dark"] .price-history-button:hover,
[data-bs-theme="dark"] .price-history-button:focus-visible {
  border-color: #6ce9a6;
  background: #17362d;
  color: #6ce9a6;
}

[data-bs-theme="dark"] .condition {
  background: #2b3748;
  color: #d5deeb;
}

[data-bs-theme="dark"] .condition-new {
  background: #16382c;
  color: #75e0aa;
}

[data-bs-theme="dark"] .condition-openbox {
  background: #473711;
  color: #ffd978;
}

[data-bs-theme="dark"] .condition-used {
  background: #38254d;
  color: #d8b4fe;
}

[data-bs-theme="dark"] .price-history-grid {
  stroke: #344054;
}

[data-bs-theme="dark"] .price-history-axis-label,
[data-bs-theme="dark"] .price-history-summary dt {
  fill: #aeb9ca;
  color: #aeb9ca;
}

[data-bs-theme="dark"] .price-history-line {
  stroke: #6ce9a6;
}

[data-bs-theme="dark"] .price-history-point {
  fill: #151c27;
  stroke: #6ce9a6;
}

[data-bs-theme="dark"] .price-history-summary div {
  background: #202a38;
}

[data-bs-theme="dark"] .price-history-summary dd {
  color: #e4e9f2;
}

[data-bs-theme="dark"] .faq-questions details {
  border-color: #303b4b;
}

[data-bs-theme="dark"] .text-muted {
  color: #98a7bc !important;
}

@media (max-width: 575.98px) {
  .navbar > .container-fluid {
    flex-wrap: wrap;
  }

  .navbar-brand {
    margin-right: .35rem;
  }

  .mobile-primary-navigation,
  .mobile-navbar-actions {
    display: flex;
    align-items: center;
  }

  .mobile-primary-navigation {
    gap: .1rem;
    margin-right: auto;
  }

  .mobile-primary-navigation a {
    padding: .35rem .3rem;
    color: var(--bs-navbar-color);
    font-size: .78rem;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-primary-navigation a:hover,
  .mobile-primary-navigation a:focus-visible {
    color: var(--bs-navbar-hover-color);
  }

  .mobile-navbar-actions {
    margin-left: auto;
  }

  .theme-toggle--desktop,
  .primary-nav-collapsed-item {
    display: none;
  }

  .theme-toggle--mobile {
    margin: 0 .2rem 0 0;
  }

  .navbar-collapse {
    flex-basis: 100%;
  }
}

@media (max-width: 960px) {
  .catalogue-layout {
    display: block;
  }

  .ram-filter-sidebar-actions {
    display: none;
  }

  .ram-filter-sidebar {
    display: block;
    padding: .6rem;
  }

  .ram-filter-group + .ram-filter-group,
  .ram-filter-actions {
    margin-top: .6rem;
  }

  .ram-filter-title {
    margin-bottom: .6rem;
    text-align: left;
  }

  .ram-filter-footer {
    display: block;
    margin-top: .6rem;
  }

  .ram-filter-footer .ram-result-count {
    margin-bottom: .35rem;
  }

  .ram-filter-group {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    padding: .15rem .45rem .4rem;
  }

  .ram-filter-group legend {
    padding-inline: .25rem;
    font-size: .72rem;
  }

  .ram-filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: .3rem;
  }

  .ram-filter-footer .ram-filter-options {
    display: grid;
  }

  .ram-filter-footer .ram-filter-group {
    width: 100%;
  }

  .ram-filter-footer .ram-filter-option {
    width: 100%;
  }

  .ram-filter-option {
    gap: .3rem;
    min-height: 2.15rem;
    padding: .3rem .45rem;
    font-size: .8rem;
  }

  .ram-filter-option input {
    width: 1rem;
    height: 1rem;
  }

  .ram-filter-group--sort .ram-filter-options {
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  }

  .ram-filter-actions {
    justify-content: space-between;
  }

  .ram-filter-actions button {
    min-height: 2.25rem;
    min-width: 7rem;
    font-size: .82rem;
  }
}

@media (max-width: 767px) {
  .ram-hero {
    padding-top: 1.25rem;
  }

  .ram-table,
  .ram-table tbody,
  .ram-table tr,
  .ram-table td {
    display: block;
  }

  .ram-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .ram-table tr {
    padding: .6rem 0;
    border-bottom: 1px solid #d9deea;
  }

  .ram-table tbody tr:last-child {
    border-bottom: 0;
  }

  .ram-table td {
    display: grid;
    grid-template-columns: minmax(7rem, 35%) 1fr;
    gap: .75rem;
    border: 0;
    padding: .35rem .8rem;
    text-align: left !important;
  }

  .ram-table td::before {
    content: attr(data-label);
    color: #667085;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  [data-bs-theme="dark"] .ram-table tr {
    border-color: #303b4b;
  }

  [data-bs-theme="dark"] .ram-table td::before {
    color: #98a7bc;
  }

  .ram-table td:first-child {
    display: block;
    padding-top: .65rem;
  }

  .ram-table td:first-child strong {
    max-width: none;
    white-space: normal;
  }

  .ram-table td:first-child::before,
  .ram-table .offer-cell::before {
    content: none;
  }

  .offer-cell a {
    text-align: center;
  }

  .offer-actions {
    justify-content: stretch;
  }

  .offer-actions a {
    flex: 1;
  }

  .price-history-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .ram-filter-actions {
    flex-wrap: wrap;
  }

  .ram-filter-actions a,
  .ram-filter-actions button {
    width: 100%;
  }

  .ram-filter-actions button {
    margin-top: .5rem;
  }
}

.visitor-summary-row {
  cursor: pointer;
}

.visitor-summary-row:focus-visible {
  outline: 3px solid var(--bs-primary);
  outline-offset: -3px;
}
