/* ==========================================================================
   Pass402 - Shopify-style Checkout (Spacious Layout)
   ========================================================================== */

:root {
  --pass402-bg: #ffffff;
  --pass402-bg-alt: #fafafa;
  --pass402-bg-sidebar: #f5f5f5;
  --pass402-border: #e5e5e5;
  --pass402-border-light: #ebebeb;
  --pass402-text: #333333;
  --pass402-text-secondary: #717171;
  --pass402-text-light: #999999;
  --pass402-accent: #1773b0;
  --pass402-accent-hover: #135e8c;
  --pass402-success: #2e7d32;
  --pass402-success-bg: #e8f5e9;
  --pass402-error: #c62828;
  --pass402-error-bg: #ffebee;
  --pass402-radius: 8px;
  --pass402-radius-lg: 10px;
  --pass402-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Reset */
.pass402-checkout *, .pass402-checkout *::before, .pass402-checkout *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for keyboard navigation */
.pass402-checkout *:focus-visible {
  outline: 2px solid var(--pass402-accent);
  outline-offset: 2px;
}

.pass402-btn:focus-visible {
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(23, 115, 176, 0.2);
}

/* ========== MAIN CONTAINER ========== */
.pass402-checkout {
  font-family: var(--pass402-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--pass402-text);
  background: var(--pass402-bg);
  width: 100%;
  max-width: 960px;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr 380px;
  border-radius: var(--pass402-radius-lg);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08), 0 0 1px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* ========== LEFT COLUMN - MAIN CONTENT ========== */
.pass402-main {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
}

/* Header / Breadcrumb */
.pass402-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 12px;
  color: var(--pass402-text-light);
}

.pass402-breadcrumb-item {
  color: var(--pass402-accent);
}

.pass402-breadcrumb-separator {
  color: var(--pass402-text-light);
}

.pass402-breadcrumb-current {
  color: var(--pass402-text);
  font-weight: 500;
}

/* Logo */
.pass402-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.pass402-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--pass402-text);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.pass402-logo-icon svg {
  width: 24px;
  height: 24px;
}

.pass402-logo-text {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.pass402-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Section */
.pass402-section {
  margin-bottom: 40px;
}

.pass402-section:last-child {
  margin-bottom: 0;
}

.pass402-section-small {
  margin-bottom: 16px;
}

.pass402-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pass402-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--pass402-text);
}

.pass402-section-subtitle {
  font-size: 13px;
  color: var(--pass402-text-secondary);
  margin-top: 4px;
}

/* Form Elements */
.pass402-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--pass402-text);
}

.pass402-optional {
  font-weight: 400;
  color: var(--pass402-text-light);
}

.pass402-required {
  color: var(--pass402-error);
  font-weight: 500;
}

.pass402-input {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid var(--pass402-border);
  border-radius: var(--pass402-radius);
  background: var(--pass402-bg);
  color: var(--pass402-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pass402-input:focus {
  outline: none;
  border-color: var(--pass402-accent);
  box-shadow: 0 0 0 3px rgba(23, 115, 176, 0.1);
}

.pass402-input::placeholder {
  color: var(--pass402-text-light);
}

.pass402-input-mono {
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  font-size: 13px;
}

.pass402-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23717171' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.pass402-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pass402-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--pass402-accent);
  cursor: pointer;
}

.pass402-checkbox-label {
  font-size: 13px;
  color: var(--pass402-text);
  cursor: pointer;
  user-select: none;
}

/* Customer Info Compact Layout */
.pass402-customer-info {
  margin-bottom: 24px;
}

.pass402-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.pass402-form-row:last-child {
  margin-bottom: 0;
}

.pass402-form-field {
  display: flex;
  flex-direction: column;
}

.pass402-form-field-full {
  grid-column: 1 / -1;
}

.pass402-checkbox-field {
  display: flex;
  align-items: flex-end;
  padding-bottom: 10px;
}

@media (max-width: 560px) {
  .pass402-form-row {
    grid-template-columns: 1fr;
  }

  .pass402-checkbox-field {
    padding-bottom: 0;
  }
}

.pass402-input-hint {
  margin-top: 4px;
  font-size: 11px;
  color: var(--pass402-text-light);
}

.pass402-label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pass402-label-icon {
  width: 14px;
  height: 14px;
  color: var(--pass402-text-secondary);
}

/* Contact Info */
.pass402-contact-info {
  padding: 20px 24px;
  background: var(--pass402-bg-alt);
  border: 1px solid var(--pass402-border);
  border-radius: var(--pass402-radius);
}

.pass402-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pass402-contact-label {
  font-size: 12px;
  color: var(--pass402-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.pass402-contact-value {
  font-size: 15px;
  font-weight: 500;
}

.pass402-contact-change {
  color: var(--pass402-accent);
  font-size: 13px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  margin: -4px -8px;
  border-radius: 4px;
  transition: background 0.15s;
}

.pass402-contact-change:hover {
  background: rgba(23, 115, 176, 0.08);
}

/* Payment Method Selection */
.pass402-payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pass402-payment-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--pass402-bg);
  border: 2px solid var(--pass402-border);
  border-radius: var(--pass402-radius);
  cursor: pointer;
  transition: all 0.15s;
}

.pass402-payment-option:hover {
  border-color: var(--pass402-text-light);
}

.pass402-payment-option.active {
  border-color: var(--pass402-accent);
  background: rgba(23, 115, 176, 0.03);
}

.pass402-payment-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--pass402-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pass402-payment-option.active .pass402-payment-radio {
  border-color: var(--pass402-accent);
}

.pass402-payment-option.active .pass402-payment-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--pass402-accent);
  border-radius: 50%;
}

