/* =========================================================
   Chocokoo Pick & Mix Builder
   Phase 1: selection guidance, touch controls, sticky summary
   ========================================================= */

.product-type-mix-and-match .mnm_form {
  --ck-mnm-gap: var(--space-3, 16px);
  --ck-mnm-target-size: 44px;
}

/* Build-your-box guidance */
.product-type-mix-and-match .ck-mnm-builder {
  margin: var(--space-4, 24px) 0;
  padding: var(--space-4, 24px);
  border-radius: var(--radius-md, 24px);
  background: var(--ck-surface-soft, rgb(250, 247, 242));
}

.product-type-mix-and-match .ck-mnm-builder-header {
  display: grid;
  gap: var(--space-2, 12px);
  margin-bottom: var(--space-3, 16px);
}

.product-type-mix-and-match .ck-mnm-builder-title {
  margin: 0;
  color: var(--e-global-color-primary, #5f3016);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: var(--heading-subsection-size, 24px);
  line-height: 1.3;
  font-weight: 500;
}

.product-type-mix-and-match .ck-mnm-builder-text {
  margin: 0;
  color: var(--e-global-color-text, #725b32);
  font-family: "Merriweather", Georgia, serif;
  font-size: 15px;
  line-height: 1.6;
}

.product-type-mix-and-match .ck-mnm-steps {
  display: grid;
  gap: var(--space-2, 12px);
  margin: 0 0 var(--space-4, 24px);
  padding-left: 1.25rem;
  color: var(--e-global-color-text, #725b32);
  font-size: 14px;
  line-height: 1.5;
}

.product-type-mix-and-match .ck-mnm-progress {
  display: grid;
  gap: var(--space-2, 12px);
}

.product-type-mix-and-match .ck-mnm-progress-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3, 16px);
  color: var(--e-global-color-primary, #5f3016);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
}

.product-type-mix-and-match .ck-mnm-progress-track {
  height: 8px;
  border-radius: var(--radius-pill, 999px);
  background: rgba(95, 48, 22, 0.12);
  overflow: hidden;
}

.product-type-mix-and-match .ck-mnm-progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--e-global-color-secondary, #dfaf26);
  transition: width 160ms ease;
}

.product-type-mix-and-match .ck-mnm-status {
  margin: 0;
  color: var(--e-global-color-text, #725b32);
  font-size: 14px;
  line-height: 1.45;
}

.product-type-mix-and-match .ck-mnm-status[data-state="complete"] {
  color: #245d2d;
}

.product-type-mix-and-match .ck-mnm-status[data-state="over"] {
  color: var(--border-color-error, #cc0000);
}

/* Sticky summary */
.product-type-mix-and-match .ck-mnm-summary {
  position: sticky;
  top: 96px;
  z-index: 10;
  display: grid;
  gap: var(--space-2, 12px);
  margin: var(--space-4, 24px) 0;
  padding: var(--space-3, 16px);
  border: var(--border-width-hairline, 1px) solid rgba(95, 48, 22, 0.14);
  border-radius: var(--radius-md, 24px);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.product-type-mix-and-match .ck-mnm-summary-main,
.product-type-mix-and-match .ck-mnm-summary-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3, 16px);
  align-items: center;
}

.product-type-mix-and-match .ck-mnm-summary-main {
  color: var(--e-global-color-primary, #5f3016);
  font-family: "Montserrat", Arial, sans-serif;
}

.product-type-mix-and-match .ck-mnm-summary-meta {
  color: var(--e-global-color-text, #725b32);
  font-size: 14px;
}

.product-type-mix-and-match .ck-mnm-summary-price {
  color: var(--e-global-color-secondary, #dfaf26);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  white-space: nowrap;
}

.product-type-mix-and-match .ck-mnm-scroll-submit {
  width: 100%;
}

/* Hide duplicate native Mix and Match status when Chocokoo builder is active */
.product-type-mix-and-match .mnm_form.ck-mnm-builder-active .mnm_price,
.product-type-mix-and-match .mnm_form.ck-mnm-builder-active .mnm_message {
  display: none !important;
}

/* Selected-items review */
.product-type-mix-and-match .ck-mnm-review {
  margin: var(--space-4, 24px) 0;
  padding: var(--space-4, 24px);
  border-radius: var(--radius-md, 24px);
  background: #ffffff;
  border: var(--border-width-hairline, 1px) solid rgba(95, 48, 22, 0.12);
}

.product-type-mix-and-match .ck-mnm-review-title {
  margin: 0 0 var(--space-3, 16px);
  color: var(--e-global-color-primary, #5f3016);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
}

.product-type-mix-and-match .ck-mnm-review-list {
  display: grid;
  gap: var(--space-2, 12px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-type-mix-and-match .ck-mnm-review-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3, 16px);
  align-items: center;
  padding-bottom: var(--space-2, 12px);
  border-bottom: var(--border-width-hairline, 1px) solid rgba(95, 48, 22, 0.1);
}

.product-type-mix-and-match .ck-mnm-review-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.product-type-mix-and-match .ck-mnm-review-list button {
  border: 0;
  background: transparent;
  color: var(--e-global-color-primary, #5f3016);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.product-type-mix-and-match .ck-mnm-review-list button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(223, 175, 38, 0.35);
}

/* Keep spacing stable when the selected-items review is hidden */
.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .ck-mnm-review[hidden]
  + .woocommerce-mix-and-match-add-to-cart {
  margin-top: var(--space-4, 24px);
}

@media (max-width: 767px) {
  .product-type-mix-and-match
    .mnm_form.ck-mnm-cards-active
    .ck-mnm-review[hidden]
    + .woocommerce-mix-and-match-add-to-cart {
    margin-top: var(--space-5, 32px);
  }
}

/* Quantity control touch size */
.product-type-mix-and-match .mnm_form .product-quantity .nm-quantity-wrap {
  width: auto;
  min-width: calc((var(--ck-mnm-target-size) * 3) + 2px);
  border: var(--border-width-hairline, 1px) solid
    var(--border-color-subtle, rgb(224, 224, 224));
  border-radius: var(--radius-pill, 999px);
  overflow: hidden;
  background: #ffffff;
}

.product-type-mix-and-match .mnm_form .product-quantity .quantity {
  display: inline-flex;
  align-items: center;
}

.product-type-mix-and-match .mnm_form .product-quantity .nm-qty-minus,
.product-type-mix-and-match .mnm_form .product-quantity .nm-qty-plus {
  width: var(--ck-mnm-target-size);
  height: var(--ck-mnm-target-size);
  line-height: var(--ck-mnm-target-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-type-mix-and-match .mnm_form .product-quantity .qty {
  width: var(--ck-mnm-target-size);
  height: var(--ck-mnm-target-size);
  line-height: var(--ck-mnm-target-size);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.product-type-mix-and-match .mnm_form .product-quantity .qty:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(223, 175, 38, 0.35);
}

.product-type-mix-and-match .ck-mnm-plus-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* =========================================================
   Pick & Mix quantity control, stronger plus-minus symbols
   ========================================================= */

.product-type-mix-and-match .mnm_form .ck-mnm-quantity-control {
  display: inline-flex;
  align-items: center;
  min-width: calc((var(--ck-mnm-target-size) * 3) + 2px);
  border: var(--border-width-hairline, 1px) solid rgba(95, 48, 22, 0.18);
  border-radius: var(--radius-pill, 999px);
  overflow: hidden;
  background: #ffffff;
}

.product-type-mix-and-match .mnm_form .ck-mnm-quantity-control .quantity {
  display: inline-flex;
  align-items: center;
}

.product-type-mix-and-match .mnm_form .ck-mnm-qty-button {
  position: relative;
  display: inline-flex !important;
  width: var(--ck-mnm-target-size);
  height: var(--ck-mnm-target-size);
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--e-global-color-primary, #5f3016);
  cursor: pointer;
  user-select: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease;
}

.product-type-mix-and-match .mnm_form .ck-mnm-qty-button::before,
.product-type-mix-and-match .mnm_form .ck-mnm-qty-button::after {
  content: none !important;
}

.product-type-mix-and-match .mnm_form .ck-mnm-qty-minus::before,
.product-type-mix-and-match .mnm_form .ck-mnm-qty-plus::before {
  display: block;
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: currentColor;
  text-align: center;
  transform: translateY(-1px);
}

.product-type-mix-and-match .mnm_form .ck-mnm-qty-minus::before {
  content: "−" !important;
}

.product-type-mix-and-match .mnm_form .ck-mnm-qty-plus::before {
  content: "+" !important;
}

.product-type-mix-and-match .mnm_form .ck-mnm-quantity-control .qty {
  width: var(--ck-mnm-target-size);
  height: var(--ck-mnm-target-size);
  border-top: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(95, 48, 22, 0.18);
  border-right: 1px solid rgba(95, 48, 22, 0.18);
  border-radius: 0;
  background: #ffffff;
  color: var(--e-global-color-primary, #5f3016);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: var(--ck-mnm-target-size);
  text-align: center;
}

.product-type-mix-and-match .mnm_form .ck-mnm-qty-button:hover,
.product-type-mix-and-match .mnm_form .ck-mnm-qty-button:focus-visible {
  background: rgba(95, 48, 22, 0.06);
  color: var(--e-global-color-primary, #5f3016);
  outline: none;
}

.product-type-mix-and-match
  .mnm_form
  .ck-mnm-quantity-control
  .qty:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(223, 175, 38, 0.35);
}

.product-type-mix-and-match .ck-mnm-plus-disabled,
.product-type-mix-and-match .ck-mnm-minus-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #ffffff;
  color: rgba(95, 48, 22, 0.55);
}

.product-type-mix-and-match .ck-mnm-plus-disabled:hover,
.product-type-mix-and-match .ck-mnm-minus-disabled:hover {
  background: #ffffff;
}

/* Mobile sticky summary */
@media (max-width: 767px) {
  .product-type-mix-and-match .ck-mnm-builder {
    padding: var(--space-3, 16px);
  }

  .product-type-mix-and-match .ck-mnm-progress-row {
    flex-direction: column;
    gap: var(--space-1, 4px);
  }

  .product-type-mix-and-match .ck-mnm-summary {
    position: fixed;
    left: var(--space-3, 8px);
    right: var(--space-3, 8px);
    bottom: var(--space-3, 8px);
    top: auto;
    z-index: 999;
    margin: 0;
    border-radius: var(--radius-md, 24px);
  }

  .product-type-mix-and-match .ck-mnm-summary-main,
  .product-type-mix-and-match .ck-mnm-summary-meta {
    gap: var(--space-2, 8px);
  }

  .product-type-mix-and-match .ck-mnm-review {
    padding: var(--space-3, 16px);
  }

  .product-type-mix-and-match .ck-mnm-review-list li {
    align-items: flex-start;
  }

  body.ck-mnm-builder-page {
    padding-bottom: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-type-mix-and-match .ck-mnm-progress-bar {
    transition: none;
  }
}

/* =========================================================
   Phase 2: product card selector
   Converts Mix and Match rows into responsive product cards
   ========================================================= */

.product-type-mix-and-match .mnm_form.ck-mnm-cards-active .mnm_child_products {
  display: block;
  width: 100%;
  border: 0 !important;
}

.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .mnm_child_products
  thead {
  display: none;
}

/*.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .mnm_child_products
  tbody {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-3, 16px);
  width: 100%;
}*/

.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .mnm_child_products
  tbody {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3, 16px);
  width: 100%;
}

.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .mnm_child_products
  tr.ck-mnm-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-areas:
    "media content"
    "media quantity";
  column-gap: var(--space-3, 16px);
  row-gap: var(--space-3, 16px);
  align-items: start;
  padding: var(--space-3, 16px);
  border: var(--border-width-hairline, 1px) solid rgba(95, 48, 22, 0.12);
  border-radius: var(--radius-md, 24px);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .mnm_child_products
  tr.ck-mnm-card
  > td {
  display: block;
  width: auto;
  padding: 0;
  border: 0;
}

.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .ck-mnm-card
  .product-thumbnail {
  grid-area: media;
}

.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .ck-mnm-card
  .product-details {
  grid-area: content;
}

.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .ck-mnm-card
  .product-quantity {
  grid-area: quantity;
}

/* Card image */
.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .ck-mnm-card
  .mnm_child_product_images,
.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .ck-mnm-card
  .mnm_child_product_images
  figure {
  margin: 0;
}

.product-type-mix-and-match .mnm_form.ck-mnm-cards-active .ck-mnm-card-image {
  display: block;
  width: 96px !important;
  height: 96px !important;
  object-fit: cover;
  border-radius: var(--radius-sm, 10px);
  background: var(--ck-surface-soft, rgb(250, 247, 242));
}

/* Card content hierarchy */
.product-type-mix-and-match .mnm_form.ck-mnm-cards-active .ck-mnm-card-title {
  margin: 0 0 var(--space-1, 8px) !important;
  padding-right: 0;
  color: var(--e-global-color-primary, #5f3016) !important;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px !important;
  line-height: 1.28;
  font-weight: 600;
}

.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .ck-mnm-card-description {
  margin: 0;
  color: var(--e-global-color-text, #725b32);
  font-family: "Merriweather", Georgia, serif;
  font-size: 14px;
  line-height: 1.55;
}

.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .ck-mnm-card-description
  p {
  margin: 0;
}

.product-type-mix-and-match .mnm_form.ck-mnm-cards-active .ck-mnm-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1, 8px);
  margin: 0 0 var(--space-2, 12px);
}

.product-type-mix-and-match .mnm_form.ck-mnm-cards-active .ck-mnm-card-badge {
  min-height: 24px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
}

/* Ingredients disclosure */
.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .ck-mnm-card-disclosure {
  margin-top: var(--space-2, 12px);
  border-top: var(--border-width-hairline, 1px) solid rgba(95, 48, 22, 0.12);
  padding-top: var(--space-2, 12px);
}

.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .ck-mnm-card-disclosure-summary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1, 8px);
  color: var(--e-global-color-primary, #5f3016);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .ck-mnm-card-disclosure-summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(223, 175, 38, 0.35);
  border-radius: var(--radius-xs, 3px);
}

.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .ck-mnm-card-disclosure-content {
  margin-top: var(--space-2, 12px);
  color: var(--e-global-color-text, #725b32);
  font-size: 12px;
  line-height: 1.55;
}

.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .ck-mnm-card-disclosure-content
  small {
  display: block;
  font-size: inherit;
  line-height: inherit;
}

/* Card quantity area */
.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .ck-mnm-card-quantity {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2, 12px);
  padding-top: var(--space-2, 12px) !important;
  border-top: var(--border-width-hairline, 1px) solid rgba(95, 48, 22, 0.1) !important;
}

.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .ck-mnm-card-quantity-label {
  color: var(--e-global-color-primary, #5f3016);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .ck-mnm-card-quantity
  .nm-quantity-wrap {
  flex: 0 0 auto;
}

/* Award and trust images inside cards */
.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .ck-mnm-card-description
  img.alignright,
.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  .ck-mnm-card-description
  img {
  float: none;
  width: auto;
  max-width: 42px;
  height: auto;
  margin: 0 0 0 var(--space-2, 12px);
  vertical-align: middle;
  border-radius: 0;
}

.product-type-mix-and-match
  .mnm_form.ck-mnm-cards-active
  tr.ck-mnm-card.ck-mnm-card-selected {
  border-color: rgba(223, 175, 38, 0.65);
  background: #fffdf7;
}

/* Tablet */
@media (max-width: 1024px) {
  .product-type-mix-and-match
    .mnm_form.ck-mnm-cards-active
    .mnm_child_products
    tbody {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3, 16px);
  }

  .product-type-mix-and-match
    .mnm_form.ck-mnm-cards-active
    .mnm_child_products
    tr.ck-mnm-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .product-type-mix-and-match .mnm_form.ck-mnm-cards-active .ck-mnm-card-image {
    width: 92px !important;
    height: 92px !important;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .product-type-mix-and-match
    .mnm_form.ck-mnm-cards-active
    .mnm_child_products
    tbody {
    gap: var(--space-3, 12px);
  }

  .product-type-mix-and-match
    .mnm_form.ck-mnm-cards-active
    .mnm_child_products
    tr.ck-mnm-card {
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-areas:
      "media content"
      "quantity quantity";
    column-gap: var(--space-3, 12px);
    row-gap: var(--space-3, 12px);
    padding: var(--space-3, 16px);
    border-radius: var(--radius-sm, 10px);
  }

  .product-type-mix-and-match .mnm_form.ck-mnm-cards-active .ck-mnm-card-image {
    width: 84px !important;
    height: 84px !important;
  }

  .product-type-mix-and-match .mnm_form.ck-mnm-cards-active .ck-mnm-card-title {
    font-size: 16px !important;
  }

  .product-type-mix-and-match
    .mnm_form.ck-mnm-cards-active
    .ck-mnm-card-description {
    font-size: 13px;
    line-height: 1.5;
  }

  .product-type-mix-and-match
    .mnm_form.ck-mnm-cards-active
    .ck-mnm-card-quantity {
    justify-content: space-between;
  }
}

.product-type-mix-and-match .ck-mnm-steps li {
  list-style: decimal;
  padding-left: 0.2rem;
}

/* =========================================================
   Phase 3: compact purchase flow
   ========================================================= */

.product-type-mix-and-match.ck-mnm-hero-active .summary .product_title {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
}

.product-type-mix-and-match.ck-mnm-hero-active .summary .price {
  padding: var(--space-2, 12px) 0 var(--space-3, 16px);
}

.product-type-mix-and-match.ck-mnm-hero-active
  .summary
  .nm-product-summary-inner-col-2
  > .woocommerce-product-details__short-description {
  display: none;
}

.product-type-mix-and-match.ck-mnm-hero-active
  .summary
  .mnm_form
  .woocommerce-product-details__short-description {
  display: block;
}

/* Box-size switcher */
.product-type-mix-and-match .ck-mnm-box-switcher {
  display: grid;
  gap: var(--space-2, 12px);
  margin: 0 0 var(--space-3, 16px);
  padding: var(--space-3, 16px);
  border: var(--border-width-hairline, 1px) solid rgba(95, 48, 22, 0.12);
  border-radius: var(--radius-md, 24px);
  background: #ffffff;
}

.product-type-mix-and-match .ck-mnm-box-switcher-label {
  color: var(--e-global-color-primary, #5f3016);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.product-type-mix-and-match .ck-mnm-box-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2, 8px);
}

.product-type-mix-and-match .ck-mnm-box-option {
  display: grid;
  gap: 2px;
  min-height: 54px;
  align-content: center;
  justify-items: center;
  padding: var(--space-2, 8px);
  border: var(--border-width-hairline, 1px) solid rgba(95, 48, 22, 0.18);
  border-radius: var(--radius-sm, 10px);
  background: #ffffff;
  color: var(--e-global-color-primary, #5f3016);
  font-family: "Montserrat", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
}

.product-type-mix-and-match .ck-mnm-box-option span {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.product-type-mix-and-match .ck-mnm-box-option small {
  font-size: 11px;
  line-height: 1.25;
}

.product-type-mix-and-match .ck-mnm-box-option.is-current {
  border-color: var(--e-global-color-primary, #5f3016);
  background: var(--e-global-color-primary, #5f3016);
  color: #ffffff;
}

.product-type-mix-and-match .ck-mnm-box-option:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(223, 175, 38, 0.35);
}

/* Compact delivery notice inside purchase flow */
.product-type-mix-and-match .ck-mnm-delivery-note {
  margin: 0 0 var(--space-3, 16px);
  padding: var(--space-2, 12px) var(--space-3, 16px);
  border-radius: var(--radius-sm, 10px);
  font-size: 13px;
  line-height: 1.45;
}

.product-type-mix-and-match .ck-mnm-delivery-note .ck-badge {
  min-height: 24px;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
}

/* Filter chips */
.product-type-mix-and-match .ck-mnm-filter-bar {
  display: grid;
  gap: var(--space-2, 12px);
  margin: var(--space-3, 16px) 0;
  padding: var(--space-3, 16px);
  border-radius: var(--radius-md, 24px);
  background: var(--ck-surface-soft, rgb(250, 247, 242));
}

.product-type-mix-and-match .ck-mnm-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2, 12px);
  color: var(--e-global-color-primary, #5f3016);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.3;
}

.product-type-mix-and-match .ck-mnm-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1, 8px);
}

.product-type-mix-and-match .ck-mnm-filter-chip,
.product-type-mix-and-match .ck-mnm-filter-clear {
  min-height: 36px;
  border: var(--border-width-hairline, 1px) solid rgba(95, 48, 22, 0.22);
  border-radius: var(--radius-pill, 999px);
  background: #ffffff;
  color: var(--e-global-color-primary, #5f3016);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.product-type-mix-and-match .ck-mnm-filter-chip {
  padding: 0.45rem 0.75rem;
}

.product-type-mix-and-match .ck-mnm-filter-clear {
  padding: 0.35rem 0.65rem;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.product-type-mix-and-match .ck-mnm-filter-chip[aria-pressed="true"] {
  border-color: var(--e-global-color-primary, #5f3016);
  background: var(--e-global-color-primary, #5f3016);
  color: #ffffff;
}

.product-type-mix-and-match .ck-mnm-filter-chip:focus-visible,
.product-type-mix-and-match .ck-mnm-filter-clear:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(223, 175, 38, 0.35);
}

.product-type-mix-and-match .ck-mnm-filter-status {
  margin: 0;
  color: var(--e-global-color-text, #725b32);
  font-size: 13px;
  line-height: 1.45;
}

.product-type-mix-and-match .mnm_form.ck-mnm-cards-active .mnm_item[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .product-type-mix-and-match .ck-mnm-box-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-type-mix-and-match .ck-mnm-filter-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-type-mix-and-match .ck-mnm-filter-clear {
    align-self: flex-start;
  }

  .product-type-mix-and-match .ck-mnm-delivery-note {
    align-items: flex-start;
    font-size: 12px;
  }
}
