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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.checkout-shell {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  min-height: 100vh;
  overflow: hidden;
  padding: 48px;
  position: relative;
}

.checkout-shell::before {
  background:
    linear-gradient(135deg, rgba(52, 122, 103, 0.2), rgba(42, 69, 108, 0.08)),
    url("data:image/svg+xml,%3Csvg width='900' height='900' viewBox='0 0 900 900' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2391a69d' stroke-opacity='.34'%3E%3Cpath d='M0 122c136 49 265 49 388 0s252-49 388 0 259 49 388 0'/%3E%3Cpath d='M0 244c136 49 265 49 388 0s252-49 388 0 259 49 388 0'/%3E%3Cpath d='M0 366c136 49 265 49 388 0s252-49 388 0 259 49 388 0'/%3E%3Cpath d='M0 488c136 49 265 49 388 0s252-49 388 0 259 49 388 0'/%3E%3Cpath d='M0 610c136 49 265 49 388 0s252-49 388 0 259 49 388 0'/%3E%3Cpath d='M0 732c136 49 265 49 388 0s252-49 388 0 259 49 388 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  content: "";
  inset: 0;
  opacity: 0.65;
  position: absolute;
  z-index: -1;
}

.checkout-shell.single {
  grid-template-columns: minmax(280px, 460px);
  justify-content: center;
}

.hero {
  display: grid;
  gap: 42px;
  max-width: 720px;
}

.brand-row {
  align-items: center;
  display: flex;
  font-size: 15px;
  font-weight: 800;
  gap: 10px;
}

.brand-mark {
  align-items: center;
  background: #17211f;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.hero-copy {
  display: grid;
  gap: 16px;
}

.status-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
}

.status-grid div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(121, 139, 132, 0.34);
  border-radius: 8px;
  padding: 18px;
}

.status-grid span {
  color: #5e6d68;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.status-grid strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.panel {
  background: #ffffff;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(34, 42, 39, 0.12);
  padding: 30px;
  width: 100%;
}

.eyebrow {
  color: #347a67;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  margin: 0;
  max-width: 760px;
}

h2 {
  font-size: 28px;
  line-height: 1.12;
  margin: 0;
}

.copy {
  color: #53635e;
  font-size: 19px;
  line-height: 1.55;
  margin: 0;
  max-width: 640px;
}

.panel-header {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.panel-header p:last-child {
  color: #5d6965;
  line-height: 1.55;
  margin: 0;
}

form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  font-size: 14px;
  font-weight: 700;
}

input,
.stripe-field {
  border: 1px solid #bfc8c3;
  border-radius: 6px;
  font: inherit;
  min-height: 50px;
  padding: 14px;
}

input:focus,
.stripe-field.focused {
  border-color: #347a67;
  box-shadow: 0 0 0 4px rgba(52, 122, 103, 0.14);
  outline: 0;
}

.stripe-field {
  align-items: center;
  display: flex;
  position: relative;
  width: 100%;
}

.stripe-field.invalid {
  border-color: #b44747;
}

.stripe-field.ready .field-placeholder {
  display: none;
}

.stripe-field .__PrivateStripeElement,
.stripe-field iframe {
  width: 100% !important;
}

.field-placeholder {
  color: #8a9691;
  pointer-events: none;
}

.card-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

button,
.button-link {
  align-items: center;
  background: #17211f;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  gap: 10px;
  justify-content: space-between;
  min-height: 50px;
  padding: 10px 16px;
  text-decoration: none;
}

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

.message {
  color: #58635f;
  line-height: 1.45;
  min-height: 22px;
  margin: 2px 0 0;
}

.assurance-list {
  border-top: 1px solid #e2e6e2;
  color: #44534f;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 24px 0 0;
  padding: 22px 0 0;
}

.assurance-list li {
  align-items: center;
  display: flex;
  gap: 10px;
}

.assurance-list span {
  color: #347a67;
  font-weight: 900;
}

.success-state {
  background: #eaf8f0;
  border: 1px solid #a8d8c1;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 22px;
  text-align: left;
}

.success-state[hidden] {
  display: none;
}

.success-state h2,
.success-state p {
  margin: 0;
}

.success-state h2 {
  font-size: 30px;
}

.success-state p:last-child {
  color: #4f625b;
  line-height: 1.5;
}

.success-icon {
  align-items: center;
  background: #24775c;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 22px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

@media (max-width: 860px) {
  .checkout-shell {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .hero {
    gap: 28px;
  }

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

@media (max-width: 520px) {
  .checkout-shell {
    padding: 18px;
  }

  .panel {
    padding: 22px;
  }

  h1 {
    font-size: 40px;
  }
}
