/* Passthrough fees embed — layout aligned with the original Framer srcdoc. */

html,
body {
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  min-height: 100%;
  background: #fff;
  font-size: 12px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure {
  margin: 0;
}

.fees-root {
  width: 100%;
  max-width: 1280px;
  min-height: 100vh;
  margin: 0 auto;
}

.filter-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: #fff;
  padding-top: 20px;
  box-sizing: border-box;
}

.filter-container {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  align-items: flex-start;
}

/* State ≈ first table column (20%), County ≈ next 2.5 columns */
.filter-container > .col-state {
  width: 20%;
  flex: 0 0 20%;
}

.filter-container > .col-county {
  width: 50%;
  flex: 0 0 50%;
}

.filter-container > .col-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-top: 0;
}

.filter-container h3 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
}

.country_list > span {
  display: inline-block;
  background-color: #f0f0f0;
  padding: 5px 25px 5px 10px;
  margin: 5px;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  font-size: 14px;
}

.country_list span .close {
  position: absolute;
  top: 0;
  right: 2px;
  color: #000;
  width: 20px;
  height: 100%;
  line-height: 22px;
  text-align: center;
  border-radius: 0 5px 5px 0;
  font-size: 14px;
  cursor: pointer;
}

.country_list span .close:hover {
  opacity: 0.7;
}

.dropdown {
  position: relative;
  width: 100%;
}

/* Outer shell for County — border lives on the wrapper, not the input */
.dropdown2 {
  position: relative;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  min-height: 47px;
  box-sizing: border-box;
}

/* Chips sit above the input; hide the empty block so it doesn't draw a seam */
.dropdown2 .country_list:empty {
  display: none;
}

.dropdown2 .country_list:not(:empty) {
  display: block;
  padding: 4px 8px 0;
}

.dropdown2 .clear_all {
  display: none;
  position: absolute;
  top: calc(50% - 10px);
  right: 4px;
  opacity: 0.9;
  color: #000;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
}

/* Base input look (State) */
.dropdown input {
  outline: none;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 10px;
  height: 47px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

/* County input is borderless inside the wrapped shell */
.dropdown2 input.searchInput {
  border: none !important;
  border-radius: 10px;
  height: 47px;
  background: transparent;
  padding-right: 28px;
}

.dropdown1 input.searchInput {
  border: 1px solid #ccc;
}

.dropdown ul {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  max-height: 200px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.dropdown ul li {
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
}

.dropdown ul li:hover {
  background-color: rgb(224, 209, 255);
}

.table {
  margin-top: 25px;
  max-width: 100%;
  width: 100%;
}

.table_header {
  background-color: rgb(154, 108, 254);
  display: flex;
  padding: 30px;
  gap: 30px;
  font-size: 24px;
  font-weight: bold;
  color: rgb(255, 255, 255);
  border-radius: 10px;
}

.table_header > div {
  width: 20%;
  text-align: center;
  font-size: 18px;
}

.table_body .row {
  display: flex;
  padding: 5px 0;
}

.table_body .row > div {
  width: 20%;
  text-align: center;
  font-size: 18px;
  color: #000;
}

.reset_button {
  background-color: rgb(86, 63, 255);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 20px;
  cursor: pointer;
  display: none;
  border: 1px solid rgb(86, 63, 255);
  color: rgb(255, 255, 255);
  font-family: Inter, system-ui, sans-serif;
}

.reset_button2 {
  display: none;
}

.add-filter-btn {
  cursor: pointer;
  margin-bottom: 20px;
  background-color: rgb(0, 0, 0);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 20px;
  display: none;
  border: 1px solid rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  font-family: Inter, system-ui, sans-serif;
}

.reset_button:hover,
.add-filter-btn:hover {
  background-color: transparent;
  border: 1px solid rgb(86, 63, 255);
  color: rgb(86, 63, 255);
}

@media (max-width: 650px) {
  .fees-root {
    max-width: 1440px;
    min-height: 0;
  }

  .table_header {
    padding: 12px;
    gap: 20px;
  }

  .table_header > div,
  .table_body .row > div {
    font-size: 14px;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .reset_button1 {
    display: none !important;
  }

  .reset_button2 {
    display: none;
    width: 100%;
    margin-bottom: 20px;
  }

  .filter-container {
    flex-direction: column;
  }

  .filter-container > .col-state,
  .filter-container > .col-county {
    width: 100%;
    flex: 1 1 auto;
  }

  .filter-container h3 {
    font-size: 20px;
  }
}
