:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f8;
  color: #17202a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

.page {
  min-height: 100vh;
  padding: 40px 20px;
}

.checkout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

.summary,
.payment-panel,
.result {
  background: #ffffff;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgb(23 32 42 / 8%);
}

.summary,
.payment-panel {
  padding: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #546371;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.08;
}

.description {
  margin: 0 0 24px;
  color: #52606d;
  line-height: 1.55;
}

dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 12px;
  border-top: 1px solid #e4e9ef;
}

dt {
  color: #6a7785;
}

dd {
  margin: 0;
  font-weight: 700;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #17202a;
  border-radius: 6px;
  background: #17202a;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
}

button.secondary {
  background: #ffffff;
  color: #17202a;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.message {
  min-height: 44px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #d8dee6;
  border-radius: 6px;
  background: #f8fafc;
  color: #344251;
}

.message[data-type="success"] {
  border-color: #91c5a9;
  background: #f0faf4;
  color: #17623b;
}

.message[data-type="error"] {
  border-color: #e0a0a0;
  background: #fff3f3;
  color: #9a2727;
}

#norbr-payment-container {
  min-height: 260px;
}

pre {
  overflow: auto;
  max-height: 280px;
  margin: 20px 0 0;
  padding: 16px;
  border-radius: 6px;
  background: #111827;
  color: #d1fae5;
  font-size: 12px;
}

.lastpass-simple-form {
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.lastpass-simple-form label {
  display: grid;
  gap: 6px;
  color: #17202a;
  font-weight: 700;
}

.lastpass-simple-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #aeb8c4;
  border-radius: 6px;
  background: #ffffff;
}

.lastpass-proxy-form {
  margin-bottom: 24px;
  padding: 20px;
  border: 2px solid #0b5cad;
  border-radius: 6px;
  background: #f5f9ff;
}

.lastpass-proxy-status {
  margin: 0;
  color: #52606d;
  font-size: 13px;
}

.norbr-original-form-debug {
  padding-top: 20px;
  border-top: 1px dashed #9aa6b2;
}

#lastpass-audit-panel {
  position: fixed;
  z-index: 2147483646;
  right: 12px;
  bottom: 12px;
  width: min(520px, calc(100vw - 24px));
  max-height: 46vh;
  overflow: auto;
  padding: 12px;
  border: 2px solid #b42318;
  border-radius: 6px;
  background: #ffffff;
  color: #17202a;
  box-shadow: 0 10px 28px rgb(0 0 0 / 20%);
  font-size: 12px;
}

#lastpass-audit-panel pre {
  max-height: none;
  margin-top: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.result-page {
  display: grid;
  place-items: center;
}

.result {
  width: min(560px, 100%);
  padding: 28px;
}

a {
  color: #0b5cad;
  font-weight: 700;
}

@media (max-width: 820px) {
  .page {
    padding: 20px 12px;
  }

  .checkout {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 26px;
  }
}
