/* Joint BMSM/BXGY form; source-backed five cards and summary ratio. */
.main.multi-buy-promotion-wide {
  margin-left: 0;
  padding: 0 24px 32px;
}
.multi-buy-promotion-page,
.mp-overlay {
  font:
    14px/20px TikTokFont,
    Arial,
    sans-serif;
  color: rgba(0, 0, 0, 0.92);
}
.multi-buy-promotion-page {
  max-width: 1248px;
  margin: 0 auto;
  min-width: 0;
}
.multi-buy-promotion-page *,
.mp-overlay * {
  box-sizing: border-box;
}
.multi-buy-promotion-page [hidden],
.mp-overlay [hidden] {
  display: none !important;
}
.multi-buy-promotion-page :is(input, select, button),
.mp-overlay :is(input, select, button) {
  font: inherit;
  color: inherit;
}
.multi-buy-promotion-page button,
.mp-overlay button {
  cursor: pointer;
}
.multi-buy-promotion-page button:disabled,
.mp-overlay button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.multi-buy-promotion-page :is(input, select, button):focus-visible,
.mp-overlay :is(input, select, button):focus-visible {
  outline: 2px solid #009995;
  outline-offset: 2px;
}
.multi-buy-promotion-page input:is([type="radio"], [type="checkbox"]),
.mp-overlay input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: #009995;
  flex: 0 0 16px;
  margin: 0;
}
.mb-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 18px 0;
}
.mb-toolbar h1 {
  font-size: 28px;
  line-height: 36px;
  margin: 0;
  font-weight: 700;
  min-width: 0;
}
.mb-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mb-back {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 0;
  background: transparent;
  padding: 6px;
}
.mb-back svg {
  transform: rotate(180deg);
}
.mb-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.mb-button {
  padding: 7px 16px;
  min-height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 4px;
  background: #fff;
  line-height: 20px;
  font-weight: 500;
}
.mb-primary,
.mp-overlay .mp-primary {
  background: #009995;
  border-color: #009995;
  color: #fff;
}
.mb-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: #008582;
  white-space: nowrap;
}
.mb-icon-button {
  border: 0;
  background: transparent;
  width: 28px;
  height: 28px;
  padding: 6px;
  color: rgba(0, 0, 0, 0.55);
}
#multi-buy-promotion-form {
  margin: 0;
}
.mb-layout {
  display: grid;
  grid-template-columns: minmax(0, 912fr) minmax(280px, 320fr);
  gap: 16px;
  align-items: start;
}
.mb-main,
.mb-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.mb-sidebar {
  position: sticky;
  top: 80px;
}
.mb-card {
  padding: 24px;
  background: #fff;
  border-radius: 4px;
  min-width: 0;
}
.mb-card h2 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  margin: 0 0 24px;
}
.mb-card h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  margin: 0 0 12px;
}
.mb-card h4 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  margin: 24px 0 8px;
}
.mb-card p {
  margin: 8px 0 0;
}
.mb-description {
  color: rgba(0, 0, 0, 0.55);
}
.mb-card > h2 + .mb-description {
  margin-top: -12px;
  margin-bottom: 24px;
}
.mb-field {
  display: block;
  min-width: 0;
  margin: 0 0 24px;
}
.mb-field:last-child {
  margin-bottom: 0;
}
.mb-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
}
.mb-control {
  max-width: 100%;
  min-width: 0;
  height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 4px;
  background: #fff;
}
input.mb-control {
  width: 100%;
}
.mb-name-control {
  display: flex;
  position: relative;
  align-items: center;
}
.mb-name-control input {
  padding-right: 68px;
}
[data-mb-name-count] {
  position: absolute;
  right: 12px;
  color: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.mb-date-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  max-width: 592px;
  align-items: start;
}
.mb-time-control {
  display: block;
  position: relative;
  min-width: 0;
}
.mb-time-control > input {
  padding-right: 72px;
}
.mb-time-control > [data-mb-zone] {
  position: absolute;
  right: 34px;
  top: 9px;
  color: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  line-height: 20px;
  pointer-events: none;
}
.mb-choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.mb-choice > input {
  margin-top: 2px !important;
}
.mb-choice-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mb-inline-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: #f7f8fa;
  padding: 16px 20px;
  border-radius: 4px;
  min-width: 0;
  margin-top: 20px;
}
.mb-inline-rule > span {
  min-width: 0;
}
.mb-numeric {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  border-radius: 4px;
  width: 120px;
  min-width: 0;
  max-width: 100%;
  height: 38px;
  vertical-align: middle;
}
.mb-numeric .mb-control {
  border: 0;
  width: 100%;
  height: 34px;
  padding: 6px 0;
  background: transparent;
}
.mb-numeric:has(input:disabled) {
  background: #f5f5f5;
  color: rgba(0, 0, 0, 0.35);
}
.mb-numeric > span {
  flex-shrink: 0;
}
.mb-scope {
  margin-top: 24px;
}
.mb-selected-products {
  margin-top: 12px;
  min-width: 0;
}
.mb-selected-products > p {
  color: rgba(0, 0, 0, 0.55);
  margin: 8px 0;
}
.mb-selected-products ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  max-height: 300px;
  overflow: auto;
}
.mb-product-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #eee;
  min-width: 0;
}
.mb-product-row img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  flex: 0 0 40px;
  border-radius: 4px;
}
.mb-product-row > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.mb-product-row small {
  display: block;
  color: rgba(0, 0, 0, 0.55);
  margin-top: 6px;
  font-size: 12px;
}
.mb-product-row > .mb-link {
  flex-shrink: 0;
}
.mb-benefit-tile {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
}
.mb-benefit-tile:has(input:checked) {
  border-color: #009995;
  background: #f3fbfb;
}
.mb-benefit-tile > input {
  margin-top: 3px !important;
}
.mb-benefit-tile strong {
  font-weight: 600;
}
.mb-benefit-tile p,
.mb-benefit-tile small {
  display: block;
  color: rgba(0, 0, 0, 0.55);
  margin: 6px 0 0;
  line-height: 20px;
}
.mb-benefit-products {
  margin-top: 24px;
}
.mb-benefit .mb-field {
  margin-top: 24px;
}
.mb-limits h3 {
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 12px;
}
.mb-limits .mb-choice {
  margin-top: 16px;
}
.mb-limits [data-mb-limit-value] {
  margin: 12px 0 0 24px;
  max-width: 180px;
}
.mb-limits .mb-description {
  line-height: 22px;
}
.mb-switch {
  align-items: center;
}
.mb-switch input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 32px;
  height: 20px;
  border-radius: 12px;
  background: #d0d2d5;
  border: 0;
  position: relative;
  flex-basis: 32px;
  cursor: pointer;
}
.mb-switch input[type="checkbox"]::after {
  content: "";
  position: absolute;
  background: #fff;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 3px #0002;
  transition: transform 0.12s;
}
.mb-switch input[type="checkbox"]:checked {
  background: #009995;
}
.mb-switch input[type="checkbox"]:checked::after {
  transform: translateX(12px);
}
[data-mb-tiers-panel] {
  background: #f7f8fa;
  border-radius: 4px;
  padding: 20px;
  margin-top: 24px;
}
.mb-tier-row {
  padding: 0 0 20px;
  min-width: 0;
}
.mb-tier-row + .mb-tier-row,
[data-mb-extra-tiers] .mb-tier-row {
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}
.mb-tier-row > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.mb-tier-row .mb-inline-rule {
  padding: 12px 0;
  margin-top: 8px;
}
.mb-base-tier > p {
  color: rgba(0, 0, 0, 0.55);
  margin: 0 0 12px;
}
.mb-base-tier [data-mb-first-tier] {
  padding: 12px 0;
  color: rgba(0, 0, 0, 0.55);
}
.mb-audience > .mb-control {
  width: 320px;
}
.mb-summary h3 {
  font-size: 16px;
  line-height: 24px;
  overflow-wrap: anywhere;
}
.mb-summary p {
  margin: 0;
}
.mb-summary ul {
  padding-left: 18px;
  margin: 0;
}
.mb-summary li {
  margin-top: 8px;
  overflow-wrap: anywhere;
  line-height: 22px;
}
.mb-guide details {
  margin-top: 20px;
}
.mb-guide summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
  line-height: 24px;
}
.mb-guide summary::-webkit-details-marker {
  display: none;
}
.mb-guide summary::before {
  content: "?";
  flex: 0 0 12px;
  margin-top: 5px;
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  border-radius: 2px;
}
.mb-guide summary::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin: 5px 2px 0 auto;
  border-right: 1px solid #7a7e85;
  border-bottom: 1px solid #7a7e85;
  transform: rotate(45deg);
}
.mb-guide details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 10px;
}
.mb-guide details > p {
  margin: 12px 0 0 20px;
  color: rgba(0, 0, 0, 0.55);
  line-height: 22px;
}
.mb-warning {
  padding: 12px;
  border: 1px solid #ffe58f;
  background: #fffbe6;
  color: #8f6600;
  border-radius: 4px;
}
.mb-error,
.mb-rule-unavailable {
  color: #c92031;
  overflow-wrap: anywhere;
  margin: 12px 0;
}
.mb-terms {
  font-size: 12px;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.55);
  margin: 24px 0 0;
}
.mb-definition {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}
.mb-definition > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
}
.mb-definition dt {
  color: rgba(0, 0, 0, 0.55);
}
.mb-definition dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.mp-overlay .dc-dialog {
  width: 1080px;
  max-width: 100%;
  max-height: calc(100dvh - 48px);
}
.mp-overlay .dc-dialog-body {
  min-height: 0;
  overflow: auto;
}
.mp-overlay :is(input:not([type="checkbox"]), select) {
  min-width: 0;
  max-width: 100%;
  height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 4px;
  background: #fff;
}
.mp-picker-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  min-width: 0;
}
.mp-picker-filters select:first-child {
  min-width: 160px;
  max-width: 220px;
}
.mp-picker-filters input {
  flex: 1;
  min-width: 0;
}
.mp-picker-note {
  color: rgba(0, 0, 0, 0.55);
  margin: 0 0 20px;
}
.mp-table-scroll {
  max-width: 100%;
  overflow: auto;
}
.mp-picker-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.mp-picker-table th {
  text-align: left;
  background: #f7f8fa;
  color: rgba(0, 0, 0, 0.55);
  font-weight: 500;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}
