.style-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin: auto;
  padding: 10px;
  gap: 0px;
  border: 1px solid #0f0c36;
  border-radius: 100px;
  height: auto;
  max-width: 100%;

  label {
    margin: 0 !important;
    padding: 15px 30px;
    color: #0f0c36;
    background-color: transparent;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none !important;
    flex: auto;
    font-family: inherit;
    height: auto !important;
  }

  input[type="radio"]:checked + label {
    color: #fff;
    background-color: #0f0c36;
  }
}

.plans-grid-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  &::-webkit-scrollbar {
    display: none;
  }

  @media (min-width: 1201px) {
    overflow-x: visible;
  }

  @media (max-width: 1200px) {
    scroll-snap-type: x mandatory;
    padding-inline-start: 20px;
    scroll-padding-inline-start: 20px;
  }

  .pricing-container {
    display: grid;
    /* grid-template-columns: repeat(4, 1fr); */
    grid-template-columns: repeat(auto-fit, minmax(calc(25% - 10px), 1fr));
    gap: 10px;
    padding: 0px;
    @media (max-width: 1200px) {
      grid-template-columns: repeat(4, minmax(350px, 1fr));
      padding: 20px 20px;
      padding-inline-start: 0 !important;
    }

    .card-pricing-inner {
      @media (max-width: 1200px) {
        scroll-snap-align: start;
      }
      &:last-child {
        @media (max-width: 1200px) {
          margin-inline-end: 20px;
        }
      }
    }
    .card-pricing-inner {
      margin: 0 !important;
      background: #fff;
      border: 1px solid #dbe0e9;
      border-radius: 5px;
      padding: 55px 20px;
      position: relative;
      transition: all 0.3s ease;
      order: initial;
      .popular-plan {
        position: absolute;
        top: -20px;
        left: 35px;
        background-color: #ffeb95;
        color: #000;
        border-radius: 20px;
        padding: 8px 30px;
        font-size: 14px;
        font-weight: 400;
        html[dir="ltr"] & {
          left: auto;
          right: 35px;
        }
      }
      @media (max-width: 767px) {
        padding: 30px !important;
        border: 0 !important;
        border-radius: 20px !important;
        box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.05);
      }
      .ic-price {
        margin-bottom: 20px;
        height: 65px;
      }
      .most-famous {
        position: absolute;
        top: 0;
        width: 100%;
        right: 0;
      }
      &:hover {
        transform: translateY(-3px);
      }
      .pricing {
        padding: 0;
        p {
          display: flex;
          flex-direction: row;
          align-items: center;
          justify-content: start;
          gap: 7px !important;
          font-family: inherit;
          .price-value {
            font-size: 55px;
            font-weight: bold;
            font-family: itfrayat-Bold;
            @media (max-width: 1200px) {
              font-size: 50px;
            }
          }
          .dollar-sign {
            position: relative;
            top: 7px;
          }
          .monthly-label {
            font-size: 14px;
            font-weight: normal;
            font-family: inherit;
            color: #0f0c36;
            align-self: center;
          }
        }
        .billing-period-caption {
          display: block;
          font-size: 13px;
          font-weight: normal;
          font-family: inherit;
          color: #8193af;
          margin-bottom: 12px;
          white-space: nowrap;
        }
        h2 {
          font-family: inherit;
          text-align: start;
        }
        .package-details {
          font-family: inherit;
          margin-block: 0;
          height: 60px;
          margin-bottom: 10px;
          &.i-pin-package {
            p {
              justify-content: center;
              color: #656e77;
            }
          }
          p {
            margin: 0 !important;
            padding: 0 !important;
            line-height: 25px;
          }
        }
        .buy-now {
          border: 1px solid #0f0c36;
          background-color: transparent !important;
          color: #0f0c36 !important;
          cursor: pointer;
          &:hover {
            background-color: #0f0c36 !important;
            color: #fff !important;
          }
        }
        &.pricing-data {
          .pricing-info-data {
            padding-top: 30px;
            margin-bottom: 0;
            display: flex;
            flex-direction: column;
            gap: 20px;
            li {
              gap: 10px;
              margin: 0 !important;
              i {
                padding: 0;
                margin: 0;
              }
              p {
                flex-direction: column;
                align-items: flex-start;
                gap: 2px !important;
                flex: 1;
                span {
                  font-family: inherit;
                }
              }
            }
          }
        }
      }
    }
  }
}

.add-product {
  padding: 0 !important;
}

