.mlpb {
  width: calc(100% - 48px);
  max-width: 1320px;
  margin: 64px auto;
  color: #1F2933;
  font-family: "Inter", sans-serif;
}

.mlpb *,
.mlpb *::before,
.mlpb *::after {
  box-sizing: border-box;
}

.mlpb__header {
  max-width: 760px;
  margin: 0 0 36px;
}

.mlpb__eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: #D76550;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mlpb__title {
  margin: 0 0 14px;
  color: #1F2933;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.mlpb__intro {
  margin: 0;
  color: #5F6B76;
  font-size: 18px;
  line-height: 1.6;
}

.mlpb__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: 32px;
}

.mlpb__builder,
.mlpb__summary {
  min-width: 0;
}

.mlpb__quantity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: 24px;
  background: linear-gradient(135deg, #004F4D 0%, #006B68 55%, #1E8B8E 100%);
  border-radius: 14px;
  color: #FFFFFF;
}

.mlpb__quantity-card strong,
.mlpb__quantity-card span {
  display: block;
}

.mlpb__quantity-card strong {
  margin-bottom: 5px;
  font-size: 17px;
}

.mlpb__quantity-card span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.mlpb__quantity {
  display: grid;
  grid-template-columns: 42px 62px 42px;
  flex: 0 0 auto;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 9px;
}

.mlpb__quantity-button,
.mlpb__quantity input {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  color: #004F4D;
  background: #FFFFFF;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 800;
  text-align: center;
}

.mlpb__quantity-button {
  cursor: pointer;
  font-size: 21px;
}

.mlpb__quantity input {
  border-right: 1px solid #E3E8E8;
  border-left: 1px solid #E3E8E8;
  appearance: textfield;
}

.mlpb__quantity input::-webkit-inner-spin-button,
.mlpb__quantity input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.mlpb__steps {
  display: grid;
  gap: 20px;
}

.mlpb__step {
  min-width: 0;
  margin: 0;
  padding: 26px;
  background: #FFFFFF;
  border: 1px solid #E3E8E8;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(31, 41, 51, 0.055);
}

.mlpb__step legend {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 0 22px;
  padding: 0;
  color: #1F2933;
  border: 0;
}

.mlpb__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin-right: 13px;
  color: #FFFFFF;
  background: linear-gradient(135deg, #004F4D, #1E8B8E);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
}

.mlpb__step legend strong,
.mlpb__step legend small {
  display: block;
}

.mlpb__step legend strong {
  margin-bottom: 3px;
  font-size: 18px;
  line-height: 1.25;
}

.mlpb__step legend small {
  color: #5F6B76;
  font-size: 13px;
  font-weight: 400;
}

.mlpb__step legend em {
  margin-left: auto;
  padding: 5px 9px;
  color: #5F6B76;
  background: #F4F8F8;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

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

.mlpb__option {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  margin: 0;
  padding: 14px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #D7E1E1;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mlpb__option:hover {
  border-color: #1E8B8E;
  box-shadow: 0 8px 18px rgba(31, 41, 51, 0.07);
  transform: translateY(-2px);
}

.mlpb__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mlpb__option:has(input:checked) {
  background: #F4F8F8;
  border-color: #006B68;
  box-shadow: inset 0 0 0 1px #006B68;
}

.mlpb__option--unavailable {
  opacity: 0.55;
  cursor: not-allowed;
}

.mlpb__option--unavailable:hover {
  border-color: #D7E1E1;
  box-shadow: none;
  transform: none;
}

.mlpb__option-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  overflow: hidden;
  background: #F4F8F8;
  border-radius: 8px;
}

.mlpb__option-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mlpb__option-placeholder {
  color: #1E8B8E;
  font-size: 20px;
  font-weight: 800;
}

.mlpb__option-content {
  min-width: 0;
}

.mlpb__option-content strong,
.mlpb__option-content small,
.mlpb__option-content b,
.mlpb__option-content em {
  display: block;
}

.mlpb__option-content strong {
  color: #1F2933;
  font-size: 14px;
  line-height: 1.3;
}

.mlpb__option-content small {
  margin-top: 3px;
  overflow: hidden;
  color: #5F6B76;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mlpb__option-content b {
  margin-top: 4px;
  color: #006B68;
  font-size: 13px;
}