.mp-picker-table td {
  padding: 16px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.mp-picker-table :is(th, td):first-child {
  width: 48px;
}
.mp-picker-table :is(th, td):nth-child(2) {
  min-width: 360px;
}
.mp-picker-table :is(th, td):nth-child(3) {
  width: 140px;
  white-space: nowrap;
}
.mp-product {
  display: flex;
  gap: 12px;
  min-width: 0;
}
.mp-product > div {
  min-width: 0;
}
.mp-product img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 48px;
}
.mp-product strong {
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.mp-product small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 18px;
  color: rgba(0, 0, 0, 0.55);
  overflow-wrap: anywhere;
}
.mp-conflict {
  color: rgba(0, 0, 0, 0.35);
  background: #fafafa;
}
.mp-picker-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.mp-picker-pagination > span:first-child {
  margin-right: auto;
}
.mp-picker-status {
  color: #c92031;
  margin: 12px 0;
  min-height: 20px;
  overflow-wrap: anywhere;
}
.mp-overlay .dc-dialog-footer {
  gap: 12px;
  align-items: center;
}
.mp-overlay .dc-dialog-footer > [data-mp-count] {
  margin-right: auto;
}
@media (max-width: 1050px) {
  .mb-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .mb-card {
    padding: 20px;
  }
  .mb-toolbar h1 {
    font-size: 24px;
    line-height: 32px;
  }
}
@media (max-width: 850px) {
  .mb-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .mb-sidebar {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .mb-toolbar {
    flex-wrap: wrap;
  }
  .mb-toolbar-actions {
    margin-left: auto;
  }
}
@media (max-width: 640px) {
  .main.multi-buy-promotion-wide {
    padding: 0 12px 24px;
  }
  .mb-toolbar {
    gap: 8px;
    padding: 16px 0;
  }
  .mb-toolbar h1 {
    font-size: 22px;
    line-height: 30px;
    flex: 1;
  }
  .mb-toolbar-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .mb-card {
    padding: 20px 16px;
  }
  .mb-card h2 {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 20px;
  }
  .mb-sidebar {
    display: flex;
  }
  .mb-date-pair {
    gap: 8px;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
  .mb-date-pair input {
    padding: 6px;
  }
  .mb-time-control > [data-mb-zone] {
    position: static;
    display: block;
    margin-top: 4px;
  }
  .mb-time-control > input {
    padding-right: 6px;
  }
  .mb-inline-rule {
    padding: 12px;
    gap: 8px;
  }
  .mb-numeric {
    width: 112px;
  }
  .mb-inline-rule > .mb-control {
    width: 120px;
  }
  .mb-benefit-tile {
    padding: 12px;
  }
  .mb-benefit-tile .mb-choice {
    gap: 6px;
  }
  [data-mb-tiers-panel] {
    padding: 16px 12px;
  }
  .mb-tier-row .mb-inline-rule {
    padding: 8px 0;
  }
  .mb-product-row {
    gap: 8px;
  }
  .mb-definition > div {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 8px;
  }
  .mp-overlay {
    padding: 12px;
  }
  .mp-overlay .dc-dialog {
    max-height: calc(100dvh - 24px);
  }
  .mp-overlay .dc-dialog-header {
    padding: 20px 16px;
  }
  .mp-overlay .dc-dialog-body {
    padding: 0 16px;
  }
  .mp-overlay .dc-dialog-footer {
    padding: 16px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .mp-overlay .dc-dialog-footer > [data-mp-count] {
    width: 100%;
  }
  .mp-picker-filters {
    flex-wrap: wrap;
    gap: 8px;
  }
  .mp-picker-filters select:first-child {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .mp-picker-filters select:nth-child(2) {
    max-width: 110px;
  }
  .mp-picker-filters input {
    width: 0;
  }
  .mp-picker-pagination {
    gap: 6px;
    flex-wrap: wrap;
  }
  .mp-picker-pagination button {
    padding: 6px 8px;
  }
}