.modal-content {
  border-radius: 10px 10px 0 0 !important;
  &.with-under-radius {
    border-radius: 10px !important;
    @media (max-width: 768px) {
      border-radius: 10px 10px 0 0 !important;
    }
  }
  @media (max-width: 768px) {
    /* margin-top: 5%; */
    /* margin-bottom: 5%; */
  }
}

.modal-header {
  h4,
  h6 {
    @media (max-width: 767px) {
      font-size: 17px !important;
    }
  }
}

.modal.fade .modal-dialog {
  transform: translateY(100%);
  transition: transform 0.4s ease-out;
}

.modal.show .modal-dialog {
  transform: translateY(0);
}

/* Footer CTA */
.footer-cta {
  text-align: center;
  padding: 2.5rem 1.5rem 1.5rem;
  p {
    color: #606e84;
    margin: 0;
  }
  .compare-btn {
    display: inline-block;
    margin-top: 20px;
    background: #0f0c36;
    border: 1px solid #0f0c36;
    color: #fff;
    padding: 13px 60px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    outline: none;
    transition:
      background 0.2s,
      transform 0.15s;
    &:hover {
      background: transparent;
      color: #0f0c36;
      transform: translateY(-1px);
    }
  }
}

/* Price Comparison Modal */
.price-comparison-modal {
  .modal-dialog {
    max-width: 95%;
    .modal-header {
      padding: 30px;
      h4 {
        font-size: 22px;
        font-weight: 600;
        color: #0f0c36;
        @media (max-width: 767px) {
          font-size: 16px;
        }
      }
    }
    .modal-body {
      .tab-comparison-modal {
        display: none !important;
        @media (max-width: 767px) {
          display: flex !important;
        }
      }
    }
  }
}

.info-plans-card-list {
  .plans-subscription {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    .flex-space {
      flex: 2;
    }
    .card-plan {
      /* min-width: 270px; */
      flex: 1;
      background: #fff;
      border: 1px solid #dbe0e9;
      border-radius: 25px 25px 0 0;
      padding: 30px 0;
      position: relative;
      text-align: center;
      transition: all 0.3s ease;
      .popular-plan {
        position: absolute;
        top: -18px;
        left: 25px;
        background-color: #ffeb95;
        color: #000;
        border-radius: 100px;
        padding: 6px 15px;
        font-size: 13px;
        font-weight: 400;
        html[dir="ltr"] & {
          left: auto;
          right: 25px;
        }
      }
      .head-card {
        h5 {
          font-size: 25px;
          font-weight: 600;
          margin: 15px 0;
          font-family: inherit !important;
        }
        .t-prices {
          gap: 7px;
          .monthly {
            span {
              font-size: 22px;
              color: #0f0c36;
              font-family: inherit !important;
            }
          }
          .p-price {
            gap: 8px;
            strong {
              color: #0f0c36;
              font-size: 25px;
              font-weight: 400;
              font-family: inherit !important;
            }
          }
        }
      }
    }
  }
  .list-collapsable {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    .panel {
      margin-top: 10px;
      .panel-heading {
        background-color: #dbe0e9;
        border-radius: 20px;
        padding: 20px 25px;
        cursor: pointer;
        h4 {
          font-size: 17px;
          font-weight: 400;
          @media (max-width: 767px) {
            font-size: 14px;
          }
        }
        svg {
          transition: transform 0.3s ease;
          @media (max-width: 767px) {
            width: 14px;
          }
        }

        &[aria-expanded="true"] {
          svg {
            transform: rotate(180deg);
          }
        }
      }
      .panel-collapse {
        .panel-body {
          .p-dix {
            padding: 20px 25px;
            border-radius: 20px;
            &:nth-child(even) {
              background-color: #eff3fa;
            }
            h4 {
              flex: 2;
              font-size: 16px;
              font-weight: 400;
            }
            span {
              flex: 1;
              text-align: center;
            }
          }
        }
      }
    }
  }
  @media (max-width: 767px) {
    .end-change-modal {
      position: sticky;
      bottom: 0;
      right: 0;
      width: 100%;
      background-color: #ffffff;
      z-index: 9;
      padding: 10px;
      box-shadow: 0px -4px 15px 0px rgba(0, 0, 0, 0.05);
      border-radius: 20px 20px 0 0;
    }
  }
}

