:root {
  --cat-appliances: #007670;
  --cat-appliances-bg: #e8f5f4;
  --cat-heatpump: #1a6fb5;
  --cat-heatpump-bg: #eef5fc;
  --cat-gas: #b8860b;
  --cat-gas-bg: #fef9ee;
  --cat-weather: #6b4fa0;
  --cat-weather-bg: #f3f0f8;
  --cat-construct: #c26a2b;
  --cat-construct-bg: #fdf2ea;
  --cat-assist: #b5455a;
  --cat-assist-bg: #fbeef1;
  --cat-default: #666666;
  --cat-default-bg: #f5f5f5;
}

body.nhsaves-ui-active .page-hero {
  position: relative;
  background: linear-gradient(135deg, #007670 0%, #005a55 60%, #004440 100%);
  color: #ffffff;
  overflow: hidden;
}
body.nhsaves-ui-active .page-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}
body.nhsaves-ui-active .page-hero .page-hero__inner {
  max-width: var(--nhs-max-width);
  margin: 0 auto;
  padding: 48px 24px 44px;
  position: relative;
  z-index: 1;
}
body.nhsaves-ui-active .page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: #ffffff;
}
body.nhsaves-ui-active .page-hero p {
  font-size: 17px;
  opacity: 0.88;
  max-width: 600px;
  line-height: 1.5;
  font-weight: 300;
  margin: 0;
}

@media (max-width: 900px) {
  body.nhsaves-ui-active .page-hero .page-hero__inner {
    padding: 36px 20px 32px;
  }
  body.nhsaves-ui-active .page-hero h1 {
    font-size: 28px;
  }
}
@media (max-width: 600px) {
  body.nhsaves-ui-active .page-hero h1 {
    font-size: 24px;
  }
}
body.nhsaves-ui-active .seo-intro {
  max-width: var(--nhs-max-width);
  margin: 0 auto;
  padding: 32px 24px 0;
}
body.nhsaves-ui-active .seo-intro h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--nhs-text);
  margin: 0 0 10px;
  line-height: 1.3;
}
body.nhsaves-ui-active .seo-intro p {
  font-size: 15.5px;
  color: var(--nhs-text-light);
  line-height: 1.7;
  max-width: 860px;
  margin: 0 0 10px;
}
body.nhsaves-ui-active .seo-intro p:last-child {
  margin-bottom: 0;
}
body.nhsaves-ui-active .seo-intro a,
body.nhsaves-ui-active .seo-intro a:link,
body.nhsaves-ui-active .seo-intro a:visited {
  font-weight: 600;
  color: var(--nhs-green);
  text-decoration: none;
}
body.nhsaves-ui-active .seo-intro a:hover,
body.nhsaves-ui-active .seo-intro a:focus {
  text-decoration: underline;
}

body.nhsaves-ui-active .rebates-section {
  max-width: var(--nhs-max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
}
body.nhsaves-ui-active .rebates-section .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0 20px;
  align-items: center;
  border-bottom: 1px solid var(--nhs-border-light);
}
body.nhsaves-ui-active .rebates-section .search-input {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--nhs-border);
  border-radius: var(--nhs-radius);
  font-size: 16px;
  font-family: var(--nhs-font-body);
  color: var(--nhs-text);
  background: var(--nhs-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cline x1='10.5' y1='10.5' x2='14' y2='14'/%3E%3C/svg%3E") 12px center no-repeat;
  transition: border-color 0.15s, box-shadow 0.15s;
}
body.nhsaves-ui-active .rebates-section .search-input:focus {
  outline: none;
  border-color: var(--nhs-green);
  box-shadow: 0 0 0 3px rgba(0, 118, 112, 0.1);
}
body.nhsaves-ui-active .rebates-section .search-input::-moz-placeholder {
  color: var(--nhs-text-muted);
}
body.nhsaves-ui-active .rebates-section .search-input::placeholder {
  color: var(--nhs-text-muted);
}
body.nhsaves-ui-active .rebates-section .filter-select {
  padding: 10px 36px 10px 14px;
  border: 1px solid var(--nhs-border);
  border-radius: var(--nhs-radius);
  font-size: 16px;
  font-family: var(--nhs-font-body);
  color: var(--nhs-text);
  background-color: var(--nhs-bg);
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
body.nhsaves-ui-active .rebates-section .filter-select:focus {
  outline: none;
  border-color: var(--nhs-green);
  box-shadow: 0 0 0 3px rgba(0, 118, 112, 0.1);
}

@media (max-width: 900px) {
  body.nhsaves-ui-active .rebates-section .filter-bar {
    flex-direction: column;
  }
  body.nhsaves-ui-active .rebates-section .search-input,
  body.nhsaves-ui-active .rebates-section .filter-select {
    width: 100%;
    min-width: auto;
  }
}
body.nhsaves-ui-active .rebates-section .cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 0 0;
}
body.nhsaves-ui-active .rebates-section .cat-chip {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--nhs-font-body);
  border: 1px solid var(--nhs-border);
  border-radius: 20px;
  background: var(--nhs-bg);
  color: var(--nhs-text-light);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}
