.product-page-custom {
  --product-font-family: Roboto;
  --product-small-font-size: 12px;
  --product-price-line-height: 24px;

  .product__breadcrumbs {
    margin: 0 0 8px;
  }

  .product__price {
    padding: 0;

    .price-item {
      margin: 0;
    }

    .price__sale {
      display: flex;
      align-items: center;
      gap: 16px;

      @media (min-width: 750px) {
        gap: 10px;
      }

      .price-item--sale {
        font-family: var(--product-font-family);
        font-size: 18px;
        font-style: normal;
        line-height: var(--product-price-line-height);
      }

      .price-item--regular {
        font-family: var(--product-font-family);
        font-size: 14px;
        font-style: normal;
        line-height: var(--product-price-line-height); /* 171.429% */
        text-decoration-line: line-through;
      }
    }

    &.price--custom-styles {
      .price__regular .price-item--regular {
        color: var(--product-regular-price-color, #212121);
        font-weight: var(--product-regular-price-font-weight, 300);
      }

      .price__sale {
        .price-item--sale {
          color: var(--product-sale-price-color, #f62e2e);
          font-weight: var(--product-sale-price-font-weight, 600);
        }

        .price-item--regular {
          color: var(--product-compare-at-price-color, #212121);
          font-weight: var(--product-compare-at-price-font-weight, 300);
          opacity: 0.8;
        }
      }
    }

    .product__price--off {
      margin-left: 20px;
      padding-inline: 10px;

      text-align: center;
      font-family: var(--product-font-family);
      font-size: var(--product-small-font-size);
      font-style: normal;
      line-height: 16px;
      text-transform: uppercase;

      @media (min-width: 750px) {
        margin-left: 16px;
        padding-inline: 15px;
      }
    }

    &.price--custom-styles .product__price--off {
      background: var(--product-discount-badge-background-color, #212121);
      color: var(--product-discount-badge-text-color, #fff);
      font-weight: var(--product-discount-badge-font-weight, 700);
    }
  }

  .product__selectors {
    .radio__legend__option-name {
      color: #212121;
      font-family: var(--product-font-family);
      font-size: 16px;
      font-style: normal;
      font-weight: 400;
      line-height: normal;
    }

    .radio__legend__value {
      flex-basis: auto;
      padding: 0;
      color: #212121;
      font-family: var(--product-font-family);
      font-size: var(--product-small-font-size);
      font-weight: 400;
      line-height: 1;
      padding-top: 2px;

      @media (min-width: 750px) {
        font-size: 16px;
        padding-top: 0;
      }
    }

    .radio__fieldset {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
      padding-top: 20px;

      @media (min-width: 750px) {
        gap: 12px;
      }
    }
  }

  .radio__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  #product--group-swatch[data-swatches-pending] .radio__buttons {
    display: none;
  }

  .custom-product-group-swatch__skeleton {
    --skeleton-swatch-size: 70px;
  }

  .custom-product-group-swatch__skeleton-item {
    display: block;
    width: var(--skeleton-swatch-size);
    height: var(--skeleton-swatch-size);
    background: linear-gradient(90deg, #eeeeee 25%, #f7f7f7 50%, #eeeeee 75%);
    background-size: 200% 100%;
    animation: product-group-swatch-skeleton 1.4s ease-in-out infinite;
  }

  .custom-product-group-swatch {
    --swatch-size: 70px;
    --swatch-border-radius: 0;
    --swatch-active-color: #485d5e;
    --swatch-hover-color: #e6dbd0;

    .radio__buttons {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      justify-items: stretch;
      width: 100%;

      @media (min-width: 750px) {
        display: flex;
        flex-wrap: wrap;
      }
    }

    .radio__buttons > a {
      display: flex;
      justify-content: center;
      min-width: 0;
      width: 100%;

      @media (min-width: 750px) {
        width: auto;
      }
    }

    .swatch__button {
      margin: 0;
      padding: 0;
      width: 100%;

      @media (min-width: 750px) {
        width: auto;
      }
    }

    .swatch__button--circle input ~ label {
      box-sizing: border-box;
      border: 1px solid transparent;
      border-color: transparent;
      border-radius: var(--swatch-border-radius);
      background-origin: content-box;
      background-clip: content-box;
      height: var(--swatch-size);
      padding: 5px;
      width: 100%;

      @media (min-width: 750px) {
        width: var(--swatch-size);
      }
    }

    .swatch__button--circle input ~ label.swatch-label--loading::before {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 1;
      background: linear-gradient(90deg, #eeeeee 25%, #f7f7f7 50%, #eeeeee 75%);
      background-size: 200% 100%;
      animation: product-group-swatch-skeleton 1.4s ease-in-out infinite;
    }

    .swatch__image-preload {
      position: absolute;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
    }

    @keyframes product-group-swatch-skeleton {
      0% {
        background-position: 100% 0;
      }

      100% {
        background-position: -100% 0;
      }
    }

    .swatch__button--circle input ~ label.active {
      border: 1px solid var(--swatch-active-color) !important;
      box-shadow: none !important;
    }

    .swatch__button--circle input ~ label::after {
      display: none !important;
    }

    .swatch-custom-colors-inner {
      .radio__fieldset.radio__fieldset--swatches {
        padding-inline: 2px;
      }

      .radio__buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
      }

      .radio__buttons > a {
        width: auto;
      }

      .swatch__button {
        width: auto;
      }

      .swatch__button--circle input ~ label {
        border-color: transparent;
        height: auto;
        min-height: 0;
        min-width: 0;
        width: auto;
      }

      .swatch__button--circle input ~ label.active {
        border-color: var(--swatch-active-color);
      }

      .swatch__button:hover input ~ label:not(.active),
      a:hover .swatch__button input ~ label:not(.active) {
        border-color: var(--swatch-hover-color);
      }
    }

    .swatch-custom-colors-inner .radio__fieldset--swatches .radio__buttons {
      margin: 0;
      padding-inline: 2px;
    }

    fieldset:not(.swatch-custom-colors-inner) {
      .radio__buttons {
        margin: 0;
      }

      .swatch__button--circle input ~ label {
        border-color: transparent;
      }

      .swatch__button--circle input ~ label.active {
        border-color: var(--swatch-active-color);
      }

      .swatch__button:hover input ~ label,
      a:hover .swatch__button input ~ label {
        overflow: initial;
      }

      .swatch__button:hover input ~ label:not(.active),
      a:hover .swatch__button input ~ label:not(.active) {
        border-color: var(--swatch-hover-color);
      }
    }
  }

  .product__content > .form__wrapper > .form__width {
    container-type: inline-size;
  }

  .product__submit {
    .product__submit__buttons {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 8px;
      width: 100%;
    }

    .product__submit__item--add-to-cart {
      width: 100%;

      .btn[data-add-to-cart] {
        display: flex;
        width: 100%;
        height: 52px;
        min-height: 52px;
        align-items: center;
        justify-content: center;
        padding: 0 16px;
        border-color: #405f5e !important;
        background: #405f5e !important;
        color: #fff !important;
        font-family: Roboto, sans-serif;
        font-size: 18px;
        font-style: normal;
        font-weight: 600;
        line-height: 20px;
        letter-spacing: 1px;
      }
    }

    .product__submit__item--dynamic {
      display: block;
      box-sizing: border-box;
      min-width: 0;
      align-self: stretch;
      margin: 0;
      padding: 0;

      .shopify-payment-button {
        display: block;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
      }

      shopify-accelerated-checkout,
      shopify-accelerated-checkout-cart {
        display: block;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        --shopify-accelerated-checkout-button-block-size: 52px;
        --shopify-accelerated-checkout-button-border-radius: 0px;
        --shopify-accelerated-checkout-button-box-shadow: none;
      }

      shopify-accelerated-checkout {
        height: 52px;
        max-height: 52px;
        overflow: hidden;
      }

      .shopify-payment-button__more-options {
        display: none !important;
      }
    }
  }

  .product-form__payment-icons {
    box-sizing: border-box;
    width: 100%;
    max-width: 744px;
    margin: 16px auto 0;
    overflow: hidden;

    ul {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 4px;
      width: 100%;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    li {
      display: flex;
      flex: 0 0 auto;
      align-items: center;
      justify-content: center;
    }

    .payment-icon {
      display: block;
      width: auto;
      max-width: 100%;
      height: 24px;
      max-height: 24px;
    }
  }

  @media (max-width: 749px) {
    .product-form__payment-icons {
      max-width: 100%;
    }
  }

  .product__block.block__icon__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    column-gap: 8px;
    width: 100%;

    > .block__icon__container {
      display: grid;
      grid-template-columns: 24px minmax(0, auto);
      align-items: center;
      width: fit-content;
      max-width: 100%;
      min-width: 0;
      justify-content: center;
      justify-self: center;
      column-gap: 8px;
      margin-bottom: 0;

      .block__icon {
        --icon-size: 24px !important;
        grid-column: 1;
        align-self: center;
        width: 24px;
        height: 24px;
        margin-right: 0;
      }

      .block__icon__text,
      .block__icon__text > * {
        grid-column: 2;
        min-width: 0;
        color: #212121;
        font-family: Roboto, sans-serif;
        font-size: var(--icon-text-size-desktop, 14px);
        font-style: normal;
        font-weight: 300;
        line-height: normal;
      }
    }
  }

  @container (max-width: 449px) {
    .product__block.block__icon__row {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      align-items: center;
      column-gap: 0;
      justify-content: center;
      padding-top: 8px;
      row-gap: 8px;

      > .block__icon__container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 4px;
        min-width: 0;
        width: 100%;
        text-align: center;

        .block__icon {
          flex-basis: 24px;
          margin-right: 0;
        }

        .block__icon__text,
        .block__icon__text > * {
          width: 100%;
          max-width: 100%;
          font-size: var(--icon-text-size-mobile, 12px);
          text-align: center;
        }
      }
    }
  }

  @container (max-width: 349px) {
    .product__block.block__icon__row {
      grid-template-columns: minmax(0, 1fr);
      align-items: center;

      > .block__icon__container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
        max-width: none;
        width: 100%;
        text-align: left;

        .block__icon__text,
        .block__icon__text > * {
          width: auto;
          flex: 1 1 auto;
          text-align: left;
        }
      }
    }
  }

  .cart-bar {
    --bg: #fff;
    min-height: 116px;
    background: #fff;
    box-shadow: 0 -2px 27px rgba(0, 0, 0, 0.15);

    .cart-bar__form__wrapper {
      justify-content: space-between;
      padding: 32px;
    }

    .cart-bar__info {
      flex: 0 1 auto;
      min-width: 0;
      padding-right: 10px;
      text-align: left;
    }

    .cart-bar__product__title {
      color: #212121;
      font-family: var(--FONT-STACK-HEADING);
      font-size: 16px;
      font-weight: 400;
      line-height: 24px;
    }

    .cart-bar__product__price {
      display: flex;
      flex: 0 0 auto;
      align-items: center;
      gap: 0;
      margin: 0;
      padding: 0 0 0 10px;
      color: #212121;
      font-family: Roboto, sans-serif;
      font-size: 16px;
      font-weight: 300;
      line-height: 24px;
      white-space: nowrap;
    }

    .cart-bar__product__price::before {
      flex: 0 0 auto;
      padding-right: 10px;
      font-size: 16px;
      line-height: 24px;
    }

    .cart-bar__product__price [data-product-price] {
      color: #212121;
      font-family: Roboto, sans-serif;
      font-size: 16px;
      font-weight: 300;
      line-height: 24px;
      margin-right: 4px;
      font-variation-settings: "wdth" 100;
    }

    .cart-bar__product__price [data-product-price].product__price--sale {
      color: #f62e2e;
      font-size: 18px;
      font-weight: 700;
      margin-right: 4px;
    }

    .cart-bar__product__price .product__price--strike {
      display: block;
      margin: 0;
      color: rgba(33, 33, 33, 0.8);
      font-family: Roboto, sans-serif;
      font-size: 14px;
      font-weight: 300;
      line-height: 24px;
      text-decoration: line-through;
      font-variation-settings: "wdth" 100;
    }

    .cart-bar__form {
      flex: 0 0 248px;
      max-width: 248px;
      margin: 0;
    }

    .cart-bar__submit,
    .cart-bar__form .product__submit,
    .cart-bar__form .product__submit__buttons {
      width: 100%;
    }

    .cart-bar__form .product__submit__buttons {
      display: block;
    }

    .cart-bar__form .product__submit__add:not(.product__cart-bar-notification-button) {
      width: 100%;
      min-width: 0;
      max-width: none;
      height: 52px;
      min-height: 52px;
      margin: 0;
      padding: 0 16px;
      border-radius: 0;
      --btn-border: #405f5e;
      --btn-bg: #405f5e;
      --btn-text: #fff;
      --btn-border-hover: var(--BTN-PRIMARY-BG-BRIGHTER);
      --btn-bg-hover: var(--BTN-PRIMARY-BG-BRIGHTER);
      --btn-text-hover: #fff;
    }

    .cart-bar__form .product__submit__add:not(.product__cart-bar-notification-button) span.btn__text {
      font-family: Roboto, sans-serif;
      font-size: 18px;
      font-weight: 600;
      letter-spacing: 1px;
      line-height: 20px;
      text-transform: none;
    }
  }

  @media only screen and (max-width: 749px) {
    .cart-bar {
      min-height: 84px;
      box-shadow: 0 -2px 54px 0 rgba(0, 0, 0, 0.15);

      &::after {
        display: none;
      }

      .cart-bar__form__wrapper {
        flex: 1 1 100%;
        flex-direction: column;
        justify-content: center;
        padding: 16px;
      }

      .cart-bar__info {
        display: none;
      }

      .cart-bar__form {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
        margin: 0;
      }

      .cart-bar__form .product__submit__add:not(.product__cart-bar-notification-button) {
        width: 100%;
        min-width: 0;
        max-width: none;
        height: 52px;
        min-height: 52px;
      }
    }
  }
}

body:has(.product-page-custom cart-bar.is-visible)
  [id^="trustbadge-container-"] div:has(> [data-testid="minimized-trustbadge-floating"]) {
  bottom: calc(var(--cart-bar-height, 116px) + 12px) !important;
}