/* Change Price Comparison Modal */
.change-price-comparison-modal {
  .modal-dialog {
    max-width: 900px;
    .modal-header {
      padding: 30px;
      @media (max-width: 767px) {
        padding: 20px 20px 10px;
      }
      h4 {
        font-size: 22px;
        font-weight: 600;
        color: #0f0c36;
        margin-bottom: 10px !important;
        @media (max-width: 767px) {
          font-size: 16px;
        }
      }
      p {
        color: #606e84;
        margin: 0;
        @media (max-width: 767px) {
          font-size: 13px;
        }
      }
    }
    .modal-body {
      .view-in-mobile {
        .tab-comp-modal {
          width: 100%;
          .nav-item {
            margin-bottom: 0;
            flex: 1;
            text-align: center;
            a {
              direction: ltr;
              font-size: 12px;
              white-space: nowrap;
              &.active {
                span {
                  color: #fff !important;
                }
              }
            }
          }
        }
        .tab-content-comp {
          .plans-subscription {
            .card-plan {
              padding: 30px;
              .head-card {
                .t-prices {
                  .p-price {
                    gap: 2px;
                  }
                }
                .hc-period {
                  color: #8b89c2;
                  margin: 20px 0;
                }
                .buy-now {
                  background-color: transparent !important;
                  color: #0f0c36 !important;
                  border: 1px solid #0f0c36;
                  cursor: pointer;
                }
              }
            }
          }
        }
      }
    }
  }
}

/* Change Price Comparison Modal */
.upgrade-plan-modal {
  .modal-dialog {
    max-width: 55%;
  }
  .btn-close-modal {
    width: 48px;
    height: 48px;
    background: #e42219;
    border-radius: 0 9px 0 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
  }
  .body-upgrade {
    .section-upgrade-plan {
      .icon {
        svg {
          @media (max-width: 767px) {
            width: 64px;
            height: 64px;
          }
        }
      }
      .head-title {
        h4 {
          margin: 25px 0;
          color: #0f0c36;
          font-size: 22px;
          font-weight: 600;
          @media (max-width: 767px) {
            font-size: 18px;
          }
        }
        p {
          color: #606e84;
          font-size: 16px !important;
          font-weight: 600;
          line-height: 30px;
          @media (max-width: 767px) {
            font-size: 14px !important;
          }
        }
        .upgrade-confirm-text {
          color: #0f0c36;
          font-size: 19px !important;
          font-weight: 600;
          line-height: 30px;
          @media (max-width: 767px) {
            font-size: 16px !important;
          }
        }
      }
      ul {
        list-style: none;
        padding: 15px 20px;
        border-radius: 20px;
        border: 1px dashed #dbe0e9;
        margin: 20px auto;
        max-width: 550px;
        p {
          color: #606e84;
          margin: 5px 0;
        }
        li {
          display: flex;
          align-items: center;
          gap: 5px;
          margin: 5px 0;
          span {
            color: #606e84;
            font-weight: 400;
            font-size: 15px;
            @media (max-width: 767px) {
              font-size: 14px !important;
            }
            &:first-child {
              font-weight: 600;
            }
          }
          &::before {
            content: "";
            width: 4px;
            height: 4px;
            border-radius: 1.5px;
            background-color: #606e84;
            display: inline-block;
          }
        }
      }
      .compare-btn {
        display: table;
        margin: 20px auto;
        background: #0f0c36;
        border: 1px solid #0f0c36;
        color: #fff;
        width: 265px;
        height: 60px;
        border-radius: 50px;
        font-size: 1rem;
        font-weight: 400;
        cursor: pointer;
        outline: none;
        transition:
          background 0.2s,
          transform 0.15s;
        @media (max-width: 767px) {
          width: 100%;
        }
        &:hover {
          background: transparent;
          color: #0f0c36;
          transform: translateY(-1px);
        }
      }
    }
  }
}

/* Nav Tabs */
.style-tabs {
  justify-content: center;
  border: 0;
  border: 1px solid #0f0c36;
  border-radius: 100px !important;
  margin: auto;
  width: fit-content;
  gap: 10px;
  padding: 10px;
  @media (max-width: 767px) {
    gap: 2px;
  }
  li {
    a {
      border: 0 !important;
      background-color: transparent;
      color: #0f0c36;
      padding: 10px 25px;
      border-radius: 100px !important;
      &.active {
        background-color: #0f0c36 !important;
        color: #fff !important;
      }
    }
  }
}

