:root {
  --sea:        #1c5d9b;
  --sea-deep:   #10456f;
  --sea-dark:   #0b2e4d;
  --sky:        #5196d1;
  --sky-light:  #d9edfb;
  --mist:       #eef7fd;
  --ice:        #f7fbfe;
  --ink:        #13283e;
  --muted:      #607286;
  --line:       #d8e7f2;
  --white:      #ffffff;
  --shadow-sm:  0 12px 30px rgba(16, 69, 111, 0.09);
  --shadow-md:  0 24px 70px rgba(16, 69, 111, 0.15);
  --shadow-lg:  0 34px 90px rgba(9, 54, 91, 0.22);
  --radius-sm:  16px;
  --radius-md:  24px;
  --radius-lg:  34px;
  --container:  1180px;
  --header-height: 82px;
  --ease:       cubic-bezier(0.2, 0.75, 0.25, 1);
}

/* ── WP Theme Style Isolation & Reset ── */
.price-directory,
.price-directory *,
.price-directory *::before,
.price-directory *::after {
  box-sizing: border-box !important;
}

.price-directory {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Quicksand", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 50px 0 80px;
  background: var(--ice);
}

.price-directory .container {
  width: 100%;
  max-width: var(--container, 1180px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Reset buttons and inputs against theme overrides */
.price-directory button,
.price-directory input {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  box-shadow: none;
  text-transform: none;
  vertical-align: baseline;
}

.price-directory button {
  appearance: button;
  -webkit-appearance: button;
  background-image: none;
  cursor: pointer;
}

/* Reset headings and paragraphs against theme typography */
.price-directory h1,
.price-directory h2,
.price-directory h3,
.price-directory h4,
.price-directory p,
.price-directory div,
.price-directory span {
  font-family: inherit;
}

/* Reset table styling from WP theme defaults */
.price-directory table.price-table {
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-spacing: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
  table-layout: fixed !important;
}

.price-directory table.price-table th,
.price-directory table.price-table td {
  background: transparent;
  border: 0;
  font-family: inherit;
}

/* ── Toolbar / Price Tools ── */
.price-toolbar,
.price-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 42px rgba(16, 69, 111, 0.07);
}

.price-tools__meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--muted);
}

.price-tools__meta strong {
  color: var(--sea-dark);
  font-weight: 700;
}

.price-tools__meta span {
  color: var(--muted);
}

/* ── Price Search ── */
.price-directory input[type="search"]::-webkit-search-decoration,
.price-directory input[type="search"]::-webkit-search-cancel-button,
.price-directory input[type="search"]::-webkit-search-results-button,
.price-directory input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none !important;
  display: none !important;
}

.price-directory button[hidden],
.price-directory .price-search-clear[hidden],
.price-directory [hidden] {
  display: none !important;
}

.price-search,
.price-search-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.price-search > svg,
.price-search-wrap > svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;

}

[dir="rtl"] .price-search > svg,
[dir="rtl"] .price-search-wrap > svg {
  left: auto !important;
  right: 18px !important;
}

.price-search input,
.price-search-wrap input {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  min-height: 56px !important;
  height: 56px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  padding-left: 52px !important;
  padding-right: 48px !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  background: var(--ice) !important;
  outline: 0 !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

[dir="rtl"] .price-search input,
[dir="rtl"] .price-search-wrap input {
  padding-left: 48px !important;
  padding-right: 52px !important;
}

.price-search input:focus,
.price-search-wrap input:focus {
  border-color: var(--sky) !important;
  background: var(--white) !important;
  box-shadow: 0 0 0 4px rgba(81, 150, 209, 0.13) !important;
}

.price-search input::placeholder,
.price-search-wrap input::placeholder {
  color: #91a0ae !important;
  opacity: 1 !important;
}

.price-search button.price-search-clear,
.price-search-clear {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: var(--muted) !important;
  background: transparent !important;
  cursor: pointer !important;
  font-size: 1.25rem !important;
  line-height: 1 !important;
  padding: 0 !important;
  z-index: 2 !important;
  transition: color 0.2s ease, background 0.2s ease !important;
}

[dir="rtl"] .price-search button.price-search-clear,
[dir="rtl"] .price-search-clear {
  right: auto !important;
  left: 12px !important;
}

.price-search button.price-search-clear:hover,
.price-search-clear:hover {
  color: var(--sea) !important;
  background: var(--mist) !important;
}

.price-search button:hover,
.price-search-clear:hover {
  color: var(--sea);
  background: var(--mist);
}

/* ── Speed Switch / Service Toggle ── */
.speed-switch,
.service-toggle {
  min-width: 284px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ice);
}

