/* Rabatt-Badge als Stern oben rechts in .bx_head */
.bx_head { position: relative; }
.bx_discount_badge {
    position: absolute;
    top: -1em;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}
.bx_discount_value {
    font-size: 2.8em;
    font-weight: bold;
    color: #b30000;
    line-height: 1;
    text-shadow: 1px 1px 2px #fff, 0 0 2px #b30000;
    position: absolute;
    z-index: 2;
}
.bx_discount_star {
    width: 90px;
    height: 90px;
    background: gold;
    clip-path: polygon(
        50% 0%,
        61% 35%,
        98% 35%,
        68% 57%,
        79% 91%,
        50% 70%,
        21% 91%,
        32% 57%,
        2% 35%,
        39% 35%
    );
    margin-top: -1.5em;
    margin-bottom: 0.2em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1;
}
.bx_discount_text {
    font-size: 0.95em;
    color: #333;
    font-weight: 600;
    text-align: center;
    text-shadow: 1px 1px 2px #fff;
    margin-top: -2em;
    z-index: 99;
}
/* ====================================================================
   BX BOM Generator - Stylesheet
   ==================================================================== */

  .bx_wrap {
      margin: 22px 0 40px;
  }

  .bx_head {
    position: relative;
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
  }

  .bx_head .subline {
      margin: 0 0 8px;
  }

  .bx_headline {
      margin: 0;
      font-size: 2rem;
  }

  .bx_intro {
      margin: 10px 0 0;
      color: #5f6773;
  }

  .bx_claim_row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2em;
}

  .bx_bom_cart_badge {
      display: inline-flex;
      align-items: center;
      margin-left: 10px;
      padding: 3px 8px;
      border-radius: 999px;
      background: #edf6ec;
      color: #285a30;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      vertical-align: middle;
  }

  .bx_stepbar {
      display: flex;
      flex-wrap: wrap;
      align-items: stretch;
      gap: 8px;
      margin: 0 0 16px;
  }

  .bx_step {
      border: 1px solid #dfe3e8;
      border-radius: 6px;
      background: #fff;
      padding: 10px;
      cursor: pointer;
      min-width: 160px;
      flex: 1 1 160px;
      text-align: left;
      transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
  }

  .bx_step.is-active {
      border-color: #2f6ea3;
      background: #eef5fb;
      box-shadow: inset 0 0 0 1px #2f6ea3, 0 3px 10px rgba(27, 66, 100, 0.14);
      transform: translateY(-1px);
  }

  .bx_step.is-active .bx_step_no {
      color: #2f6ea3;
  }

  .bx_step.is-active .bx_step_title {
      color: #1f4668;
  }

  .bx_step.is-done {
      border-color: #5b7c51;
      background: #f0f4ed;
      box-shadow: inset 0 0 0 1px #5b7c51, 0 2px 6px rgba(91, 124, 81, 0.08);
  }

  .bx_step.is-done .bx_step_no {
      color: #5b7c51;
  }

  .bx_step.is-done .bx_step_title {
      color: #3a5530;
  }

  .bx_step.bx_step_review.is-disabled {
      opacity: 0.6;
      cursor: not-allowed;
  }

  .bx_step_no {
      display: block;
      font-size: 11px;
      text-transform: uppercase;
      color: #6f7784;
      margin-bottom: 3px;
  }

  .bx_step_title {
      display: block;
      font-weight: 700;
      margin-bottom: 4px;
      font-size: 13px;
  }

  .bx_step_value {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-size: 12px;
      color: #6f7784;
  }

  .bx_step_value_name {
      flex: 1 1 auto;
      min-width: 0;
      text-align: left;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }

  .bx_step_value_price {
      flex: 0 0 auto;
      text-align: right;
      font-weight: 700;
      color: #2f4057;
  }

  .bx_op {
      align-self: center;
      flex: 0 0 auto;
      font-size: 28px;
      color: #7f8792;
      line-height: 1;
      font-weight: 700;
      padding: 0 2px;
  }

  .bx_result {
      border: 1px solid #dfe3e8;
      border-radius: 6px;
      background: #fff;
      padding: 10px;
      min-width: 210px;
      flex: 1 1 210px;
      transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  }

  .bx_result.is-complete {
      border-color: #5b7c51;
      background: #f0f4ed;
      box-shadow: inset 0 0 0 1px #5b7c51, 0 3px 12px rgba(91, 124, 81, 0.12);
  }

  .bx_result.is-complete .bx_result_label {
      color: #5b7c51;
  }

  .bx_result.is-complete .bx_result_price {
      font-size: 32px;
      color: #3a5530;
  }

  .bx_result_label {
      display: block;
      font-size: 11px;
      text-transform: uppercase;
      color: #6f7784;
      margin-bottom: 4px;
  }

  .bx_result_price {
      display: block;
      font-size: 24px;
      font-weight: 700;
      color: #2f4057;
  }

  .bx_cols {
      display: grid;
      grid-template-columns: 290px 1fr;
      gap: 16px;
      align-items: start;
  }

  .bx_filter,
  .bx_content {
      background: #fff;
      border: 1px solid #dfe3e8;
      border-radius: 6px;
      padding: 14px;
  }

  .bx_filter {
      position: sticky;
      top: 12px;
  }

  .bx_filter .field_item_1 {
      margin-bottom: 12px;
  }

  .bx_filter input,
  .bx_filter select {
      width: 100%;
  }

  .bx_filter select#bxBrand {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      min-height: 42px;
      padding: 10px 42px 10px 12px;
      border: 1px solid #cfd7e3;
      border-radius: 6px;
      background-color: #fff;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235a6573' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      background-size: 16px 16px;
      box-shadow: 0 1px 2px rgba(28, 39, 54, 0.06);
      color: #223041;
      font-size: 14px;
      line-height: 1.4;
      opacity: 1 !important;
      transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  }

  .bx_filter select#bxBrand:hover {
      border-color: #aeb9c8;
      background-color: #fcfdff;
  }

  .bx_filter select#bxBrand:focus {
      border-color: #2f6ea3;
      box-shadow: 0 0 0 3px rgba(47, 110, 163, 0.16);
      outline: none;
  }

  .bx_filter select#bxBrand::-ms-expand {
      display: none;
  }

  .bx_filter input[type="search"],
  .bx_filter input[type="number"] {
      min-height: 42px;
      padding: 10px 12px;
      border: 1px solid #cfd7e3;
      border-radius: 6px;
      background-color: #fff;
      box-shadow: 0 1px 2px rgba(28, 39, 54, 0.06);
      color: #223041;
      font-size: 14px;
      line-height: 1.4;
      transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  }

  .bx_filter input[type="search"]::placeholder,
  .bx_filter input[type="number"]::placeholder {
      color: #8a96a5;
  }

  .bx_filter input[type="search"]:hover,
  .bx_filter input[type="number"]:hover {
      border-color: #aeb9c8;
      background-color: #fcfdff;
  }

  .bx_filter input[type="search"]:focus,
  .bx_filter input[type="number"]:focus {
      border-color: #2f6ea3;
      box-shadow: 0 0 0 3px rgba(47, 110, 163, 0.16);
      outline: none;
  }

  .bx_summary {
      border-top: 1px dashed #dfe3e8;
      margin-top: 10px;
      padding-top: 10px;
  }

  .bx_summary_row {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      font-size: 13px;
      margin: 0 0 6px;
  }

  .bx_summary_options {
      display: block;
      margin-top: 2px;
      color: #6f7784;
      font-size: 11px;
      line-height: 1.35;
      white-space: normal;
  }

  .bx_listing_head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
  }

  .bx_listing_head .subline {
      margin: 0;
  }

  .bx_hint {
      color: #6f7784;
      font-size: 13px;
      margin: 0;
  }

  .bx_grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
  }

  .bx_review {
      border: 1px solid #dfe3e8;
      border-radius: 8px;
      background: #fff;
      padding: 14px;
  }

  .bx_grid > .bx_review {
      grid-column: 1 / -1;
      width: 100%;
  }

  .bx_review_hint {
      margin: 0 0 12px;
      color: #5f6773;
      font-size: 14px;
  }

  .bx_review_rows {
      display: grid;
      gap: 10px;
      margin-bottom: 12px;
  }

  .bx_review_row {
      display: grid;
      grid-template-columns: 74px minmax(0, 1fr) auto auto;
      gap: 12px;
      align-items: center;
      border: 1px solid #e4e8ed;
      border-radius: 6px;
      padding: 10px;
      background: #fcfdff;
  }

  .bx_review_image {
      width: 74px;
      height: 74px;
      border: 1px solid #e4e8ed;
      border-radius: 6px;
      overflow: hidden;
      background: #f4f7fa;
      display: grid;
      place-items: center;
  }

  .bx_review_img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
  }

  .bx_review_img_placeholder {
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, #f5f7fa 0%, #e9eef4 100%);
  }

  .bx_review_step {
      font-size: 11px;
      text-transform: uppercase;
      color: #6f7784;
      margin-bottom: 3px;
  }

  .bx_review_name {
      font-weight: 700;
      color: #223041;
      margin-bottom: 3px;
  }

  .bx_review_options {
      color: #5f6773;
      font-size: 12px;
      line-height: 1.35;
  }

  .bx_review_price {
      font-weight: 700;
      color: #2f4057;
      white-space: nowrap;
  }

  .bx_review_edit {
      border: 1px solid #b7c2d0;
      border-radius: 4px;
      background: #fff;
      color: #2f4057;
      font-size: 12px;
      padding: 6px 10px;
      cursor: pointer;
  }

  .bx_review_edit:hover {
      border-color: #92a3b6;
      background: #f5f8fc;
  }

  .bx_review_totals {
      border-top: 1px dashed #dfe3e8;
      padding-top: 10px;
      margin-top: 8px;
  }

  .bx_review_total_row {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 6px;
      font-size: 14px;
  }

  .bx_review_total_row.is-grand {
      font-size: 18px;
      font-weight: 700;
      color: #1f4668;
      margin-top: 8px;
  }

  .bx_review_actions {
      display: flex;
      justify-content: flex-end;
      margin-top: 14px;
  }

  .bx_review_cta {
      border: 1px solid #2f6ea3;
      border-radius: 6px;
      background: #2f6ea3;
      color: #fff;
      font-size: 14px;
      font-weight: 700;
      padding: 10px 16px;
      cursor: pointer;
      transition: background-color 0.18s ease, border-color 0.18s ease;
  }

  .bx_review_cta:hover {
      background: #255a86;
      border-color: #255a86;
  }

  .bx_review_cta:disabled {
      opacity: 0.7;
      cursor: wait;
  }

  .bx_card {
      border: 1px solid #e4e8ed;
      border-radius: 6px;
      overflow: hidden;
      background: #fff;
  }

  .bx_media {
      min-height: 150px;
      display: grid;
      place-items: center;
      background: #f4f7fa;
      color: #718096;
      font-weight: 700;
      border-bottom: 1px solid #e4e8ed;
  }

  .bx_body {
      padding: 10px;
  }

  .bx_brand {
      font-size: 11px;
      color: #6f7784;
      text-transform: uppercase;
      margin-bottom: 4px;
  }

  .bx_name {
      font-weight: 700;
      min-height: 36px;
      margin-bottom: 6px;
  }

  .bx_stats {
      color: #6f7784;
      font-size: 12px;
      margin-bottom: 8px;
  }

  .bx_price {
      font-size: 21px;
      font-weight: 700;
      color: #2f4057;
      margin-bottom: 8px;
  }

  .bx_empty {
      border: 1px dashed #dfe3e8;
      border-radius: 6px;
      padding: 28px;
      text-align: center;
      color: #6f7784;
  }

  .bx_card_config {
      margin: 6px 0 10px;
      padding: 9px 10px;
      border: 1px solid #b9d9c5;
      border-left: 4px solid #5a9e70;
      border-radius: 4px;
      background: #f3fbf6;
      box-shadow: 0 1px 0 rgba(68, 122, 87, 0.08);
  }

  .bx_card_config_line {
      margin: 0 0 4px;
      font-size: 12px;
      color: #2f4a38;
  }

  .bx_card_link {
      display: inline-block;
      border: 0;
      background: transparent;
      padding: 0;
      margin: 0 0 8px;
      font-size: 12px;
      color: #2f4057;
      text-decoration: underline;
      cursor: pointer;
  }

  .bx_pager {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      margin-top: 14px;
      flex-wrap: wrap;
  }

  .bx_pager_btn {
      border: 1px solid #d0d8e2;
      background: #fff;
      border-radius: 4px;
      padding: 6px 12px;
      cursor: pointer;
      font-weight: 600;
      color: #2f4057;
  }

  .bx_pager_btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
  }

  .bx_pager_info {
      font-size: 13px;
      color: #6f7784;
  }

  .bx_modal {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: grid;
      place-items: center;
  }

  .bx_modal[hidden] {
      display: none !important;
  }

  .bx_modal_backdrop {
      position: absolute;
      inset: 0;
      background: rgba(13, 18, 29, 0.55);
  }

  .bx_modal_dialog {
      position: relative;
      width: min(660px, calc(100% - 24px));
      max-height: calc(100vh - 24px);
      background: #fff;
      border-radius: 8px;
      border: 1px solid #cfd8e2;
      display: grid;
      grid-template-rows: auto 1fr auto;
      overflow: hidden;
  }

  .bx_modal_head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 14px;
      border-bottom: 1px solid #e4e8ed;
  }

  .bx_modal_head h3 {
      margin: 0;
      font-size: 18px;
  }

  .bx_modal_close {
      background: transparent;
      border: 0;
      font-size: 24px;
      cursor: pointer;
      line-height: 1;
      color: #6f7784;
  }

  .bx_modal_body {
      padding: 14px;
      overflow: auto;
  }

  .bx_modal_product {
      margin-bottom: 10px;
      padding-bottom: 10px;
      border-bottom: 1px dashed #dfe3e8;
  }

  .bx_modal_product h4 {
      margin: 4px 0;
  }

  .bx_modal_product p {
      margin: 0;
      color: #6f7784;
      font-size: 13px;
  }

  .bx_modal_brand {
      text-transform: uppercase;
      font-size: 11px;
      color: #6f7784;
      letter-spacing: 0.3px;
  }

  .bx_modal_field {
      display: grid;
      gap: 5px;
      margin-bottom: 10px;
  }

  .bx_modal_field span {
      font-weight: 600;
      font-size: 13px;
  }

  .bx_modal_field select {
      width: 100%;
      opacity: 1;
  }

  .bx_modal_foot {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: flex-start;
      gap: 8px;
      padding: 12px 14px;
      border-top: 1px solid #e4e8ed;
      flex-wrap: wrap;
  }

  .bx_modal_price {
      margin-right: 0;
      font-weight: 700;
      color: #2f4057;
  }

  .bx_modal_notice {
      border: 1px solid #e4b6b6;
      background: #fff4f4;
      color: #8a1f1f;
      font-size: 12px;
      border-radius: 4px;
      padding: 7px 9px;
  }

  .bx_modal_actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: nowrap;
  }

  @media (max-width: 1100px) {
      .bx_cols {
          grid-template-columns: 1fr;
      }

      .bx_filter {
          position: static;
      }

      .bx_grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
      }
  }

  @media (max-width: 980px) {
      .bx_stepbar {
          gap: 6px;
      }

      .bx_op {
          display: none;
      }

      .bx_step {
          min-width: 0;
          flex: 1 1 calc(50% - 6px);
      }

      .bx_result {
          min-width: 0;
          flex: 1 1 100%;
      }
  }

  @media (max-width: 640px) {
      .bx_step {
          flex: 1 1 100%;
      }

      .bx_step_no {
          font-size: 10px;
      }

      .bx_step_title {
          font-size: 12px;
      }

      .bx_step_value {
          font-size: 11px;
      }

      .bx_result_price {
          font-size: 22px;
      }

      .bx_result.is-complete .bx_result_price {
          font-size: 26px;
      }

      .bx_review_row {
          grid-template-columns: 1fr;
      }

      .bx_review_price {
          text-align: left;
      }

      .bx_review_actions {
          justify-content: stretch;
      }

      .bx_review_cta {
          width: 100%;
      }

      .bx_grid {
          grid-template-columns: 1fr;
      }

      .bx_modal_actions {
          justify-content: flex-end;
          flex-wrap: nowrap;
      }
  }
