/** Shopify CDN: Minification failed

Line 87:2 Expected ":"
Line 911:4 "line-weight" is not a known CSS property

**/
/* --- Global Funnel Header Wrapper (NEW) --- */
.funnel-header-wrapper {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* --- Global Funnel Header (UPDATED) --- */
.funnel-top-bar {
  position: relative !important; /* Changed from fixed so it sits inside the wrapper */
  background-color: #ff6f4f !important; 
  color: #ffffff !important; 
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 12px 20px !important;
  /* Note: removed box-shadow here because the wrapper now handles it */
}

/* --- NEW Sticky Notification Bar --- */
.funnel-notification-bar {
  background-color: #f4f6f8 !important; /* Light grayish blue */
  color: #111 !important;
  padding: 10px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-bottom: 1px solid #e2e8f0;
}

.notification-dot {
  width: 10px;
  height: 10px;
  background-color: #22c55e; /* Green */
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* --- Wrapper adjustment (UPDATED) --- */
.book-funnel-wrapper {
  max-width: 650px;
  padding-top: 20px !important;
  margin: 140px auto 60px auto; /* INCREASED top margin from 100px to 140px so content isn't hidden behind the taller header */
  background: #ffffff;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  font-family: inherit;
}

/* --- BUTTON FIX: Prevent cut-off text on Binding Cards --- */
.binding-content .primary-btn {
  padding: 15px 10px; /* Reduces horizontal padding */
  font-size: 16px; /* Slightly smaller font to fit 'Auswählen' */
  box-sizing: border-box; /* Forces padding to stay inside the button boundaries */
  width: 100%;
}

/* Scales the buttons down even further for small mobile screens */
@media (max-width: 600px) {
  .binding-content .primary-btn {
    padding: 12px 5px; 
    font-size: 14px; 
  }
}

/* Force all inner text and SVGs to stay white regardless of theme defaults */
.top-bar-title, 
.top-bar-trust, 
.top-bar-trust span, 
.top-bar-close {
  color: #ffffff !important; 
}

/* --- Fix for Header Text Wrapping and Overlap --- */
.top-bar-content {
  text-align: center;
  padding-left: 15px; 
  padding-right: 45px; /* Increased right padding to guarantee the 'X' never touches the text */
}

.top-bar-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.top-bar-trust {
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* Allows the badges to drop to the next line safely */
  gap: 8px;
  opacity: 0.9;
}

.top-bar-trust span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap; /* Forces the text and icon to stay glued together on one line */
}

/* --- Premium Slide & Fade Notification --- */
.notification-text {
  display: inline-block; /* Transforms only work on block or inline-block elements */
  /* cubic-bezier gives it a snappy start and a butter-smooth stop */
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 1;
  transform: translateY(0);
}

/* State 1: Leaving the screen (Slides up and fades out) */
.notification-text.slide-out {
  opacity: 0;
  transform: translateY(-8px);
}

/* State 2: Teleporting (Moves to the bottom invisibly) */
.notification-text.teleport {
  opacity: 0;
  transform: translateY(8px);
  transition: none; /* Temporarily turns off the animation so it teleports instantly */
}

/* --- Mobile specific cleanups --- */
/* --- Mobile specific cleanups --- */
@media (max-width: 600px) {
  
  /* 1. Remove the unequal padding so the text perfectly centers on the screen */
  .top-bar-content {
    padding-left: 20px; 
    padding-right: 20px; 
  }

  /* 2. Break the 'X' out of the middle and pin it to the top right */
  .top-bar-close {
    top: 12px !important; 
    right: 12px !important;
    transform: none !important; /* This removes the vertical centering */
  }

  /* 3. Push the title down just a tiny bit so it clears the 'X' */
  .top-bar-title {
    font-size: 15px; 
    margin-top: 8px; 
  }

  /* ... Keep your existing .top-bar-trust grid code below this! ... */
  .top-bar-trust .divider {
    display: none !important; 
  }
  
  .top-bar-trust {
    display: grid !important;
    grid-template-columns: auto auto; 
    justify-content: center; 
    column-gap: 12px; 
    row-gap: 6px; 
    margin-top: 6px;
  }

  .top-bar-trust span {
    font-size: 11px; 
    justify-content: center;
  }

  .top-bar-trust span:last-child {
    grid-column: 1 / -1; 
    width: 100%;
  }
}

.top-bar-trust svg {
  vertical-align: middle;
  margin-top: -2px;
}

.top-bar-trust .divider {
  opacity: 0.5;
}

.top-bar-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none !important;
  border: none !important;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  transition: opacity 0.2s;
}

