.comparison_page {
  min-height: calc(100vh - 120px);
  padding: 148px 24px 72px;
  color: #102f40;
  background:
    radial-gradient(circle at 92% 4%, rgba(17, 183, 239, 0.12), transparent 28rem),
    #f3f6f8;
}

.comparison_shell {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.comparison_header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.comparison_eyebrow {
  margin: 0 0 8px;
  color: #078ebf;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.comparison_header h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.comparison_intro {
  max-width: 760px;
  margin: 14px 0 0;
  color: #587080;
  font-size: 16px;
  line-height: 1.65;
}

.delete_all_comparisons_btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  width: auto;
  height: 44px;
  padding: 0 18px;
  border: 1px solid #cdd9df;
  border-radius: 12px;
  color: #33505f;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.delete_all_comparisons_btn span {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.delete_all_comparisons_btn:hover {
  border-color: #e05a68;
  color: #b52235;
  box-shadow: 0 7px 20px rgba(69, 90, 100, 0.1);
}

.delete_all_comparisons_btn:focus-visible,
.delete_comparison_btn:focus-visible,
.comparison_empty_action:focus-visible,
.comparison_plan_action:focus-visible,
.comparison_table_scroll:focus-visible {
  outline: 3px solid rgba(4, 173, 234, 0.35);
  outline-offset: 3px;
}

.comparison_notice {
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid #eed99d;
  border-radius: 12px;
  color: #624e19;
  background: #fff9e8;
  font-size: 14px;
}

.comparison_empty_state {
  max-width: none;
  margin: 0;
  padding: clamp(38px, 7vw, 76px) 24px;
  text-align: center;
  border: 1px solid #dce6eb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(23, 61, 79, 0.08);
}

.comparison_empty_icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #07384d, #0baee9);
  font-size: 29px;
}

.comparison_empty_state h2 {
  margin: 0 0 10px;
  color: #102f40;
  font-size: 26px;
}

.comparison_empty_state p {
  max-width: 620px;
  margin: 0 auto 26px;
  color: #647b88;
  font-size: 16px;
  line-height: 1.6;
}

.comparison_empty_action,
.comparison_plan_action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff;
  background: #06384c;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.comparison_empty_action {
  min-height: 46px;
  padding: 0 24px;
}

.comparison_empty_action:hover,
.comparison_plan_action:hover {
  color: #fff;
  background: #065675;
  transform: translateY(-1px);
}

.comparison_table_panel {
  overflow: hidden;
  border: 1px solid #dce6eb;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(23, 61, 79, 0.08);
}

.comparison_table_panel[aria-busy="true"] {
  min-height: 240px;
}

.comparison_table_toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 12px 20px;
  border-bottom: 1px solid #e3ebef;
  background: #f9fbfc;
}

.comparison_table_toolbar p {
  margin: 0;
  color: #587080;
  font-size: 13px;
}

.comparison_table_toolbar #comparison_summary {
  color: #294958;
  font-weight: 700;
}

.comparison_scroll_hint {
  display: none;
}

.comparison_table_scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: #9bb2bd #edf2f4;
  scrollbar-width: thin;
}

.comparison_table {
  width: max(100%, 720px);
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.comparison_table th,
.comparison_table td {
  min-width: 230px;
  padding: 18px 20px;
  border-right: 1px solid #e7edef;
  border-bottom: 1px solid #e7edef;
  color: #173b4d;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.comparison_table tr > :first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 190px;
  min-width: 190px;
  color: #4d6673;
  background: #f7fafb;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 1px 0 0 #dfe8ec;
}

.comparison_table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 280px;
  padding-top: 22px;
  padding-bottom: 22px;
  background: #fff;
  vertical-align: top;
}

.comparison_table thead tr > :first-child {
  z-index: 4;
  background: #f7fafb;
}

.comparison_table tr > :last-child {
  border-right: 0;
}

.comparison_table tbody tr:last-child > * {
  border-bottom: 0;
}

.comparison_table tbody tr:hover td {
  background: #fbfdfe;
}

.comparison_feature_heading {
  padding-top: 28px !important;
  color: #728692 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comparison_plan_heading {
  position: relative;
}

.delete_comparison_btn {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid #dce5e9;
  border-radius: 10px;
  color: #657b86;
  background: #fff;
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.delete_comparison_btn:hover {
  border-color: #efb2b9;
  color: #b52235;
  background: #fff6f7;
}

.comparison_plan_logo {
  display: block;
  width: auto;
  max-width: 150px;
  height: 54px;
  margin: 14px 42px 16px 0;
  object-fit: contain;
  object-position: left center;
}

.comparison_plan_provider,
.comparison_plan_name {
  display: block;
  max-width: 190px;
}

.comparison_plan_provider {
  color: #123748;
  font-size: 17px;
  line-height: 1.3;
}

.comparison_plan_name {
  min-height: 38px;
  margin-top: 4px;
  color: #6b7f89;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.comparison_plan_action {
  width: 100%;
  min-height: 40px;
  margin-top: 14px;
  padding: 0 12px;
  font-size: 13px;
}

.comparison_best {
  position: relative;
  color: #165d44 !important;
  background: #edfaf4 !important;
  font-weight: 700;
}

.comparison_best::after {
  content: attr(data-best-label);
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #147452;
  background: #d1f2e3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.visually_hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 760px) {
  .comparison_page {
    padding: 104px 12px 42px;
  }

  .comparison_header {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 20px;
  }

  .comparison_header h1 {
    font-size: 30px;
  }

  .comparison_intro {
    font-size: 14px;
  }

  .delete_all_comparisons_btn {
    width: 100%;
  }

  .comparison_table_panel,
  .comparison_empty_state {
    border-radius: 16px;
  }

  .comparison_table_toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
  }

  .comparison_scroll_hint {
    display: block;
  }

  .comparison_table {
    width: max(100%, 600px);
  }

  .comparison_table th,
  .comparison_table td {
    min-width: 205px;
    padding: 14px;
    font-size: 14px;
  }

  .comparison_table tr > :first-child {
    width: 118px;
    min-width: 118px;
    padding-left: 12px;
    padding-right: 10px;
    font-size: 12px;
  }

  .comparison_table thead th {
    height: 260px;
  }

  .comparison_plan_logo {
    max-width: 125px;
    height: 48px;
  }

  .comparison_plan_provider,
  .comparison_plan_name {
    max-width: 165px;
  }

  .comparison_best::after {
    display: block;
    width: fit-content;
    margin: 5px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .delete_all_comparisons_btn,
  .comparison_empty_action,
  .comparison_plan_action {
    transition: none;
  }
}
