:root {
  --benefit-blue: #0568d8;
  --benefit-blue-dark: #064a9d;
  --benefit-green: #087a43;
  --benefit-ink: #0f2748;
  --benefit-muted: #5c6f89;
  --benefit-line: #dbe7f4;
  --benefit-soft: #f4f9ff;
}

.benefits-promo-rail {
  position: relative;
  overflow: hidden;
  margin: 0 0 22px;
  padding: clamp(14px, 1.8vw, 22px);
  border: 1px solid #d9e6f5;
  border-radius: 24px;
  background:
    radial-gradient(circle at 96% -30%, rgba(5, 104, 216, .16), transparent 24rem),
    radial-gradient(circle at -8% 130%, rgba(8, 122, 67, .11), transparent 22rem),
    linear-gradient(145deg, #f8fbff, #ffffff 62%);
  box-shadow: 0 18px 44px rgba(15, 39, 72, .1);
}

.benefits-promo-rail[hidden] {
  display: none !important;
}

.benefits-promo-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: clamp(18px, 2vw, 26px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 19px;
  color: #ffffff;
  background:
    radial-gradient(circle at 91% 10%, rgba(78, 214, 255, .33), transparent 19rem),
    radial-gradient(circle at 6% 125%, rgba(35, 197, 92, .2), transparent 19rem),
    linear-gradient(118deg, #073c99 0%, #086fc7 58%, #0c94b3 100%);
  box-shadow: 0 16px 34px rgba(6, 62, 153, .19);
}

.benefits-promo-rail-head h2,
.benefits-promo-rail-head p {
  margin: 0;
}

.benefits-promo-rail-head h2 {
  margin-top: 9px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 15px;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -.04em;
}

.benefits-promo-rail-head p {
  max-width: 720px;
  margin-top: 7px;
  color: var(--benefit-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.benefits-promo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #075bb9;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.benefits-promo-eyebrow span {
  color: var(--benefit-green);
}

.benefits-promo-lockup {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.benefits-promo-verified {
  width: fit-content;
  min-height: 26px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.benefits-promo-verified > span {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #075aa9;
  background: #ffffff;
  font-size: 11px;
}

.benefits-promo-brand-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  font-size: clamp(2.4rem, 4vw, 3.55rem);
  font-weight: 950;
  letter-spacing: -.075em;
  filter: drop-shadow(0 8px 17px rgba(0, 27, 83, .25));
}

.benefits-promo-brand-name b {
  width: .96em;
  height: .96em;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: .23em;
  color: #ffffff;
  background: linear-gradient(145deg, #38d969, #07943c);
  box-shadow: 0 8px 18px rgba(0, 87, 41, .3), inset 0 1px rgba(255, 255, 255, .48);
  font-size: .75em;
  line-height: 1;
  letter-spacing: 0;
}

.benefits-promo-tagline {
  color: rgba(255, 255, 255, .97);
  font-size: clamp(1.35rem, 2.35vw, 2rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -.045em;
}

.benefits-promo-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.benefits-promo-arrow,
.benefits-promo-all {
  min-height: 42px;
  border: 1px solid #cbdced;
  background: #fff;
  color: var(--benefit-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.benefits-promo-arrow {
  width: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
}

.benefits-promo-all {
  border-color: #8fd4ab;
  border-radius: 999px;
  padding: 0 16px;
  background: #ffffff;
  color: #05683a;
  box-shadow: 0 8px 19px rgba(0, 40, 92, .16);
}

.benefits-promo-arrow:hover,
.benefits-promo-arrow:focus-visible,
.benefits-promo-all:hover,
.benefits-promo-all:focus-visible {
  border-color: var(--benefit-blue);
  outline: 3px solid rgba(5, 104, 216, .12);
  transform: translateY(-1px);
}

.benefits-promo-viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}

.benefits-promo-viewport::-webkit-scrollbar {
  display: none;
}

.benefits-promo-viewport:focus-visible {
  border-radius: 18px;
  outline: 3px solid rgba(5, 104, 216, .16);
  outline-offset: 4px;
}

.benefits-promo-track {
  display: flex;
  gap: 14px;
  width: max-content;
  min-width: 100%;
  padding: 3px 3px 10px;
}

.benefits-promo-loop-group {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
}

.benefits-promo-loop-group .benefit-promo-card,
.benefit-promo-skeleton {
  width: clamp(260px, 24vw, 320px);
  flex: 0 0 clamp(260px, 24vw, 320px);
}

.benefit-promo-card {
  --provider-color: var(--benefit-blue);
  position: relative;
  overflow: hidden;
  min-height: 205px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  border: 1px solid #dce7f3;
  border-radius: 20px;
  padding: 17px;
  background: #fff;
  box-shadow: 0 13px 30px rgba(15, 39, 72, .09);
  animation: benefitPromoEnter 420ms both;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.benefit-promo-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--provider-color), #18a7d3);
}

.benefit-promo-card:hover {
  border-color: color-mix(in srgb, var(--provider-color) 38%, #dce7f3);
  box-shadow: 0 18px 38px rgba(15, 39, 72, .14);
  transform: translateY(-3px);
}

.benefit-promo-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}

.benefit-promo-card-head > div {
  min-width: 0;
}

.benefit-promo-card-head strong,
.benefit-promo-card-head small {
  display: block;
}

.benefit-promo-card-head strong {
  overflow: hidden;
  color: var(--benefit-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.benefit-promo-card-head small {
  margin-top: 2px;
  color: var(--benefit-muted);
  font-size: 11px;
}

.benefit-promo-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border: 1px solid #e0e9f3;
  border-radius: 13px;
  background: #fff;
  object-fit: contain;
}

.benefit-promo-card .benefit-provider-fallback {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
}

.benefit-promo-payment {
  display: flex;
  position: relative;
  width: 88px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  margin-left: auto;
  padding: 2px 3px;
}

.benefit-promo-payment-card {
  display: flex;
  position: relative;
  z-index: calc(4 - var(--payment-index, 0));
  box-sizing: border-box;
  width: 44px;
  height: 27px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  margin-left: -20px;
  overflow: hidden;
  border: 1px solid #d4e1ef;
  border-radius: 7px;
  background: #fff;
  color: #0b438e;
  box-shadow: 0 4px 10px rgba(15, 39, 72, .14);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: -.2px;
  transform: translateY(calc((var(--payment-index, 0) - 1) * 1px));
}

.benefit-promo-payment-card:first-child { margin-left: 0; }

.benefit-promo-payment-card img {
  width: 38px;
  height: 21px;
  object-fit: contain;
}

.benefit-promo-payment-card.is-generic:not(:has(img)) {
  background: linear-gradient(135deg, var(--provider-color, #0568d8), #16a6da);
  color: #fff;
}

.benefit-promo-payment-card.is-visa {
  justify-content: flex-end;
  padding-right: 4px;
  color: #1434cb;
  font-size: 8px;
  font-style: italic;
  letter-spacing: -.5px;
}

.benefit-promo-payment-card.is-mastercard {
  gap: 2px;
  color: #252525;
  font-size: 8px;
}

.benefit-mastercard-symbol {
  position: relative;
  width: 18px;
  height: 12px;
}

.benefit-mastercard-symbol::before,
.benefit-mastercard-symbol::after {
  position: absolute;
  top: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  content: "";
}

.benefit-mastercard-symbol::before { left: 0; background: #eb001b; }
.benefit-mastercard-symbol::after { right: 0; background: #f79e1b; opacity: .92; }

.benefit-promo-payment-more {
  display: grid;
  position: absolute;
  right: -7px;
  z-index: 6;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #d4e1ef;
  border-radius: 7px;
  background: #fff;
  color: #1453a6;
  box-shadow: 0 4px 10px rgba(15, 39, 72, .14);
  font-size: 10px;
  font-weight: 900;
}

.benefit-promo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.benefit-promo-badge {
  padding: 5px 8px;
  border-radius: 999px;
  color: #175b9e;
  background: #edf5ff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.benefit-promo-badge.today {
  color: #087341;
  background: #eaf9f0;
}

.benefit-promo-value {
  color: var(--benefit-blue-dark);
  font-size: clamp(1.45rem, 2.1vw, 1.8rem);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.benefit-promo-card h3 {
  margin: 7px 0 0;
  color: var(--benefit-ink);
  font-size: 16px;
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.benefit-promo-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
}

.benefit-promo-footer > span {
  overflow: hidden;
  color: #526982;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.benefit-promo-open {
  width: auto;
  min-height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--provider-color), #0568d8);
  color: #fff;
  cursor: pointer;
  padding: 7px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.benefit-promo-open:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--provider-color) 24%, transparent);
  outline-offset: 3px;
}

.benefits-promo-status {
  min-height: 18px;
  margin: 5px 3px 0;
  color: var(--benefit-muted);
  font-size: 11px;
  font-weight: 750;
}

.benefits-promo-empty {
  width: min(100%, 560px);
  padding: 24px;
  border: 1px dashed #b8cadc;
  border-radius: 18px;
  color: var(--benefit-muted);
  background: rgba(255, 255, 255, .82);
  text-align: center;
}

.benefit-promo-skeleton,
.benefit-card-skeleton {
  position: relative;
  overflow: hidden;
  border: 1px solid #e2eaf3;
  border-radius: 20px;
  background:
    linear-gradient(#e7eef6 0 0) 17px 18px / 44px 44px no-repeat,
    linear-gradient(#e7eef6 0 0) 73px 20px / 42% 12px no-repeat,
    linear-gradient(#edf2f7 0 0) 73px 42px / 28% 9px no-repeat,
    linear-gradient(#dfe9f4 0 0) 17px 85px / 42% 25px no-repeat,
    linear-gradient(#edf2f7 0 0) 17px 124px / 78% 12px no-repeat,
    linear-gradient(#edf2f7 0 0) 17px 146px / 64% 10px no-repeat,
    #fff;
}

.benefit-promo-skeleton {
  min-height: 205px;
  scroll-snap-align: start;
}

.benefit-card-skeleton {
  min-height: 330px;
}

.benefit-promo-skeleton::after,
.benefit-card-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .82) 48%, transparent 72%);
  transform: translateX(-100%);
  animation: benefitSkeleton 1.45s ease-in-out infinite;
}

@keyframes benefitPromoEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes benefitSkeleton {
  to { transform: translateX(100%); }
}

.benefits-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.benefits-filter-list {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.benefits-filter-chip,
.benefits-preferences-btn {
  min-height: 42px;
  border: 1px solid #cbdced;
  border-radius: 999px;
  padding: 9px 16px;
  background: #fff;
  color: var(--benefit-ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.benefits-filter-chip.active {
  border-color: var(--benefit-blue);
  background: var(--benefit-blue);
  color: #fff;
  box-shadow: 0 9px 24px rgba(5, 104, 216, .22);
}

.benefits-preferences-btn {
  border-color: #9bd7b5;
  background: #effcf4;
  color: #05683a;
}

.benefits-memberships {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -4px 0 14px;
  padding: 10px 12px;
  border: 1px solid #d8e5f2;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #f6faff);
}

.benefits-memberships-copy {
  min-width: 175px;
}

.benefits-memberships-copy span,
.benefits-memberships-copy strong {
  display: block;
}

.benefits-memberships-copy span {
  color: var(--benefit-muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.benefits-memberships-copy strong {
  margin-top: 2px;
  color: var(--benefit-ink);
  font-size: 13px;
}

.benefits-memberships-logos {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
}

.benefits-membership-logo {
  display: grid;
  width: 56px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  margin-left: -6px;
  border: 2px solid #fff;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 39, 72, .13);
}

.benefits-membership-logo:first-child {
  margin-left: 0;
}

.benefits-membership-logo img,
.benefits-membership-logo .benefit-provider-fallback {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: contain;
}

.benefits-membership-more {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-left: -5px;
  border: 2px solid #fff;
  border-radius: 10px;
  background: #eaf3ff;
  color: #0757ad;
  font-size: 11px;
  font-weight: 900;
}

.benefits-memberships-empty {
  color: var(--benefit-muted);
  font-size: 11px;
  font-weight: 750;
}

.benefits-memberships-edit {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid #9fc9ef;
  border-radius: 12px;
  background: #fff;
  color: var(--benefit-blue);
  cursor: pointer;
  font-size: 22px;
  font-weight: 600;
}

.benefits-mobile-filter-toggle {
  display: none;
}

.benefits-advanced-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.7fr) repeat(3, minmax(145px, 1fr)) auto;
  gap: 11px;
  align-items: end;
  margin: -2px 0 18px;
  padding: 14px;
  border: 1px solid var(--benefit-line);
  border-radius: 18px;
  background: #f8fbff;
}

.benefits-advanced-filters label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--benefit-ink);
  font-size: 12px;
  font-weight: 850;
}

.benefits-advanced-filters input,
.benefits-advanced-filters select {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  box-sizing: border-box;
  border: 1px solid #cbdced;
  border-radius: 12px;
  padding: 9px 11px;
  background: #fff;
  color: var(--benefit-ink);
  font: inherit;
  font-size: 14px;
}

.benefits-advanced-filters input:focus,
.benefits-advanced-filters select:focus {
  border-color: var(--benefit-blue);
  outline: 3px solid rgba(5, 104, 216, .13);
}

.benefits-clear-filters,
.benefits-apply-filters {
  min-height: 43px;
  border: 1px solid #cbdced;
  border-radius: 12px;
  padding: 9px 14px;
  background: #fff;
  color: var(--benefit-blue-dark);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.benefits-filter-actions {
  display: flex;
  gap: 7px;
}

.benefits-apply-filters {
  display: none;
  border-color: var(--benefit-blue);
  background: var(--benefit-blue);
  color: #fff;
}

.benefits-preferences {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--benefit-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 39, 72, .08);
}

.benefits-preferences[hidden] {
  display: none !important;
}

.benefits-preferences-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.benefits-preferences-head h3,
.benefits-preferences-head p {
  margin: 0;
}

.benefits-preferences-head p {
  margin-top: 4px;
  color: var(--benefit-muted);
  font-size: 14px;
}

.benefits-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.benefits-provider-option {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--benefit-line);
  border-radius: 14px;
  background: #f9fbfe;
  cursor: pointer;
}

.benefits-provider-option:has(input:checked) {
  border-color: var(--benefit-blue);
  background: #edf6ff;
}

.benefits-provider-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.benefits-provider-option img,
.benefit-provider-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  border: 1px solid #e3ebf5;
}

.benefits-provider-option strong {
  display: block;
  color: var(--benefit-ink);
}

.benefits-provider-option small {
  color: var(--benefit-muted);
}

.benefits-results-status {
  min-height: 28px;
  margin: 4px 0 14px;
  color: var(--benefit-muted);
  font-weight: 700;
}

.benefits-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.benefit-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 18px;
  border: 1px solid var(--benefit-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 39, 72, .09);
}

.benefit-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--provider-color, var(--benefit-blue)), #16a6da);
}

.benefit-card.is-local {
  border-color: #b9dfca;
  box-shadow: 0 16px 38px rgba(8, 122, 67, .1);
}

.benefit-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.benefit-card-head > div {
  min-width: 0;
}

.benefit-card-head > div:not(.benefit-payment-identity) {
  flex: 1;
}

.benefit-payment-identity {
  display: grid;
  width: 64px;
  height: 34px;
  flex: 0 0 64px;
  place-items: center;
  margin-left: 0;
  padding: 4px 6px;
  border: 1px solid #d8e5f2;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 11px rgba(15, 39, 72, .08);
}

.benefit-payment-identity + .benefit-favorite-btn {
  margin-left: 0;
}

.benefit-payment-identity img,
.benefit-payment-identity > .benefit-provider-fallback {
  width: 52px;
  height: 24px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
  font-size: 9px;
}

.benefit-favorite-btn {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid #cbdced;
  border-radius: 50%;
  background: #fff;
  color: #48627f;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.benefit-favorite-btn.active {
  border-color: #e4485d;
  background: #fff0f2;
  color: #d5203d;
}

.benefit-provider-fallback {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--provider-color, var(--benefit-blue)), #16a6da);
  color: #fff;
  font-weight: 900;
}

.benefit-card-head strong,
.benefit-card-head small {
  display: block;
}

.benefit-card-head strong {
  color: var(--benefit-ink);
}

.benefit-card-head small {
  margin-top: 2px;
  color: var(--benefit-muted);
}

.benefit-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.benefit-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf4fd;
  color: #185899;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.benefit-badge.local {
  background: #eaf9f0;
  color: #087341;
}

.benefit-badge.today {
  background: #fff5d7;
  color: #8b6100;
}

.benefit-card h3 {
  margin: 0;
  color: var(--benefit-ink);
  font-size: 20px;
  line-height: 1.2;
}

.benefit-card-value {
  margin: 12px 0 6px;
  color: var(--benefit-blue-dark);
  font-size: 30px;
  font-weight: 950;
  line-height: 1.05;
}

.benefit-card p {
  color: var(--benefit-muted);
  line-height: 1.5;
}

.benefit-card-meta {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed #d7e2ee;
  color: #35516f;
  font-size: 13px;
}

.benefit-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.benefit-detail-btn,
.benefit-source-link,
.benefit-aux-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 11px;
  padding: 9px 12px;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
}

.benefit-detail-btn {
  flex: 1;
  border: 0;
  background: var(--benefit-blue);
  color: #fff;
  cursor: pointer;
}

.benefit-source-link {
  border: 1px solid var(--benefit-line);
  background: #fff;
  color: var(--benefit-ink);
}

.benefit-aux-action {
  border: 1px solid #b9dfca;
  background: #effcf4;
  color: #05683a;
  cursor: pointer;
}

.benefits-empty {
  grid-column: 1 / -1;
  padding: 34px 20px;
  border: 1px dashed #b9cadc;
  border-radius: 22px;
  background: #f8fbff;
  text-align: center;
}

.benefits-empty strong {
  display: block;
  margin-bottom: 7px;
  color: var(--benefit-ink);
  font-size: 20px;
}

.benefits-empty p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--benefit-muted);
}

.benefit-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 25, 48, .66);
}

.benefit-modal[hidden] {
  display: none !important;
}

.benefit-modal-card {
  position: relative;
  width: min(720px, 96vw);
  max-height: 90vh;
  overflow: auto;
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.benefit-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #edf3f9;
  color: var(--benefit-ink);
  font-size: 22px;
  cursor: pointer;
}

.benefit-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.benefit-detail-list div {
  padding: 12px;
  border-radius: 13px;
  background: var(--benefit-soft);
}

.benefit-detail-list span,
.benefit-detail-list strong {
  display: block;
}

.benefit-detail-list span {
  color: var(--benefit-muted);
  font-size: 12px;
}

.benefit-detail-list strong {
  margin-top: 3px;
  color: var(--benefit-ink);
}

.benefit-locations {
  display: grid;
  gap: 9px;
  margin: 18px 0;
}

.benefit-locations h3,
.benefit-locations p {
  margin: 0;
}

.benefit-location-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--benefit-line);
  border-radius: 13px;
  background: #fbfdff;
}