.top-bar-close:hover {
  opacity: 0.7;
}

/* --- Centered Sticky Footer --- */
.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
  padding: 16px 24px;
  display: flex;
  gap: 15px; 
  justify-content: center; /* Centers the buttons inside the footer */
  align-items: center;
  z-index: 100;
  box-sizing: border-box;
}

/* Flex rules ensure 1 button takes 100%, and 2 buttons take 50% each automatically */
.sticky-footer .primary-btn, 
.sticky-footer .secondary-btn {
  margin: 0;
  flex: 1; 
  max-width: 350px; /* This prevents the button from stretching across the whole screen, keeping it a nice centered block */
}

/* Page Title from design */
.funnel-step h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 35px;
  color: #333;
}

/* Base Form Groups */
.form-group {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 15px;
  color: #333;
}

/* Generic input styling */
.form-group input {
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 18px;
  background-color: #fbfbfb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #ff6f4f; 
  box-shadow: 0 0 0 4px rgba(224, 115, 93, 0.2); 
  background-color: #fff;
}

/* --- Segmented Controls (Gender) --- */
.segmented-control {
  display: flex;
  gap: 15px;
}

.segmented-option {
  flex: 1;
  text-align: center;
  padding: 16px;
  background: #fbfbfb;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  color: #555;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.segmented-option:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

/* Base Selected state (keeps text white) */
.segmented-option.is-selected {
  color: white;
}

/* Boy Selected - Blue */
.segmented-option[data-gender="Boy"].is-selected {
  background: #3b82f6;
  border-color: #3b82f6;
}

/* Girl Selected - Pink */
.segmented-option[data-gender="Girl"].is-selected {
  background: #ec4899; /* A professional, vibrant pink */
  border-color: #ec4899;
}

/* --- Color Palettes (Hair/Eyes) --- */
.palette-grid {
  display: grid;
  /* minmax(0, 1fr) forces equal columns regardless of content size */
  grid-template-columns: repeat(4, minmax(0, 1fr)); 
  gap: 15px;
}

.palette-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
}

/* Added word-wrapping so text doesn't overflow equal columns */
.swatch-label {
  font-size: 13px;
  text-align: center;
  color: #666;
  font-weight: 500;
  word-break: break-word; 
  hyphens: auto;
  line-height: 1.2;
}

/* Functional generic color descriptions */
.swatch-box {
  width: 100%;
  aspect-ratio: 4 / 3; /* This makes the box shorter (a landscape rectangle) instead of a tall square */
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  transition: all 0.2s ease;
  background-size: cover; 
}

/* Palette Selection outline */
.palette-item.is-selected .swatch-box {
  border-color: #ff6f4f;
  box-shadow: 0 0 0 4px rgba(224, 115, 93, 0.3);
}
.swatch-label {
  font-size: 13px;
  text-align: center;
  color: #666;
  font-weight: 500;
}

/* Mobile responsive for grid */
@media (max-width: 600px) {
  .palette-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
    gap: 10px; /* Slightly tighter gap to give boxes more room */
  }
  
  .palette-item {
    padding: 8px 4px; /* Reduced padding on mobile so the label has space */
  }
  
  .swatch-label {
    font-size: 11px; /* Smaller font on mobile so words fit better */
  }
}

/* Primary Button - Large and prominent */
.primary-btn {
  width: 100%;
  padding: 20px;
  background-color: #ff6f4f;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.2s ease;
  text-align: center !important;
}

.primary-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.primary-btn:disabled {
  background-color: #e0e0e0;
  color: #a0a0a0;
  cursor: not-allowed;
  transform: none;
}

/* Centers the SVG eyes inside the box */
.svg-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff; 
  overflow: hidden; /* Prevents the SVG from pushing boundaries */
}