.pass402-payment-icon {
  width: 48px;
  height: 32px;
  background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pass402-payment-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.pass402-payment-details {
  flex: 1;
}

.pass402-payment-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.pass402-payment-desc {
  font-size: 13px;
  color: var(--pass402-text-secondary);
}

/* Wallet Connection */
.pass402-wallet-section {
  margin-top: 24px;
  padding: 24px;
  background: var(--pass402-bg-alt);
  border: 1px solid var(--pass402-border);
  border-radius: var(--pass402-radius);
}

.pass402-wallet-connected {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--pass402-success-bg);
  border: 1px solid var(--pass402-success);
  border-radius: var(--pass402-radius);
  margin-bottom: 20px;
}

.pass402-wallet-connected svg {
  width: 20px;
  height: 20px;
  color: var(--pass402-success);
  flex-shrink: 0;
}

.pass402-wallet-address {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--pass402-success);
  font-family: 'SF Mono', Monaco, Consolas, monospace;
}

.pass402-wallet-disconnect {
  color: var(--pass402-text-secondary);
  font-size: 13px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s;
}

.pass402-wallet-disconnect:hover {
  background: rgba(0,0,0,0.05);
  color: var(--pass402-text);
}

/* Error Message */
.pass402-error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--pass402-error-bg);
  border: 1px solid var(--pass402-error);
  border-radius: var(--pass402-radius);
  margin-bottom: 20px;
}

.pass402-error svg {
  width: 20px;
  height: 20px;
  color: var(--pass402-error);
  flex-shrink: 0;
  margin-top: 1px;
}

.pass402-error-text {
  font-size: 14px;
  color: var(--pass402-error);
  line-height: 1.5;
}

/* Buttons */
.pass402-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 32px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--pass402-radius);
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
}

.pass402-btn-primary {
  background: var(--pass402-accent);
  color: white;
}

.pass402-btn-primary:hover:not(:disabled) {
  background: var(--pass402-accent-hover);
}

.pass402-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pass402-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: pass402-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes pass402-spin {
  to { transform: rotate(360deg); }
}

.pass402-btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: wait;
}

.pass402-btn-text {
  font-size: 14px;
}

/* Smooth transitions */
.pass402-btn {
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}

.pass402-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 115, 176, 0.3);
}

.pass402-btn:not(:disabled):active {
  transform: translateY(0);
}

.pass402-input {
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pass402-cart-item {
  transition: background-color 0.15s;
}

.pass402-discount-applied {
  animation: pass402-fadeIn 0.3s ease;
}

.pass402-wallet-connected {
  animation: pass402-fadeIn 0.3s ease;
}

.pass402-error {
  animation: pass402-shake 0.4s ease;
}

@keyframes pass402-fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pass402-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* Footer */
.pass402-main-footer {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--pass402-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.pass402-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.pass402-footer-link {
  font-size: 12px;
  color: var(--pass402-accent);
  text-decoration: none;
}

.pass402-footer-link:hover {
  text-decoration: underline;
}

.pass402-powered {
  font-size: 12px;
  color: var(--pass402-text-light);
  text-align: center;
}

/* ========== RIGHT COLUMN - ORDER SUMMARY ========== */
.pass402-sidebar {
  background: var(--pass402-bg-sidebar);
  border-left: 1px solid var(--pass402-border);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.pass402-sidebar-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pass402-border);
}

/* Cart Items */
.pass402-cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--pass402-border);
}

