/* Focused checkout styling. Payment behaviour and package data remain in deposit.html. */
body.np-checkout-page {
  --checkout-ink: #102542;
  --checkout-copy: #53677d;
  --checkout-muted: #62758a;
  --checkout-line: #dce5ed;
  --checkout-wash: #f4f7fa;
  --checkout-green: #258447;
  background: var(--checkout-wash) !important;
  color: var(--checkout-ink) !important;
}

body.np-checkout-page header.np-header {
  position: relative !important;
  top: auto !important;
  border: 0 !important;
  border-bottom: 1px solid var(--checkout-line) !important;
  background: #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.np-checkout-page header.np-header .np-header-inner {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 800px !important;
  min-height: 74px !important;
  margin: 0 auto !important;
  padding: 10px 20px !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
}

body.np-checkout-page header.np-header .np-brand-logo {
  width: auto !important;
  height: 48px !important;
  max-width: min(68vw, 220px) !important;
}

.np-checkout-intro {
  padding: 28px 18px 18px;
  border-bottom: 1px solid #e8edf2;
  background: var(--checkout-wash);
}

.np-checkout-intro-inner,
.np-checkout-wrap {
  width: min(100%, 720px);
  margin: 0 auto;
}

.np-checkout-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.np-checkout-progress li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 0 0 10px;
  border-bottom: 2px solid #dfe6ec;
  color: #596c80;
  font-size: .76rem;
  font-weight: 650;
  line-height: 1.2;
}

.np-checkout-progress li > span:first-child {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5df;
  border-radius: 50%;
  background: #fff;
  color: #64758a;
  font-size: .68rem;
  font-weight: 750;
}

.np-checkout-progress li.is-complete {
  border-color: #b7d8c2;
  color: #466655;
}

.np-checkout-progress li.is-complete > span:first-child {
  border-color: #d7eadc;
  background: #eaf5ed;
  color: #267546;
}

.np-checkout-progress li[aria-current="step"] {
  border-color: var(--checkout-green);
  color: var(--checkout-ink);
  font-weight: 800;
}

.np-checkout-progress li[aria-current="step"] > span:first-child {
  border-color: var(--checkout-green);
  background: var(--checkout-green);
  color: #fff;
}

.np-checkout-title {
  margin-top: 24px;
}

.np-checkout-title h1 {
  margin: 0;
  color: var(--checkout-ink);
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.np-checkout-title p {
  margin: 7px 0 0;
  color: var(--checkout-copy);
  font-size: .94rem;
  line-height: 1.5;
}

.np-checkout-section {
  padding: 22px 18px 42px;
  background: var(--checkout-wash);
}

.np-checkout-card {
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--checkout-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 37, 66, .055);
}

.np-checkout-package-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.np-selected-package {
  padding: 0 0 22px;
  border-bottom: 1px solid var(--checkout-line);
}

.np-selected-label {
  margin: 0 0 6px;
  color: var(--checkout-muted);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .055em;
  line-height: 1.4;
  text-transform: uppercase;
}

.np-selected-package h2 {
  margin: 0;
  color: var(--checkout-ink);
  font-size: clamp(1.45rem, 4vw, 1.8rem);
  font-weight: 780;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.np-selected-package #pkgDesc {
  max-width: 62ch;
  margin: 9px 0 0;
  color: var(--checkout-copy);
  font-size: .92rem;
  line-height: 1.55;
}

.np-change-package {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #cbd7e1;
  border-radius: 7px;
  background: #fff;
  color: #234766 !important;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.np-change-package:hover {
  border-color: #9bb3c6;
  background: #f7fafc;
}

.np-preference-summary {
  margin-top: 20px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--checkout-line);
  background: transparent;
}

.np-preference-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.np-preference-summary h3,
.np-payment-choice > h3,
.np-next-steps h3 {
  margin: 0;
  color: var(--checkout-ink);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.35;
}

.np-preference-summary-head a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: #267546;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.np-preference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
  margin-top: 14px;
}

.np-preference-grid[hidden] {
  display: none !important;
}

.np-preference-grid > div {
  min-width: 0;
  padding: 0;
  background: transparent;
}

.np-preference-grid span {
  display: block;
  color: var(--checkout-muted);
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.np-preference-grid strong {
  display: block;
  margin-top: 3px;
  color: #293e55;
  font-size: .86rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.np-preference-missing {
  margin: 10px 0 0;
  color: var(--checkout-copy);
  font-size: .86rem;
  line-height: 1.5;
}

.np-preference-missing[hidden] {
  display: none !important;
}

.np-payment-choice {
  margin-top: 22px;
}

.np-payment-options {
  display: grid;
  margin: 13px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--checkout-line);
  border-radius: 12px;
  background: #fff;
}

.np-payment-options[hidden],
.np-payment-option[hidden] {
  display: none !important;
}

.np-payment-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 76px;
  padding: 17px 18px;
  cursor: pointer;
  transition: background-color .16s ease;
}

.np-payment-option + .np-payment-option {
  border-top: 1px solid var(--checkout-line);
}

.np-payment-option:hover {
  background: #f8fafb;
}

.np-payment-option.is-selected {
  background: #f1f7f3;
}

.np-payment-option > input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--checkout-green);
  cursor: pointer;
}

