* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #0b0b0b;
  color: white;
  font-family: Arial, sans-serif;
}

header {
  padding: 24px;
  border-bottom: 1px solid #2a2a2a;
  font-weight: bold;
}

.logo-dot,
.highlight {
  color: #f5a400;
}

main {
  max-width: 700px;
  margin: 100px auto;
  padding: 24px;
  text-align: center;
}

h1 {
  margin-bottom: 12px;
  font-size: 48px;
}

p {
  color: #a7a7a7;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-top: 32px;
}

input {
  flex: 1;
  padding: 16px;
  background: #151515;
  color: white;
  border: 1px solid #363636;
  border-radius: 5px;
  font-size: 16px;
}

button {
  padding: 16px 24px;
  background: #8b6115;
  color: white;
  border: 0;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #a87519;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

#message {
  margin-top: 24px;
  color: #f5a400;
}

#results {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  text-align: left;
}

.result-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: #171717;
  border: 1px solid #333333;
  border-radius: 8px;
}

.result-card h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  overflow: hidden;
  background: #222222;
  color: #777777;
  border-radius: 6px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-details {
  min-width: 0;
}

.marketplace {
  color: #9e9e9e;
  font-size: 14px;
}

.price {
  margin: 12px 0;
  color: #f5a400;
  font-size: 22px;
  font-weight: bold;
}

.result-details a {
  color: white;
  text-decoration: underline;
}

@media (max-width: 600px) {
  main {
    margin-top: 50px;
  }

  h1 {
    font-size: 36px;
  }

  .search-box {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .result-card {
    grid-template-columns: 90px 1fr;
  }

  .image-container {
    width: 90px;
    height: 90px;
  }
}
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  color: #a7a7a7;
}

.results-toolbar[hidden] {
  display: none;
}

.results-toolbar select {
  padding: 10px;
  background: #171717;
  color: white;
  border: 1px solid #363636;
  border-radius: 5px;
}
.price {
  margin-bottom: 4px;
}

.price-breakdown {
  margin-bottom: 14px;
  color: #a7a7a7;
  font-size: 14px;
}
.filter-input {
  width: 130px;
  padding: 10px;
  background: #171717;
  color: white;
  border: 1px solid #363636;
  border-radius: 5px;
}

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

  .filter-input,
  .results-toolbar select {
    width: 100%;
  }
}
.load-more {
  display: block;
  margin: 28px auto 0;
}

.load-more[hidden] {
  display: none;
}
.demo-result {
  border-color: #f5a400;
  background:
    linear-gradient(
      135deg,
      rgba(245, 164, 0, 0.08),
      #171717 45%
    );
}

.demo-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 8px;
  border: 1px solid #f5a400;
  border-radius: 4px;
  color: #f5a400;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.7px;
}

.demo-link {
  display: inline-block;
  margin-top: 10px;
  color: #a7a7a7;
  font-size: 14px;
  font-style: italic;
}
.warning-message {
  padding: 10px;
  border: 1px solid #f5a400;
  border-radius: 5px;
  background: rgba(245, 164, 0, 0.08);
  color: #f5a400;
}
.duplicate-badge {
  display: inline-block;
  margin: 0 8px 10px 0;
  padding: 5px 8px;
  border: 1px solid #6fa8ff;
  border-radius: 4px;
  background: rgba(111, 168, 255, 0.08);
  color: #8bb9ff;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.7px;
}
.save-button {
  margin: 12px 10px 0 0;
  padding: 9px 12px;
  border: 1px solid #555555;
  background: transparent;
  color: #d0d0d0;
  font-size: 12px;
  cursor: pointer;
}

.save-button:hover {
  border-color: #f5a400;
  background: rgba(245, 164, 0, 0.08);
}

.save-button.saved {
  border-color: #f5a400;
  background: #f5a400;
  color: #111111;
}
.saved-controls {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0 20px;
}

.view-saved-button {
  padding: 10px 14px;
  border: 1px solid #f5a400;
  background: transparent;
  color: #f5a400;
  font-size: 12px;
}

.view-saved-button:hover {
  background: rgba(245, 164, 0, 0.1);
}
.compare-button {
  margin-left: 10px;
  padding: 10px 14px;
  border: 1px solid #6fa8ff;
  background: transparent;
  color: #8bb9ff;
  font-size: 12px;
}

.compare-button:hover:not(:disabled) {
  background: rgba(111, 168, 255, 0.1);
}

.compare-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.select-compare-button {
  margin: 12px 10px 0 0;
  padding: 9px 12px;
  border: 1px solid #6fa8ff;
  background: transparent;
  color: #8bb9ff;
  font-size: 12px;
}