.pass402-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pass402-item-image {
  width: 64px;
  height: 64px;
  background: var(--pass402-bg);
  border: 1px solid var(--pass402-border);
  border-radius: var(--pass402-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.pass402-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--pass402-radius);
}

.pass402-item-placeholder {
  color: var(--pass402-text-light);
}

.pass402-item-placeholder svg {
  width: 24px;
  height: 24px;
  opacity: 0.4;
}

.pass402-item-qty-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: var(--pass402-text-secondary);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pass402-item-info {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.pass402-item-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.pass402-item-variant {
  font-size: 13px;
  color: var(--pass402-text-secondary);
  line-height: 1.5;
}

.pass402-item-price {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.pass402-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
}

.pass402-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--pass402-bg);
  border: 1px solid var(--pass402-border);
  border-radius: var(--pass402-radius);
  padding: 4px 8px;
}

.pass402-qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--pass402-text);
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.15s;
}

.pass402-qty-btn:hover {
  background: var(--pass402-border-light);
}

.pass402-qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

/* Summary Rows */
.pass402-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--pass402-border);
}

.pass402-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.pass402-summary-label {
  font-size: 14px;
  color: var(--pass402-text-secondary);
  text-align: left;
}

.pass402-summary-value {
  font-size: 14px;
  color: var(--pass402-text);
  font-weight: 500;
  text-align: right;
}

.pass402-summary-discount .pass402-summary-value {
  color: var(--pass402-success);
}

.pass402-summary-savings .pass402-summary-value {
  color: var(--pass402-success);
  font-weight: 600;
}

/* Discount Code Section */
.pass402-discount-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pass402-border);
}

.pass402-discount-input-row {
  display: flex;
  gap: 8px;
}

.pass402-discount-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--pass402-border);
  border-radius: var(--pass402-radius);
  font-size: 14px;
  font-family: var(--pass402-font);
  background: var(--pass402-bg);
  transition: border-color 0.2s;
}

.pass402-discount-input:focus {
  outline: none;
  border-color: var(--pass402-accent);
}

.pass402-discount-input::placeholder {
  color: var(--pass402-text-light);
}

.pass402-discount-btn {
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--pass402-border);
  border-radius: var(--pass402-radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--pass402-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.pass402-discount-btn:hover {
  background: var(--pass402-bg-alt);
  border-color: var(--pass402-text-secondary);
  color: var(--pass402-text);
}

.pass402-discount-error {
  margin-top: 8px;
  font-size: 12px;
  color: var(--pass402-error);
}

.pass402-discount-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--pass402-success-bg);
  border-radius: var(--pass402-radius);
}

.pass402-discount-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--pass402-success);
}

.pass402-discount-tag svg {
  width: 14px;
  height: 14px;
}

.pass402-discount-remove {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--pass402-text-secondary);
  cursor: pointer;
  text-decoration: underline;
}

.pass402-discount-remove:hover {
  color: var(--pass402-text);
}

/* Total */
.pass402-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 20px;
}

.pass402-total-label {
  font-size: 18px;
  font-weight: 600;
}

.pass402-total-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.pass402-total-currency {
  font-size: 14px;
  color: var(--pass402-text-secondary);
  font-weight: 500;
  margin-left: 6px;
}

/* Invoice Info */
.pass402-invoice-info {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--pass402-border);
}

.pass402-invoice-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--pass402-text-light);
  margin-bottom: 8px;
}

.pass402-invoice-row:last-child {
  margin-bottom: 0;
}

/* ========== RECEIPT VIEW ========== */
.pass402-checkout.pass402-receipt-view {
  display: flex;
  flex-direction: column;
  max-width: 560px;
  min-height: auto;
}

.pass402-receipt-header {
  padding: 48px 40px;
  background: var(--pass402-success-bg);
  text-align: center;
}

.pass402-receipt-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--pass402-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pass402-receipt-icon svg {
  width: 36px;
  height: 36px;
  color: white;
}

.pass402-receipt-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--pass402-text);
}

