/* Plan Rescue — same-day alternatives on /today.
   Mobile-first; all selectors stay scoped to the feature card. */

.hg-plan-rescue[hidden] {
  display: none !important;
}

.hg-plan-rescue {
  position: relative;
  overflow: hidden;
  border-color: #cbd8ce;
  border-color: color-mix(in srgb, var(--hgt-accent, #1a6b4a) 38%, #dfe6e0);
  background: #fbfcfb;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--hgt-accent, #1a6b4a) 7%, #fff) 0%, #fff 52%);
}

.hg-plan-rescue::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--hgt-accent, #1a6b4a);
  content: "";
}

.hg-plan-rescue-head {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.hg-plan-rescue-head-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--hgt-accent, #1a6b4a);
  border-radius: 8px;
  font-size: 17px;
}

.hg-plan-rescue-head h2 {
  margin-bottom: 3px;
}

.hg-plan-rescue-kicker {
  margin: 0 0 2px;
  color: var(--hgt-accent-dark, #146b50);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hg-plan-rescue-reason {
  margin: 14px 0 0;
  color: #3d4941;
  font-size: 15px;
  line-height: 1.45;
}

.hg-plan-rescue-loading,
.hg-plan-rescue-note,
.hg-plan-rescue-error {
  margin: 12px 0 0;
  color: #68736c;
  font-size: 13px;
  line-height: 1.45;
}

.hg-plan-rescue-error {
  color: #824327;
}

.hg-plan-rescue-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.hg-plan-rescue-option {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 13px;
  background: #fff;
  border: 1px solid #dfe7e1;
  border-radius: 8px;
}

.hg-plan-rescue-option h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.hg-plan-rescue-meta {
  margin: 0;
  color: #6b756e;
  font-size: 12px;
  line-height: 1.4;
}

.hg-plan-rescue-option-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
}

.hg-plan-rescue-option-actions .hgt-btn,
.hg-plan-rescue-option-actions .hgt-btn-outline,
.hg-plan-rescue-success-actions .hgt-btn,
.hg-plan-rescue-success-actions .hgt-btn-outline {
  min-height: 40px;
  justify-content: center;
  margin: 0;
}

.hg-plan-rescue-success {
  margin-top: 14px;
  padding: 13px;
  color: #244a37;
  background: #edf8f1;
  border: 1px solid #c7e4d1;
  border-radius: 8px;
}

.hg-plan-rescue-success strong {
  display: block;
  font-size: 15px;
}

.hg-plan-rescue-success p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.hg-plan-rescue-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

@media (min-width: 720px) {
  .hg-plan-rescue-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 359px) {
  .hg-plan-rescue-option-actions,
  .hg-plan-rescue-success-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hg-plan-rescue-option-actions .hgt-btn,
  .hg-plan-rescue-option-actions .hgt-btn-outline,
  .hg-plan-rescue-success-actions .hgt-btn,
  .hg-plan-rescue-success-actions .hgt-btn-outline {
    width: 100%;
  }
}
