#custom-container-kbp-flyer {
      font-family: 'Comic Neue', cursive !important;
      background: linear-gradient(135deg, #ff9fe8 0%, #84c7ff 100%) !important;
      border-radius: 20px !important;
      padding: 30px !important;
      max-width: 900px !important;
      margin: 0 auto !important;
      overflow: hidden !important;
      position: relative !important;
      box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    }

    .custom-stars {
      position: absolute !important;
      width: 100% !important;
      height: 100% !important;
      top: 0 !important;
      left: 0 !important;
      pointer-events: none !important;
      z-index: 1 !important;
    }

    .custom-star {
      position: absolute !important;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFD700'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") !important;
      width: 20px !important;
      height: 20px !important;
      opacity: 0.8 !important;
    }

    .custom-header {
      display: flex !important;
      align-items: center !important;
      margin-bottom: 30px !important;
      position: relative !important;
      z-index: 2 !important;
    }

    .custom-logo {
      width: 180px !important;
      height: auto !important;
      margin-right: 20px !important;
      animation: float 6s ease-in-out infinite !important;
    }

    .custom-title-container {
      flex: 1 !important;
    }

    .custom-title {
      font-family: 'Bubblegum Sans', cursive !important;
      color: #FF1A75 !important;
      font-size: 3rem !important;
      text-shadow: 3px 3px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff !important;
      margin-bottom: 0 !important;
      letter-spacing: 1px !important;
    }

    .custom-tagline {
      font-size: 1.5rem !important;
      color: #333 !important;
      font-weight: bold !important;
      margin-top: 5px !important;
    }

    .custom-content-container {
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 30px !important;
      position: relative !important;
      z-index: 2 !important;
    }

    .custom-menu-section,
    .custom-info-section,
    .custom-additions-section {
      flex: 1 !important;
      min-width: 280px !important;
      background-color: rgba(255, 255, 255, 0.85) !important;
      border-radius: 15px !important;
      padding: 20px !important;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
      transition: transform 0.3s !important;
    }

    .custom-menu-section:hover,
    .custom-info-section:hover,
    .custom-additions-section:hover {
      transform: translateY(-5px) !important;
    }

    .custom-section-title {
      font-family: 'Bubblegum Sans', cursive !important;
      color: #FF1A75 !important;
      font-size: 2rem !important;
      margin-bottom: 15px !important;
      text-align: center !important;
      border-bottom: 3px dotted #84c7ff !important;
      padding-bottom: 10px !important;
    }

    .custom-menu-list {
      list-style-type: none !important;
      padding: 0 !important;
      margin: 0 !important;
    }

    .custom-menu-item {
      display: flex !important;
      justify-content: space-between !important;
      margin-bottom: 12px !important;
      font-size: 1.4rem !important;
      color: #333 !important;
      padding: 8px 12px !important;
      border-radius: 10px !important;
      background-color: rgba(255, 255, 255, 0.7) !important;
      transition: transform 0.3s, background-color 0.3s !important;
    }

    .custom-menu-item:hover {
      transform: scale(1.03) !important;
      background-color: rgba(255, 255, 255, 0.9) !important;
    }

    .custom-menu-item .custom-item-name {
      font-weight: bold !important;
    }

    .custom-menu-item .custom-item-price {
      color: #FF1A75 !important;
      font-weight: bold !important;
    }

    .custom-strikethrough {
      text-decoration: line-through !important;
      color: #888 !important;
    }

    .custom-subscription-section {
      flex-basis: 100% !important;
      background-color: rgba(255, 255, 255, 0.85) !important;
      border-radius: 15px !important;
      padding: 20px !important;
      margin-top: 20px !important;
      text-align: center !important;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
      border: 3px dashed #FF1A75 !important;
      animation: pulse 3s infinite !important;
    }

    .custom-additions-title {
      font-family: 'Bubblegum Sans', cursive !important;
      color: #FF1A75 !important;
      font-size: 1.6rem !important;
      margin-bottom: 5px !important;
      margin-top: 20px !important;
    }

    .custom-additions-note {
      font-style: italic !important;
      margin-bottom: 10px !important;
      color: #555 !important;
      font-size: 1.1rem !important;
    }

    .custom-additions-grid {
      display: grid !important;
      grid-template-columns: 1fr 1fr !important;
      gap: 10px !important;
      margin-bottom: 15px !important;
    }

    .custom-product-card {
      background-color: rgba(255, 255, 255, 0.8) !important;
      border-radius: 12px !important;
      padding: 15px !important;
      margin-bottom: 15px !important;
      box-shadow: 0 3px 10px rgba(0,0,0,0.1) !important;
      transition: transform 0.3s !important;
    }

    .custom-product-card:hover {
      transform: translateY(-5px) !important;
      box-shadow: 0 5px 15px rgba(0,0,0,0.15) !important;
    }

    .custom-product-title {
      font-weight: bold !important;
      font-size: 1.5rem !important;
      color: #FF1A75 !important;
      margin-bottom: 8px !important;
      border-bottom: 2px dotted #84c7ff !important;
      padding-bottom: 5px !important;
    }

    .custom-product-price {
      font-weight: bold !important;
      font-size: 1.4rem !important;
      color: #333 !important;
      margin-bottom: 10px !important;
    }

    .custom-customization-options {
      background-color: rgba(255, 255, 255, 0.6) !important;
      border-radius: 8px !important;
      padding: 8px !important;
      margin-top: 10px !important;
    }

    .custom-options-title {
      font-weight: bold !important;
      font-size: 1.1rem !important;
      color: #555 !important;
      margin-bottom: 5px !important;
    }

    .custom-options-list {
      list-style-type: none !important;
      padding: 0 !important;
      margin: 0 !important;
      font-size: 1.1rem !important;
    }

    .custom-option-item {
      display: flex !important;
      justify-content: space-between !important;
      margin-bottom: 5px !important;
      padding: 2px 0 !important;
    }

    .custom-subscription-title {
      font-family: 'Bubblegum Sans', cursive !important;
      color: #FF1A75 !important;
      font-size: 2rem !important;
      margin-bottom: 15px !important;
    }

    .custom-subscription-text {
      font-size: 1.5rem !important;
      margin-bottom: 15px !important;
      color: #333 !important;
    }

    .custom-cta-button {
      display: inline-block !important;
      background-color: #FF1A75 !important;
      color: white !important;
      font-family: 'Bubblegum Sans', cursive !important;
      font-size: 1.5rem !important;
      padding: 15px 30px !important;
      border-radius: 50px !important;
      text-decoration: none !important;
      margin-top: 10px !important;
      transition: transform 0.3s, box-shadow 0.3s !important;
      box-shadow: 0 5px 15px rgba(255, 26, 117, 0.3) !important;
    }

    .custom-cta-button:hover {
      transform: scale(1.05) !important;
      box-shadow: 0 8px 20px rgba(255, 26, 117, 0.5) !important;
    }

    .custom-footer {
      text-align: center !important;
      margin-top: 30px !important;
      font-size: 1.3rem !important;
      color: #333 !important;
      font-weight: bold !important;
      position: relative !important;
      z-index: 2 !important;
    }

    .custom-product-images {
      display: flex !important;
      justify-content: center !important;
      flex-wrap: wrap !important;
      gap: 15px !important;
      margin-top: 20px !important;
    }

    .custom-product-image {
      width: 120px !important;
      height: 120px !important;
      border-radius: 10px !important;
      object-fit: cover !important;
      border: 3px solid white !important;
      box-shadow: 0 5px 10px rgba(0,0,0,0.1) !important;
      transition: transform 0.3s !important;
    }

    .custom-product-image:hover {
      transform: rotate(5deg) scale(1.1) !important;
    }

    .custom-print-button {
      display: inline-block !important;
      background-color: #4CAF50 !important;
      color: white !important;
      font-family: 'Bubblegum Sans', cursive !important;
      font-size: 1.2rem !important;
      padding: 10px 20px !important;
      border-radius: 50px !important;
      text-decoration: none !important;
      margin-top: 20px !important;
      cursor: pointer !important;
      border: none !important;
      box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3) !important;
      transition: transform 0.3s, box-shadow 0.3s !important;
    }

    .custom-print-button:hover {
      transform: scale(1.05) !important;
      box-shadow: 0 8px 20px rgba(76, 175, 80, 0.5) !important;
    }

    .custom-color-sample {
      display: inline-block !important;
      width: 20px !important;
      height: 20px !important;
      border-radius: 50% !important;
      margin-right: 5px !important;
      border: 2px solid white !important;
      vertical-align: middle !important;
    }

    .color-purple {
      background-color: purple !important;
    }

    .color-orange {
      background-color: orange !important;
    }

    .color-blue {
      background-color: blue !important;
    }

    .color-red {
      background-color: red !important;
    }

    .custom-description {
      font-size: 1.2rem !important;
      margin-top: 10px !important;
      margin-bottom: 10px !important;
      line-height: 1.5 !important;
    }

    /* Improved interactive elements */
    .custom-animated-text {
      display: inline-block !important;
      animation: rainbow 8s linear infinite !important;
    }

    /* Screen-only content - hidden when printing */
    .custom-screen-only {
      display: block !important;
    }

    /* Print-only content - hidden on screen */
    .custom-print-only {
      display: none !important;
    }

    @media print {
      body * {
        visibility: hidden !important;
      }

      #custom-container-kbp-flyer, #custom-container-kbp-flyer * {
        visibility: visible !important;
      }

      #custom-container-kbp-flyer {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0.5cm !important;
        background: white !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        page-break-inside: avoid !important;
        box-sizing: border-box !important;
      }

      /* Hide screen-only content when printing */
      .custom-screen-only {
        display: none !important;
      }

      /* Show print-only content when printing */
      .custom-print-only {
        display: block !important;
      }

      .custom-print-button {
        display: none !important;
      }

      .custom-stars {
        display: none !important;
      }

      /* Optimized print-specific styles */
      .custom-print-flyer {
        width: 100% !important;
        height: 96vh !important; /* Use nearly full height of the page */
        padding: 0.5cm !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        font-family: 'Comic Neue', cursive !important;
        position: relative !important;
        border: 1px solid #ccc !important;
      }

      .custom-print-header {
        display: flex !important;
        align-items: center !important;
        padding-bottom: 0.3cm !important;
        border-bottom: 2px dashed #FF1A75 !important;
        margin-bottom: 0.3cm !important;
      }

      .custom-print-logo {
        width: 3cm !important;
        height: auto !important;
        margin-right: 0.5cm !important;
      }

      .custom-print-title {
        font-family: 'Bubblegum Sans', cursive !important;
        color: #FF1A75 !important;
        font-size: 24pt !important;
        line-height: 1 !important;
        margin: 0 !important;
        font-weight: bold !important;
      }

      .custom-print-tagline {
        font-size: 14pt !important;
        margin: 0 !important;
        color: #333 !important;
      }

      .custom-print-columns {
        display: flex !important;
        width: 100% !important;
        flex: 1 !important;
      }

      .custom-print-column {
        flex: 1 !important;
        padding: 0.2cm !important;
      }

      .custom-print-section-title {
        font-family: 'Bubblegum Sans', cursive !important;
        color: #FF1A75 !important;
        font-size: 16pt !important;
        margin-top: 0 !important;
        margin-bottom: 0.2cm !important;
        border-bottom: 1px dotted #84c7ff !important;
        padding-bottom: 0.1cm !important;
        font-weight: bold !important;
      }

      .custom-print-product {
        background-color: rgba(255, 255, 255, 0.8) !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        padding: 0.2cm !important;
        margin-bottom: 0.2cm !important;
      }

      .custom-print-product-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-bottom: 1px dotted #84c7ff !important;
        padding-bottom: 0.1cm !important;
        margin-bottom: 0.1cm !important;
      }

      .custom-print-product-title {
        font-weight: bold !important;
        font-size: 12pt !important;
        color: #FF1A75 !important;
        margin: 0 !important;
      }

      .custom-print-product-price {
        font-weight: bold !important;
        font-size: 12pt !important;
        color: #333 !important;
      }

      .custom-print-description {
        font-size: 10pt !important;
        margin: 0.1cm 0 !important;
        line-height: 1.3 !important;
      }

      .custom-print-options {
        font-size: 9pt !important;
        display: flex !important;
        flex-wrap: wrap !important;
        column-gap: 0.3cm !important;
      }

      .custom-print-option {
        margin-right: 0.3cm !important;
        white-space: nowrap !important;
      }

      .custom-print-customization {
        background-color: rgba(255, 255, 255, 0.8) !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        padding: 0.2cm !important;
        margin-bottom: 0.2cm !important;
      }

      .custom-print-color-samples {
        display: flex !important;
        justify-content: space-around !important;
        margin: 0.2cm 0 !important;
      }

      .custom-print-color-item {
        display: flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        margin-right: 0.2cm !important;
      }

      .custom-print-color-dot {
        width: 0.3cm !important;
        height: 0.3cm !important;
        border-radius: 50% !important;
        margin-right: 0.1cm !important;
      }

      .custom-print-color-purple {
        background-color: purple !important;
      }

      .custom-print-color-orange {
        background-color: orange !important;
      }

      .custom-print-color-blue {
        background-color: blue !important;
      }

      .custom-print-color-red {
        background-color: red !important;
      }

      .custom-print-special {
        background-color: white !important;
        border: 2px dashed #FF1A75 !important;
        border-radius: 8px !important;
        padding: 0.2cm !important;
        text-align: center !important;
        margin-top: 0.2cm !important;
      }

      .custom-print-special-title {
        font-family: 'Bubblegum Sans', cursive !important;
        color: #FF1A75 !important;
        font-size: 16pt !important;
        margin-top: 0 !important;
        margin-bottom: 0.1cm !important;
        font-weight: bold !important;
      }

      .custom-print-special-text {
        font-size: 10pt !important;
        margin: 0.1cm 0 !important;
        line-height: 1.3 !important;
      }

      .custom-print-footer {
        text-align: center !important;
        margin-top: 0.3cm !important;
        font-size: 9pt !important;
        border-top: 1px solid #ccc !important;
        padding-top: 0.2cm !important;
      }

      .custom-print-website {
        font-weight: bold !important;
        color: #FF1A75 !important;
      }
    }

    @media (max-width: 768px) {
      #custom-container-kbp-flyer {
        padding: 20px !important;
      }

      .custom-header {
        flex-direction: column !important;
        text-align: center !important;
      }

      .custom-logo {
        margin-right: 0 !important;
        margin-bottom: 15px !important;
      }

      .custom-title {
        font-size: 2.2rem !important;
      }

      .custom-content-container {
        gap: 20px !important;
      }

      .custom-product-image {
        width: 100px !important;
        height: 100px !important;
      }

      .custom-additions-grid {
        grid-template-columns: 1fr !important;
      }
    }

    @keyframes float {
      0% {
        transform: translateY(0px) rotate(0deg);
      }
      50% {
        transform: translateY(-10px) rotate(5deg);
      }
      100% {
        transform: translateY(0px) rotate(0deg);
      }
    }

    @keyframes twinkle {
      0%, 100% {
        opacity: 0.2;
      }
      50% {
        opacity: 0.8;
      }
    }

    @keyframes pulse {
      0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(255, 26, 117, 0.3);
      }
      50% {
        transform: scale(1.03);
        box-shadow: 0 5px 25px rgba(255, 26, 117, 0.5);
      }
      100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(255, 26, 117, 0.3);
      }
    }

    @keyframes rainbow {
      0% { color: red; }
      14% { color: orange; }
      28% { color: yellow; }
      42% { color: green; }
      57% { color: blue; }
      71% { color: indigo; }
      85% { color: violet; }
      100% { color: red; }
    }

/* Runtime viewport containment for the preserved full-bleed flyer. */
#custom-container-kbp-flyer,
#custom-container-kbp-flyer * { box-sizing: border-box !important; }
#custom-container-kbp-flyer .custom-stars { overflow: hidden !important; }
#custom-container-kbp-flyer .custom-subscription-section { max-width: 100% !important; }
