/* ---------- MFBT Frontend Block ---------- */
.mfbt-block {
  display: grid;
  gap: 24px;
  background: #fff;
  padding: 15px;
  border: 1px solid #e1e1e1;
}

.mfbt-title {
  font-size: 1.4em;
  margin-bottom: 15px;

  text-align: center;
}

.mfbt-wrapper {
    background-color: #fbf6f1;
    padding: 10px;
    border-radius: 10px;
    margin-top:20px;
}

.mfbt-wrapper table.mfbt-variations-table  {
    margin-bottom: 0px;
}

/* ---------- Items ---------- */
.mfbt-items {
  display: flex;
  gap: 30px;
}

.mfbt-item {
    display: flex
    ;
        gap: 12px;
        align-items: center;
        background: #fff;
        padding: 0px 0;
        flex-direction: column;
        max-width: 190px;
        padding: 5px;
        border-radius: 10px;
        box-shadow: 1px 0px 21px -10px;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
}
.mfbt-item table td,
.mfbt-item table th {
  border-bottom: 0 !important;
}
.mfbt-thumb {
  width: 180px;
  height: 180px;
  object-fit: cover;
  display: block;
}
.mfbt-thumb img {
  object-fit: cover;
  display: block;
}

.mfbt-name {
  font-weight: 500;
  font-size: 16px;
  margin-top: 8px;
}

.mfbt-price {
  font-size: 0.975rem;
  margin-top: 5px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.mfbt-old {
  text-decoration: line-through;
  color: #999;
  display: block;
}
.mfbt-new {
  font-weight: bold;
}
.mfbt-item table.variations label:after {
  display: none;
}
/* ---------- Swatches ---------- */
.mfbt-swatches {
  display: flex;
  gap: 8px;
  margin-top: 5px;
}

.mfbt-swatch {
  border: 1px solid #ddd !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
  cursor: pointer !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fafafa;
  height: 22px;
  width: 22px;
  max-width: 22px;
  min-height: 22px !important;
  padding: 0px !important;
}

.mfbt-swatch.selected {
  outline: 2px solid #222;
  background: #fff;
  border-color: transparent;
}

.mfbt-swatch__img,
.mfbt-swatch__color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 1px solid #ddd;
}

.mfbt-swatch__text {
  font-size: 12px;
  line-height: 1;
}

.mfbt-swatch__overlay {
  position: absolute;
  background-color: red;
  width: 2px;
  height: 80%;
  border-radius: 9999px;
  transform: rotate(45deg);
}

.mfbt-attr-select {
  display: none !important;
}

/* ---------- Actions ---------- */
.mfbt-actions {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: left;
}

.mfbt-submit {
  width: 80%;
  background: #007cba;
  color: #fff;
  padding: 8px 0;
}

.button.mfbt-add-to-cart {
  border-radius: var(--btn-accented-brd-radius);
  color: var(--btn-accented-color);
  box-shadow: var(--btn-accented-box-shadow);
  background-color: var(--btn-accented-bgcolor);
  text-transform: var(
    --btn-accented-transform,
    var(--btn-transform, uppercase)
  );
  font-weight: var(--btn-accented-font-weight, var(--btn-font-weight, 600));
  font-family: var(--btn-accented-font-family, var(--btn-font-family, inherit));
  font-style: var(--btn-accented-font-style, var(--btn-font-style, unset));
  width:100%;
}
.button.mfbt-add-to-cart:hover {
  border-radius: var(--btn-accented-brd-radius);
  color: var(--btn-accented-color);
  box-shadow: var(--btn-accented-box-shadow);
  background-color: var(--btn-accented-bgcolor);
  text-transform: var(
    --btn-accented-transform,
    var(--btn-transform, uppercase)
  );
  font-weight: var(--btn-accented-font-weight, var(--btn-font-weight, 600));
  font-family: var(--btn-accented-font-family, var(--btn-font-family, inherit));
  font-style: var(--btn-accented-font-style, var(--btn-font-style, unset));
}

.variations.mfbt-variations-table tr {
  display: flex;
  flex-direction: column;
}
.variations.mfbt-variations-table tr th,
.variations.mfbt-variations-table tr td {
  padding: 0 !important;
}

.variations.mfbt-variations-table tr th label {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.125rem;
  color: rgb(128, 128, 128);
  margin: 0px;
  padding: 0px;
  margin-bottom: 8px;
}
.variations.mfbt-variations-table tr th label strong {
  font-size: 0.875rem;
}
.mfbt-summary {
  color: black;
  font-size: 20px;
  text-align: center;
}

.mfbt-total-price,
.mfbt-savings {
  margin-right: 10px;
  font-weight: 600;
}

.mfbt-wrapper .slick-slide {
  position: relative;
}

.mfbt-wrapper .slick-slide:not(:last-child) .mfbt-thumb::after {
  content: "+";
  position: absolute;
  right: -40px; /* adjust spacing */
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px; /* size of + */
  color: #000; /* color of + */
}
.mfbt-wrapper .slick-slide:not(:last-child) .mfbt-thumb {
  position: relative;
}

.mfbt-wrapper .slick-slide {
  margin: 0 30px; /* 30px left + 30px right = 60px total gap */
}

.mfbt-wrapper .slick-slide:first-child {
    margin: 0 30px; /* 30px left + 30px right = 60px total gap */
    margin-left: 5px !important;
  }
  

.mfbt-checkbox {
  position: absolute;
  opacity: 0;
}

/* thumb container */
.mfbt-thumb {
  position: relative;
}

/* default custom box */
.mfbt-thumb::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 15px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: #00000000;
  border-radius: 6px;
  transition: 0.2s;
  cursor: pointer;
  border: 2px solid #000;

}

/* checked state */
.mfbt-checkbox:checked + .mfbt-thumb::before {
  content: "✔";
  color: #fff;
  font-size: 16px;
  text-align: center;
  line-height: 24px;
}

/* disabled state (unchecked) */
.mfbt-checkbox:disabled + .mfbt-thumb::before {
  background: #aaa; /* grey box */
}

.mfbt-checkbox:disabled + .mfbt-thumb::before {
    border: 2px solid #aaa;
}
/* disabled + checked */
.mfbt-checkbox:checked:disabled + .mfbt-thumb::before {
  background: #aaa;
  color: #fff; /* faded check */
}


.mfbt-checkbox:checked + .mfbt-thumb::before {
    background: #000;
}

.slick-arrow img{
    width: 24px;
    height: auto;
    position: absolute;
}

.discount-special-text {
    background-color: #f8f8f8;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: none;
}
.discount-special-text img{
    margin-right: 10px;
}
@media screen and (max-width: 768px) {
  .mfbt-submit {
    width: 100%;
  }

  .mfbt-summary {
    color: black;
    font-size: 16px;
}
.mfbt-savings {
    white-space: nowrap;
}
}
