:root {
  --fmp-navy: #071d3d;
  --fmp-navy-2: #0b2b59;
  --fmp-blue: #087cf0;
  --fmp-blue-bright: #1b9bff;
  --fmp-ink: #102846;
  --fmp-muted: #62758d;
  --fmp-line: #d9e7f4;
  --fmp-surface: #f4f8fc;
  --fmp-white: #fff;
  --fmp-danger: #b42318;
  --fmp-success: #087a53;
  --fmp-radius: 16px;
  --fmp-shadow: 0 14px 38px rgba(7, 29, 61, .10);
}

.fmp-auth-shell,
.fmp-account-page,
.fmp-dashboard {
  color: var(--fmp-ink);
  font-family: Carnas, Inter, "Segoe UI", Arial, sans-serif;
}

.fmp-auth-shell {
  width: min(920px, calc(100% - 24px));
  margin: 40px auto;
  padding: clamp(22px, 4vw, 42px);
  background: var(--fmp-white);
  border: 1px solid var(--fmp-line);
  border-radius: 24px;
  box-shadow: var(--fmp-shadow);
}

.fmp-auth-shell--compact { width: min(520px, calc(100% - 24px)); }
.fmp-auth-header { margin-bottom: 24px; }
.fmp-auth-header h1,
.fmp-section-header h2,
.fmp-account-page h2 { color: var(--fmp-navy); line-height: 1.16; margin: 6px 0 10px; }
.fmp-eyebrow { color: var(--fmp-blue); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.fmp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0;
  margin: 24px 0 30px;
  list-style: none;
}