.svg-container svg {
  width: 150%; /* Controls how big the eye is inside the box */
  height: 150%;
  display: block;
}

/* --- PHASE 2: Photo Upload Styling --- */

/* Interactive Drag & Drop Zone */
.dropzone {
  border: 2px dashed #c8c8c8;
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  background: #fbfbfb;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.dropzone:hover, .dropzone.dragover {
  background: #eff6ff;
  border-color: #3b82f6;
}

.dropzone input[type="file"] {
  display: none; /* Hide standard ugly file input */
}

/* Image Preview state */
.preview-image {
  max-width: 100%;
  max-height: 250px;
  border-radius: 8px;
  display: none;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.upload-btn {
  background-color: #e0e0e0;
  color: #333;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 10px;
  pointer-events: none; /* Let the dropzone handle the click */
}

/* Consent Checkbox */
.consent-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 30px 0;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  cursor: pointer;
}

.consent-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #3b82f6;
}

/* Tips Card */
.tips-card {
  background: #fffcf8; /* Very subtle warm tint */
  border: 1px solid #f0e6d2;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.tips-header {
  text-align: center;
  margin-bottom: 20px;
}

.tips-header h3 {
  font-size: 16px;
  color: #333;
  margin: 0 0 6px 0;
}

.tips-header p {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tip-item {
  text-align: center;
}

.tip-image-box {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  position: relative;
  border: 3px solid transparent;
  margin-bottom: 8px;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0; /* Placeholder color until you add images */
}

.tip-image-box.good { border-color: #22c55e; }
.tip-image-box.bad { border-color: #ef4444; }

.tip-icon {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tip-icon.good { background: #22c55e; }
.tip-icon.bad { background: #ef4444; }

.tip-label {
  font-size: 12px;
  color: #555;
  font-weight: 500;
}

.tip-1 {
  background-position: center 10%; 
}

/* Navigation Row */
.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.secondary-btn {
  flex: 1;
  padding: 20px;
  background-color: white;
  color: #333;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background-color: #fbfbfb;
  border-color: #c0c0c0;
}

/* Forces the primary button to share the row nicely */
.form-actions .primary-btn {
  flex: 1;
  margin-top: 0; 
}

.loading-header {
  text-align: center;
  margin-bottom: 20px;
}

#dynamic-heading {
  /* Force a strict, unchangeable height large enough for 3-4 lines on narrow phones */
  height: 130px; 
  margin: 0 0 10px 0;
  
  /* Flexbox keeps 1-line or 2-line text perfectly centered in the middle of this 130px box */
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-card {
  /* Use strict height here too, just in case review lengths vary */
  height: 170px; 
  display: flex;
  align-items: center;
  padding: 15px;
  box-sizing: border-box;
  overflow: hidden;
}

.loading-header h2 {
  color: #1d4ed8; /* Vibrant Blue from your screenshot */
  font-size: 28px;
  margin-bottom: 8px;
  transition: opacity 0.5s ease;
}

.loading-header p {
  color: #666;
  font-size: 14px;
}

/* Circular Progress Ring */
.progress-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px 0;
}

.progress-ring-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
}

.progress-ring__circle-bg {
  stroke: #f0f0f0;
}

.progress-ring__circle {
  stroke: #1d4ed8;
  stroke-dasharray: 339.292; /* Circumference of r=54 */
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 0.3s linear;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 700;
  color: #111;
}

.progress-time {
  color: #1d4ed8;
  font-size: 13px;
  margin-top: 15px;
}

/* Social Proof & Reviews */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.avatar-group {
  display: flex;
}

.avatar-group img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -10px;
}
.avatar-group img:first-child { margin-left: 0; }

.social-proof span {
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 500;
}

/* Ensure the review card hides the sliding content when it pushes outside the box */
.review-card {
  overflow: hidden; 
}

/* The wrapper that will actually move */
.review-slider {
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  transform: translateX(0);
  opacity: 1;
}

/* State when the old review leaves (slides left) */
.review-slider.sliding-out {
  transform: translateX(-30px);
  opacity: 0;
}

/* State right before the new review enters (teleports right) */
.review-slider.sliding-in {
  transform: translateX(30px);
  opacity: 0;
  transition: none; /* Teleport instantly without animation */
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.review-name {
  font-weight: 700;
  font-size: 14px;
  color: #111;
}

.review-stars {
  color: #fbbf24;
  font-size: 14px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 13px;
  line-height: 1.5;
  color: #444;
}

/* --- PHASE 4: Preview Screen --- */
.preview-step {
  text-align: center;
}

.preview-step h2 {
  font-size: 24px;
  color: #111;
  margin-bottom: 8px;
}

.preview-step p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.preview-description {
  font-size: 15px;
  color: #64748b; /* Slate grey color that matches your design */
  line-height: 1.5;
  margin-top: -4px !important; /* Pulls it slightly closer to the header */
  margin-bottom: 24px !important;
  text-align: center;
  padding: 0 10px; /* Keeps it from touching the absolute edges on mobile */
}

.details-accordion {
  width: 100%;
  padding: 15px;
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  margin-bottom: 25px;
}

.generated-image-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.generated-image-stack img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  display: block;
}

/* Updated Button to match Phase 4 design */
.primary-btn.blue {
  background-color: #ff6f4f;
  border-radius: 8px; /* Slightly squarer to match design */
}

/* --- Details Accordion --- */
.accordion-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
  text-align: left;
}

.accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}

.accordion-header:hover {
  background: #f8fafc;
}

.chevron-icon {
  transition: transform 0.3s ease;
}

/* Flips the arrow when open */
.accordion-header.active .chevron-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

/* Tweaks the existing grid to fit perfectly inside the accordion */
.accordion-content .book-specs-grid {
  border: none;
  border-top: 1px solid #e2e8f0; /* Adds the divider line shown in your image */
  border-radius: 0;
  margin-bottom: 0;
  background: transparent;
}

/* Book Specifications Grid */
.book-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns */
    gap: 12px 16px;
    background: #f8fafc; /* Very light gray/blue background */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.spec-item {
    font-size: 14px;
    color: #334155;
    display: flex;
    align-items: center;
    line-weight: 500;
}

