.mfb-half-half-product {
  box-sizing: border-box;
}

.mfb-half-half-product .left .image {
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
}

.mfb-half-half-product .catImage {
  cursor: pointer;
  display: block;
  height: 100%;
  overflow: hidden;
  width: 100%;
}

.mfb-half-half-product .catImage img {
  display: block;
  height: 100% !important;
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
  width: 100% !important;
}

.mfb-half-half-product .mfb-half-half-size-button {
  box-sizing: border-box;
  cursor: pointer;
  font: inherit;
  margin: 0;
  width: 118px;
}

.mfb-half-half-product .mfb-half-half-size-button .sizeprice,
.mfb-half-half-product .mfb-half-half-size-button .basket {
  display: inline-block;
  vertical-align: middle;
}

.mfb-half-half-product .mfb-half-half-size-button .basket:before {
  color: #fff;
  content: "\f291";
  font-family: FontAwesome;
  font-size: 12px;
  line-height: 15px;
}

.mfb-half-half-product .mfb-half-half-size-button.is-added {
  background: #eaf8ef !important;
  border-color: #23964b !important;
  color: #176b35 !important;
}

.mfb-half-half-dialog[hidden] {
  display: none !important;
}

.mfb-half-half-dialog {
  align-items: center;
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 2147483100;
}

.mfb-half-half-backdrop {
  background: rgba(12, 17, 29, .72);
  inset: 0;
  position: absolute;
}

.mfb-half-half-panel {
  background: #f5f6f8;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 36px);
  max-width: 820px;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
  z-index: 1;
}

.mfb-half-half-panel .mfb-half-half-header {
  align-items: center;
  background: #f5a91b;
  border: 0;
  display: flex;
  justify-content: space-between;
  min-height: 62px;
  padding: 15px 64px 14px 22px;
  position: relative;
}

.mfb-half-half-panel header > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mfb-half-half-panel header strong {
  color: #111827;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .2px;
  line-height: 1.2;
  text-transform: uppercase;
}

.mfb-half-half-panel header span {
  color: #667085;
  font-size: 14px;
}

.mfb-half-half-close {
  align-items: center;
  background: rgba(255, 255, 255, .9);
  border: 0;
  border-radius: 50%;
  color: #101828;
  cursor: pointer;
  display: flex;
  flex: 0 0 40px;
  font-size: 18px;
  height: 40px;
  justify-content: center;
  width: 40px;
  position: absolute;
  right: 12px;
  top: 11px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
}

.mfb-half-half-body {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px 20px;
}

.mfb-half-half-intro {
  color: #667085;
  font-size: 14px;
  margin: 0 0 14px;
}

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

.mfb-half-half-column {
  background: #fff;
  border: 1px solid #d5dce5;
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
}

.mfb-half-half-column-title {
  align-items: center;
  background: #dfe5ed;
  border-bottom: 1px solid #c7d0dc;
  display: flex;
  gap: 10px;
  min-height: 66px;
  padding: 10px 14px;
}

.mfb-half-half-column-number {
  align-items: center;
  background: #24133d;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 16px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
}

.mfb-half-half-column-title strong,
.mfb-half-half-column-title small {
  display: block;
}

.mfb-half-half-column-title strong {
  color: #111827;
  font-size: 17px;
  line-height: 1.25;
}

.mfb-half-half-column-title small {
  color: #667085;
  font-size: 12px;
  margin-top: 2px;
}

