/* GMP Custom Checkout Overlay v6.0.0
   School of Mastery style - refined fonts & spacing
   Scoped to body.pmpro-checkout (signup page) */

/* ââ FONTS ââ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ââ RESET & BASE ââ */
body.pmpro-checkout {
  background: #f5f5f5 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #1a1a1a !important;
  line-height: 1.6 !important;
  font-size: 15px !important;
  letter-spacing: -0.01em !important;
}

/* ââ HIDE DEFAULT PAGE ELEMENTS ââ */
body.pmpro-checkout .site-header,
body.pmpro-checkout .nav-desktop,
body.pmpro-checkout .site-footer,
body.pmpro-checkout footer,
body.pmpro-checkout .sidebar,
body.pmpro-checkout .breadcrumbs,
body.pmpro-checkout .entry-header,
body.pmpro-checkout .gmp-sidebar-wrap,
body.pmpro-checkout .gmp-sidebar,
body.pmpro-checkout aside,
body.pmpro-checkout #gmp-sidebar-years,
body.pmpro-checkout .question__sidebar-wrap,
body.pmpro-checkout .signup__upgrade,
body.pmpro-checkout .signup__intro,
body.pmpro-checkout .signup__logo,
body.pmpro-checkout .entry-title,
body.pmpro-checkout .pmpro_checkout-fields .pmpro_checkout-field.pmpro_checkout-field-bemail,
body.pmpro-checkout #pmpro_payment_method,
body.pmpro-checkout .pricing-info,
body.pmpro-checkout .signup__pricing,
body.pmpro-checkout .wrap.container > footer,
body.pmpro-checkout .footer-main,
body.pmpro-checkout .footer-wrap {
  display: none !important;
}

/* ââ OVERRIDE FOUNDATION GRID ââ */
body.pmpro-checkout .signup__container {
  width: 100% !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.pmpro-checkout .grid-container {
  max-width: 100% !important;
  padding: 0 !important;
}

body.pmpro-checkout .grid-x {
  margin: 0 !important;
  flex-wrap: nowrap !important;
}

body.pmpro-checkout .cell {
  width: 100% !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.pmpro-checkout .wrap.container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.pmpro-checkout .main {
  padding: 0 !important;
  margin: 0 !important;
}

/* ââ GMP LOGO ââ */
body.pmpro-checkout .gmp-logo {
  margin-bottom: 28px !important;
}

body.pmpro-checkout .gmp-logo img {
  height: 36px !important;
  width: auto !important;
}

/* ââ CHECKOUT LAYOUT ââ */
body.pmpro-checkout .gmp-checkout-wrap {
  display: flex !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 40px 24px 60px !important;
  gap: 56px !important;
  align-items: flex-start !important;
  min-height: 100vh !important;
}

/* ââ LEFT PRODUCT PANEL ââ */
body.pmpro-checkout .gmp-product-panel {
  width: 540px !important;
  min-width: 540px !important;
  flex-shrink: 0 !important;
}

/* Countdown bar */
body.pmpro-checkout .gmp-countdown-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 14px 20px !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  margin-bottom: 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #374151 !important;
}

body.pmpro-checkout .gmp-countdown-bar svg {
  color: #6b7280 !important;
}

body.pmpro-checkout .gmp-countdown-bar .gmp-countdown-value {
  font-weight: 700 !important;
  color: #111 !important;
}

/* Product card */
body.pmpro-checkout .gmp-product-card {
  background: #fff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

/* Product hero image */
body.pmpro-checkout .gmp-product-hero {
  width: 100% !important;
  display: block !important;
  background: #f0f0f0 !important;
}

body.pmpro-checkout .gmp-product-hero img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

body.pmpro-checkout .gmp-product-body {
  padding: 28px 28px 24px !important;
}

body.pmpro-checkout .gmp-product-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin: 0 0 14px !important;
  letter-spacing: -0.4px !important;
  line-height: 1.25 !important;
}

body.pmpro-checkout .gmp-product-description {
  font-size: 14px !important;
  color: #4b5563 !important;
  line-height: 1.7 !important;
  margin: 0 0 12px !important;
}

body.pmpro-checkout .gmp-product-value {
  font-size: 14px !important;
  color: #374151 !important;
  margin: 0 0 10px !important;
  line-height: 1.6 !important;
}

body.pmpro-checkout .gmp-product-value strong {
  color: #111 !important;
  font-weight: 700 !important;
}

/* See less link */
body.pmpro-checkout .gmp-see-less {
  margin-bottom: 18px !important;
}

body.pmpro-checkout .gmp-see-less-link {
  font-size: 14px !important;
  color: #111 !important;
  text-decoration: underline !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}

/* Badges */
body.pmpro-checkout .gmp-product-badges {
  display: flex !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
  flex-wrap: wrap !important;
}

body.pmpro-checkout .gmp-product-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  color: #374151 !important;
  font-weight: 500 !important;
}

