/* ============================================
   BUTTON LAYOUT - Back small, Next big (ALL DEVICES)
   ============================================ */

/* Nav buttons container - flex layout */
.nav-buttons {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: #fff !important;
  border-top: 2px solid #e5e5e5 !important;
  padding: 14px 16px !important;
  z-index: 999 !important;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1) !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* BACK BUTTON - Small circle with arrow */
.nav-buttons .btn-back {
  flex: 0 0 auto !important;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #fff !important;
  border: 2px solid #12262F !important;
  color: #12262F !important;
  font-size: 0 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  position: relative !important;
}

/* Back button arrow (via ::before) */
.nav-buttons .btn-back::before {
  content: "←" !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #12262F !important;
}

.nav-buttons .btn-back:hover {
  background: #f8f9fa !important;
  box-shadow: 0 4px 12px rgba(18, 38, 47, 0.15) !important;
}

.nav-buttons .btn-back:active {
  transform: scale(0.95) !important;
}

/* NEXT/CHECKOUT BUTTON - Big and prominent */
.nav-buttons .btn-next,
.nav-buttons .btn-checkout {
  flex: 1 !important;
  min-width: auto !important;
  width: auto !important;
  height: 56px !important;
  padding: 0 24px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  background: #12262F !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(18, 38, 47, 0.25) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transition: all 0.2s ease !important;
}

.nav-buttons .btn-next:hover,
.nav-buttons .btn-checkout:hover {
  background: #0f1d27 !important;
  box-shadow: 0 6px 20px rgba(18, 38, 47, 0.3) !important;
  transform: translateY(-2px);
}

.nav-buttons .btn-next:active,
.nav-buttons .btn-checkout:active {
  transform: scale(0.98) !important;
  box-shadow: 0 2px 8px rgba(18, 38, 47, 0.2) !important;
}

/* Ensure body/content has padding for fixed buttons */
body {
  padding-bottom: 140px !important;
}

.step-content {
  padding-bottom: 80px !important;
}

/* Mobile breakpoint for even tighter layout */
@media (max-width: 480px) {
  .nav-buttons {
    padding: 12px 12px !important;
    gap: 10px !important;
  }
  
  .nav-buttons .btn-back {
    width: 52px !important;
    height: 52px !important;
  }
  
  .nav-buttons .btn-back::before {
    font-size: 22px !important;
  }
  
  .nav-buttons .btn-next,
  .nav-buttons .btn-checkout {
    height: 52px !important;
    font-size: 16px !important;
    padding: 0 20px !important;
  }
  
  body {
    padding-bottom: 130px !important;
  }
}

/* Fix: Ensure buttons are above recap */
.nav-buttons {
  z-index: 1000 !important;
}

.global-recap {
  z-index: 998 !important;
  bottom: 70px !important; /* Above nav buttons */
}

/* Ensure proper spacing between recap and buttons */
body {
  padding-bottom: 180px !important; /* recap 70px + buttons 56px + margin 54px */
}
