* {
  box-sizing: border-box;
}

body.fr-buyer-page {
  margin: 0;
  background: #f7f7f4;
  color: #171717;
  font-family: "DM Sans", Arial, sans-serif;
}

.fr-tool-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid #e2e2dc;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.fr-tool-brand,
.fr-tool-header a {
  color: #111111;
  text-decoration: none;
}

.fr-tool-brand {
  font-family: Outfit, "DM Sans", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.fr-tool-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.fr-tool-header nav a {
  padding: 7px 9px;
  font-size: 13px;
  font-weight: 800;
}

.fr-tool-header nav a:hover {
  background: #f0ca00;
}

.fr-tool-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.fr-tool-hero {
  margin-bottom: 24px;
}

.fr-tool-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  background: #fff2b8;
  color: #392900;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fr-tool-hero h1,
.fr-tool-panel h2 {
  margin: 0;
  font-family: Outfit, "DM Sans", Arial, sans-serif;
  letter-spacing: 0;
}

.fr-tool-hero h1 {
  max-width: 820px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.04;
}

.fr-tool-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #565656;
  font-size: 18px;
  line-height: 1.6;
}

.fr-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.fr-tool-panel {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid #e1e1da;
  background: #ffffff;
}

.fr-tool-panel h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.fr-tool-panel label,
.fr-compare-picker label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #303030;
  font-size: 13px;
  font-weight: 800;
}

.fr-tool-panel input,
.fr-tool-panel select,
.fr-compare-picker select {
  min-height: 44px;
  width: 100%;
  border: 1px solid #cecec7;
  padding: 9px 11px;
  background: #ffffff;
  color: #111111;
  font: inherit;
}

.fr-tool-actions,
.fr-compare-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.fr-compare-picker label {
  flex: 1 1 260px;
}

.fr-tool-panel button,
.fr-tool-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #111111;
  padding: 9px 14px;
  background: #111111;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.fr-tool-secondary {
  border-color: #d7d7cf;
  background: #f6f6f0;
  color: #111111;
}

.fr-tool-result {
  margin-top: 14px;
}

.fr-tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.fr-tool-card {
  min-height: 100%;
  border: 1px solid #e1e1da;
  padding: 14px;
  background: #fbfbf7;
  color: #111111;
}

.fr-tool-card strong,
.fr-tool-card a {
  color: #111111;
}

.fr-tool-card p {
  margin: 8px 0;
  color: #5b5b5b;
  font-size: 13px;
  line-height: 1.45;
}

.fr-tool-card a {
  font-weight: 900;
}

.fr-bep-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.fr-tool-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.fr-tool-link-grid a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #e4d27b;
  padding: 12px;
  background: #fff8d7;
  color: #111111;
  text-decoration: none;
}

.fr-tool-link-grid span {
  color: #5b4b00;
  font-size: 12px;
  font-weight: 700;
}

.fr-compare-empty {
  margin-top: 14px;
  padding: 14px;
  background: #fff8d7;
  color: #3d3000;
  font-weight: 800;
}

.fr-compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  margin-top: 16px;
}

.fr-compare-table-wrap {
  overflow-x: auto;
}

.fr-compare-table th,
.fr-compare-table td {
  border: 1px solid #e2e2dc;
  padding: 11px;
  text-align: left;
  vertical-align: top;
}

.fr-compare-table th {
  width: 160px;
  background: #f5f5ef;
  font-weight: 900;
}

.fr-compare-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fr-compare-brand img {
  width: 100%;
  max-width: 140px;
  height: 76px;
  object-fit: cover;
  border: 1px solid #ecece5;
}

.fr-compare-remove {
  min-height: 34px !important;
  align-self: flex-start;
  border-color: #b42318 !important;
  background: #fff0ed !important;
  color: #b42318 !important;
  padding: 6px 9px !important;
}

.fr-site-promo-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 16px;
  background: #111111;
  color: #ffffff;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.fr-site-promo-bar a {
  color: #111111;
  background: #f0ca00;
  padding: 5px 9px;
  text-decoration: none;
}

@media (max-width: 760px) {
  .fr-tool-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .fr-tool-grid,
  .fr-bep-grid {
    grid-template-columns: 1fr;
  }
}