body.nhsaves-ui-active .rebates-section .cat-chip:hover {
  border-color: var(--nhs-green);
  color: var(--nhs-green);
}
body.nhsaves-ui-active .rebates-section .cat-chip.active {
  background: var(--nhs-green);
  color: #ffffff;
  border-color: var(--nhs-green);
}
body.nhsaves-ui-active .rebates-section .cat-chip .chip-count {
  font-size: 14px;
  opacity: 0.7;
  margin-left: 3px;
}

body.nhsaves-ui-active .rebates-section .results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 16px;
  font-size: 13px;
  color: var(--nhs-text-muted);
  gap: 12px;
  flex-wrap: wrap;
}
body.nhsaves-ui-active .rebates-section .sort-select {
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--nhs-border-light);
  border-radius: var(--nhs-radius);
  font-size: 13px;
  font-family: var(--nhs-font-body);
  color: var(--nhs-text-light);
  background-color: var(--nhs-bg);
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M2.5 3.5L5 6L7.5 3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
body.nhsaves-ui-active .rebates-section .sort-select:focus {
  outline: none;
  border-color: var(--nhs-green);
}

@keyframes nhs-rebate-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
body.nhsaves-ui-active .rebates-section .rebates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

body.nhsaves-ui-active a.rebate-card,
body.nhsaves-ui-active a.rebate-card:link,
body.nhsaves-ui-active a.rebate-card:visited,
body.nhsaves-ui-active a.rebate-card:hover,
body.nhsaves-ui-active a.rebate-card:focus,
body.nhsaves-ui-active a.rebate-card:active {
  text-decoration: none;
}

