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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  min-height: 100vh;
  background: var(--bg-color, linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%));
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center top;
  opacity: 0.3;
  filter: blur(8px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  z-index: -1;
}

/* Banner */
.banner-section {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 20px auto;
  padding: 0 20px;
  display: none;
}

.banner-section.visible {
  display: block;
}

.banner {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Main container */
.checkout-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 968px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .order-summary {
    order: -1;
  }
}

/* Payment */
.payment-section {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.payment-header {
  margin-bottom: 30px;
}

.payment-header h1 {
  font-size: 24px;
  color: #333;
  margin-bottom: 8px;
}

.payment-header p {
  color: #666;
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

input[type='email'],
input[type='text'] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

input[type='email']:focus,
input[type='text']:focus {
  outline: none;
  border-color: #667eea;
}

#payment-element {
  margin-bottom: 20px;
}

#submit {
  background: #009d68;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 14px;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.3s, background 0.3s;
}

#submit:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #00a872;
}

#submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 auto;
}

#submit.loading .spinner {
  display: block;
}

#submit.loading .button-text {
  display: none;
}

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

#error-message {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 15px;
  text-align: center;
  display: none;
}

#error-message.visible {
  display: block;
}

.security-badge {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.security-badge p {
  color: #999;
  font-size: 12px;
}

/* Order Summary */
.order-summary {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 20px;
}

.summary-header {
  margin-bottom: 20px;
}

.summary-header h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 5px;
}

.summary-header p {
  color: #666;
  font-size: 13px;
}

.product-display {
  margin-bottom: 20px;
}

.product-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  display: none;
}

.product-image.visible {
  display: block;
}

.product-info h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 8px;
}

.product-info .description {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.price-breakdown {
  border-top: 1px solid #eee;
  padding-top: 20px;
  margin-top: 20px;
}

.total-display {
  text-align: center;
}

.discount-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  text-align: right;
}

.discount-text s {
  color: #999;
}

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

.total-label {
  font-size: 1.75rem;
  color: #666;
  font-weight: 400;
  margin: 0;
}

.total-amount {
  font-size: 2rem;
  font-weight: 700;
  color: #009d68;
}

/* Terms */
.terms-notice {
  margin-top: 15px;
  font-size: 11px;
  color: #999;
  line-height: 1.5;
  text-align: center;
}

.terms-notice a {
  color: #009d68;
  text-decoration: none;
}

.terms-notice a:hover {
  text-decoration: underline;
}

/* Success */
.success-message {
  display: none;
  text-align: center;
  background: white;
  border-radius: 12px;
  padding: 60px 40px;
  max-width: 500px;
  margin: 100px auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.success-message.visible {
  display: block;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 40px;
  color: white;
}

.success-message h2 {
  color: #333;
  margin-bottom: 10px;
  font-size: 24px;
}

.success-message p {
  color: #666;
  font-size: 16px;
}
  #summary-description {
  display: none;
}
