/* Hide the BADGES variation row completely from variations table */
    html body.single-product table.variations tr:has(select[name*="badges"]),
    html body.single-product table.variations tr:has(select[name*="pa_badges"]),
    html body.single-product table.variations tr:has(select[id*="badges"]),
    html body.single-product table.variations tr:has(select[id*="pa_badges"]) {
      display: none !important;
    }
    
    /* SELECT TO APPLY BADGES SWATCHES STYLING */
    .kp-badges-swatches-wrapper {
      margin-top: 8px !important;
      margin-bottom: 16px !important;
      display: flex !important;
      flex-direction: column !important; /* Stack label on top and swatches below */
      align-items: flex-start !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
    .kp-badges-label {
      font-size: 13px !important;
      font-weight: 700 !important;
      color: #222222 !important; /* Visible dark color on light backgrounds */
      text-transform: uppercase !important;
      letter-spacing: 0.05em !important;
      font-family: var(--kp-font), sans-serif !important;
      display: block !important;
      margin-bottom: 8px !important;
    }
    .kp-badges-swatches-wrapper .value {
      width: 100% !important;
      display: block !important;
    }
    .kp-badges-swatches-container {
      display: flex !important;
      flex-wrap: nowrap !important;
      gap: 10px !important;
      overflow-x: auto !important;
      -webkit-overflow-scrolling: touch !important;
      width: 100% !important;
      scrollbar-width: none; /* Hide scrollbar for standard browsers */
    }
    .kp-badges-swatches-container::-webkit-scrollbar {
      display: none; /* Hide scrollbar for Webkit (Chrome/Safari) */
    }
    .kp-badge-swatch {
      width: 65px !important;
      height: 65px !important;
      flex-shrink: 0 !important;
      border: 1px solid #d3d3d3 !important; /* Visible light grey border */
      border-radius: 4px !important;
      background-color: #ffffff !important; /* White background for swatches */
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      cursor: pointer !important;
      transition: all 0.2s ease-in-out !important;
      padding: 6px !important;
      box-sizing: border-box !important;
    }
    .kp-badge-swatch:hover {
      border-color: #777777 !important;
      background-color: #fafafa !important;
    }
    .kp-badge-swatch.selected {
      border-color: var(--kp-green, #0A1E3F) !important;
      background-color: #ffffff !important;
      box-shadow: 0 0 0 2px var(--kp-green, #0A1E3F) !important;
    }
    .kp-badge-swatch img {
      max-width: 100% !important;
      max-height: 100% !important;
      object-fit: contain !important;
      border-radius: 2px !important;
      display: block !important;
    }
    .kp-badge-text {
      font-size: 9px !important;
      font-weight: 700 !important;
      color: #222222 !important; /* Visible text on white background */
      text-align: center !important;
      text-transform: uppercase !important;
      word-break: break-word !important;
    }
    
    /* CUSTOM PREMIUM STAR RATING FIX */
    .comment-form-rating p.stars {
      display: flex !important;
      gap: 6px !important;
      margin: 10px 0 20px 0 !important;
    }
    .comment-form-rating p.stars span {
      display: flex !important;
      gap: 6px !important;
    }
    .comment-form-rating p.stars a {
      position: relative !important;
      display: inline-block !important;
      width: 24px !important;
      height: 24px !important;
      text-indent: -9999px !important; /* Hide original text */
      overflow: hidden !important;
      cursor: pointer !important;
      color: transparent !important;
    }
    .comment-form-rating p.stars a::before {
      content: "★" !important; /* Unicode star icon */
      position: absolute !important;
      top: 0 !important;
      left: 0 !important;
      width: 100% !important;
      height: 100% !important;
      text-indent: 0 !important;
      font-size: 26px !important;
      line-height: 24px !important;
      color: #cccccc !important; /* Default empty star color */
      text-align: center !important;
      transition: color 0.1s ease !important;
      font-family: Arial, sans-serif !important;
    }
    .comment-form-rating p.stars a.active-star::before {
      color: #ffb600 !important; /* Golden yellow */
    }
    .comment-form-rating p.stars:hover a.active-star::before {
      color: #cccccc !important; /* Temporarily dim active stars on hover to prioritize hover state */
    }
    .comment-form-rating p.stars a.hover-star::before,
    .comment-form-rating p.stars:hover a.hover-star::before {
      color: #ffb600 !important; /* Keep hovered stars gold */
    }
    
    /* Custom author name and email fields styling */
    .comment-form-author,
    .comment-form-email {
      margin-bottom: 20px !important;
    }
    .comment-form-author label,
    .comment-form-email label {
      font-size: 14px !important;
      font-weight: 700 !important;
      color: #222222 !important;
      display: block !important;
    .comment-form-author input[type="text"],
    .comment-form-email input[type="email"] {
      width: 100% !important;
      max-width: 400px !important;
      padding: 10px !important;
      border: 1px solid #ddd !important;
      border-radius: 4px !important;
      background-color: #fff !important;
      color: #222 !important;
      box-sizing: border-box !important;
    }