.pass402-receipt-subtitle {
  font-size: 15px;
  color: var(--pass402-text-secondary);
}

.pass402-receipt-body {
  padding: 40px;
}

.pass402-receipt-merchant {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--pass402-border);
}

.pass402-receipt-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--pass402-bg-alt);
  border-radius: var(--pass402-radius);
}

.pass402-receipt-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pass402-receipt-meta-label {
  font-size: 12px;
  color: var(--pass402-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pass402-receipt-meta-value {
  font-size: 14px;
  font-weight: 500;
}

.pass402-receipt-items {
  margin-bottom: 24px;
}

.pass402-receipt-item {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--pass402-border-light);
}

.pass402-receipt-item:last-child {
  border-bottom: none;
}

.pass402-receipt-item-name {
  font-weight: 500;
}

.pass402-receipt-item-qty {
  color: var(--pass402-text-secondary);
  font-size: 13px;
}

.pass402-receipt-totals {
  background: var(--pass402-bg-alt);
  border-radius: var(--pass402-radius);
  padding: 20px;
  margin-bottom: 24px;
}

.pass402-receipt-totals .pass402-summary-row {
  padding: 8px 0;
}

.pass402-receipt-totals .pass402-total-row {
  border-top: 1px solid var(--pass402-border);
  margin-top: 12px;
  padding-top: 16px;
}

.pass402-receipt-tx-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--pass402-bg);
  border: 1px solid var(--pass402-border);
  border-radius: var(--pass402-radius);
  color: var(--pass402-accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}

.pass402-receipt-tx-link:hover {
  background: var(--pass402-bg-alt);
  border-color: var(--pass402-accent);
}

.pass402-receipt-tx-link svg {
  width: 18px;
  height: 18px;
}

/* Receipt - Seller Info */
.pass402-receipt-seller {
  text-align: center;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--pass402-border);
}

.pass402-receipt-seller-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.pass402-receipt-seller-address,
.pass402-receipt-seller-tax {
  font-size: 13px;
  color: var(--pass402-text-secondary);
  line-height: 1.5;
}

/* Receipt - Transaction Details */
.pass402-receipt-details {
  background: var(--pass402-bg-alt);
  border-radius: var(--pass402-radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.pass402-receipt-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
}

.pass402-receipt-detail:not(:last-child) {
  border-bottom: 1px solid var(--pass402-border-light);
}

.pass402-receipt-detail-label {
  color: var(--pass402-text-secondary);
}

.pass402-receipt-detail-value {
  font-weight: 500;
  text-align: right;
}

.pass402-mono {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 12px;
}

/* Receipt - Section */
.pass402-receipt-section {
  margin-bottom: 24px;
}

.pass402-receipt-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--pass402-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* Receipt - Items (updated) */
.pass402-receipt-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--pass402-border-light);
}

.pass402-receipt-item:last-child {
  border-bottom: none;
}

.pass402-receipt-item-info {
  flex: 1;
}

.pass402-receipt-item-name {
  font-weight: 500;
  margin-bottom: 2px;
}

.pass402-receipt-item-desc {
  font-size: 13px;
  color: var(--pass402-text-secondary);
}

.pass402-receipt-item-meta {
  text-align: right;
}

.pass402-receipt-item-qty {
  display: block;
  font-size: 12px;
  color: var(--pass402-text-secondary);
  margin-bottom: 2px;
}

.pass402-receipt-item-total {
  font-weight: 500;
}