.spec-check {
    color: #22c55e; /* Bright green checkmark */
    font-weight: bold;
    margin-right: 8px;
    font-size: 16px;
}

/* Make it a single column on very small phones */
@media (max-width: 400px) {
    .book-specs-grid {
        grid-template-columns: 1fr;
    }
}


/* --- Phase 5: Binding Selection --- */
.serif-heading {
    font-family: Georgia, serif; /* Gives that classic book feel from the screenshot */
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
}

.binding-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.binding-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.binding-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 180px; /* Adjust based on your actual images */
    background: #f1f5f9;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.binding-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}

.binding-badge.green { background-color: #22c55e; }
.binding-badge.orange { background-color: #f97316; }

.binding-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.binding-content h3 {
    font-size: 18px;
    margin: 0 0 4px 0;
    color: #1a1a1a;
    font-family: Georgia, serif;
}

.binding-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff6f4f; /* Your brand blue */
    margin-bottom: 12px;
}

.binding-content p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes the button to the bottom */
}

/* Wide Card (Layflat) Adjustments */
.binding-card.wide {
    flex-direction: row; /* Image left, content right on desktop */
}

.binding-card.wide .image-wrapper {
    width: 40%;
    height: auto;
    min-height: 200px;
}

.binding-card.wide .binding-content {
    width: 60%;
}

.wide-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.wide-header h3 { margin: 0; }
.wide-header .binding-price { margin: 0; }

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .binding-grid {
        grid-template-columns: 1fr 1fr; /* Keeps 2 items side-by-side on mobile */
        gap: 12px; /* Slightly reduced gap so they fit well on small screens */
    }
    
    .binding-card.wide {
        flex-direction: column; /* Stack Layflat card on mobile too */
    }
    
    .binding-card.wide .image-wrapper,
    .binding-card.wide .binding-content {
        width: 100%;
    }
    
    .wide-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    /* Optional: Scale down the price and font slightly to fit the 2-column layout on tiny screens */
    .binding-content {
        padding: 12px; 
    }
    .binding-content h3 {
        font-size: 15px;
    }
    .binding-price {
        font-size: 15px;
    }
}