.fmp-steps li { display: flex; align-items: center; gap: 9px; color: var(--fmp-muted); font-size: .9rem; font-weight: 700; }
.fmp-steps span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #e7eff8; color: var(--fmp-navy); }
.fmp-steps .is-active { color: var(--fmp-navy); }
.fmp-steps .is-active span,
.fmp-steps .is-complete span { color: #fff; background: linear-gradient(180deg, var(--fmp-blue-bright), var(--fmp-blue)); }

.fmp-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.fmp-form legend { display: block; width: 100%; margin-bottom: 20px; color: var(--fmp-navy); font-size: 1.25rem; font-weight: 800; }
.fmp-form label { display: grid; gap: 7px; align-content: start; color: var(--fmp-ink); font-size: .94rem; font-weight: 700; }
.fmp-form label small { color: var(--fmp-muted); font-weight: 500; }
.fmp-form input:not([type="checkbox"]):not([type="radio"]),
.fmp-form select,
.fmp-form textarea {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  color: var(--fmp-ink);
  background: var(--fmp-white);
  border: 1px solid #b8cbe0;
  border-radius: 10px;
  box-shadow: none;
  font: inherit;
  font-weight: 500;
}

.fmp-form textarea { resize: vertical; }
.fmp-form input:focus,
.fmp-form select:focus,
.fmp-form textarea:focus,
.fmp-button:focus-visible,
.fmp-choice-card:has(input:focus-visible) { outline: 3px solid rgba(8, 124, 240, .25); outline-offset: 2px; border-color: var(--fmp-blue); }
.fmp-form [aria-invalid="true"] { border-color: var(--fmp-danger) !important; }

.fmp-grid { display: grid; gap: 18px; margin-bottom: 24px; }
.fmp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fmp-span-2 { grid-column: 1 / -1; }
.fmp-inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.fmp-account-types { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fmp-choice-card { position: relative; display: grid !important; gap: 6px !important; padding: 22px; border: 2px solid var(--fmp-line); border-radius: var(--fmp-radius); cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.fmp-choice-card:hover { transform: translateY(-2px); border-color: #91bee9; box-shadow: 0 10px 24px rgba(7, 29, 61, .08); }
.fmp-choice-card:has(input:checked) { border-color: var(--fmp-blue); background: #f2f8ff; }
.fmp-choice-card input { position: absolute; top: 16px; right: 16px; }
.fmp-choice-card__title { color: var(--fmp-navy); font-size: 1.08rem; font-weight: 850; }
.fmp-choice-card > span:last-child { padding-right: 24px; color: var(--fmp-muted); font-weight: 500; }

.fmp-conditional { margin: 22px 0; padding: 20px; background: var(--fmp-surface); border-radius: var(--fmp-radius); }
.fmp-conditional h3 { margin-top: 0; color: var(--fmp-navy); }
.fmp-step-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 26px; }

.button.fmp-button,
.fmp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px !important;
  color: #fff !important;
  background: linear-gradient(180deg, var(--fmp-blue-bright), var(--fmp-blue)) !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 0 #0057aa, 0 9px 18px rgba(8, 124, 240, .2) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.button.fmp-button:hover,
.fmp-button:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #0057aa, 0 12px 22px rgba(8, 124, 240, .25) !important; }
.button.fmp-button--secondary { color: var(--fmp-navy) !important; background: #eaf2fa !important; box-shadow: 0 3px 0 #bfd1e3 !important; }
.button.fmp-button--danger { background: linear-gradient(180deg, #d8473d, var(--fmp-danger)) !important; box-shadow: 0 4px 0 #7b1710 !important; }

.fmp-password-wrap { position: relative; display: block; }
.fmp-password-wrap input { padding-right: 76px !important; }
.fmp-password-toggle { position: absolute; top: 50%; right: 7px; transform: translateY(-50%); color: var(--fmp-blue); background: transparent; border: 0; font-weight: 750; cursor: pointer; }
.fmp-password-meter { width: 100%; height: 8px; }

.fmp-consents { display: grid; gap: 14px; }
.fmp-consents label { grid-template-columns: auto 1fr; align-items: start; font-weight: 550; }
.fmp-consents input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--fmp-blue); }
.fmp-consents em { color: var(--fmp-muted); }

.fmp-notice { margin: 14px 0; padding: 13px 16px; border: 1px solid; border-radius: 10px; }
.fmp-notice--success { color: #075f42; background: #eafaf3; border-color: #9bd9bf; }
.fmp-notice--error { color: #8b1f17; background: #fff0ef; border-color: #f2b8b3; }
.fmp-notice--info { color: #0b4f8c; background: #eef7ff; border-color: #b8dafa; }

.fmp-section-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
.fmp-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.fmp-summary-card { display: grid; min-height: 112px; padding: 18px; color: var(--fmp-ink); background: linear-gradient(145deg, #fff, #f3f8fd); border: 1px solid var(--fmp-line); border-radius: var(--fmp-radius); box-shadow: 0 9px 22px rgba(7, 29, 61, .07); text-decoration: none; }
.fmp-summary-card strong { color: var(--fmp-blue); font-size: 2rem; line-height: 1; }
.fmp-summary-card span { align-self: end; color: var(--fmp-navy); font-weight: 750; }
.fmp-dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.fmp-panel { margin: 18px 0; padding: clamp(17px, 3vw, 26px); background: #fff; border: 1px solid var(--fmp-line); border-radius: var(--fmp-radius); box-shadow: 0 8px 24px rgba(7, 29, 61, .06); }
.fmp-panel > :first-child { margin-top: 0; }

.fmp-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--fmp-line); border-radius: 12px; }
.fmp-table { width: 100%; margin: 0 !important; border: 0 !important; border-collapse: collapse; }
.fmp-table th,
.fmp-table td { padding: 13px 14px; border-bottom: 1px solid var(--fmp-line); text-align: left; vertical-align: middle; }
.fmp-table th { color: var(--fmp-navy); background: var(--fmp-surface); font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; }
.fmp-table tr:last-child td { border-bottom: 0; }
.fmp-status { display: inline-block; padding: 5px 9px; color: #0a528e; background: #e8f4ff; border-radius: 999px; font-size: .8rem; font-weight: 750; white-space: nowrap; }
.fmp-price { color: var(--fmp-navy); font-size: 1.75rem; font-weight: 850; }
.fmp-price small { color: var(--fmp-muted); font-size: .8rem; }
.fmp-responsibility { padding: 13px; background: #eef6ff; border-left: 4px solid var(--fmp-blue); }

.fmp-notification-list,
.fmp-card-list { display: grid; gap: 10px; }
.fmp-notification { padding: 13px 14px; background: #f8fafc; border: 1px solid var(--fmp-line); border-radius: 10px; }
.fmp-notification.is-unread { background: #eef7ff; border-left: 4px solid var(--fmp-blue); }
.fmp-notification p { margin: 5px 0; }
.fmp-notification time { color: var(--fmp-muted); font-size: .78rem; }
.fmp-mini-card { display: flex; align-items: center; gap: 16px; padding: 15px; background: #fff; border: 1px solid var(--fmp-line); border-radius: 12px; }
.fmp-mini-card > :last-child { margin-left: auto; }
.fmp-empty { padding: 20px; color: var(--fmp-muted); background: var(--fmp-surface); border-radius: 10px; }

.fmp-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fmp-product-card { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--fmp-line); border-radius: 12px; }
.fmp-product-card img { width: 100%; height: auto; border-radius: 8px; }

.fmp-order-timeline ol { display: grid; gap: 0; padding: 0; list-style: none; }
.fmp-order-timeline li { position: relative; min-height: 44px; padding: 2px 0 18px 36px; color: var(--fmp-muted); }
.fmp-order-timeline li::before { content: ""; position: absolute; top: 17px; left: 10px; bottom: -6px; width: 2px; background: var(--fmp-line); }
.fmp-order-timeline li:last-child::before { display: none; }
.fmp-order-timeline li > span { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border: 3px solid #b9c9da; border-radius: 50%; }
.fmp-order-timeline .is-complete,
.fmp-order-timeline .is-current { color: var(--fmp-navy); font-weight: 750; }
.fmp-order-timeline .is-complete > span,
.fmp-order-timeline .is-current > span { background: var(--fmp-blue); border-color: var(--fmp-blue); box-shadow: 0 0 0 4px #d9ecff; }

.woocommerce-account .woocommerce-MyAccount-navigation { overflow: visible; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { padding: 10px; background: var(--fmp-navy); border-radius: 14px; }
.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 2px 0; list-style: none; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 9px 11px; color: #fff !important; border-radius: 8px; font-size: .9rem; text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover { color: #fff !important; background: var(--fmp-blue); }
.woocommerce-account .woocommerce-MyAccount-content { color: var(--fmp-ink); }
.woocommerce-account .woocommerce-MyAccount-content a:not(.button) { color: #066bcf; }

@media (max-width: 900px) {
  .fmp-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .fmp-dashboard-grid { grid-template-columns: 1fr; }
  .fmp-product-grid { grid-template-columns: repeat(2, 1fr); }
  .woocommerce-account .woocommerce-MyAccount-navigation { float: none; width: 100%; margin-bottom: 18px; }
  .woocommerce-account .woocommerce-MyAccount-content { float: none; width: 100%; }
  .woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x proximity; }
  .woocommerce-account .woocommerce-MyAccount-navigation li { flex: 0 0 auto; scroll-snap-align: start; }
}

@media (max-width: 640px) {
  .fmp-auth-shell { margin: 18px auto; border-radius: 16px; }
  .fmp-grid--2,
  .fmp-account-types,
  .fmp-product-grid { grid-template-columns: 1fr; }
  .fmp-span-2 { grid-column: auto; }
  .fmp-steps li { display: grid; justify-items: center; gap: 4px; font-size: .7rem; text-align: center; }
  .fmp-summary-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .fmp-summary-card { min-height: 96px; padding: 13px; }
  .fmp-section-header { align-items: flex-start; flex-direction: column; }
  .fmp-step-actions { justify-content: stretch; }
  .fmp-step-actions .fmp-button { flex: 1; }
  .fmp-mini-card { align-items: flex-start; flex-direction: column; }
  .fmp-mini-card > :last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fmp-choice-card,
  .fmp-button { transition: none !important; }
}

