:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --text: #0F172A;
  --muted: #475569;
  --line: #dbe1ea;
  --brand: #111827;
  --brand-2: #0f172a;
  --step-active: #FFDE21;
  --danger: #b91c1c;
  --success: #166534;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background: #ffffff;
}
.checkout-page {
  min-height: 100vh;
}
.checkout-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0px 80px 0px;
}
.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0px 80px 0px;
}
.page-shell--transaction {
  width: min(1600px, calc(100% - 32px));
}
.hero {
  display: none;
}
.hero--compact h1 {
  font-size: clamp(32px, 4vw, 52px);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
}
.subcopy {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 40px;
}
.hero-card, .card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 24px;
}
.invoice-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
.invoice-timer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 24px 28px;
}
.invoice-timer-label {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.invoice-timer-value {
  margin: 10px 0 8px;
  font-size: 34px;
  font-weight: 700;
  color: var(--text);
}
.invoice-timer-help {
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}
.hero-card, .checkout-form, .summary-card, .orders-card {
  padding: 28px;
}
.hero-stat-label {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-stat-value {
  margin: 10px 0 8px;
  font-size: 34px;
  font-weight: 700;
}
.hero-stat-help {
  color: var(--muted);
  line-height: 1.5;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: start;
}
.invoice-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.invoice-primary {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 20px;
  margin-bottom: 28px;
}
.invoice-primary__meta,
.invoice-primary__va-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 24px;
}
.invoice-primary__label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.invoice-primary__invoice {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  word-break: break-word;
}
.invoice-primary__va-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.invoice-primary__va-number {
  display: block;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
  word-break: break-word;
}
.invoice-primary__help {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.invoice-copy-button {
  flex: 0 0 auto;
  min-width: 112px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
}
.invoice-copy-feedback {
  margin: 10px 0 0;
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
}
.invoice-detail-list {
  gap: 16px;
}
.invoice-instructions-block h3,
.invoice-important-notes h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
}
.instruction-list--numbered {
  margin: 0;
  padding-left: 24px;
  color: var(--text);
}
.instruction-list--numbered li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.instruction-list--numbered li::marker {
  font-weight: 700;
}
.instruction-list--bulleted {
  margin: 0;
  padding-left: 22px;
  color: var(--text);
}
.instruction-list--bulleted li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.invoice-important-notes {
  margin-top: 24px;
}
.invoice-instruction-divider {
  height: 1px;
  background: var(--line);
  margin: 28px 0;
}
.checkout-main {
  padding: 36px;
  background: #ffffff;
}
.checkout-sidebar {
  padding: 36px;
  background: #f5f6f8;
  border-left: 1px solid var(--line);
}
.checkout-section,
.summary-panel {
  max-width: 560px;
}
.stepbar {
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 10px 2px 18px;
  width: min(720px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.step span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e5e7eb;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}
.step strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.step-connector {
  height: 1px;
  border-bottom: 2px dotted #cbd5e1;
  transform: translateY(-1px);
}
.step.is-current span,
.step.is-done span {
  background: var(--brand);
  color: #fff;
}
.step.is-current strong {
  color: var(--step-active);
  font-weight: 600;
}
.step.is-done strong {
  color: var(--muted);
}
.step.is-done span {
  background: #22c55e;
}
.step.is-current span {
  background: #ffffff;
  color: var(--step-active);
  border: 1px solid rgba(255, 222, 33, 0.9);
}
.section-header h2 {
  margin-bottom: 6px;
  font-size: 31px;
  font-weight: 700;
}
.section-header p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.section-header--tight h2 {
  font-size: 32px;
}
.checkout-subsection {
  margin-top: 28px;
}
.checkout-subsection h3,
.payment-block h3 {
  margin: 0 0 16px;
  font-size: 20px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field {
  display: grid;
  gap: 6px;
}
.field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.field-full {
  grid-column: 1 / -1;
}
.field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 14px;
}
.field input::placeholder {
  color: #9ca3af;
  font-family: "Outfit", sans-serif;
}
.field input.is-locked {
  background: #f9fafb;
  color: var(--text);
  font-weight: 600;
}
.methods {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}
.method {
  display: block;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}
.method--interactive {
  cursor: pointer;
}
.method input {
  margin-right: 10px;
}
.method-title {
  font-weight: 700;
  font-size: 16px;
}
.method-inline-meta {
  margin-left: 10px;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
}
.method-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.order-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.order-line span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.summary-totals {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}
.summary-row--grand {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}
.checkout-secondary-action {
  margin-bottom: 12px;
}
.payment-block {
  margin-bottom: 22px;
}
.primary-button {
  width: 100%;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  padding: 15px 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 500;
}
.primary-button.is-loading,
.primary-button:disabled {
  cursor: wait;
  opacity: 0.92;
}
.button-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.button-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  animation: checkout-spin 0.8s linear infinite;
}
.checkout-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(2px);
}
.checkout-loading-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  padding: 28px 24px;
  text-align: center;
}
.checkout-loading-card strong {
  display: block;
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--text);
}
.checkout-loading-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.checkout-loading-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  border-radius: 999px;
  border: 3px solid rgba(15, 23, 42, 0.12);
  border-top-color: var(--brand);
  animation: checkout-spin 0.8s linear infinite;
}
@keyframes checkout-spin {
  to {
    transform: rotate(360deg);
  }
}
.primary-button--link,
.secondary-button--link {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}
.secondary-button {
  width: auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  font-size: 16px;
  padding: 15px 18px;
  font-weight: 500;
}
.secondary-button--full {
  width: 100%;
  margin-bottom: 12px;
  font-weight: 500;
}
.invoice-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  font-weight: 500;
}
.invoice-actions form {
  margin: 0;
  font-weight: 500;
}
.invoice-actions .secondary-button--full {
  margin-bottom: 0;
  font-weight: 500;
}
.result-box {
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 16px;
  line-height: 1.6;
}
.result-box.success {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: var(--success);
}
.result-box.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
}
.orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.orders-card {
  margin-top: 26px;
  overflow-x: auto;
}
.orders-card--standalone {
  margin-top: 0;
}
.orders-title {
  margin-bottom: 8px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
}
.orders-toplink {
  display: flex;
  align-items: flex-start;
}
.orders-toolbar--transaction {
  margin-top: 12px;
  margin-bottom: 8px;
}
.product-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.product-admin-grid {
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}
.product-admin-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  background: #fff;
}
.product-form {
  margin-top: 20px;
}
.product-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
}
.product-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.product-form-button {
  width: auto;
  min-width: 180px;
}
.product-table__meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  white-space: normal;
}
.product-table__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.product-table__actions form {
  margin: 0;
}
.admin-gate {
  padding: 8px 0 0;
}
.admin-gate__content {
  max-width: 460px;
}
.admin-gate__content h3 {
  margin: 0 0 10px;
  font-size: 24px;
}
.admin-gate__content p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}
.admin-gate__form {
  display: grid;
  gap: 12px;
}
.admin-gate__form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
}
.admin-gate__button {
  max-width: 240px;
}
.orders-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.orders-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.orders-search__field {
  position: relative;
  width: min(360px, 100%);
}
.orders-search input {
  width: 100%;
  min-width: 260px;
  padding: 13px 14px;
  padding-right: 98px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
}
.orders-search__submit {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
}
.orders-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.orders-bulkbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  margin: 16px 0 8px;
}
.orders-bulkbar__check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  margin-right: auto;
  line-height: 1.4;
}
.orders-bulkbar__check input {
  width: 16px;
  height: 16px;
}
.orders-toolbar__button {
  min-width: 120px;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  padding: 13px 16px;
}
.orders-toolbar__button--danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff5f5;
}
.orders-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table.orders-table {
  min-width: 1180px;
}
table.orders-table th,
table.orders-table td {
  white-space: nowrap;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  min-width: 760px;
}
th, td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.status-pill--paid {
  background: #dcfce7;
  color: #166534;
}
.status-pill--expired,
.status-pill--failed {
  background: #fee2e2;
  color: #991b1b;
}
.detail-list {
  display: grid;
  gap: 14px;
}
.detail-list--spacious {
  margin-top: 24px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.detail-row span {
  color: var(--muted);
}
.detail-row strong {
  text-align: right;
}
.instruction-list {
  margin: 0 0 20px 18px;
  padding: 0;
  color: var(--muted);
  line-height: 1.7;
}
.state-card,
.thankyou-card,
.invoice-card {
  padding: 32px;
}
.thankyou-actions {
  margin-top: 28px;
}
.thankyou-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 5px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.thankyou-status-pill--paid {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border-color: #86efac;
  color: #166534;
}
.thankyou-status-pill--pending {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #fcd34d;
  color: #92400e;
}
.thankyou-status-pill--danger {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border-color: #fca5a5;
  color: #b91c1c;
}
@media (max-width: 1100px) {
  .checkout-page {
    padding: 40px 0 48px 0;
  }
  .checkout-shell,
  .page-shell,
  .page-shell--narrow {
    width: min(100%, calc(100% - 24px));
  }
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  }
  .checkout-main,
  .checkout-sidebar {
    padding: 28px;
  }
  .section-header--tight h2,
  .section-header h2 {
    font-size: 28px;
  }
}
@media (max-width: 920px) {
  .checkout-page {
    padding: 24px 0 40px 0;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .invoice-header {
    grid-template-columns: 1fr;
  }
  .invoice-primary {
    grid-template-columns: 1fr;
  }
  .checkout-sidebar {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .checkout-section,
  .summary-panel {
    max-width: 100%;
  }
  .orders-card {
    margin-top: 20px;
  }
  .product-admin-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 960px) {
  .stepbar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    gap: 8px;
    padding-bottom: 14px;
  }
  .step-connector {
    width: 26px;
    flex: 0 0 26px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .detail-row {
    flex-direction: column;
  }
  .detail-row strong {
    text-align: left;
  }
}
@media (max-width: 640px) {
  .checkout-page {
    padding: 16px 0 32px 0;
  }
  .checkout-shell,
  .page-shell,
  .page-shell--narrow {
    width: 100%;
  }

	.checkout-shell,
	.page-shell {
    padding: 30px 20px 30px 20px;
  }
	
  .checkout-main,
  .checkout-sidebar,
  .invoice-timer-card,
  .invoice-card,
  .thankyou-card,
  .state-card,
  .orders-card {
    padding: 20px;
  }
  .stepbar {
    justify-content: center;
    width: 100%;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }
  .step {
    gap: 8px;
    flex: 0 0 auto;
  }
  .step strong {
    font-size: 13px;
    white-space: nowrap;
  }
  .step span {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
  .step-connector {
    width: 18px;
    flex-basis: 18px;
  }
  .invoice-primary__meta,
  .invoice-primary__va-card {
    padding: 18px;
  }
  .invoice-primary__invoice {
    font-size: 22px;
  }
  .invoice-primary__va-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .invoice-primary__va-number {
    font-size: 28px;
  }
  .invoice-copy-button {
    width: 100%;
  }
  .section-header--tight h2,
  .section-header h2 {
    font-size: 22px;
  }
  .section-header p,
  .subcopy {
    font-size: 14px;
  }
  .checkout-subsection {
    margin-top: 22px;
  }
  .checkout-subsection h3,
  .payment-block h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  .orders-toolbar,
  .orders-search,
  .orders-toolbar__actions,
  .orders-bulkbar,
  .product-top-actions,
  .product-form-actions {
    width: 100%;
  }
  .orders-search__field,
  .orders-search input,
  .orders-toolbar__button {
    width: 100%;
    min-width: 0;
  }
  .orders-search__submit {
    right: 6px;
    padding: 10px 12px;
  }
  .orders-bulkbar {
    margin-top: 12px;
    margin-bottom: 8px;
    align-items: stretch;
  }
  .product-form-button {
    width: 100%;
    min-width: 0;
  }
  .orders-bulkbar__check {
    margin-right: 0;
  }
  .field input {
    padding: 12px 13px;
    font-family: "Outfit", sans-serif;
    font-size: 14px;
  }
  .method {
    padding: 12px 14px;
  }
  .method-title {
    font-size: 14px;
    line-height: 1.35;
  }
  .order-line,
  .summary-row,
  .summary-row--grand {
    gap: 10px;
  }
  .order-line {
    flex-direction: column;
  }
  .primary-button,
  .secondary-button {
    padding: 14px 16px;
  }
  .invoice-actions {
    grid-template-columns: 1fr;
  }
  table {
    min-width: 620px;
  }
}