body.nhsaves-ui-active .rebate-card {
  display: flex;
  flex-direction: column;
  background: var(--nhs-bg);
  border: 1px solid var(--nhs-border-light);
  border-radius: var(--nhs-radius-lg);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  animation: nhs-rebate-fade-in-up 0.3s ease both;
}
body.nhsaves-ui-active .rebate-card.is-hidden {
  display: none;
}
body.nhsaves-ui-active .rebate-card:hover, body.nhsaves-ui-active .rebate-card:focus {
  border-color: var(--nhs-green);
  box-shadow: var(--nhs-shadow-hover);
  text-decoration: none;
  transform: translateY(-2px);
}
body.nhsaves-ui-active .rebate-card:hover h3, body.nhsaves-ui-active .rebate-card:focus h3 {
  color: var(--nhs-green);
}
body.nhsaves-ui-active .rebate-card:hover .card-arrow, body.nhsaves-ui-active .rebate-card:focus .card-arrow {
  color: var(--nhs-green);
}
body.nhsaves-ui-active .rebate-card .rebate-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
body.nhsaves-ui-active .rebate-card .rebate-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--nhs-radius-lg);
  background: var(--nhs-green-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
body.nhsaves-ui-active .rebate-card .rebate-icon svg {
  width: 24px;
  height: 24px;
  color: var(--nhs-green);
}
body.nhsaves-ui-active .rebate-card .rebate-icon img {
  width: 32px;
  height: 32px;
  -o-object-fit: contain;
     object-fit: contain;
  filter: grayscale(100%) brightness(30%) sepia(100%) hue-rotate(80deg) saturate(500%);
}
body.nhsaves-ui-active .rebate-card .rebate-amount {
  text-align: right;
  flex-shrink: 0;
}
body.nhsaves-ui-active .rebate-card .rebate-amount-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--nhs-green);
  line-height: 1.1;
}
body.nhsaves-ui-active .rebate-card .rebate-amount-label {
  font-size: 14px;
  color: var(--nhs-text-muted);
  font-weight: 500;
}
body.nhsaves-ui-active .rebate-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--nhs-text);
  margin: 0 0 6px;
  line-height: 1.3;
  transition: color 0.15s;
}
body.nhsaves-ui-active .rebate-card .rebate-card-desc {
  font-size: 14px;
  color: var(--nhs-text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 12px;
  flex: 1;
}
body.nhsaves-ui-active .rebate-card .rebate-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--nhs-border-light);
  gap: 8px;
}
body.nhsaves-ui-active .rebate-card .rebate-cat-tag {
  font-size: 14px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
}
body.nhsaves-ui-active .rebate-card .rebate-cat-tag.cat-appliances {
  background: var(--cat-appliances-bg);
  color: var(--cat-appliances);
}
body.nhsaves-ui-active .rebate-card .rebate-cat-tag.cat-heatpump {
  background: var(--cat-heatpump-bg);
  color: var(--cat-heatpump);
}
body.nhsaves-ui-active .rebate-card .rebate-cat-tag.cat-gas {
  background: var(--cat-gas-bg);
  color: var(--cat-gas);
}
body.nhsaves-ui-active .rebate-card .rebate-cat-tag.cat-weather {
  background: var(--cat-weather-bg);
  color: var(--cat-weather);
}
body.nhsaves-ui-active .rebate-card .rebate-cat-tag.cat-construct {
  background: var(--cat-construct-bg);
  color: var(--cat-construct);
}
body.nhsaves-ui-active .rebate-card .rebate-cat-tag.cat-assist {
  background: var(--cat-assist-bg);
  color: var(--cat-assist);
}
body.nhsaves-ui-active .rebate-card .rebate-cat-tag.cat-default {
  background: var(--cat-default-bg);
  color: var(--cat-default);
}
body.nhsaves-ui-active .rebate-card .card-arrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--nhs-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}
body.nhsaves-ui-active .rebate-card .card-arrow svg {
  width: 14px;
  height: 14px;
}
body.nhsaves-ui-active .rebate-card .energy-star {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--nhs-green);
  background: var(--nhs-green-light);
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.3px;
}

@media (max-width: 900px) {
  body.nhsaves-ui-active .rebates-section .rebates-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  body.nhsaves-ui-active .rebates-section .rebates-grid {
    grid-template-columns: 1fr;
  }
}
body.nhsaves-ui-active .rebates-section .empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--nhs-text-muted);
  display: none;
}
body.nhsaves-ui-active .rebates-section .empty-state.is-visible {
  display: block;
}
body.nhsaves-ui-active .rebates-section .empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--nhs-text-light);
  margin: 0 0 6px;
}
body.nhsaves-ui-active .rebates-section .empty-state p {
  font-size: 16px;
  margin: 0 0 16px;
}
body.nhsaves-ui-active .rebates-section .empty-state button {
  margin-top: 16px;
  padding: 8px 20px;
  background: var(--nhs-green);
  color: #ffffff;
  border: none;
  border-radius: var(--nhs-radius);
  font-family: var(--nhs-font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
body.nhsaves-ui-active .rebates-section .empty-state button:hover, body.nhsaves-ui-active .rebates-section .empty-state button:focus {
  background: var(--nhs-green-dark);
}