/* --- Phase 6: Extras --- */
.extras-step {
    padding-bottom: 20px;
}

.extra-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.extra-card .image-wrapper {
    height: 160px;
}
.extra-card .image-wrapper.short {
    height: 120px; /* Thinner image for paper */
}

.extra-content {
    padding: 20px;
    text-align: left;
}

.extra-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.extra-header h3 {
    margin: 0;
    font-size: 18px;
    font-family: Georgia, serif;
    color: #1a1a1a;
}

.extra-price {
    font-weight: 700;
    color: #ff6f4f;
    font-size: 16px;
}

.inline-badge {
    position: relative;
    top: 0; left: 0;
    display: inline-block;
    margin-bottom: 12px;
}

/* Tab System */
.dedication-tabs {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    margin: 16px 0;
    padding-bottom: 8px;
}

.tab-btn {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.tab-btn.active {
    color: #ff6f4f;
}

.tab-content {
    display: none; /* Hidden by default */
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block; /* Shown when active */
}

/* Pre-made Message Grid */
.message-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 500px) {
    .message-grid { grid-template-columns: 1fr; } /* Stack on mobile */
}

.message-option {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.message-option p {
    font-size: 13px;
    font-style: italic;
    color: #334155;
    margin: 0;
}

.quote-mark {
    color: #cbd5e1;
    font-size: 24px;
    font-family: serif;
    line-height: 1;
    position: absolute;
    top: 8px; left: 8px;
}

.radio-circle {
    width: 16px; height: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    position: absolute;
    bottom: 12px; right: 12px;
}

.message-option.selected {
    border-color: #ff6f4f;
    background: #eff6ff;
}

.message-option.selected .radio-circle {
    border-color: #ff6f4f;
    background: #ff6f4f;
    box-shadow: inset 0 0 0 3px white; /* Creates the "filled" dot look */
}

/* Custom Text Area */
#custom-dedication {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    resize: none;
    font-family: inherit;
    box-sizing: border-box;
}

#custom-dedication:focus {
    outline: none;
    border-color: #ff6f4f;
}

.char-count {
    font-size: 11px;
    color: #94a3b8;
    text-align: right;
    margin-top: 4px;
}

/* Premium Paper Toggle */
.premium-toggle {
    display: inline-block;
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    color: #1a1a1a;
    transition: background 0.2s;
}

.premium-toggle:hover {
    background: #f1f5f9;
}

.sticky-footer .primary-btn, .sticky-footer .secondary-btn {
    margin: 0; /* Override default margins */
    width: 48%; /* Fit side by side */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Phase 7: Upsell Bundles --- */
.tier-header-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 500px) {
    .tier-header-container { gap: 6px; }
}

