/* The kit and expert options share an entry point on the resource page. */
.rpk-result-action { margin-top: 0.85rem; }
.quick-check-no-match .rpk-result-action { border-top: 1px solid #dce6e2; padding-top: 0.85rem; }
.qualifies-callout .rpk-result-action { align-self: stretch; }
.rpk-option:focus-visible { outline: 2px solid #176d57; outline-offset: 3px; }

.rpk-request-steps {
  margin-block: 1.75rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid #d6e2da;
  border-radius: 12px;
  background: #f7faf8;
}
.md-body .rpk-request-steps h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1.22rem;
}
.md-body .rpk-request-steps h2::after { content: none; }
.rpk-request-row:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 1.5rem;
  align-items: center;
  margin-top: 0.65rem;
}
.md-body .rpk-request-row :is(h3, p) { margin: 0; }
.md-body .rpk-request-row p {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.rpk-request-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #17634e;
  font-size: 0.875rem;
  font-weight: 700;
  text-underline-offset: 3px;
}
.rpk-request-kit { border-top: 1px solid #d6e2da; padding-top: 0.9rem; }
@media (max-width: 540px) {
  .rpk-request-row:not([hidden]) { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .rpk-request-kit .pathway-start-button { width: 100%; }
}

.rpk-options { display: grid; gap: 0.75rem; margin-top: 0.8rem; }
.rpk-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.modal.expert-modal .rpk-option, .modal.expert-modal .rpk-option:hover { color: var(--rpk-option-text); }
.rpk-option-kit {
  --rpk-option-text: #fff;
  --rpk-option-detail: #effff7;
  --rpk-eyebrow-color: #f7d98d;
  background: linear-gradient(120deg, #214f40, #216b55);
  box-shadow: 0 4px 12px rgba(28, 103, 82, 0.18);
}
.rpk-option-expert {
  --rpk-sheen: rgba(123, 171, 219, 0.18);
  --rpk-option-text: #273c57;
  --rpk-option-detail: #405571;
  --rpk-eyebrow-color: #315d8c;
  background: linear-gradient(120deg, #eaf2fa, #f4eff9);
  border-color: #c9d5e6;
}
.rpk-option-kit:hover { box-shadow: 0 8px 22px rgba(22, 74, 61, 0.33); }
.rpk-option-expert:hover { border-color: #97adca; box-shadow: 0 7px 19px rgba(39, 60, 87, 0.2); }
.rpk-option-copy { display: grid; gap: 0.3rem; min-width: 0; }
.rpk-option-eyebrow {
  display: block;
  color: var(--rpk-eyebrow-color);
  font-size: 0.6875rem;
  font-weight: 750;
  letter-spacing: 0.075em;
  line-height: 1.3;
  text-transform: uppercase;
}
.rpk-kit-header .rpk-option-eyebrow { margin-bottom: 0.35rem; }
.rpk-option-copy strong { font-size: 1.125rem; line-height: 1.3; }
.rpk-option-copy small, .rpk-option-details { color: var(--rpk-option-detail); font-size: 0.84rem; line-height: 1.4; }
.rpk-option-details { margin-top: 0.2rem; font-size: 0.75rem; }
.rpk-option-expert .rpk-option-details { color: #51596b; }
.rpk-option-details:empty { display: none; }
.rpk-arrow { flex: none; width: 1rem; height: 1rem; }

.rpk-kit-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}
.modal.expert-modal .rpk-kit-header h3 { color: inherit; font-size: 1.375rem; font-weight: 750; line-height: 1.25; }
.rpk-kit-name { display: block; margin-top: 0.18rem; color: var(--rpk-option-detail); font-size: 0.84rem; font-weight: 650; }
.modal.expert-modal .rpk-kit-card p { color: var(--rpk-option-detail); font-size: 0.88rem; line-height: 1.45; }
.rpk-includes { display: grid; gap: 0.55rem; padding: 0; margin: 0; list-style: none; }
.rpk-includes li { position: relative; padding-inline-start: 1.35rem; font-size: 0.85rem; line-height: 1.45; }
.rpk-includes small { display: block; margin-top: 0.15rem; color: #d0e0d8; font-size: 0.75rem; }
.rpk-checkmark {
  position: absolute;
  inset-inline-start: 0;
  top: 0.1rem;
  width: 1rem;
  height: 1rem;
  color: #a8e9cb;
}
.rpk-kit-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.rpk-kit-price { display: grid; min-width: 0; gap: 0.15rem; line-height: 1.3; }
.rpk-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; }
.rpk-original-price { color: #c6dad2; font-size: 0.95rem; white-space: nowrap; }
.rpk-kit-price strong { font-size: 1.3rem; }
.rpk-kit-price small { color: var(--rpk-option-detail); font-size: 0.8rem; }
.rpk-price-label {
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(247, 217, 141, 0.12);
  color: #f7d98d;
  font-size: 0.75rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.rpk-price-context {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.rpk-kit-footer .rpk-start-button {
  border-color: #d7f2e3;
  background: linear-gradient(110deg, #fbfffd, #d9f5e6);
  color: #174d3a;
}

.modal.expert-modal.rpk-dialog {
  max-width: 34rem;
}
.modal.expert-modal.rpk-options-modal { max-width: 37rem; }
.modal.expert-modal.expert-checkout-modal.rpk-dialog { max-width: 480px; }
.rpk-dialog h2:focus { outline: none; }
.rpk-dialog .modal-actions[hidden] { display: none; }
.rpk-dialog .rpk-back { display: inline-flex; align-items: center; gap: 0.45rem; }
.rpk-back svg { transform: rotate(180deg); }

@media (max-width: 760px) {
  .modal.expert-modal.expert-assistance-dialog.rpk-options-modal {
    align-self: flex-end;
    width: 100%;
    height: auto;
    max-width: none;
    max-height: 100dvh;
    border-radius: 18px 18px 0 0;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
  .modal.expert-modal.expert-assistance-dialog.rpk-options-modal.rpk-options-full-height {
    border-radius: 0;
  }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .modal.rpk-options-modal { animation: rpk-options-slide-up 180ms ease-out; }
  @keyframes rpk-options-slide-up {
    from { opacity: 0; transform: translateY(2rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 600px) {
  #pathway-decision-state-slot .quick-check-result-body { display: contents; }
  #pathway-decision-state-slot .quick-check-result-body > :not(h2) { grid-column: 1 / -1; }
  .rpk-result-action .pathway-start-button { width: 100%; }
  .modal.expert-modal.expert-assistance-dialog.rpk-dialog { max-width: none; }
  .rpk-option { padding: 0.85rem; }
  .rpk-option:not(.rpk-kit-card) { gap: 0.55rem; }
}
@media (max-width: 420px) {
  .rpk-kit-footer { display: grid; grid-template-columns: minmax(0, 1fr); }
}
