.product-area {
  display: flex;
  gap: 2.5rem;

  @media (max-width: 991px) {
    flex-direction: column;
  }

  .product-area__media {
    .carousel {
      position: sticky;
      top: calc(var(--nav-height) + 1rem);
      align-items: flex-start;
      flex-direction: var(--pa-media-carousel-flex-dir, column);
      gap: .5rem 1rem;

      @media (min-width: 1200px) {
        --pa-media-carousel-flex-dir: row-reverse;
      }

      .slides {
        position: relative;
        width: 100%;
        aspect-ratio: 1;
        border: 1px solid #E8E8EE;
        border-radius: 2px;
        overflow: hidden;
        background-color: #F5F5F9;

        img {
          position: absolute;
          opacity: var(--slides-img-opacity, 0);
          z-index: var(--slides-img-z-index);
          transition: opacity 0.35s ease;
          mix-blend-mode: multiply;

          &.active {
            --slides-img-opacity: 1;
            --slides-img-z-index: 1;
          }
        }
      }

      .controls {
        position: absolute;
        z-index: 2;
        inset: auto 1rem 1rem auto;

        a, button {
          padding: 0;
          width: 2.5rem;
          aspect-ratio: 1;
          color: #ce2f39;

          svg {
            width: 1rem;
          }
        }
      }

      .thumbnails {
        display: flex;
        gap: .5rem;
        flex-direction: var(--pa-thumbnails-flex-dir);
        flex-shrink: 0;

        @media (min-width: 1200px) {
          --pa-thumbnails-flex-dir: column;
        }

        img {
          margin: 0;
          border: 1px solid #E8E8EE;
          border-radius: 2px;
          opacity: 1;
          transition: all .35s ease;

          &.active {
            border-color: #3A3A43;
          }
        }
      }
    }
  }

  .product-area__details {
    padding: 0;

    .product-area__details__inner,
    .product-area__details__header {
      padding: 0;
    }
  }

  .product-area__sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    padding-block: .5rem;
    border-top: 1px solid #E8E8EE;
    transition: translate .5s ease;
    translate: var(--pa-sticky-footer-translate, 0 100%);
    background-color: #FFF;
    box-shadow: var(--pa-sticky-footer-translate);

    &.product-area__sticky-footer--show {
      --pa-sticky-footer-translate: 0% 0%;
      --pa-sticky-footer-translate: 0px -4px 4px rgba(0, 0, 0, 0.03)
    }

    .product-area__sticky-footer__wrap {
      display: flex;
      gap: 1rem;
      align-items: center;
      justify-content: space-between;
    }

    .product-area__sticky-footer__thumb {
      display: var(--pa-sticky-footer-thumb-display, none);
      border-radius: px;
      border: 1px solid #E8E8EE;
      background-color: #F5F5F9;
      mix-blend-mode: multiply;
      width: 4rem;
    }

    .product-area__sticky-footer__heading {
      display: var(--pa-sticky-footer-heading-display, none);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .product-area__sticky-footer__price {
      margin-left: auto;
    }

    .button {
      flex-grow: var(--pa-sticky-footer-button-flex-grow);
    }

    @media(max-width: 768px) {
      --pa-sticky-footer-button-flex-grow: 1;
    }

    @media(min-width: 768px) {
      --pa-sticky-footer-heading-display: block;
      --pa-sticky-footer-thumb-display: block;
    }
  }

  .product-area__picker {
    a[class^="opt--"] {
      padding: 1rem 2rem;
      border: 1px solid#F5F5F9;
      opacity: 1;
      color: #656580;
      transition: all .35s ease;

      &::before, &::after {
        content: unset;
      }

      &:hover, &:focus-visible {
        border-color: #A3A3B4;
      }

      &.active {
        border-color: #3A3A43;
        background-color: #F5F5F9;
        color: #3A3A43;
      }
    }

    .cc-hover-line {
      display: none;
    }
  }

  .clickyboxes {
    margin-bottom: 0;

    li {
      margin: 0;
    }
  }
}

.discount-quantity-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: -1px;
  padding: 1rem 1.5rem;
  border: 1px solid #E8E8EE;
  font-size: 1rem;
  color: #656580;
  cursor: pointer;
  text-transform: none;
  transition: all .35s ease;

  & > input {
    display: none;
    margin-right: .375rem;
  }

  &.active {
    z-index: 1;
    background-color: #F5F5F9;
    border-color: #656580;
  }

  input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
  }

  .discount-quantity__save {
    padding: .375rem .5rem;
    background-color: #E8F4ED;
    font-size: .75rem;
    color: #179650;
    font-weight: bold;
    line-height: 1;
  }

  .discount-quantity__original {
    text-decoration: line-through;
  }

  .discount-quantity__unit {
    font-size: .75rem;
    color: #A3A3B4;
  }
}

.radio-checkmark {
  position: relative;
  flex-shrink: 0;
  height: 1rem;
  width: 1rem;
  border: 1px solid #E8E8EE;
  border-radius: 50%;
  transition: all .35s ease;

  &::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    display: none;
    width: .375rem;
    height: .375rem;
    border-radius: 50%;
    background: #FFF;
  }
}

.discount-quantity-button input[type="radio"]:checked {
  & ~ .radio-checkmark {
    border-color: #3A3A43;
    background-color: #3A3A43;

    &::after {
      display: block;
    }
  }
}

.quantity-wrapper {
  flex-basis: 10rem !important;
  width: 10rem !important;
  border: 1px solid #E8E8EE;
  border-radius: 2px;

  input {
    position: relative;
    transform: unset;
    inset: 0;
    width: 4rem;
  }

  > a {
    &[data-quantity] {
      width: 3.25rem;
      height: 100%;
      margin-top: 0;
      padding: 0;
      font-size: 1.25rem;
      font-family: inherit;
      line-height: 3.25rem;
    }

    &:first-child {
      left: 0;
      border-right: 1px solid #E8E8EE;
    }

    &:last-child {
      border-left: 1px solid #E8E8EE;
    }
  }
}

.payment-icons {
  display: flex;
  justify-content: center;
  flex-wrap: var(--pi-flex-wrap);
  gap: .5rem;
  font-size: .75rem;
  color: #656580;

  svg {
    height: auto;
    width: 2.5rem;
  }

  .payment-icons__text {
    flex-shrink: 0;
  }

  .section-footer__payment-icons {
    justify-content: center;
    flex-wrap: var(--pi-flex-wrap);
  }

  @media(max-width: 768px) {
    --pi-flex-wrap: wrap;
  }
}

.product-detail {
  .product-detail__form {
    display: grid;
    gap: 24px;

    .product-detail-accordion + .product-detail-accordion {
      margin-top: -24px !important;
    }
  }
}