/* Flavour layout: dropdown, including size rows when the flavour control is a dropdown */
.product-variant-select-options__default.product-variant-select-options--dropdown {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  margin: 0 0 16px;
}

.product-flavor-dropdown {
  display: block;
  width: 100%;

  .taste-select__trigger {
    border: 1px solid var(--flavor-select-border-color);
    border-radius: 8px;
    background: #FFFAF5;
    padding: 4px 12px 4px 9px;

    svg {
      margin: 0;
    }
  }

  .taste-select__option.is-selected:before {
    display: none;
  }

  .taste-select__option-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
  }

  .taste-select__option-title-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    flex: 1;
  }

  .taste-select__option-title-text {
    padding-right: 8px;
  }

  .product-flavor-dropdown__badge {
    position: relative !important;
    flex-shrink: 0;
    margin: 0 10px 0 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 14px;
    text-transform: inherit;
  }

  .taste-select__label {
    flex: 1;
    min-width: 0;

    .taste-select__option-title {
      flex: 1;
    }

    .taste-select__option-title-main {
      justify-content: space-between;
    }

    .product-flavor-dropdown__badge {
      margin-right: 10px;
    }

    .taste-select__option-image {
      margin-right: 7px;
      border: none;
    }
  }

  .taste-select__option:hover {
    background: #faf7ff;
  }

  .taste-select__option.is-selected .taste-select__option-icon {
    display: block;
  }

  .taste-select__option-image img,
  .taste-select__label .taste-select__option-image img,
  .taste-select__option img {
    display: block;
    padding: 0;
    object-fit: contain;
    object-position: center;
    aspect-ratio: 1 / 1;
  }

  .taste-select__list {
    background: #FFFAF5;
    border: 1px solid #D8D5D0;
    border-radius: 8px;
    z-index: 5;
    margin-top: 0px;
    overflow: hidden;
    border-top: none;
    padding: 7px 9px;
    gap: 5px;

    &:not[hidden] {
      display: flex;
      flex-direction: column;
    }
  }

  .taste-select__option {
    gap: 6px;
    padding: 4px 2px;

    &.is-selected::before {
      flex: 0 0 14px;
      width: 14px;
      text-align: center;
    }
  }
}

.product-option-dropdown .product-variant-options__price .compare-price {
  color: #717171;
}

.product-option-dropdown .taste-select__option-image {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  padding: 0;
  border: none;
  overflow: hidden;
  background: transparent;
  aspect-ratio: 1 / 1;
}

.product-option-dropdown .taste-select__option-image,
.product-flavor-dropdown .taste-select__option-image img {
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
}

@media screen and (max-width: 768px) {
  .product-option-dropdown .taste-select__option-image,
  .product-flavor-dropdown .taste-select__option-image img {
    flex: 0 0 30px;
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
  }
}

.taste-select__option-icon {
  display: none;
}

.product-variant__select__options[data-flavor-selector-style="dropdown"] {
  .product-variant-options-size .product-variant-option-name {
    background: transparent;
    padding: 0;
    min-width: 0;
    border-radius: 0;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
  }

  .product-variant-options--wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .product-variant-options__inner,
  .product-variant-options__inner-info {
    align-items: flex-start;
  }

  .product-variant-options__wrapper {
    align-items: flex-start;
  }

  .poduct-variant-options__price-per-kg {
    text-align: left;
    color: #888888;
    font-size: 8px !important;
    line-height: 1.3;
  }

  .product-variant-options__price-container {
    align-items: flex-end;
    margin-left: auto;
    text-align: right;
  }

  .product-variant-options-price-container__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: max-content;
    text-align: right;

    &.reverse {
      flex-direction: column-reverse;
    }
  }

  .product-variant-options__price-per-portion {
    display: block;
    width: 100%;
    text-align: right;
  }

  .product-variant-options-price-container__inner:not(.reverse) .product-variant-options__price-per-portion {
    font-weight: 700;
  }

  .product-variant-options--subscription accordion-tab details summary,
  .product-subscription__body accordion-tab details summary {
    color: #888888;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 12px;
    text-align: center;
  }
}