.select-compare-button.selected {
  background: #6fa8ff;
  color: #101010;
}
.comparison-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}

.comparison-card {
  padding: 18px;
  border: 1px solid #3b3b3b;
  border-radius: 8px;
  background: #171717;
}

.comparison-card h2 {
  min-height: 48px;
  margin: 10px 0 18px;
  font-size: 18px;
}

.comparison-card p {
  margin: 9px 0;
}

.comparison-marketplace {
  color: #f5a400;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.comparison-total {
  margin: 18px 0;
  color: #f5a400;
  font-size: 21px;
  font-weight: bold;
}

.close-comparison-button {
  margin-top: 20px;
  border: 1px solid #666666;
  background: transparent;
  color: white;
}
.location-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  color: #a7a7a7;
  font-size: 14px;
}

.pickup-location-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pickup-location-controls[hidden] {
  display: none;
}

#zipCodeInput {
  width: 105px;
  flex: none;
  padding: 10px;
}

.location-controls select {
  padding: 10px;
  border: 1px solid #363636;
  border-radius: 5px;
  background: #151515;
  color: white;
}
.delivery-method {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 8px;
  border: 1px solid #555555;
  border-radius: 4px;
  color: #c8c8c8;
  font-size: 12px;
}
/* PriceSpan header logo */

.site-header {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 14px 24px;
  background: #0b0b0b;
  border-bottom: 1px solid #2a2a2a;
}

.header-logo {
  display: block;
  width: min(280px, 72vw);
  height: auto;
}


/* PriceSpan opening screen */

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 32px;
  background: #0b0b0b;

  opacity: 1;
  visibility: visible;

  transition:
    opacity 400ms ease,
    visibility 400ms ease;
}

.splash-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  width: min(620px, 100%);
  text-align: center;
}

.splash-logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.splash-tagline {
  margin: 24px 0 28px;
  color: #b7b7b7;
  font-size: clamp(16px, 4vw, 20px);
  letter-spacing: 0.02em;
}

.splash-loader {
  width: 34px;
  height: 34px;
  margin: 0 auto;

  border: 3px solid #303030;
  border-top-color: #f5a400;
  border-radius: 50%;

  animation: pricespan-spin 800ms linear infinite;
}

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