.tier-box {
    flex: 1;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 8px;
    text-align: center;
    position: relative;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.tier-box strong {
    display: block;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.tier-price {
    font-weight: bold;
    color: #ff6f4f;
    font-size: 16px;
    margin-bottom: 4px;
}

.tier-save {
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.tier-save.gray { background: #f1f5f9; color: #64748b; }
.tier-save.green { background: #dcfce7; color: #16a34a; }

.tier-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: bold;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.tier-badge.blue { background: #3b82f6; }
.tier-badge.rainbow { background: linear-gradient(90deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); color: #1a1a1a; }

/* Active States for Tier Boxes */
.tier-box.active { opacity: 1; border-width: 2px; }
#tier-1.active { border-color: #ff6f4f; }
#tier-2.active { border-color: #ff6f4f; }
#tier-3.active { border-image-source: linear-gradient(90deg, #ff9a9e, #fecfef); border-image-slice: 1; }

.savings-bar {
    background: #ff6f4f; /* Brand Blue */
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 30px;
}

/* Upsell Grid */
.upsell-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 450px) {
    .upsell-grid { 
        grid-template-columns: 1fr 1fr; /* Keeps 2 items side-by-side */
        gap: 8px; /* Reduces the gap slightly so they fit better on small screens */
    }
    
    /* Optional: Slightly scale down the text inside the cards so it doesn't get cramped */
    .upsell-content {
        padding: 10px;
    }
    .upsell-content h4 {
        font-size: 13px;
    }
    .upsell-new-price {
        font-size: 12px;
    }
    .upsell-checkbox-btn {
        padding: 8px;
        font-size: 12px;
    }
}

.upsell-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}

.upsell-card.selected {
    border: 2px solid #ff6f4f;
}

.upsell-img-wrapper {
    position: relative;
    padding: 16px;
    background: #f8fafc; /* Assuming images have transparent bg or are square */
}

.upsell-img-wrapper img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.upsell-flag-badge {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 24px;
    background: white;
    border-radius: 50%;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.upsell-content {
    padding: 16px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.upsell-content h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-family: Georgia, serif;
    color: #1a1a1a;
}

.upsell-pricing {
    margin-bottom: 12px;
    min-height: 20px; /* Keep layout stable when empty */
}

.upsell-new-price {
    font-weight: bold;
    color: #ff6f4f;
    font-size: 14px;
}

.upsell-discount-tag {
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 12px;
    margin-left: 4px;
}

.upsell-checkbox-btn {
    display: block;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s;
}

.upsell-checkbox-btn input {
    margin-right: 8px;
    cursor: pointer;
}

.upsell-card.selected .upsell-checkbox-btn {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.primary-btn.green {
    background-color: #ff6f4f;
}

/* --- Funnel Ruled Background (Nuclear Override) --- */
body.funnel-active {
    background-color: #fcfcfc !important; /* Slightly off-white base */
    background-image: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 49px,
        rgba(224, 115, 93, 0.25) 49px, /* Coral line boosted to 25% opacity so you can clearly see it */
        rgba(224, 115, 93, 0.25) 50px
    ) !important;
    background-attachment: fixed !important;
}

/* Punch a hole through Shopify's hidden theme wrappers */
html,
body.funnel-active #main,
body.funnel-active .shopify-section,
body.funnel-active .section {
    background: transparent !important;
}


/* ========================================= */
/* --- PHASE 2: TIGHTEN WHITE SPACE FIX --- */
/* ========================================= */

/* 1. Reduce the massive gap below the Header */
#phase-2 h2 {
  margin-bottom: 12px !important;
}

/* 2. Shrink the internal padding and bottom margin of the Dropzone */
#phase-2 .dropzone {
  padding: 20px 10px !important; 
  margin-bottom: 15px !important;
}

/* 3. Reduce the gap under the Consent Checkbox */
#phase-2 .consent-wrapper {
  margin-bottom: 15px !important; 
}

/* 4. Shrink the Tips Card padding and kill its bottom margin */
#phase-2 .tips-card {
  padding: 15px !important;
  margin-bottom: 0px !important; 
}

/* 5. Force the hardcoded 100px JS spacer to shrink without touching JS */
#phase-2 > div[style*="height: 100px"] {
  height: 20px !important; 
}


/* ========================================= */
/* --- FIX MAIN WRAPPER TOP GAPS --- */
/* ========================================= */


@media (max-width: 600px) {
  /* 1. Push the box safely below the fixed header */
  /* If 105 hid the text, 125px should clear it perfectly */
  .book-funnel-wrapper {
    margin-top: 125px !important; 
    
    /* 2. Kill the huge empty white space INSIDE the box */
    padding-top: 35px !important; 
  }

  /* 3. Stop the header text from pushing itself down */
  .funnel-step h2 {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}


/* ========================================= */
/* --- PHASE 4: TEXT FITTING FIXES --- */
/* ========================================= */

/* Mobile adjustments to force 1-line heading and 3-line description */
@media (max-width: 600px) {
  
  /* Force Heading to 1 line */
  .preview-step h2 {
    font-size: 20px !important; /* Scale down so it fits */
    white-space: nowrap !important; /* Forbids the text from breaking to line 2 */
    letter-spacing: -0.5px !important; /* Pulls the letters slightly closer */
  }

  /* Stretch Description to fit approx 3 lines */
  .preview-description {
    font-size: 13px !important; /* Smaller font to fit more words per line */
    padding: 0 !important; /* Removes side padding to use 100% of the screen width */
    line-height: 1.4 !important; /* Tighter line height */
    letter-spacing: -0.2px !important; 
  }
}

/* On Desktop/Tablets, it has enough room but we'll lock the heading just in case */
@media (min-width: 601px) {
  .preview-step h2 {
    white-space: nowrap !important;
  }
}

/* ========================================= */
/* --- PHASE 3: TIGHTEN LOADING SCREEN --- */
/* ========================================= */

/* 1. Shrink the invisible box around the changing header text */
#phase-3 #dynamic-heading {
  height: auto !important; /* Allows the box to stretch vertically to fit the text */
  min-height: 90px !important; /* Keeps the layout from jumping when shorter text cycles in */
  font-size: 22px !important; /* Scales down the text so it fits nicer on mobile */
  line-height: 1.3 !important; 
  margin-bottom: 12px !important;
}

/* 2. Reduce the gap under the sub-text ("Dein Foto wird in...") */
#phase-3 .loading-header {
  margin-bottom: 15px !important;
}