.speed-switch button,
.service-toggle button {
  min-width: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  color: var(--muted);
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.speed-switch button span,
.service-toggle button span {
  font-size: 0.74rem;
  font-weight: 700;
}

.speed-switch button small,
.service-toggle button small {
  margin-top: 1px;
  font-size: 0.55rem;
  opacity: 0.85;
}

.speed-switch button.is-active,
.service-toggle button.is-active {
  color: var(--white);
  background: var(--sea);
  box-shadow: 0 8px 18px rgba(28, 93, 155, 0.22);
}

/* ── Category Filter Shell & Pills ── */
.category-filter-shell {
  margin-top: 22px;
}

.category-filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--sea-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.category-filter-label svg {
  width: 16px;
  height: 16px;
  stroke: var(--sea);
  fill: none;
  stroke-width: 2;
}

.category-filter,
.category-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0;
  padding: 2px 0 9px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.category-filter::-webkit-scrollbar,
.category-filters::-webkit-scrollbar {
  height: 4px;
}

.category-filter::-webkit-scrollbar-thumb,
.category-filters::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.category-filter button,
.category-filters button,
.category-pill {
  flex: 0 0 auto;
  padding: 9px 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.category-filter button:hover,
.category-filters button:hover,
.category-pill:hover {
  color: var(--sea);
  border-color: rgba(81, 150, 209, 0.45);
  transform: translateY(-1px);
}

.category-filter button.is-active,
.category-filters button.is-active,
.category-pill.is-active {
  color: var(--white);
  border-color: var(--sea);
  background: var(--sea);
}

.cat-btn-count {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 7px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
}

[dir="rtl"] .cat-btn-count {
  margin-left: 0;
  margin-right: 5px;
}

.category-filter button:not(.is-active) .cat-btn-count,
.category-filters button:not(.is-active) .cat-btn-count,
.category-pill:not(.is-active) .cat-btn-count {
  background: var(--mist);
  color: var(--sea);
}

/* ── Price List Grid ── */
.price-results,
.price-list {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.price-category {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 24px);
  background: var(--white);
  box-shadow: 0 15px 42px rgba(16, 69, 111, 0.055);
}

.price-category__head,
.price-category-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, #f8fcff, #edf7fd);
}

.price-category__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-category__icon,
.price-category-card__icon {
  width: 47px;
  height: 47px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--sea);
  border: 1px solid rgba(81, 150, 209, 0.2);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(28, 93, 155, 0.08);
}

.price-category__icon svg,
.price-category-card__icon svg  {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.price-category__head h3,
.price-category-card__heading h3 {
  margin: 0;
  color: var(--sea-dark);
  font-size: 1.08rem;
  font-weight: 700;
}

.price-category__head > span:last-child,
.price-category-card__heading > span:last-child {
  color: var(--muted);
  font-size: 0.63rem;
  white-space: nowrap;
}

/* ── Table Styling ── */
.price-directory table.price-table {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
  border: 0 !important;
  margin: 0 !important;
}

.price-directory table.price-table tr {
  border-bottom: 1px solid var(--line) !important;
}

.price-directory table.price-table tbody tr:last-child {
  border-bottom: 0 !important;
}

.price-directory table.price-table th,
.price-directory table.price-table td {
  padding: 14px 20px !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: 0 !important;
}

.price-directory table.price-table th:first-child,
.price-directory table.price-table td:first-child {
  width: 40% !important;
  text-align: start !important;
}

.price-directory table.price-table th:not(:first-child),
.price-directory table.price-table td:not(:first-child) {
  width: 20% !important;
  text-align: center !important;
}

.price-table__head {
  height: 48px;
  color: var(--muted);
  background: #f7fbfe !important;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[dir="rtl"] .price-table__head {
  letter-spacing: 0;
}

.price-table__row {
  height: 64px;
  transition: background 0.15s ease;
}

.price-table__row:hover,
.price-table tbody tr:hover {
  background: #fbfdff !important;
}

.price-cell--item {
  display: flex;
  flex-direction: column;
}

.price-cell--item strong {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
}

.price-cell--item small {
  margin-top: 2px;
  color: #8a9aaa;
  font-size: 0.61rem;
}

.price-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  color: var(--sea);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.price-value small {
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 600;
}

.price-value--na {
  display: block;
  text-align: center;
  color: #a8b3bd;
  font-weight: 500;
  font-size: 0.85rem;
}

/* ── Empty State ── */
.price-empty {
  padding: 70px 25px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 24px);
  background: var(--white);
}

.price-empty svg {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  display: block;
  fill: none;
  stroke: var(--sky);
  stroke-width: 1.5;
}

.price-empty h2,
.price-empty h3 {
  margin: 16px 0 0;
  color: var(--sea-dark);
  font-size: 1.15rem;
  font-weight: 700;
}

.price-empty p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

/* ── Disclaimer / Good to know Note ── */
.price-note,
.price-disclaimer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 32px;
  padding: 23px 25px;
  color: var(--white);
  border-radius: 23px;
  background: linear-gradient(135deg, var(--sea-dark), var(--sea));
  box-shadow: 0 22px 55px rgba(16, 69, 111, 0.18);
}

.price-note > div,
.price-disclaimer > div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.price-note svg,
.price-disclaimer svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  margin-top: 2px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.8;
}

.price-note p,
.price-disclaimer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.74rem;
  line-height: 1.6;
}

.price-note p strong,
.price-disclaimer p strong {
  display: block;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.price-note .button,
.price-disclaimer .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  color: var(--sea-dark);
  background: var(--white);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.price-note .button:hover,
.price-disclaimer .button:hover {
  background: var(--mist);
  color: var(--sea);
  transform: translateY(-1px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .price-toolbar,
  .price-tools {
    grid-template-columns: 1fr;
  }
  .speed-switch,
  .service-toggle {
    min-width: 0;
    width: 100%;
  }
  .price-note,
  .price-disclaimer {
    flex-direction: column;
    align-items: stretch;
  }
  .price-note .button,
  .price-disclaimer .button {
    width: 100%;
    text-align: center;
  }
  .price-category {
    overflow-x: auto;
  }
  .price-table {
    min-width: 500px;
  }
}

@media (max-width: 500px) {
  .price-table th,
  .price-table td,
  .price-table__head > div,
  .price-table__row > div {
    padding: 10px 14px;
  }
  .price-directory {
    padding: 24px 0 60px;
  }
}
