/**
 * GenOffer Storefront Base Styles
 * Base styles for all storefront pages
 */

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

/* Base body styles */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #111827;
  background-color: #ffffff;
}

/* Landing page container */
.landing-page {
  min-height: 100vh;
}

/* Image defaults */
img {
  max-width: 100%;
  height: auto;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Button animations */
button,
a.cta-button {
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover,
a.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Checkout page layout - constrain width */
.genoffer-checkout-products,
.genoffer-address-form,
.genoffer-order-summary,
.genoffer-payment-form {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Checkout page container */
[data-page-type="CHECKOUT"] .landing-page > div,
body.checkout-page .landing-page > div {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Responsive adjustments for checkout */
@media (max-width: 768px) {
  .genoffer-checkout-products,
  .genoffer-address-form,
  .genoffer-order-summary,
  .genoffer-payment-form {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* Form input focus states */
.genoffer-address-form input:focus,
.genoffer-address-form select:focus,
.genoffer-payment-form input:focus,
.genoffer-payment-form select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Spreedly iframe container styles */
#spreedly-number,
#spreedly-cvv {
  position: relative;
}

#spreedly-number iframe,
#spreedly-cvv iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  position: absolute;
  top: 0;
  left: 0;
}

/* Draft Preview Banner */
.draft-preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: white;
  padding: 8px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  z-index: 99999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