/* Media */
@media (max-width: 767px) {
  /* Subscription Page */
  .price-comparison-modal {
    .modal-dialog {
      .modal-body {
        .tab-comparison-modal {
          flex-wrap: nowrap;
          overflow-x: auto;
          justify-content: start;
          width: 100%;
          li {
            flex: 1;
            a {
              padding: 10px 20px;
              font-size: 13px;
              white-space: nowrap;
              text-align: center;
              @media (max-width: 767px) {
                padding: 8px 15px;
              }
            }
          }
        }
      }
    }
  }
  .modal-dialog {
    max-width: 100% !important;
    width: 100% !important;
    margin: auto;
    align-items: end;
    top: 0;
    transform: none;
    min-height: 100%;
  }
}

/* Subscription Body */
.subscription-body {
  overflow: hidden;
  .plans-grid-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    &::-webkit-scrollbar {
      display: none;
    }

    @media (min-width: 1201px) {
      overflow-x: visible;
    }
    .plans-subscription {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(calc(25% - 10px), 1fr));
      gap: 20px;
      padding: 20px 40px;
      @media (max-width: 1200px) {
        grid-template-columns: repeat(4, minmax(320px, 1fr));
        padding: 20px 20px;
      }
      .card-plan {
        background: #fff;
        border: 1px solid #dbe0e9;
        border-radius: 5px;
        padding: 50px 30px;
        position: relative;
        transition: all 0.3s ease;
        @media (max-width: 767px) {
          padding: 30px !important;
          border: 0 !important;
          border-radius: 20px !important;
          box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.05);
        }
        &:hover {
          transform: translateY(-3px);
        }
        .popular-plan {
          position: absolute;
          top: -20px;
          left: 35px;
          background-color: #ffeb95;
          color: #000;
          border-radius: 100px;
          padding: 8px 30px;
          font-size: 14px;
          font-weight: 400;
          html[dir="ltr"] & {
            left: auto;
            right: 35px;
          }
        }
        .head-card {
          h5 {
            font-size: 30px;
            font-weight: 600;
            margin: 25px 0;
            margin-bottom: 10px;
            font-family: inherit !important;
          }
          .t-prices {
            gap: 7px;
            .monthly {
              position: relative;
              top: 10px;
              span {
                font-size: 20px;
                color: #0f0c36;
                font-family: inherit !important;
              }
            }
            .p-price {
              gap: 10px;
              strong {
                color: #0f0c36;
                font-size: 60px;
                font-weight: 600;
                font-family: inherit !important;
              }
              svg {
                position: relative;
                top: 10px;
              }
            }
          }
        }
        .block-plan {
          .plan-period {
            display: block;
            font-size: 14px;
            color: #8b89c2;
            /* text-align: center; */
            margin-bottom: 20px;
            margin-top: 15px;
          }
          .pricing-info-data {
            padding-top: 30px;
            li {
              gap: 10px !important;
            }
          }
          .plan-btn {
            width: 100%;
            border-radius: 100px;
            background-color: transparent;
            border: 1px solid #0f0c36;
            color: #0f0c36;
            font-weight: 400;
            font-size: 20px;
            padding-inline: 10px;
            height: 55px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            outline: none;
            &:hover {
              background-color: #0f0c36;
              color: #fff;
              svg {
                path {
                  fill: #fff;
                }
              }
            }
          }
          .features-list {
            list-style: none;
            padding: 0;
            margin: 0;
            margin-top: 30px;
            display: flex;
            flex-direction: column;
            gap: 20px;
            li {
              display: flex;
              align-items: center;
              gap: 10px;
              font-size: 16px;
              color: #0f0c36;
            }
          }
        }
      }
    }
  }
}

.cta-body-change {
  .compare-btn {
    display: table;
    margin: 20px auto;
    background: #0f0c36;
    border: 1px solid #0f0c36;
    color: #fff;
    width: 265px;
    height: 60px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    outline: none;
    transition:
      background 0.2s,
      transform 0.15s;
    @media (max-width: 767px) {
      width: 100%;
    }
    &:hover {
      background: transparent;
      color: #0f0c36;
      transform: translateY(-1px);
    }
  }
}

.plans-carousel-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px 0 4px;
  @media (max-width: 1200px) {
    display: flex;
  }
  .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dbe0e9;
    cursor: pointer;
    border: none;
    padding: 0;
    outline: none;
    transition: all 0.25s ease;
    flex-shrink: 0;
    &.active {
      background: #0f0c36;
      width: 55px;
      border-radius: 4px;
    }
  }
}