@media (max-width: 600px) {
  .site-header {
    min-height: 62px;
    padding: 12px 16px;
  }

  .header-logo {
    width: min(230px, 76vw);
  }

  .splash-screen {
    padding: 24px;
  }

  .splash-content {
    width: min(430px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-screen {
    transition: none;
  }

  .splash-loader {
    animation: none;
  }
}
/* iPhone safe-area support */

.site-header {
  padding-top:
    calc(14px + env(safe-area-inset-top));
  padding-right:
    calc(24px + env(safe-area-inset-right));
  padding-left:
    calc(24px + env(safe-area-inset-left));
}

.splash-screen {
  padding-top:
    calc(32px + env(safe-area-inset-top));
  padding-right:
    calc(32px + env(safe-area-inset-right));
  padding-bottom:
    calc(32px + env(safe-area-inset-bottom));
  padding-left:
    calc(32px + env(safe-area-inset-left));
}

main {
  padding-right:
    max(24px, calc(16px + env(safe-area-inset-right)));

  padding-bottom:
    max(24px, calc(16px + env(safe-area-inset-bottom)));

  padding-left:
    max(24px, calc(16px + env(safe-area-inset-left)));
}

@media (max-width: 600px) {
  .site-header {
    padding-top:
      calc(12px + env(safe-area-inset-top));
    padding-right:
      calc(16px + env(safe-area-inset-right));
    padding-left:
      calc(16px + env(safe-area-inset-left));
  }

  .splash-screen {
    padding-top:
      calc(24px + env(safe-area-inset-top));
    padding-right:
      calc(24px + env(safe-area-inset-right));
    padding-bottom:
      calc(24px + env(safe-area-inset-bottom));
    padding-left:
      calc(24px + env(safe-area-inset-left));
  }
}
/* Collapsible mobile filters */

.filter-panel {
  margin-top: 22px;
}

.filter-summary {
  display: none;
}

.filter-panel-content {
  display: block;
}

@media (min-width: 701px) {
  .filter-panel:not([open])
    > .filter-panel-content {
    display: block;
  }
}

@media (max-width: 700px) {
  .search-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .search-box input,
  .search-box button {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .filter-panel {
    overflow: hidden;
    margin-top: 18px;
    background: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
  }

  .filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 16px;
    color: #f5a400;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.08em;
    cursor: pointer;
    list-style: none;
  }

  .filter-summary::-webkit-details-marker {
    display: none;
  }

  .filter-arrow {
    font-size: 23px;
    font-weight: normal;
    line-height: 1;
    transition: transform 200ms ease;
  }

  .filter-panel[open] .filter-arrow {
    transform: rotate(45deg);
  }

  .filter-panel-content {
    padding: 0 16px 16px;
    border-top: 1px solid #2a2a2a;
  }

  .location-controls,
  .pickup-location-controls,
  .results-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    text-align: left;
  }

  .results-toolbar[hidden],
  .pickup-location-controls[hidden] {
    display: none !important;
  }

  .location-controls label,
  .pickup-location-controls label,
  .results-toolbar label {
    margin-top: 6px;
    color: #b7b7b7;
    font-size: 13px;
  }

  .location-controls select,
  .pickup-location-controls input,
  .pickup-location-controls select,
  .results-toolbar input,
  .results-toolbar select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .saved-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .saved-controls button {
    width: 100%;
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media (max-width: 380px) {
  .saved-controls {
    grid-template-columns: 1fr;
  }
}
/* PriceSpan legal footer */

.site-footer {
  margin-top: 72px;

  padding-top: 28px;

  padding-right:
    max(20px, calc(14px + env(safe-area-inset-right)));

  padding-bottom:
    max(32px, calc(20px + env(safe-area-inset-bottom)));

  padding-left:
    max(20px, calc(14px + env(safe-area-inset-left)));

  text-align: center;
  border-top: 1px solid #292929;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;

  margin-bottom: 18px;
}

.footer-links a {
  color: #f5a400;
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffba32;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer p {
  margin: 8px auto;
  color: #777777;
  font-size: 12px;
  line-height: 1.5;
}

.site-footer .footer-disclaimer {
  max-width: 520px;
}

@media (max-width: 420px) {
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .footer-links a {
    padding: 8px;
  }
}
.recent-searches {
  margin: 14px 0 18px;
  padding: 14px;
  background: #111111;
  border: 1px solid #2f2f2f;
  border-radius: 8px;
  text-align: left;
}

.recent-searches[hidden] {
  display: none;
}

.recent-searches-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #a7a7a7;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.clear-recent-searches {
  padding: 4px 6px;
  background: transparent;
  color: #f5a400;
  border: 0;
  font-size: 11px;
  cursor: pointer;
}

.clear-recent-searches:hover {
  background: transparent;
  color: #ffc14d;
}

.recent-search-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recent-search-button {
  padding: 8px 11px;
  background: #191919;
  color: #dddddd;
  border: 1px solid #393939;
  border-radius: 999px;
  font-size: 13px;
  font-weight: normal;
  cursor: pointer;
}

.recent-search-button:hover {
  background: #242424;
  border-color: #f5a400;
}
.lowest-price-badge {
  display: inline-block;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 9px;
  border: 1px solid #f5a400;
  border-radius: 999px;
  background: rgba(245, 164, 0, 0.12);
  color: #f5a400;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.fulfillment-badge {
  display: inline-block;
  width: fit-content;
  margin: 0 0 10px;
  padding: 6px 9px;
  border: 1px solid #555555;
  border-radius: 999px;
  color: #d0d0d0;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.7px;
}

.fulfillment-badge.pickup {
  border-color: #f5a400;
  background: rgba(245, 164, 0, 0.12);
  color: #f5a400;
}

.fulfillment-badge.shipping {
  border-color: #4f91e8;
  background: rgba(79, 145, 232, 0.12);
  color: #76aff8;
}

.fulfillment-badge.mixed {
  border-color: #31b778;
  background: rgba(49, 183, 120, 0.12);
  color: #55d99a;
}

.fulfillment-badge.unknown {
  border-color: #555555;
  background: #1b1b1b;
  color: #999999;
}

.pickup-details {
  margin: 7px 0 10px;
  color: #f5a400;
  font-size: 13px;
  line-height: 1.4;
}

.delivery-method {
  margin-top: 6px;
  color: #aaaaaa;
  font-size: 13px;
}
.beta-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 20px;
  background: #17120a;
  border-bottom: 1px solid #5f4515;
  color: #d7d7d7;
  font-size: 14px;
  text-align: center;
  flex-wrap: wrap;
}

.beta-notice strong {
  color: #f5a400;
  letter-spacing: 1px;
}

.beta-notice a {
  color: #f5a400;
  font-weight: bold;
  text-decoration: none;
}

.beta-notice a:hover {
  text-decoration: underline;
}