.mfb-half-half-choice-list {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.mfb-half-half-choice {
  align-items: center;
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 7px;
  box-sizing: border-box;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 22px;
  min-height: 58px;
  padding: 10px 12px;
  position: relative;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
  width: 100%;
}

.mfb-half-half-choice:hover,
.mfb-half-half-choice:focus-within {
  border-color: #aeb7c5;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .07);
}

.mfb-half-half-choice.is-selected {
  background: #fff6f7;
  border-color: #e11d2e;
}

.mfb-half-half-choice input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.mfb-half-half-choice-name {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
}

.mfb-half-half-choice-control {
  background: #fff;
  border: 2px solid #9aa4b2;
  border-radius: 50%;
  box-sizing: border-box;
  height: 21px;
  width: 21px;
}

.mfb-half-half-choice input:checked + .mfb-half-half-choice-name + .mfb-half-half-choice-control {
  background: #e11d2e;
  border-color: #e11d2e;
  box-shadow: inset 0 0 0 4px #fff;
}

.mfb-half-half-error {
  align-items: center;
  background: #fff1f2;
  border-left: 5px solid #dc2626;
  border-top: 1px solid #fecaca;
  box-sizing: border-box;
  color: #991b1b;
  display: none;
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  min-height: 50px;
  padding: 11px 22px;
  width: 100%;
}

.mfb-half-half-error:not(:empty) {
  display: flex;
}

.mfb-half-half-error::before {
  align-items: center;
  background: #fee2e2;
  border-radius: 50%;
  color: #dc2626;
  content: "\f071";
  display: inline-flex;
  flex: 0 0 30px;
  font-family: FontAwesome;
  font-size: 15px;
  height: 30px;
  justify-content: center;
  margin-right: 11px;
}

.mfb-half-half-panel .mfb-half-half-footer {
  align-items: center;
  background: linear-gradient(180deg, #242424 0%, #050505 100%);
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 -10px 32px rgba(0, 0, 0, .22);
  display: grid;
  flex: 0 0 auto;
  gap: 16px;
  grid-template-columns: 1fr auto 1fr;
  min-height: 82px;
  padding: 16px 22px;
}

.mfb-half-half-total {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  justify-self: center;
  line-height: 30px;
  text-align: center;
  white-space: nowrap;
}

.mfb-half-half-back,
.mfb-half-half-add {
  align-items: center !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  display: inline-flex !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  justify-content: center !important;
  line-height: 48px !important;
  margin: 0 !important;
  min-height: 48px !important;
  min-width: 126px !important;
  padding: 0 20px !important;
  text-transform: uppercase !important;
}

.mfb-half-half-back {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, .48) !important;
  color: #fff !important;
  justify-self: start;
}

.mfb-half-half-back .fa {
  margin-right: 8px;
}

.mfb-half-half-add {
  background: #d71920 !important;
  border: 0 !important;
  color: #fff !important;
  justify-self: end;
  min-width: 162px !important;
}

.mfb-half-half-add.is-loading {
  opacity: .65;
}

.mfb-half-half-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .mfb-half-half-product .mfb-half-half-size-button {
    width: 112px;
  }

  .mfb-half-half-dialog {
    padding: 8px;
  }

  .mfb-half-half-panel {
    max-height: calc(100vh - 16px);
  }

  .mfb-half-half-panel .mfb-half-half-header {
    min-height: 56px;
    padding: 13px 54px 12px 16px;
  }

  .mfb-half-half-panel header strong {
    font-size: 18px;
  }

  .mfb-half-half-panel header span {
    font-size: 12px;
  }

  .mfb-half-half-columns {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mfb-half-half-body {
    padding: 12px;
  }

  .mfb-half-half-column-title {
    gap: 7px;
    min-height: 60px;
    padding: 8px;
  }

  .mfb-half-half-column-number {
    flex-basis: 29px;
    font-size: 13px;
    height: 29px;
  }

  .mfb-half-half-column-title strong {
    font-size: 14px;
  }

  .mfb-half-half-column-title small {
    font-size: 10px;
  }

  .mfb-half-half-choice-list {
    gap: 7px;
    padding: 7px;
  }

  .mfb-half-half-choice {
    gap: 5px;
    grid-template-columns: minmax(0, 1fr) 18px;
    min-height: 54px;
    padding: 7px;
  }

  .mfb-half-half-choice-name {
    font-size: 11px;
  }

  .mfb-half-half-choice-control {
    height: 18px;
    width: 18px;
  }

  .mfb-half-half-choice input:checked + .mfb-half-half-choice-name + .mfb-half-half-choice-control {
    box-shadow: inset 0 0 0 3px #fff;
  }

  .mfb-half-half-panel .mfb-half-half-footer {
    gap: 8px;
    grid-template-columns: 1fr auto 1fr;
    min-height: 72px;
    padding: 12px;
  }

  .mfb-half-half-back,
  .mfb-half-half-add {
    font-size: 13px !important;
    line-height: 44px !important;
    min-height: 44px !important;
    min-width: 90px !important;
    padding: 0 12px !important;
  }

  .mfb-half-half-total {
    font-size: 18px;
    line-height: 24px;
  }

  .mfb-half-half-error {
    border-left-width: 4px;
    font-size: 14px;
    line-height: 1.3;
    min-height: 46px;
    padding: 9px 12px;
  }

  .mfb-half-half-error::before {
    flex-basis: 26px;
    font-size: 13px;
    height: 26px;
    margin-right: 8px;
  }
}