.np-payment-option > input[type="radio"]:focus-visible {
  outline: 3px solid rgba(37, 132, 71, .35);
  outline-offset: 3px;
}

.np-payment-option-content {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.np-payment-option-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.np-payment-option-title {
  color: var(--checkout-ink);
  font-size: .96rem;
  font-weight: 750;
  line-height: 1.35;
}

.np-payment-option-amount {
  flex: 0 0 auto;
  color: var(--checkout-ink);
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.np-payment-option-detail {
  color: var(--checkout-copy);
  font-size: .84rem;
  line-height: 1.5;
}

.np-payment-option-refund-note {
  color: var(--checkout-muted);
  font-size: .78rem;
  line-height: 1.45;
}

.np-terms-acceptance {
  margin: 16px 0 0;
  padding: 13px 14px;
  border: 1px solid #d8e6dc;
  border-radius: 9px;
  background: #f5faf6;
}

.np-terms-acceptance[hidden] {
  display: none !important;
}

.np-terms-label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #344c61;
  cursor: pointer;
  font-size: .82rem;
  line-height: 1.55;
}

.np-terms-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--checkout-green);
  cursor: pointer;
}

.np-terms-label input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(37, 132, 71, .35);
  outline-offset: 3px;
}

.np-terms-label a {
  color: #1d7040;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.np-terms-error {
  margin: 9px 0 0 30px;
  color: #a12d2d;
  font-size: .8rem;
  font-weight: 650;
  line-height: 1.45;
}

.np-terms-error[hidden] {
  display: none !important;
}

.np-klarna-checkout-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 3px 0 0;
  color: var(--checkout-copy);
  font-size: .82rem;
  line-height: 1.45;
}

.np-klarna-checkout-note[hidden] {
  display: none !important;
}

.np-checkout-page .np-klarna-checkout-note .np-klarna-wordmark {
  display: inline;
  min-width: 0;
  height: auto;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  color: #a81e52 !important;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.np-pay-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 12px 18px;
  border: 1px solid #237a42;
  border-radius: 8px;
  background: #258447 !important;
  box-shadow: none;
  color: #fff !important;
  cursor: pointer;
  font-size: .98rem;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, transform .12s ease;
}

.np-pay-button[hidden] {
  display: none !important;
}

.np-pay-button:hover {
  border-color: #1b6d38;
  background: #1f733c !important;
}

.np-pay-button:active {
  transform: scale(.99);
}

.np-pay-button:focus-visible {
  outline: 3px solid rgba(37, 132, 71, .3) !important;
  outline-offset: 3px !important;
}

.np-checkout-error.hidden {
  display: none !important;
}

.np-payment-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--checkout-muted);
  font-size: .78rem;
  line-height: 1.5;
  text-align: center;
}

.np-payment-note i {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-top: 1px;
  color: #537966;
}

.np-checkout-recovery,
.np-checkout-error {
  margin: 14px 0 0;
  padding: 11px 13px;
  border: 1px solid #e5d5a2;
  border-radius: 8px;
  background: #fffaf0;
  color: #66521c;
  font-size: .84rem;
  line-height: 1.5;
}

.np-checkout-recovery[hidden] {
  display: none !important;
}

.np-checkout-recovery strong {
  color: #4f3f16;
}

.np-checkout-error a {
  color: #214d70;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.np-next-steps {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--checkout-line);
}

.np-next-steps ol {
  display: grid;
  gap: 8px;
  margin: 11px 0 0;
  padding-left: 20px;
  color: var(--checkout-copy);
}

.np-next-steps li {
  padding-left: 3px;
  font-size: .85rem;
  line-height: 1.5;
}

.np-checkout-support {
  margin: 16px 0 0;
  color: var(--checkout-copy);
  font-size: .85rem;
  line-height: 1.5;
  text-align: center;
}

.np-checkout-support a {
  color: #245d3c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 639px) {
  body.np-checkout-page header.np-header .np-header-inner {
    min-height: 66px !important;
    padding: 8px 16px !important;
  }

  body.np-checkout-page header.np-header .np-brand-logo {
    height: 42px !important;
    max-width: min(68vw, 190px) !important;
  }

  .np-checkout-intro {
    padding: 20px 16px 15px;
  }

  .np-checkout-progress {
    gap: 8px;
  }

  .np-checkout-progress li {
    flex-direction: column;
    justify-content: flex-start;
    gap: 5px;
    padding-bottom: 8px;
    font-size: .68rem;
    text-align: center;
  }

  .np-checkout-title {
    margin-top: 19px;
  }

  .np-checkout-title p {
    font-size: .88rem;
  }

  .np-checkout-section {
    padding: 14px 12px 32px;
  }

  .np-checkout-card {
    padding: 19px 16px;
    border-radius: 11px;
    box-shadow: 0 4px 16px rgba(16, 37, 66, .045);
  }

  .np-preference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .np-payment-option {
    gap: 10px;
    padding: 15px 14px;
  }

  .np-payment-option-heading {
    align-items: flex-start;
    gap: 8px;
  }

  .np-payment-option-title,
  .np-payment-option-amount {
    font-size: .9rem;
  }
}

@media (max-width: 359px) {
  .np-checkout-progress li {
    font-size: .62rem;
  }

  .np-checkout-progress li > span:first-child {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .np-payment-option,
  .np-pay-button {
    transition: none;
  }
}