/* Receipt - Totals (updated) */
.pass402-receipt-totals {
  background: var(--pass402-bg-alt);
  border-radius: var(--pass402-radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.pass402-receipt-totals-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.pass402-receipt-discount span:last-child {
  color: var(--pass402-success);
}

.pass402-receipt-totals-final {
  border-top: 1px solid var(--pass402-border);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 16px;
  font-weight: 600;
}

/* Receipt - Actions */
.pass402-receipt-actions {
  display: flex;
  gap: 12px;
}

.pass402-receipt-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--pass402-bg);
  border: 1px solid var(--pass402-border);
  border-radius: var(--pass402-radius);
  color: var(--pass402-accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.pass402-receipt-link:hover {
  background: var(--pass402-bg-alt);
  border-color: var(--pass402-accent);
}

.pass402-receipt-link svg {
  width: 18px;
  height: 18px;
}

/* License Keys Section */
.pass402-license-keys {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #22c55e;
  border-radius: 12px;
  padding: 24px;
  margin: 0 40px 24px;
}

.pass402-license-keys-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.pass402-license-keys-header svg {
  width: 24px;
  height: 24px;
  color: #22c55e;
}

.pass402-license-keys-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #166534;
  margin: 0;
}

.pass402-license-keys-note {
  font-size: 13px;
  color: #15803d;
  margin-bottom: 16px;
}

.pass402-license-keys-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pass402-license-key {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 16px;
}

.pass402-license-key-label {
  font-size: 12px;
  font-weight: 600;
  color: #166534;
  min-width: 50px;
}

.pass402-license-key-value {
  flex: 1;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 14px;
  font-weight: 600;
  color: #166534;
  letter-spacing: 0.5px;
}

.pass402-license-key-copy {
  padding: 6px 12px;
  background: #22c55e;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.pass402-license-key-copy:hover {
  background: #16a34a;
}

/* Receipt - Footer */
.pass402-receipt-footer {
  padding: 20px 40px;
  background: var(--pass402-bg-alt);
  border-top: 1px solid var(--pass402-border);
  text-align: center;
  font-size: 13px;
  color: var(--pass402-text-secondary);
}

.pass402-receipt-footer-legal {
  margin-top: 4px;
  font-size: 11px;
  color: var(--pass402-text-light);
}

/* NFT Receipt (Apocha) */
.pass402-nft-receipt {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--pass402-border);
}

.pass402-nft-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
  border: none;
  border-radius: var(--pass402-radius);
  color: white;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.pass402-nft-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.pass402-nft-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.pass402-nft-btn svg {
  width: 18px;
  height: 18px;
}

.pass402-nft-desc {
  text-align: center;
  font-size: 12px;
  color: var(--pass402-text-light);
  margin-top: 10px;
}

.pass402-nft-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--pass402-success-bg);
  border: 1px solid var(--pass402-success);
  border-radius: var(--pass402-radius);
  color: var(--pass402-success);
  font-size: 14px;
  font-weight: 500;
}

.pass402-nft-success svg {
  width: 18px;
  height: 18px;
}

.pass402-nft-link {
  margin-left: auto;
  color: var(--pass402-accent);
  text-decoration: none;
  font-weight: 500;
}

.pass402-nft-link:hover {
  text-decoration: underline;
}

/* Print styles */
@media print {
  .pass402-checkout {
    box-shadow: none;
    border: none;
  }

  .pass402-receipt-actions {
    display: none;
  }

  .pass402-receipt-header {
    background: white !important;
    -webkit-print-color-adjust: exact;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .pass402-checkout {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .pass402-sidebar {
    border-left: none;
    border-top: 1px solid var(--pass402-border);
    order: -1;
  }

  .pass402-main {
    padding: 32px;
  }

  .pass402-sidebar {
    padding: 32px;
  }
}

@media (max-width: 560px) {
  .pass402-checkout {
    border-radius: 0;
    box-shadow: none;
  }

  .pass402-main {
    padding: 24px 16px;
  }

  .pass402-sidebar {
    padding: 24px 16px;
  }

  .pass402-receipt-header {
    padding: 32px 16px;
  }

  .pass402-receipt-body {
    padding: 16px;
  }

  .pass402-receipt-meta {
    grid-template-columns: 1fr;
  }

  /* Better touch targets */
  .pass402-btn {
    padding: 16px 24px;
    font-size: 16px;
    min-height: 52px;
  }

  .pass402-input {
    padding: 16px;
    font-size: 16px; /* Prevents iOS zoom */
    min-height: 52px;
  }

  .pass402-discount-input {
    font-size: 16px;
    padding: 14px 12px;
  }

  .pass402-discount-btn {
    padding: 14px 16px;
    font-size: 14px;
  }

  /* Stack receipt actions on mobile */
  .pass402-receipt-actions {
    flex-direction: column;
  }

  .pass402-receipt-link {
    width: 100%;
  }

  /* Logo smaller on mobile */
  .pass402-logo {
    margin-bottom: 24px;
  }

  .pass402-logo-icon {
    width: 32px;
    height: 32px;
  }

  .pass402-logo-text {
    font-size: 16px;
  }

  /* Receipt item layout */
  .pass402-receipt-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pass402-receipt-item-meta {
    width: 100%;
    justify-content: space-between;
  }
}

/* Demo Container */
.demo-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