.mlpb__option-content em {
  margin-top: 4px;
  color: #D76550;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.mlpb__option-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: transparent;
  border: 1px solid #CBD5D5;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.mlpb__option:has(input:checked) .mlpb__option-check {
  color: #FFFFFF;
  background: #006B68;
  border-color: #006B68;
}

.mlpb__summary {
  position: sticky;
  top: 24px;
  padding: 26px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #D7E1E1;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(31, 41, 51, 0.1);
}

.mlpb__summary::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #004F4D, #006B68, #1E8B8E);
  content: "";
}

.mlpb__summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0 18px;
  border-bottom: 1px solid #E3E8E8;
}

.mlpb__summary-head span {
  color: #1F2933;
  font-size: 20px;
  font-weight: 800;
}

.mlpb__summary-head strong {
  color: #006B68;
  font-size: 13px;
}

.mlpb__summary-lines {
  display: grid;
  gap: 0;
  padding: 12px 0;
}

.mlpb__summary-lines > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #EEF2F2;
  font-size: 13px;
}

.mlpb__summary-lines span {
  color: #5F6B76;
}

.mlpb__summary-lines strong {
  flex: 0 0 auto;
  color: #1F2933;
}

.mlpb__validation {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 6px 0 20px;
  padding: 13px;
  color: #006B68;
  background: rgba(30, 139, 142, 0.09);
  border-radius: 9px;
}

.mlpb__validation > span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: #FFFFFF;
  background: #1E8B8E;
  border-radius: 50%;
  font-weight: 800;
}

.mlpb__validation p,
.mlpb__validation strong {
  display: block;
  margin: 0;
}

.mlpb__validation p {
  color: #5F6B76;
  font-size: 11px;
  line-height: 1.4;
}

.mlpb__validation strong {
  margin-bottom: 1px;
  color: #006B68;
  font-size: 13px;
}

.mlpb__add,
.mlpb__cart-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.mlpb__add {
  color: #FFFFFF;
  background: linear-gradient(135deg, #004F4D 0%, #006B68 55%, #1E8B8E 100%);
  border: 0;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(0, 107, 104, 0.2);
}

.mlpb__add:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.mlpb__cart-link {
  margin-top: 10px;
  color: #006B68;
  background: #FFFFFF;
  border: 1px solid #006B68;
}

.mlpb__cart-link:hover {
  color: #004F4D;
  background: #F4F8F8;
  text-decoration: none;
}

.mlpb__message {
  min-height: 18px;
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.mlpb__message--success {
  color: #15803D;
}

.mlpb__message--error {
  color: #D76550;
}

.mlpb__help {
  display: block;
  margin-top: 14px;
  color: #7A8792;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 1024px) {
  .mlpb {
    width: calc(100% - 40px);
    margin: 48px auto;
  }

  .mlpb__layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
  }

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

  .mlpb__step,
  .mlpb__summary {
    padding: 22px;
  }
}

@media (max-width: 767px) {
  .mlpb {
    width: calc(100% - 32px);
    margin: 40px 16px;
  }

  .mlpb__header {
    margin-bottom: 26px;
  }

  .mlpb__title {
    font-size: 31px;
  }

  .mlpb__intro {
    font-size: 16px;
  }

  .mlpb__layout {
    display: block;
  }

  .mlpb__quantity-card {
    align-items: flex-start;
    padding: 20px;
  }

  .mlpb__quantity-card > div:first-child span {
    display: none;
  }

  .mlpb__quantity {
    grid-template-columns: 38px 50px 38px;
  }

  .mlpb__step {
    padding: 18px;
  }

  .mlpb__step legend {
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .mlpb__step legend strong {
    font-size: 16px;
  }

  .mlpb__step legend em {
    display: none;
  }

  .mlpb__option {
    grid-template-columns: 44px minmax(0, 1fr) 22px;
    min-height: 74px;
    padding: 12px;
  }

  .mlpb__option-visual {
    width: 44px;
    height: 44px;
  }

  .mlpb__summary {
    position: static;
    margin-top: 24px;
    padding: 20px;
  }
}