/* 3. Pull the loading circle much closer to the text */
#phase-3 .progress-container {
  margin-top: 10px !important; /* Reduced from 40px */
  margin-bottom: 30px !important;
}

/* ========================================= */
/* --- FOOTER BUTTONS EXACT MATCH FIX --- */
/* ========================================= */

.sticky-footer .primary-btn, 
.sticky-footer .secondary-btn {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  
  /* Force exact identical dimensions */
  flex: 1 !important; 
  height: 64px !important; 
  
  /* Match the font size so the Primary button doesn't look bulkier */
  font-size: 16px !important; 
  padding: 10px !important; 
  
  /* Give BOTH buttons a 2px border so their math matches perfectly */
  border: 2px solid transparent !important; 
}

/* Restore the visible gray border specifically for the Zurück button */
.sticky-footer .secondary-btn {
  border-color: #e0e0e0 !important;
  color: #333 !important;
}

/* Ensure the primary button keeps its background color */
.sticky-footer .primary-btn.green {
  background-color: #ff6f4f !important;
  color: white !important;
}

/* ========================================= */
/* --- MOBILE RESPONSIVENESS FIXES       --- */
/* ========================================= */

@media (max-width: 600px) {
    /* 1. Notification Bar Fix (Forces single line) */
    .funnel-notification-bar {
        font-size: 13px !important; /* Increased from 11px */
        padding: 8px 10px !important; 
        gap: 6px !important; /* Slightly tighter gap between dot and text to save space */
    }
    
    .notification-text {
        white-space: nowrap !important; 
        overflow: hidden !important;
        text-overflow: ellipsis !important; /* Will safely add "..." if the screen is too narrow */
    }

    /* 2. Extras & Main Headings Fix (Prevents 3 lines) */
    .serif-heading {
        font-size: 21px !important; /* Shrink from 28px */
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
        padding: 0 10px !important; /* Prevent touching the edges of the screen */
        letter-spacing: -0.5px !important; /* Pulls letters slightly closer */
    }

    /* 3. Pricing Tiers Fix (Prevents cramped overlapping text) */
    .tier-header-container {
        gap: 6px !important; /* Less gap between the 3 boxes */
    }
    
    .tier-box {
        padding: 12px 4px !important; /* Much less horizontal padding */
    }
    
    .tier-box strong {
        font-size: 12px !important; /* Shrink 'Ab 3. Buch' */
        white-space: nowrap !important; /* Keep on one line */
        letter-spacing: -0.3px !important;
    }
    
    .tier-price {
        font-size: 14px !important; /* Scale down price */
    }
    
    .tier-save {
        font-size: 9px !important; /* Scale down the green saving tag */
        padding: 3px 4px !important;
        white-space: nowrap !important;
    }
    
    .tier-badge {
        font-size: 9px !important; /* Scale down top floating badges */
        padding: 2px 6px !important;
        white-space: nowrap !important;
    }
}

/* Extra safety net for exceptionally narrow screens (e.g., iPhone SE) */
@media (max-width: 380px) {
    .funnel-notification-bar {
        font-size: 12px !important; /* Increased from 10px */
        padding: 8px 5px !important; /* Minimizing side padding to maximize text room */
    }
    .serif-heading {
        font-size: 18px !important;
    }
    .tier-box strong {
        font-size: 11px !important;
    }
    .tier-price {
        font-size: 13px !important;
    }
}