.afwap-application,
.afwap-status-portal,
.afwap-account,
.afwap-mode-selector {
  --afwap-ink: #17211d;
  --afwap-muted: #647169;
  --afwap-line: #d8e0da;
  --afwap-accent: #176b4d;
  color: var(--afwap-ink);
}

.afwap-application {
  background: #fff;
  border: 1px solid var(--afwap-line);
  border-radius: 8px;
  margin: 24px auto;
  max-width: 940px;
  padding: clamp(20px, 4vw, 40px);
}
.afwap-application header { max-width: 680px; }
.afwap-eyebrow { color: var(--afwap-accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; margin: 0 0 6px; text-transform: uppercase; }
.afwap-application fieldset,
.afwap-address-form fieldset { border: 0; border-top: 1px solid var(--afwap-line); margin: 28px 0 0; padding: 26px 0 0; }
.afwap-application legend,
.afwap-address-form legend { font-size: 18px; font-weight: 700; padding: 0 10px 0 0; }
.afwap-grid { display: grid; gap: 18px; }
.afwap-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.afwap-span-2 { grid-column: 1 / -1; }
.afwap-application label > span,
.afwap-status-portal label > span,
.afwap-address-form label > span { display: block; font-weight: 650; margin-bottom: 6px; }
.afwap-application input:not([type="checkbox"]),
.afwap-application textarea,
.afwap-status-portal input,
.afwap-status-portal textarea,
.afwap-address-form input { box-sizing: border-box; width: 100%; }
.afwap-check { align-items: flex-start; display: flex !important; gap: 9px; margin: 22px 0; }
.afwap-check input { flex: 0 0 auto; margin-top: 4px; width: auto !important; }
.afwap-submission-confirmation { box-sizing: border-box; margin: 24px auto; max-width: 940px; padding: 18px 22px; }
.afwap-submission-confirmation p { margin: 0; }
.afwap-submission-confirmation p + p { margin-top: 12px; }

.afwap-document-input { align-items: end; background: #fff; border: 1px solid var(--afwap-line); border-radius: 6px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(180px, .45fr); margin-bottom: 14px; padding: 16px; }
.afwap-document-input__heading { border-bottom: 1px solid var(--afwap-line); grid-column: 1 / -1; padding-bottom: 12px; }
.afwap-document-input__heading strong { display: block; }
.afwap-document-input__heading small { color: var(--afwap-muted); display: block; margin-top: 4px; }
.afwap-document-input:not(.has-expiration) > label { grid-column: 1 / -1; }

.afwap-status-card,
.afwap-address-list article,
.afwap-assignment-list article { border: 1px solid var(--afwap-line); border-radius: 6px; margin: 12px 0; padding: 18px; }
.afwap-status-card > div,
.afwap-assignment-list article { align-items: center; display: flex; justify-content: space-between; }
.afwap-status-card form { border-top: 1px solid var(--afwap-line); display: grid; gap: 14px; margin-top: 18px; padding-top: 18px; }
.afwap-assignment-list small { color: var(--afwap-muted); display: block; }
.afwap-status { background: #edf1ee; border-radius: 999px; display: inline-block; font-size: 12px; font-weight: 750; padding: 5px 10px; text-transform: uppercase; }
.afwap-status--approved,
.afwap-status--active { background: #dff3e8; color: #126342; }
.afwap-status--submitted,
.afwap-status--more_info { background: #f8edcd; color: #775b0f; }
.afwap-status--rejected,
.afwap-status--suspended { background: #f9e2e0; color: #8b2c25; }

.afwap-context-indicator {
  align-items: center;
  background: #14271f;
  bottom: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  color: #fff;
  display: grid;
  grid-template-columns: auto 1fr;
  left: 14px;
  max-width: min(420px, calc(100vw - 28px));
  padding: 12px 16px;
  position: fixed;
  z-index: 9998;
}
.afwap-context-indicator span { color: #a9c3b5; font-size: 11px; grid-column: 1 / -1; text-transform: uppercase; }
.afwap-context-indicator strong { line-height: 1.2; }
.afwap-context-indicator small { color: #c6d6cd; display: block; grid-column: 1; }
.afwap-context-indicator a { color: #fff; font-size: 13px; grid-column: 2; grid-row: 2 / 4; margin-left: 24px; }

.afwap-cart-banner { align-items: center; background: #eef6f1; border: 1px solid #bcd8c8; border-left: 4px solid var(--afwap-accent); display: flex; gap: 12px; margin-bottom: 18px; padding: 14px 16px; }
.afwap-cart-banner small { color: var(--afwap-muted); display: block; }
.afwap-cart-banner a { margin-left: auto; }

.afwap-mode-page { background: #eff3f0; min-height: 100vh; }
.afwap-mode-selector { margin: 0 auto; max-width: 760px; padding: clamp(48px, 10vh, 120px) 20px; text-align: center; }
.afwap-mode-options { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; }
.afwap-mode-options button { background: #fff; border: 2px solid transparent; border-radius: 8px; cursor: pointer; min-height: 180px; padding: 24px; text-align: left; }
.afwap-mode-options button:hover,
.afwap-mode-options button:focus-visible { border-color: var(--afwap-accent); outline: 3px solid rgba(23,107,77,.18); }
.afwap-mode-options .dashicons { color: var(--afwap-accent); font-size: 28px; height: 32px; width: 32px; }
.afwap-mode-options strong,
.afwap-mode-options small { display: block; margin-top: 12px; }
.afwap-mode-options small { color: var(--afwap-muted); }

@media (max-width: 680px) {
  .afwap-grid--2,
  .afwap-mode-options,
  .afwap-document-input { grid-template-columns: 1fr; }
  .afwap-span-2 { grid-column: auto; }
  .afwap-context-indicator { bottom: 8px; left: 8px; max-width: calc(100vw - 16px); }
}

@media (prefers-reduced-motion: reduce) {
  .afwap-mode-options button { transition: none; }
}
