.it-main {
  margin-bottom: 60px;
  padding-top: 22px;
  @media (min-width: 769px) {
    padding-top: 55px;
  }
  .it-container {
    padding-left: 22px;
    padding-right: 22px;
    @media (min-width: 749px) {
      padding-left: 55px;
      padding-right: 55px;
    }
  }
}

.it-product--navigation {
  margin-bottom: 30px;
  a {
    display: flex;
    align-items: center;
    svg {
      width: 22px;
      height: 22px;
      fill: var(--secondary-color);
    }
  }
}

.it-product--wrapper {
  display: grid;
  @media (min-width: 769px) {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 30px;
    justify-content: space-between;
  }

  .it-product--info {
    order: 1;
    @media (min-width: 769px) {
      grid-column: 1/2;
      flex-basis: 100%;
      width: 100%;
      max-width: 100%;
    }
    .it-product--title {
      font-size: 38px;
      line-height: 1.2;
      word-wrap: break-word;
      font-weight: 600;
      margin: 0 0 8px;
    }
    .it-product--price {
      font-size: 36px;
      line-height: normal;
      font-family: var(--heading-font);
      font-weight: 600;
      display: flex;
      align-items: center;
      grid-gap: 14px;
      margin: 0;
      .price {
        font-family: inherit;
      }
      s {
        font-size: 16px;
        color: #87919b;
      }
      .per_item {
        font-size: 14px;
        letter-spacing: .3px;
        line-height: 20px;
        font-weight: 400;
      }
      .it-product--price-sale {
        display: inline-block;
        font-size: 14px;
        padding: 3.2px 8px;
        border-radius: 2px;
        font-family: var(--body-font);
        font-weight: 600;
        letter-spacing: 1px;
        background-image: linear-gradient(90deg, var(--secondary-color), var(--button-hover-color));
        color: var(--white-color);
        text-transform: uppercase;
      }
    }
    .it-product--shipping-info {
      font-size: 15px;
      margin: 6.4px 0 16px;
      a {
        color: var(--link-color);
        &:hover,
        &:focus-visible {
          color: var(--secondary-color);
        }
      }
    }
    hr {
      margin: 24px 0;
      border: 0;
      border-bottom: 1px solid #ebebeb;
    }
    .it-product--form {
      .it-product--form-custom-controls-wrapper {
        .it-product--form-custom-controls-label {
          font-weight: 600;
          margin: 0 0 20px;
        }
        .it-product--form-custom-controls {
          display: flex;
          flex-direction: row;
          align-items: stretch;
          width: 100%;
          margin-bottom: 12px;
          .it-product--form-custom-control {
            flex-basis: 50%;
            border: 2px solid #c3c8cd;
            padding: 26px 1px 28px;
            color: #87919b;
            font-size: 16px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: 0.2s all ease;
            outline: none;
            cursor: pointer;
            svg {
              height: 50px;
              margin-bottom: 12px;
              fill: #87919b;
              transition: fill 0.3s ease;
              pointer-events: none;
            }

            &:first-child {
              border-radius: 6px 0 0 6px;
              border-right-width: 1px;
              border-right-color: var(--secondary-color);
            }
            &:nth-child(2) {
              border-radius: 0 6px 6px 0;
              border-left-color: var(--secondary-color);
            }
            &.selected {
              border-color: var(--secondary-color);
              color: var(--text-color);
              background-color: #ebf5f0;
              cursor: default;
              pointer-events: none;
              svg {
                fill: var(--secondary-color);
              }
            }
            &[disabled] {
              cursor: default;
              pointer-events: none;
            }
          }
        }
        .it-product--form-custom-controls-linkList {
          display: flex;
          grid-gap: 20px;
          margin-bottom: 20px;
          li {
            width: calc(50% - 20px);
            text-align: left;
            a, custom-modal-button {
              font-size: 14px;
              text-align: left;
              color: var(--link-color);
              cursor: pointer;
              &:hover,
              &:focus-visible {
                color: var(--secondary-color);
              }
            }
          }
        }
      }
      .it-product--locations {
        display: flex;
        column-gap: 20px;
        margin-bottom: 20px;
        justify-content: space-between;
        fieldset {
          padding: 0;
          margin: 0;
          border: none;
          position: relative;
          width: calc(50% - 10px);
          flex-basis: calc(50% - 10px);
          max-width: calc(50% - 10px);
          label {
            position: absolute;
            top: 4px;
            left: 16px;
            font-size: 10px;
            color: #6e7882;
            margin: 0;
          }
          select {
            outline: none;
            min-height: 44px;
            padding: 20px 28px 8px 15px;
            width: 100%;
            border-color: #ccc;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("/cdn/shop/files/select_icon_32e0fcf3-6748-4842-94ed-e1fe5e4acb3f.svg?v=1766908397");
            background-repeat: no-repeat;
            background-position: right 10px center;
            text-indent: 0.1px;
            line-height: 1.2;
            border-radius: 2px;
            @media (min-width: 750px) {
              padding-left: 18px;
              padding-bottom: 10px;
            }
            &:focus {
              border: 1px solid var(--secondary-color);
            }
          }
        }
      }
      .it-product--actions-wrapper {
        display: grid;
        grid-template-columns: 30% 1fr;
        column-gap: 20px;
        .it-product--quantity {
          width: 100%;
          height: 44px;
          position: relative;
          margin-bottom: 10px;
          order: -1;
          @media (min-width: 769px) {
            margin-bottom: 0;
            order: unset;
          }
          label {
            position: absolute;
            top: 4px;
            left: 12px;
            font-size: 10px;
            color: #6e7882;
            margin: 0;
            clip: unset;
            overflow: visible;
          }
          input {
            width: 100%;
            min-width: 100%;
            height: 48px;
            padding-right: 20px;
            padding-top: 20px;
            padding-left: 17px;
            padding-bottom: 10px;
            outline-color: var(--secondary-color);
            text-align: left;
            border: 1px solid #ccc;
            &[disabled],
            &[readonly] {
              background-color: #f4f4f4;
              border-color: #f4f4f4;
              outline: none;
              cursor: default;
              pointer-events: none;
            }
          }
        }
        .it-product--actions {
          .it-product--actions-button {
            background-color: var(--secondary-color);
            font-size: 16px;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            border: none;
            color: var(--white-color);
            font-weight: 600;
            height: 52px;
            border-radius: 3px;
            cursor: pointer;
            &:hover,
            &:focus-visible {
              background-color: var(--button-hover-color);
            }
            &:nth-child(2) {
              margin-top: 10px;
            }
            &[disabled] {
              opacity: 0.8;
              pointer-events: none;
              cursor: default;
            }
            svg {
              display: none;
              width: 20px;
              height: 20px;
              fill: var(--white-color);
              animation: spin .5s infinite linear;
              path {
                fill: var(--white-color);
              }
            }
            &.loader {
              pointer-events: none;
              opacity: 0.8;
              font-size: 0;
              svg {
                display: block;
              }
            }
          }
        }
      }
    }
    .it-product--message {
      display: grid;
      grid-template-columns: 22px auto;
      background-color: #f8f8f8;
      border-radius: 3px;
      padding: 12px 14px;
      margin-top: 20px;
      font-size: 12px;
      margin-bottom: 32px;
      text-align: left;
      svg {
        position: relative;
        top: 2px;
        path {
          fill: var(--secondary-color);
        }
      }
      .it-product--message-inner {
        font-size: 14px;
      }
      p {
        margin: 0 0 20px;
      }
      button,
      custom-modal-button {
        background:none;
        border: none;
        padding: 0;
        margin: 0;
        color: var(--link-color);
        cursor: pointer;
        &:hover,
        &:focus-visible {
          color: var(--secondary-color);
        }
      }
    }
  }
  .it-product--description {
    border-bottom: 1px solid #eae8dd;
    padding-bottom: 10px;
    font-size: 16px;
    line-height: 1.5;
    grid-column: 1/2;
    order: 3;
    @media (min-width: 769px) {
      order: 2;
    }
    &[open] {
      summary {
        svg {
          transform: rotate(180deg);
        }
      }
    }
    summary {
      list-style-type: none;
      border: none;
      font-weight: 600;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      font-size: 24px;
      font-family: var(--heading-font);
      svg {
        fill: var(--secondary-color);
        width: 20px;
        height: 20px;
        transition: all 0.5s ease;
      }
    }
    p {
      margin: 0 0 20px;
    }
    ul {
      margin: 0 0 16px;
      padding: 20px 32px;
      border-radius: 9px;
      background-color: #f8f8f8;
      list-style: none;
      li {
        position: relative;
        margin: 0;
        padding-left: 20px;
        &:not(:last-child) {
          margin-bottom: 16px;
        }
        &::before {
          content: "";
          position: absolute;
          top: 7px;
          left: -10px;
          width: 16px;
          height: 12px;
          background-image: url("/cdn/shop/files/tick_icon_975e04fe-f316-4543-8276-dacc7c3ad5e2.svg?v=1766913742");
          display: block;
        }
      }
    }
  }
  .it-product--media {
    order: 2;
    margin-bottom: 30px;
    @media (min-width: 769px) {
      order: unset;
      grid-column: 2/3;
      grid-row: 1/3;
      flex-basis: 100%;
      width: 100%;
      max-width: 100%;
      margin-bottom: 0;
    }
    .it-product--media-wrapper {
      @media (min-width: 769px) {
        position: sticky;
        top: 80px;
      }
    }
    .it-product--media-gallery {
      .it-product--media-gallery-slide {
        width: 95%;
        img {
          width: 95%;
          @media (min-width: 991px) {
            width: 100%;
          }
        }
        @media (min-width: 991px) {
          width: 100%;
        }
      }
    }
    .flickity-prev-next-button {
      width: 50px;
      height: 50px;
      .flickity-button-icon {
        width: 20px;
        height: 20px;
        fill: var(--secondary-color);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
    }
    .it-product--media-gallery-thumbnails {
      display: none;
      @media (min-width: 991px) {
        display: flex;
        flex-wrap: wrap;
        grid-gap: 12px;
        margin-top: 15px;
        justify-content: space-between;
      } 
      li {
        flex-basis: 76px;
        max-width: 76px;
        width: 76px;
        border: 2px solid transparent;
        cursor: pointer;
        &.active {
          border-color: var(--secondary-color);
        }
        img {
          padding: 2px;
          pointer-events: none;
        }
      }
    }
  }
}

.rc-container-wrapper.rc_container_wrapper {
  display: none!important;
}