* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #2d3748;
  background: #fafafa;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 16px;
}

.header {
  text-align: center;
  margin-bottom: 32px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.swish-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}

.header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1a202c;
}

.subtitle {
  color: #718096;
  font-size: 15px;
}

.card {
  background: #fff;
  border: 1px solid #e8e4f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.card h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #2d3748;
}

/* Products */
.products {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid #e8e4f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.product-item:hover {
  border-color: #b8b0d8;
  background: #faf9ff;
}

.product-item.selected {
  border-color: #8b7fc7;
  background: #f5f3ff;
}

.product-icon {
  font-size: 28px;
  width: 44px;
  text-align: center;
}

.product-info {
  flex: 1;
}

.product-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.product-info p {
  font-size: 13px;
  color: #718096;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: #8b7fc7;
}

/* Custom amount */
.custom-amount {
  display: flex;
  gap: 10px;
  align-items: center;
}

.input-group {
  flex: 1;
  position: relative;
}

.input-group input {
  padding: 10px 50px 10px 14px;
  font-size: 14px;
  border: 1px solid #e8e4f0;
  border-radius: 8px;
  width: 100%;
}

.input-group input:focus {
  outline: none;
  border-color: #8b7fc7;
  box-shadow: 0 0 0 3px rgba(139,127,199,0.1);
}

.input-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
  font-size: 13px;
  font-weight: 500;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #8b7fc7, #7c6fb8);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139,127,199,0.3);
}

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

.btn-secondary {
  background: #fff;
  border: 1px solid #e8e4f0;
  color: #2d3748;
}

.btn-secondary:hover {
  background: #f7f5ff;
  border-color: #8b7fc7;
}

/* Summary */
.summary-card {
  border-color: #d6d0e8;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 15px;
}

.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: #1a202c;
}

.divider {
  height: 1px;
  background: #e8e4f0;
  margin: 4px 0;
}

/* Payment methods */
.payment-methods {
  margin-top: 20px;
}

.methods-label {
  font-size: 13px;
  font-weight: 600;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.methods {
  display: flex;
  gap: 10px;
}

.method {
  flex: 1;
  cursor: pointer;
}

.method input {
  display: none;
}

.method-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 2px solid #e8e4f0;
  border-radius: 10px;
  transition: all 0.2s;
}

.method input:checked + .method-box {
  border-color: #8b7fc7;
  background: #f5f3ff;
}

.method-icon {
  font-size: 14px;
  font-weight: 600;
}

.swish-badge {
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
}

/* Pay button */
.btn-pay {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.iframe-notice {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(139,127,199,0.08);
  border: 1px solid #e8e4f0;
  border-radius: 8px;
  font-size: 13px;
  color: #718096;
  line-height: 1.5;
}

.secure-note {
  text-align: center;
  font-size: 12px;
  color: #a0aec0;
  margin-top: 12px;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.hidden { display: none !important; }

/* Result card */
.result-card {
  text-align: center;
  padding: 40px 24px;
}

.result-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.result-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.result-card p {
  color: #718096;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 480px) {
  .custom-amount {
    flex-direction: column;
  }
  .custom-amount .btn {
    width: 100%;
  }
  .methods {
    flex-direction: column;
  }
}