/* Frequently bought together: this product + two best sellers, added with one button.
   Rendered as its own section (so quick add never has to build it) and moved under the buy buttons by bestseller.js. */
.brand-fbt-section {
  max-width: 720px;
  padding-block: 16px;
}

.brand-fbt-section:empty {
  display: none;
}

.brand-fbt {
  padding: 16px;
  background: #fff;
  border: 1px solid #dcd6cb;
  border-radius: 14px;
}

.brand-fbt__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.brand-fbt .brand-fbt__title {
  margin: 0;
  font-family: var(--bs-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: #1c1d1f;
}

.brand-fbt__next {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 12px;
  font-family: var(--bs-ui);
  font-size: 12px;
  font-weight: 600;
  color: #1c1d1f;
  cursor: pointer;
  background: #f6f4ef;
  border: 1px solid #dcd6cb;
  border-radius: 999px;
}

.brand-fbt__next[hidden] {
  display: none;
}

.brand-fbt__next svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
}

.brand-fbt__next:hover {
  color: #fff;
  background: #1c1d1f;
  border-color: #1c1d1f;
}

.brand-fbt__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.brand-fbt__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  background: #f6f4ef;
  border-radius: 10px;
}

.brand-fbt__item[data-fbt-group]:not(.is-visible) {
  display: none;
}

.brand-fbt__item.is-off {
  opacity: 0.5;
}

.brand-fbt__check {
  position: relative;
  flex-shrink: 0;
  align-self: center;
  width: 22px;
  height: 22px;
  cursor: pointer;
}

.brand-fbt__check input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.brand-fbt__check span {
  display: block;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 1.5px solid #5c5a54;
  border-radius: 6px;
}

.brand-fbt__check input:checked + span {
  background: #1c1d1f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: #1c1d1f;
}

.brand-fbt__check input:focus-visible + span {
  outline: 2px solid #b4532a;
  outline-offset: 2px;
}

.brand-fbt__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 90px;
  overflow: hidden;
  background: #efece6;
  border-radius: 8px;
}

.brand-fbt__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-fbt__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-fbt__this {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b4532a;
}

.brand-fbt a.brand-fbt__name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #1c1d1f;
  text-decoration: none;
}

.brand-fbt__price {
  font-family: var(--bs-ui);
  font-size: 15px;
  font-weight: 700;
  color: #1c1d1f;
}

.brand-fbt__price s {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 400;
  color: #5c5a54;
}

.brand-fbt__options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.brand-fbt__select {
  min-width: 0;
  max-width: 100%;
  height: 32px;
  padding: 0 26px 0 10px;
  font-family: var(--bs-ui);
  font-size: 12px;
  color: #1c1d1f;
  cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1d1f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 8px center / 12px no-repeat;
  border: 1px solid #dcd6cb;
  border-radius: 8px;
  appearance: none;
}

.brand-fbt__select.is-missing {
  border-color: #b4532a;
  box-shadow: 0 0 0 1px #b4532a;
}

.brand-fbt__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid #dcd6cb;
}

.brand-fbt__total {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  align-items: baseline;
}

.brand-fbt__total-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5c5a54;
}

.brand-fbt__total-price {
  font-family: var(--bs-ui);
  font-size: 22px;
  font-weight: 700;
  color: #1c1d1f;
}

.brand-fbt__total-compare {
  font-size: 13px;
  color: #5c5a54;
}

.brand-fbt__ship {
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 600;
  color: #424f40;
}

/* Bright green keeps it apart from the rust Add to Cart and the charcoal Buy now above */
.brand-fbt__add {
  position: relative;
  min-height: 46px;
  padding: 0 22px;
  font-family: var(--bs-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  background: #2e7d32;
  border: 0;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.brand-fbt__add:hover {
  background: #256628;
}

.brand-fbt__add:disabled {
  cursor: default;
  opacity: 0.6;
}

.brand-fbt__add.is-loading span {
  visibility: hidden;
}

.brand-fbt__add.is-loading::after {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  margin: auto;
  content: "";
  border: 2px solid rgb(255 255 255 / 35%);
  border-top-color: #fff;
  border-radius: 50%;
  animation: brand-fbt-spin 0.8s linear infinite;
}

@keyframes brand-fbt-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 959px) {
  .brand-fbt {
    padding: 12px;
  }

  .brand-fbt__thumb {
    width: 60px;
    height: 76px;
  }

  .brand-fbt__add {
    width: 100%;
  }
}