body.pmpro-checkout .gmp-product-badge img {
  width: 16px !important;
  height: 16px !important;
}

/* Pricing tiers */
body.pmpro-checkout .gmp-pricing-tiers {
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #fff !important;
}

body.pmpro-checkout .gmp-pricing-tier {
  display: flex !important;
  align-items: center !important;
  padding: 18px 20px !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
  gap: 14px !important;
}

body.pmpro-checkout .gmp-pricing-tier:first-child {
  border-bottom: 1px solid #e5e7eb !important;
}

body.pmpro-checkout .gmp-pricing-tier:hover {
  background: #f9fafb !important;
}

body.pmpro-checkout .gmp-pricing-tier.active {
  background: #f0fdf4 !important;
}

body.pmpro-checkout .gmp-pricing-radio {
  width: 20px !important;
  height: 20px !important;
  border: 2px solid #d1d5db !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}

body.pmpro-checkout .gmp-pricing-tier.active .gmp-pricing-radio {
  border-color: #111 !important;
  background: #111 !important;
}

body.pmpro-checkout .gmp-pricing-radio-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #fff !important;
  opacity: 0 !important;
  transition: opacity 0.15s ease !important;
}

body.pmpro-checkout .gmp-pricing-tier.active .gmp-pricing-radio-dot {
  opacity: 1 !important;
}

body.pmpro-checkout .gmp-pricing-info {
  flex: 1 !important;
}

body.pmpro-checkout .gmp-pricing-amount {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #111 !important;
}

body.pmpro-checkout .gmp-pricing-amount .gmp-original-price {
  text-decoration: line-through !important;
  color: #9ca3af !important;
  font-weight: 400 !important;
  margin-right: 6px !important;
  font-size: 14px !important;
}

body.pmpro-checkout .gmp-pricing-label {
  font-size: 13px !important;
  color: #6b7280 !important;
  margin-top: 2px !important;
}