.benefit-location-item strong,
.benefit-location-item span {
  display: block;
}

.benefit-location-item span,
.benefit-location-note {
  margin-top: 3px;
  color: var(--benefit-muted);
  font-size: 13px;
}

.benefit-location-item a {
  flex: 0 0 auto;
  color: #0568d8;
  font-size: 13px;
  font-weight: 850;
}

.benefit-location-all {
  padding: 11px 12px;
  border-radius: 12px;
  background: #eaf8f0;
  color: #087442;
  font-weight: 800;
}

.benefit-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 8px;
}

.benefit-detail-actions button {
  min-height: 42px;
  border: 1px solid #cbdced;
  border-radius: 12px;
  padding: 9px 13px;
  background: #fff;
  color: var(--benefit-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.benefit-detail-actions button:first-child {
  border-color: #f0b8c1;
  background: #fff3f5;
  color: #bd1733;
}

.benefit-action-status {
  min-height: 22px;
  margin-bottom: 12px;
  color: #087442;
  font-size: 13px;
  font-weight: 800;
}

.benefits-admin-shell {
  display: grid;
  gap: 18px;
}

.benefits-admin-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
}

.benefits-admin-operations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.benefits-admin-kpi,
.benefits-admin-card {
  border: 1px solid var(--benefit-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 39, 72, .07);
}

.benefits-admin-kpi {
  position: relative;
  overflow: hidden;
  appearance: none;
  width: 100%;
  padding: 15px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.benefits-admin-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #8aa3bc;
}

.benefits-admin-kpi:hover,
.benefits-admin-kpi:focus-visible,
.benefits-admin-kpi.is-active {
  border-color: #91b4da;
  outline: 0;
  box-shadow: 0 15px 34px rgba(15, 39, 72, .13);
  transform: translateY(-2px);
}

.benefits-admin-kpi.is-active {
  background: #f1f7ff;
}

.benefits-admin-kpi.published::before { background: #0c8a4e; }
.benefits-admin-kpi.draft::before { background: #63768b; }
.benefits-admin-kpi.paused::before { background: #7b61b1; }
.benefits-admin-kpi.warning::before { background: #d79500; }
.benefits-admin-kpi.danger::before { background: #b42318; }
.benefits-admin-kpi.review::before { background: #0568d8; }

.benefits-admin-kpi small {
  display: block;
  margin-top: 5px;
  color: #71839a;
  font-size: 10px;
  font-weight: 750;
}

.benefits-admin-kpi span,
.benefits-admin-kpi strong {
  display: block;
}

.benefits-admin-kpi span {
  color: var(--benefit-muted);
  font-size: 12px;
  font-weight: 800;
}

.benefits-admin-kpi strong {
  margin-top: 5px;
  color: var(--benefit-ink);
  font-size: 26px;
}

.benefits-command-center {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 24px;
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid #cfe0f2;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(5, 104, 216, .15), transparent 22rem),
    linear-gradient(135deg, #f7fbff, #fff 60%, #f1fbf5);
  box-shadow: 0 16px 38px rgba(15, 39, 72, .09);
}

.benefits-command-center::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #0568d8, #16a6da 52%, #0c8a4e);
}

.benefits-command-copy h3,
.benefits-command-copy p {
  margin: 0;
}

.benefits-command-copy h3 {
  margin-top: 6px;
  color: var(--benefit-ink);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  letter-spacing: -.025em;
}

.benefits-command-copy p {
  margin-top: 7px;
  color: var(--benefit-muted);
  font-size: 13px;
}

.benefits-command-copy p strong {
  color: #294763;
}

.benefits-command-eyebrow {
  color: #0568d8;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.benefits-command-actions {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.benefits-command-actions button,
.benefits-command-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid #acd5bc;
  border-radius: 12px;
  padding: 9px 13px;
  background: #eaf9f0;
  color: #07663a;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.benefits-command-actions a {
  border-color: #cbdced;
  background: #fff;
  color: #0757ad;
}

.benefits-workflow {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefits-workflow li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #dce7f2;
  border-radius: 13px;
  background: rgba(255, 255, 255, .8);
}

.benefits-workflow li > b {
  display: grid;
  place-items: center;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #eaf3ff;
  color: #0568d8;
  font-size: 12px;
}

.benefits-workflow strong,
.benefits-workflow small {
  display: block;
}

.benefits-workflow strong {
  color: #294763;
  font-size: 12px;
}

.benefits-workflow small {
  margin-top: 2px;
  color: #71839a;
  font-size: 10px;
}

.benefits-link-summary {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid #cfe0f2;
  border-radius: 13px;
  background: #f5f9fe;
}

.benefits-link-summary.has-warning {
  border-color: #ebd499;
  background: #fff9e9;
}

.benefits-link-summary p {
  margin: 7px 0 0;
  color: #4e6680;
  font-size: 12px;
}

.benefits-link-summary.has-warning p {
  margin: 0;
  color: #795700;
}

.benefits-link-chips,
.benefits-admin-relationships,
.benefits-preview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.benefits-link-chips span,
.benefits-admin-relationships span,
.benefits-preview-badges span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #0757ad;
  font-size: 10px;
  font-weight: 900;
}

.benefits-link-chips .is-local,
.benefits-admin-relationships .is-local {
  background: #e8f8ef;
  color: #087442;
}

.benefits-link-chips .is-brand,
.benefits-admin-relationships .is-brand {
  background: #f2edff;
  color: #6546a8;
}

.benefits-admin-relationships {
  margin-top: 9px;
}

.benefits-admin-relationships .is-missing {
  background: #fff0f0;
  color: #a61b1b;
}

.benefits-form-preview {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #d8e4f0;
  border-radius: 16px;
  background: linear-gradient(145deg, #f5f9fe, #fff);
}

.benefits-form-preview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.benefits-form-preview-head span,
.benefits-form-preview-head h4,
.benefits-form-preview-head small {
  display: block;
  margin: 0;
}

.benefits-form-preview-head span {
  color: #0568d8;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.benefits-form-preview-head h4 {
  margin-top: 3px;
  color: var(--benefit-ink);
}

.benefits-form-preview-head small {
  color: #71839a;
  font-size: 10px;
}

.benefits-form-preview-stage {
  display: grid;
  place-items: center;
  padding: 15px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 95% 0, rgba(5, 104, 216, .12), transparent 15rem),
    #edf4fb;
}

.benefits-preview-card {
  --preview-color: #0568d8;
  position: relative;
  overflow: hidden;
  width: min(100%, 350px);
  min-height: 245px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 17px;
  border: 1px solid #dce7f3;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 39, 72, .1);
}

.benefits-preview-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--preview-color), #18a7d3);
}

.benefits-preview-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.benefits-preview-brand img,
.benefits-preview-brand > span {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  box-sizing: border-box;
  border: 1px solid #dfe8f1;
  border-radius: 11px;
  background: #fff;
  object-fit: contain;
}

.benefits-preview-brand > span {
  border: 0;
  background: linear-gradient(135deg, var(--preview-color), #18a7d3);
  color: #fff;
  font-weight: 950;
}

.benefits-preview-brand strong,
.benefits-preview-brand small {
  display: block;
}

.benefits-preview-brand strong {
  color: var(--benefit-ink);
  font-size: 13px;
}

.benefits-preview-brand small {
  margin-top: 2px;
  color: var(--benefit-muted);
  font-size: 10px;
}

.benefits-preview-badges {
  margin-bottom: 10px;
}

.benefits-preview-value {
  color: var(--preview-color);
  font-size: 25px;
  line-height: 1.05;
}

.benefits-preview-card h5 {
  margin: 6px 0 10px;
  color: var(--benefit-ink);
  font-size: 15px;
}

.benefits-preview-card p {
  margin: 3px 0;
  color: #526982;
  font-size: 10px;
}

.benefits-preview-card button {
  min-height: 37px;
  margin-top: auto;
  border: 0;
  border-radius: 10px;
  background: var(--preview-color);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  opacity: 1;
}

.benefits-admin-layout {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.4fr);
  gap: 18px;
  align-items: start;
}

.benefits-admin-card {
  padding: 18px;
}

.benefits-admin-card h3 {
  margin: 0 0 4px;
  color: var(--benefit-ink);
}

.benefits-admin-card > p {
  margin: 0 0 16px;
  color: var(--benefit-muted);
}

.benefits-admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.benefits-admin-field {
  display: grid;
  gap: 5px;
}

.benefits-admin-field.full {
  grid-column: 1 / -1;
}

.benefits-admin-field label,
.benefits-admin-days > span {
  color: #294763;
  font-size: 12px;
  font-weight: 850;
}

.benefits-admin-field input,
.benefits-admin-field select,
.benefits-admin-field textarea,
.benefits-admin-filter-row input,
.benefits-admin-filter-row select {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid #cad9e8;
  border-radius: 10px;
  padding: 9px 11px;
  background: #fff;
  color: var(--benefit-ink);
  font: inherit;
}

.benefits-admin-field textarea {
  min-height: 86px;
  resize: vertical;
}

.benefits-admin-checks,
.benefits-admin-day-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.benefits-admin-checks label,
.benefits-admin-day-list label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid #d8e3ef;
  border-radius: 10px;
  background: #f8fbff;
  color: #294763;
  font-size: 12px;
  font-weight: 800;
}

.benefits-admin-actions,
.benefits-admin-filter-row,
.benefits-admin-item-actions,
.benefits-provider-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: end;
}

.benefits-admin-actions {
  grid-column: 1 / -1;
  padding-top: 4px;
}

.benefits-provider-form .benefits-admin-field {
  flex: 1 1 150px;
}

.benefits-admin-status {
  min-height: 24px;
  color: var(--benefit-muted);
  font-weight: 750;
}

.benefits-alert-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.benefits-alert-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef3f8;
  color: #42566d;
  font-size: 12px;
  font-weight: 800;
}

.benefits-alert-chip strong {
  font-size: 15px;
}

.benefits-alert-chip.danger { background: #fff0f0; color: #a61b1b; }
.benefits-alert-chip.warning { background: #fff7df; color: #795700; }
.benefits-alert-chip.review { background: #eaf4ff; color: #075ba9; }

.benefits-alert-list {
  display: grid;
  gap: 8px;
  max-height: 330px;
  overflow: auto;
}

.benefits-alert-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px;
  border: 1px solid var(--benefit-line);
  border-left: 4px solid #5a7c9e;
  border-radius: 12px;
  background: #fbfdff;
}

.benefits-alert-item.vencido { border-left-color: #b42318; }
.benefits-alert-item.por_vencer { border-left-color: #d79500; }
.benefits-alert-item.revisar_fuente { border-left-color: #0568d8; }

.benefits-alert-item strong,
.benefits-alert-item span {
  display: block;
}

.benefits-alert-item span {
  margin-top: 3px;
  color: var(--benefit-muted);
  font-size: 12px;
}

.benefits-alert-item-actions {
  flex: 0 0 auto;
  text-align: right;
}

.benefits-alert-item-actions button {
  min-height: 32px;
  margin-top: 5px;
  padding: 5px 9px;
  font-size: 12px;
}

.benefits-alert-empty,
.benefits-import-help {
  color: var(--benefit-muted);
  font-size: 13px;
}

.benefits-import-form {
  display: grid;
  gap: 10px;
}

.benefits-import-form .benefits-admin-actions {
  padding: 0;
}

.benefits-import-help {
  margin-top: 11px;
  padding: 10px;
  border-radius: 10px;
  background: #f4f8fc;
}

.benefits-import-result {
  color: #294763;
  font-size: 13px;
}

.benefits-import-result p,
.benefits-import-result ul {
  margin: 7px 0 0;
}

.benefits-admin-list {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

.benefits-admin-item {
  padding: 14px;
  border: 1px solid var(--benefit-line);
  border-radius: 15px;
  background: #fbfdff;
}

.benefits-admin-item-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.benefits-admin-item h4,
.benefits-admin-item p {
  margin: 0;
}

.benefits-admin-item h4 {
  color: var(--benefit-ink);
}

.benefits-admin-item p {
  margin-top: 4px;
  color: var(--benefit-muted);
  font-size: 13px;
}

.benefits-admin-state {
  align-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef3f8;
  color: #42566d;
  font-size: 11px;
  font-weight: 900;
}

.benefits-admin-state.publicado {
  background: #e8f8ef;
  color: #087442;
}

.benefits-admin-state-stack {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.benefits-validity {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef3f8;
  color: #526982;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.benefits-validity.active { background: #e8f8ef; color: #087442; }
.benefits-validity.ending { background: #fff7df; color: #795700; }
.benefits-validity.expired { background: #fff0f0; color: #a61b1b; }
.benefits-validity.future { background: #eaf4ff; color: #075ba9; }

.benefits-admin-item-actions .renew {
  border-color: #ebd499;
  background: #fff9e9;
  color: #795700;
}

.benefits-admin-item-actions {
  margin-top: 12px;
}

.benefits-admin-item-actions button {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 12px;
}

.benefits-source-warning {
  margin: 12px 0 0;
  padding: 11px;
  border-radius: 12px;
  background: #fff7df;
  color: #795700;
  font-size: 12px;
  font-weight: 750;
}

@media (max-width: 1180px) {
  .benefits-advanced-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .benefits-search-field {
    grid-column: 1 / -1;
  }
  .benefits-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .benefits-admin-layout {
    grid-template-columns: 1fr;
  }
  .benefits-admin-operations {
    grid-template-columns: 1fr;
  }
  .benefits-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .benefits-command-center {
    grid-template-columns: 1fr;
  }
  .benefits-command-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .benefits-command-actions button,
  .benefits-command-actions a {
    width: 100%;
  }
  .benefits-workflow {
    grid-template-columns: 1fr;
  }
  .benefits-form-preview-head,
  .benefits-admin-item-top {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .benefits-admin-state-stack {
    justify-items: start;
  }
  .benefits-promo-rail {
    margin-bottom: 18px;
    padding: 18px 14px;
    border-radius: 20px;
  }
  .benefits-promo-rail-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .benefits-promo-actions {
    flex-wrap: wrap;
  }
  .benefits-promo-all {
    flex: 1 1 180px;
  }
  .benefits-promo-track,
  .benefits-promo-loop-group {
    gap: 11px;
  }
  .benefits-promo-loop-group .benefit-promo-card,
  .benefit-promo-skeleton {
    width: min(82vw, 325px);
    flex-basis: min(82vw, 325px);
  }
  .benefit-promo-card,
  .benefit-promo-skeleton {
    min-height: 235px;
  }
  .benefits-toolbar,
  .benefits-preferences-head {
    align-items: stretch;
    flex-direction: column;
  }
  .benefits-results-grid,
  .benefits-admin-kpis,
  .benefits-admin-form-grid,
  .benefit-detail-list {
    grid-template-columns: 1fr;
  }
  .benefits-admin-field.full,
  .benefits-admin-actions {
    grid-column: auto;
  }
  .benefits-filter-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .benefits-filter-chip {
    flex: 0 0 auto;
  }
  .benefits-preferences-btn {
    width: 100%;
  }
  .benefits-advanced-filters {
    grid-template-columns: 1fr;
  }
  .benefits-search-field {
    grid-column: auto;
  }
  .benefits-clear-filters {
    width: 100%;
  }
  .benefit-card {
    min-height: auto;
  }
  .benefit-location-item,
  .benefits-alert-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .benefits-alert-item-actions {
    text-align: left;
  }
  .benefit-detail-actions button {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .benefits-promo-viewport {
    scroll-behavior: auto;
  }
  .benefit-promo-card,
  .benefits-promo-arrow,
  .benefits-promo-all,
  .benefit-promo-skeleton::after,
  .benefit-card-skeleton::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Etapa 3: personalización, ahorro combinado y métricas */
.benefits-alert-toggle {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #cfe0f2;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4f9ff, #f2fbf6);
  cursor: pointer;
}

.benefits-alert-toggle input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--benefit-blue);
}

.benefits-alert-toggle strong,
.benefits-alert-toggle small {
  display: block;
}

.benefits-alert-toggle strong {
  color: var(--benefit-ink);
  font-size: 13px;
}

.benefits-alert-toggle small {
  margin-top: 3px;
  color: var(--benefit-muted);
  font-size: 11px;
  line-height: 1.45;
}

.benefits-personalized-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #bcd9f6;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(22, 166, 218, .12), transparent 15rem),
    linear-gradient(135deg, #f4f9ff, #fff 55%, #eefaf3);
  box-shadow: 0 12px 30px rgba(15, 39, 72, .07);
}

.benefits-personalized-summary[hidden] {
  display: none !important;
}

.benefits-personalized-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0568d8, #16a6da);
  color: #fff;
  font-size: 21px;
  box-shadow: 0 8px 20px rgba(5, 104, 216, .22);
}

.benefits-personalized-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.benefits-personalized-heading > span {
  color: #0568d8;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.benefits-personalized-heading > b {
  padding: 4px 7px;
  border-radius: 999px;
  background: #e4485d;
  color: #fff;
  font-size: 10px;
}

.benefits-personalized-copy h3,
.benefits-personalized-copy p {
  margin: 0;
}

.benefits-personalized-copy h3 {
  margin-top: 3px;
  color: var(--benefit-ink);
  font-size: 18px;
}

.benefits-personalized-copy p {
  margin-top: 3px;
  color: var(--benefit-muted);
  font-size: 12px;
}

.benefits-personalized-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.benefits-personalized-chips span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #e9f3ff;
  color: #0757ad;
  font-size: 10px;
  font-weight: 850;
}

.benefits-personalized-actions {
  display: flex;
  gap: 8px;
}

.benefits-personalized-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  padding: 9px 12px;
  background: var(--benefit-blue);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.benefits-personalized-actions button.secondary {
  border: 1px solid #cbdced;
  background: #fff;
  color: #0757ad;
}

.benefit-badge.combined,
.benefit-promo-badge.combined,
.benefits-preview-badges .combined,
.benefits-link-chips .combined,
.benefits-admin-relationships .combined {
  background: #f1ebff;
  color: #6844ae;
}

.benefit-favorite-btn.just-saved {
  animation: benefitFavoritePop 620ms cubic-bezier(.2, .9, .25, 1.35);
}

@keyframes benefitFavoritePop {
  0% { transform: scale(1); }
  35% { transform: scale(1.34) rotate(-8deg); box-shadow: 0 0 0 8px rgba(228, 72, 93, .12); }
  70% { transform: scale(.92) rotate(4deg); }
  100% { transform: scale(1); }
}

.benefit-commerce-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #b9dfca;
  border-radius: 11px;
  padding: 9px 12px;
  background: #effcf4;
  color: #05683a;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.benefit-detail-list .benefit-detail-combined {
  grid-column: 1 / -1;
  border: 1px solid #d6c7f6;
  background: linear-gradient(135deg, #f6f1ff, #fff);
}

.benefit-detail-list .benefit-detail-combined span,
.benefit-detail-list .benefit-detail-combined strong {
  color: #5e3a9d;
}

.benefit-linked-commerce {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  margin: 14px 0;
  padding: 13px 14px;
  border: 1px solid #b9dfca;
  border-radius: 14px;
  background: #effcf4;
  color: #05683a;
  text-decoration: none;
}

.benefit-linked-commerce span,
.benefit-linked-commerce strong {
  grid-column: 1;
}

.benefit-linked-commerce span {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.benefit-linked-commerce b {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 12px;
}

.benefit-detail-actions .benefit-used-action {
  border-color: #acd5bc;
  background: #eaf9f0;
  color: #07663a;
}

.benefit-detail-actions .benefit-used-action.is-used,
.benefit-detail-actions .benefit-used-action:disabled {
  cursor: default;
  opacity: .78;
}

.benefits-admin-accumulation {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(280px, 1.2fr);
  gap: 12px;
  padding: 13px;
  border: 1px solid #d9ccf4;
  border-radius: 14px;
  background: #f8f5ff;
}

.benefits-admin-accumulation label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #55358d;
  font-size: 12px;
  font-weight: 850;
}

.benefits-admin-accumulation input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #6844ae;
}

.benefits-admin-accumulation input[type="text"] {
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid #cfc0ed;
  border-radius: 11px;
  padding: 9px 11px;
  font: inherit;
}

.benefits-admin-accumulation small {
  grid-column: 1 / -1;
  color: #6d5a8d;
  font-size: 10px;
}

.benefits-stats-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(300px, 1.6fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid #d7e3ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 39, 72, .07);
}

.benefits-stat-card {
  padding: 13px;
  border-radius: 14px;
  background: #f4f8fc;
}

.benefits-stat-card span,
.benefits-stat-card strong,
.benefits-stat-card small {
  display: block;
}

.benefits-stat-card span,
.benefits-stat-card small {
  color: var(--benefit-muted);
  font-size: 10px;
}

.benefits-stat-card strong {
  margin: 4px 0;
  color: var(--benefit-ink);
  font-size: 25px;
}

.benefits-stat-ranking {
  padding: 2px 4px;
}

.benefits-stat-ranking h4,
.benefits-stat-ranking p {
  margin: 0;
}

.benefits-stat-ranking h4 {
  color: var(--benefit-ink);
}

.benefits-stat-ranking p {
  margin-top: 4px;
  color: var(--benefit-muted);
  font-size: 10px;
}

.benefits-stat-ranking ol {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.benefits-stat-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.benefits-stat-lists h5 {
  margin: 0;
  color: #294763;
  font-size: 11px;
}

.benefits-stat-ranking li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 7px;
  border-top: 1px solid #e4ebf2;
  color: #35516f;
  font-size: 11px;
}

.benefits-stat-ranking li b {
  color: #0568d8;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .benefits-stats-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .benefits-stat-ranking {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .benefits-personalized-summary,
  .benefits-admin-accumulation,
  .benefits-stats-panel,
  .benefits-stat-lists {
    grid-template-columns: 1fr;
  }
  .benefits-personalized-icon {
    display: none;
  }
  .benefits-personalized-actions {
    flex-direction: column;
  }
  .benefits-personalized-actions button {
    width: 100%;
  }
  .benefits-stat-ranking,
  .benefits-admin-accumulation small {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .benefit-favorite-btn.just-saved {
    animation: none !important;
  }
}

/* Experiencia responsive Cerca+: comercio principal, membresías y filtros compactos */
@media (max-width: 760px) {
  body.benefits-preferences-open {
    overflow: hidden;
  }

  .benefits-promo-rail {
    padding: 16px 12px;
  }

  .benefits-promo-rail-head {
    padding: 17px 15px;
    border-radius: 16px;
  }

  .benefits-promo-rail-head h2 {
    margin-top: 8px;
    display: grid;
    justify-items: start;
    gap: 7px;
  }

  .benefits-promo-verified {
    min-height: 23px;
    padding: 4px 8px;
    font-size: 8px;
  }

  .benefits-promo-verified > span {
    width: 15px;
    height: 15px;
    font-size: 9px;
  }

  .benefits-promo-brand-name {
    font-size: clamp(2.35rem, 12vw, 3rem);
  }

  .benefits-promo-tagline {
    font-size: 1.3rem;
  }

  .benefits-promo-actions .benefits-promo-arrow {
    display: none;
  }

  .benefits-promo-loop-group .benefit-promo-card,
  .benefit-promo-skeleton {
    width: min(78vw, 285px);
    flex-basis: min(78vw, 285px);
  }

  .benefit-promo-card,
  .benefit-promo-skeleton {
    min-height: 190px;
  }

  .benefit-promo-card {
    padding: 14px;
    border-radius: 17px;
  }

  .benefit-promo-logo,
  .benefit-promo-card .benefit-provider-fallback {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .benefit-promo-payment {
    width: 82px;
    height: 32px;
    padding: 2px;
  }

  .benefit-promo-payment-card {
    width: 41px;
    height: 25px;
    flex-basis: 41px;
    margin-left: -19px;
  }

  .benefit-promo-value {
    font-size: 1.45rem;
  }

  .benefit-promo-card h3 {
    font-size: 13px;
  }

  .benefits-promo-status {
    display: none;
  }

  .benefits-toolbar {
    gap: 10px;
    margin-bottom: 10px;
  }

  .benefits-preferences-btn {
    display: none;
  }

  .benefits-memberships {
    gap: 8px;
    margin: 0 0 10px;
    padding: 9px 10px;
    border-radius: 14px;
  }

  .benefits-memberships-copy {
    min-width: 0;
    flex: 1;
  }

  .benefits-memberships-copy strong {
    font-size: 11px;
  }

  .benefits-memberships-logos {
    flex: 0 1 auto;
  }

  .benefits-memberships-empty {
    display: none;
  }

  .benefits-membership-logo {
    width: 52px;
    height: 32px;
  }

  .benefits-mobile-filter-toggle {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 11px;
    border: 1px solid #cbdced;
    border-radius: 14px;
    padding: 8px 12px;
    background: #fff;
    color: var(--benefit-ink);
    cursor: pointer;
    text-align: left;
  }

  .benefits-mobile-filter-toggle span,
  .benefits-mobile-filter-toggle strong,
  .benefits-mobile-filter-toggle small {
    display: block;
  }

  .benefits-mobile-filter-toggle small {
    margin-top: 2px;
    color: var(--benefit-muted);
    font-size: 10px;
  }

  .benefits-mobile-filter-toggle b {
    font-size: 20px;
    transition: transform 180ms ease;
  }

  .benefits-mobile-filter-toggle[aria-expanded="true"] b {
    transform: rotate(180deg);
  }

  .benefits-advanced-filters {
    grid-template-columns: 1fr;
    margin: 0 0 13px;
    padding: 12px;
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(15, 39, 72, .08);
  }

  .benefits-advanced-filters[data-mobile-open="false"] {
    display: none;
  }

  .benefits-filter-actions {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
  }

  .benefits-clear-filters,
  .benefits-apply-filters {
    display: block;
    width: 100%;
  }

  .benefits-preferences:not([hidden]) {
    position: fixed;
    z-index: 150;
    inset: auto 0 0;
    max-height: 88dvh;
    overflow: auto;
    margin: 0;
    padding: 16px 14px max(18px, env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -18px 55px rgba(7, 25, 48, .24), 0 0 0 100vmax rgba(7, 25, 48, .52);
  }

  .benefits-preferences-head {
    position: sticky;
    z-index: 2;
    top: -16px;
    margin: -16px -14px 12px;
    padding: 16px 14px 12px;
    border-bottom: 1px solid #e1eaf3;
    background: #fff;
  }

  .benefits-preferences-head p {
    font-size: 11px;
  }

  .benefits-preferences-head .benefits-filter-chip {
    width: 100%;
  }

  .benefits-provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-provider-option {
    min-width: 0;
    padding: 9px;
  }

  .benefits-provider-option strong,
  .benefits-provider-option small {
    overflow-wrap: anywhere;
  }

  .benefits-personalized-summary {
    display: none !important;
  }

  .benefit-payment-identity {
    width: 58px;
    height: 32px;
    flex-basis: 58px;
    padding: 3px 5px;
  }

  .benefit-favorite-btn {
    width: 36px;
    height: 36px;
  }
}