body.pmpro-checkout .gmp-pricing-label a {
  color: #10b981 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

/* Coupon section on left panel */
body.pmpro-checkout .gmp-coupon-section {
  margin-top: 16px !important;
}

body.pmpro-checkout .gmp-coupon-section input {
  width: 100% !important;
  padding: 14px 16px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  color: #374151 !important;
  background: #fff !important;
  outline: none !important;
  transition: border-color 0.2s ease !important;
  box-sizing: border-box !important;
}

body.pmpro-checkout .gmp-coupon-section input:focus {
  border-color: #111 !important;
  box-shadow: 0 0 0 3px rgba(17,17,17,0.06) !important;
}

body.pmpro-checkout .gmp-coupon-section input::placeholder {
  color: #9ca3af !important;
}

/* Total section */
body.pmpro-checkout .gmp-total-wrap {
  padding: 24px 0 0 !important;
}

body.pmpro-checkout .gmp-total-section {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  padding: 0 !important;
  margin-bottom: 4px !important;
}

body.pmpro-checkout .gmp-total-label {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #111 !important;
}

body.pmpro-checkout .gmp-total-amount {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #111 !important;
}

body.pmpro-checkout .gmp-total-amount .gmp-currency {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
  margin-left: 4px !important;
}

body.pmpro-checkout .gmp-total-link {
  font-size: 13px !important;
  color: #10b981 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

body.pmpro-checkout .gmp-next-payment {
  font-size: 13px !important;
  color: #9ca3af !important;
  margin-top: 4px !important;
}

/* ââ RIGHT FORM PANEL ââ */
body.pmpro-checkout .gmp-form-panel {
  flex: 1 !important;
  min-width: 0 !important;
  max-width: 540px !important;
}

body.pmpro-checkout .gmp-form-panel .gmp-form-heading {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin: 0 0 20px !important;
  letter-spacing: -0.4px !important;
  line-height: 1.25 !important;
}

/* User account card for logged-in users */
body.pmpro-checkout .gmp-user-account {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  margin-bottom: 32px !important;
}

body.pmpro-checkout .gmp-user-info {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

body.pmpro-checkout .gmp-user-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #e5e7eb !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

body.pmpro-checkout .gmp-user-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

body.pmpro-checkout .gmp-user-avatar-initials {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
}

body.pmpro-checkout .gmp-user-name {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #111 !important;
  line-height: 1.3 !important;
}

body.pmpro-checkout .gmp-user-email {
  font-size: 13px !important;
  color: #6b7280 !important;
  line-height: 1.3 !important;
}

body.pmpro-checkout .gmp-user-signout {
  font-size: 14px !important;
  color: #6b7280 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

body.pmpro-checkout .gmp-user-signout:hover {
  color: #111 !important;
}

/* Account fields for logged-out */
body.pmpro-checkout .gmp-login-link {
  font-size: 14px !important;
  color: #6b7280 !important;
  margin-bottom: 24px !important;
}

body.pmpro-checkout .gmp-login-link a {
  color: #10b981 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

/* Payment details heading */
body.pmpro-checkout .gmp-payment-heading {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin: 0 0 20px !important;
  letter-spacing: -0.3px !important;
}

/* Stripe Elements & form inputs */
body.pmpro-checkout .StripeElement,
body.pmpro-checkout .pmpro_checkout-field input[type="text"],
body.pmpro-checkout .pmpro_checkout-field input[type="email"],
body.pmpro-checkout .pmpro_checkout-field input[type="password"],
body.pmpro-checkout .signup__input {
  padding: 14px 16px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background: #fff !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 14px !important;
}

body.pmpro-checkout .StripeElement--focus,
body.pmpro-checkout .pmpro_checkout-field input:focus,
body.pmpro-checkout .signup__input:focus {
  border-color: #111 !important;
  box-shadow: 0 0 0 3px rgba(17,17,17,0.06) !important;
  outline: none !important;
}

/* Labels */
body.pmpro-checkout .pmpro_checkout-field label,
body.pmpro-checkout .signup__label {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #374151 !important;
  margin-bottom: 6px !important;
  display: block !important;
}

/* Hide discount code in form (moved to left) */
body.pmpro-checkout #pmpro_form .pmpro_checkout-field-discount_code,
body.pmpro-checkout #pmpro_form #discount_code,
body.pmpro-checkout #pmpro_form #discount_code_button {
  display: none !important;
}

/* ââ SUBMIT AREA ââ */
body.pmpro-checkout .pmpro_submit {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Terms checkbox */
body.pmpro-checkout .gmp-terms-check {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin-bottom: 24px !important;
  cursor: pointer !important;
}

body.pmpro-checkout .gmp-terms-check input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin: 2px 0 0 !important;
  accent-color: #111 !important;
  cursor: pointer !important;
}

body.pmpro-checkout .gmp-terms-check .gmp-terms-text {
  font-size: 14px !important;
  color: #4b5563 !important;
  line-height: 1.5 !important;
}

body.pmpro-checkout .gmp-terms-check .gmp-terms-text a {
  color: #111 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

body.pmpro-checkout .gmp-terms-check .gmp-terms-text a:hover {
  text-decoration: underline !important;
}

/* Submit button - matches reference gray gradient style */
body.pmpro-checkout #pmpro_btn-submit {
  width: 100% !important;
  height: 54px !important;
  padding: 0 32px !important;
  background: linear-gradient(180deg, #404040 0%, #1a1a1a 100%) !important;
  color: #e0e0e0 !important;
  border: none !important;
  border-radius: 9999px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease, transform 0.1s ease !important;
  letter-spacing: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}

body.pmpro-checkout #pmpro_btn-submit:hover {
  opacity: 0.9 !important;
}

body.pmpro-checkout #pmpro_btn-submit:active {
  transform: scale(0.99) !important;
}

/* ââ PMPro form cleanup ââ */
body.pmpro-checkout #pmpro_form,
body.pmpro-checkout .pmpro_checkout {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.pmpro-checkout .pmpro_checkout-fields {
  padding: 0 !important;
  margin: 0 !important;
}

body.pmpro-checkout .pmpro_checkout-field {
  margin-bottom: 0 !important;
  padding: 0 !important;
}

body.pmpro-checkout #pmpro_payment_information_fields {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
}

/* Hide PAYMENT INFORMATION heading and subtext */
body.pmpro-checkout #pmpro_payment_information_fields legend,
body.pmpro-checkout #pmpro_payment_information_fields .pmpro_card_heading {
  display: none !important;
}

body.pmpro-checkout .pmpro_card_CVV,
body.pmpro-checkout .pmpro_card_expiration {
  display: block !important;
}

body.pmpro-checkout .pmpro_asterisk {
  color: #ef4444 !important;
}

/* Business name field */
body.pmpro-checkout .pmpro_checkout-field input[name="bcompany"],
body.pmpro-checkout .pmpro_checkout-field-bcompany input {
  padding: 14px 16px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background: #fff !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 14px !important;
}

/* ââ RESPONSIVE ââ */
@media (max-width: 960px) {
  body.pmpro-checkout .gmp-checkout-wrap {
    flex-direction: column !important;
    padding: 20px 16px 40px !important;
    gap: 24px !important;
  }

  body.pmpro-checkout .gmp-product-panel {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.pmpro-checkout .gmp-form-panel {
    max-width: 100% !important;
  }
}
