@import url("./general.css");

.pricing {
  padding-top: 162px;
  margin-bottom: 0;
}

.pricing__content {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pricing__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 8px 28px;
  gap: 24px;
  background: var(--bg-main);
  border: 1px solid #201515;
  border-radius: 16px;
}

.pricing__item.accent {
  border-color: #FF4800;
}


.pricing__item-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 12px;
  gap: 4px;
  width: 100%;
  height: 180px;
  background: #F8F4F0;
  border-radius: 12px;
}

.pricing__item-suptitle {
  width: 100%;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: #FF4800;
}

.pricing__item-title {
  font-family: 'Actay Wide';
  font-style: normal;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  text-align: center;
  color: #201515;
}

.pricing__item-subtitle {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: #201515;
  opacity: 0.6;
}

.pricing__item:first-child .pricing__item-subtitle {
  max-width: 160px;
}

.pricing__item.dark {
  background: #201515;
}

.pricing__item.dark .pricing__item-head {
  background: #3B2E2E;
}

.pricing__item.dark .pricing__item-title,
.pricing__item.dark .pricing__item-subtitle {
  color: var(--bg-main);
}

.pricing__item.dark .pricing__item-users {
  width: 100%;
  padding: 12px 0px;
  border: 1px solid var(--bg-main);
  border-radius: 12px;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.pricing__item-users-wrapper {
  border-radius: 12px;
  border: 1px solid transparent;
  width: 100%;
}

.pricing__item-users-wrapper:hover {
  border: 1px solid var(--bg-main);
}

/* .pricing__item.dark .pricing__item-users:hover {
  padding: 11px 0px;
  top: -3px;
  border: 3px solid var(--bg-main);
} */

.pricing__item-users-num {
  /* Contact info text */

  /* width: 107px;
  height: 36px; */

  /* Headlines/h3 */
  font-family: 'Actay Wide';
  font-style: normal;
  font-weight: 700;
  font-size: 32px;
  line-height: 36px;
  text-align: center;
  color: #FF4800;
}

.pricing__item-users-text {
  /* width: 107px;
height: 20px; */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: #201515;
}

.pricing__item-users-arrow {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  cursor: pointer;
}



.pricing__item.dark .pricing__item-users-text {
  color: var(--bg-main);
  text-align: center;
}

.divider {
  width: 260px;
  /* width: calc(100% - 45px); */
  border: 1px solid #EEE8E1;
}

.pricing__item-price {}

.pricing__item-price-old {
  /* width: 83px; */
  height: 20px;
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  text-decoration-line: line-through;
  color: #201515;
  opacity: 0.6;
  text-align: center;
}

.pricing__item.dark .pricing__item-price-old {

  color: var(--bg-main);
}

.pricing__item-price-now {
  display: flex;
  gap: 8px;

  /* Discounted Price Text */

  /* width: 158px;
  height: 30px; */

  /* Headlines/h4 */
  font-family: 'Actay Wide';
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  /* identical to box height, or 125% */

  color: #FF4800;

}

.pricing__item-price-badge {
  /* Discount Badge */

  /* Auto layout */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 6px;
  gap: 10px;

  width: 49px;
  height: 28px;

  background: #FF4800;
  border-radius: 8px;
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: var(--bg-main);
}

.pricing__item-space {
  font-family: 'Actay Wide';
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  text-align: center;
  color: #201515;
}

.pricing__item.dark .pricing__item-space {
  color: var(--bg-main);
}

.pricing__item.dark .divider {
  border: 1px solid #7d7d7d;
}

.pricing__btn {
  max-width: 380px;
  width: 100%;
  margin: 80px auto;
  text-align: center;
  cursor: pointer;
}

.pricing__item-users-list-box {
  display: none;
  position: absolute;
  width: 100%;
  padding-top: 20px;
}

.pricing__item-users-list-box.open {
  display: block;
}

.pricing__item-users-list {
  align-items: flex-start;
  padding: 4px;
  background: var(--bg-main);
  box-shadow: 0px 4px 16px rgba(32, 21, 21, 0.24);
  border-radius: 12px;
}

.pricing__item-users-item {
  padding: 8px 24px;
  border-radius: 8px;
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #201515;
  text-align: center;
  cursor: pointer;
}

.pricing__item-users-item:hover {
  background: #F8F4F0;
}

.comparison {
  margin-bottom: 120px;
}

/* =================== table ====================== */
.table {
  margin-top: 42px;
}

.table__wrapper {
  overflow-x: auto;
}

.table__header {
  display: grid;
  grid-template-columns: 271px minmax(101px, 1fr) minmax(141px, 1fr) minmax(192px, 1fr) minmax(129px, 1fr);

  gap: 12px;
  padding: 12px 0px 12px 0;
  background: var(--bg-main);
  border-bottom: 1px solid #201515;
  margin-right: 20px;
}

.table__body {
  max-height: 520px;
  overflow-y: auto;
}

.table__row-title {
  display: flex;
  align-items: center;
  padding: 0px;
  gap: 8px;
  height: 44px;
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: #ff4800;
  cursor: pointer;
}

.table__row-title--text {
  display: flex;
  gap: 8px;
}

.table__title-help {
  display: flex;
  cursor: pointer;
}

.table__title-icon {
  margin-left: 8px;
}

.table__col {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  gap: 10px;
  height: 48px;
  background: #F8F4F0;
  border-radius: 12px;
  font-weight: 700;
}

.table__col--title {
  width: 271px;
  font-family: 'Actay Wide';
  font-style: normal;
  font-weight: 700;
  font-size: 20px;
  color: #201515;
  background: transparent;
}

.table__row-help {
  display: inline-flex;
  width: 13px;
  height: 18px;
  margin-left: 6px;
  position: relative;
}

.table__row-help img {
  display: none;
}



.table__row {
  display: grid;
  grid-template-columns: 271px repeat(4, 1fr);
  gap: 12px;
  padding: 12px 0px 12px 12px;
  border-bottom: 1px solid #EEE8E1;
}

.table__row {
  cursor: pointer;
}

.table__row-col {
  height: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: #201515;
}

.table__row-col:first-child {
  justify-content: start;
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: #201515;
  display: inline;
  width: fit-content;
  height: auto;
}

.table__row.active .table__row-help img,
.table__row:hover .table__row-help img {
  display: block;
  position: absolute;
  bottom: -3px;
}

tippy-tooltip {
  border-radius: 50px !important;
}

.tippy-box[data-theme~='sunbay'] {
  background-color: var(--text-color-accent);
  color: #fff;
  z-index: -1 !important;

}

.tippy-box[data-theme~='sunbay'][data-placement^='bottom']>.tippy-arrow::before {
  border-bottom-color: var(--text-color-accent);
}

.tippy-box {
  padding: 16px;
  background: #201515;
  border-radius: 12px;
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--bg-main);


}

.connection__content {
  max-width: 536px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

}

.connection__content-title {
  font-family: 'Actay Wide';
  font-style: normal;
  font-weight: 700;
  font-size: 32px;
  line-height: 36px;
  color: #201515;
  margin-bottom: 12px
}

.connection__phone {
  margin-bottom: 0;
}

.select {
  position: relative;
}

.select__value {
  padding: 16px;
  background: #eee8e1;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0);
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  width: 100%;
  cursor: pointer;
}

.select__arrow {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}

.select__options {
  position: absolute;
  width: 100%;
  padding-top: 8px;
  z-index: 2;
  display: none;
}

.select__options.open {
  display: block;
}

.select__options-list {
  border-radius: 12px;
  width: 100%;
  z-index: 1;
  padding: 4px;
  background: var(--bg-main);
  box-shadow: 0px 4px 16px rgba(32, 21, 21, 0.24);
  border-radius: 12px;
}


.select__options-item {
  padding: 8px 24px;
  border-radius: 8px;
  font-family: 'Manrope';
  font-style: normal;
  font-size: 16px;
  line-height: 24px;
  color: #201515;
  cursor: pointer;
}


.select__options-item:hover {
  background: #F8F4F0;
}

@media (max-width: 1200px) {
  .pricing__content {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing__item-head {
    height: 160px;
  }

  .pricing__item:first-child .pricing__item-suptitle,
  .pricing__item:nth-child(2) .pricing__item-suptitle {
    display: none;
  }

  .pricing__item:first-child .pricing__item-subtitle {
    max-width: 100%;
  }

  .pricing__btn {
    margin: 60px auto 100px;
  }

  .comparison {
    margin-bottom: 100px;
  }

  .table {
    margin-top: 30px;
  }

  .table__col {
    font-size: 14px;
    line-height: 20px;
  }

  .table__col--title {
    width: 200px;
    position: sticky;
    left: 0;
    background: var(--bg-main);
    border-radius: 0;
    font-size: 20px;
    line-height: 24px;
  }

  .connection__content {
    padding-top: 0;
  }

  .connection__content {
    max-width: 464px;
    margin-bottom: 130px;
  }
}

@media (max-width: 971px) {
  .table__header {
    min-width: 790px;
    grid-template-columns: 230px minmax(101px, 1fr) minmax(141px, 1fr) minmax(192px, 1fr) minmax(129px, 1fr);
  }

  .table__body {
    min-width: 790px;
  }

  .table__row {
    min-width: 790px;
    grid-template-columns: 230px minmax(101px, 1fr) minmax(141px, 1fr) minmax(192px, 1fr) minmax(129px, 1fr);
  }
}

@media (max-width: 850px) {
  .table__header {
    min-width: 900px;
    margin-right: 0;
    position: sticky;
    top: 0;
    background: var(--bg-main);
    z-index: 999;
  }

  .table__body {
    min-width: 900px;
    overflow-y: visible;
  }

  .table__row {
    min-width: 900px;
  }

  .table__row-title--text {
    position: sticky;
    left: 0;
  }

  .table__row-col:first-child {
    position: sticky;
    left: 12px;
    background: var(--bg-main);
  }

  .table__title-help,
  .table__row-help {
    /* display: none; */
  }
}


@media (max-width: 860px) {
  .connection__content {
    max-width: 100%;
    margin-bottom: 8px;
  }

  .connection__content-subtitle {
    margin-top: 40px;
  }
}

@media (max-width: 670px) {
  .pricing__content {
    grid-template-columns: 1fr;
  }

  .pricing__item {
    gap: 12px;
    padding-bottom: 20px;
  }

  .pricing__item-head {
    height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .pricing__item.dark .pricing__item-head {
    height: 144px;
  }

  .pricing__btn {
    margin: 80px auto 100px;
  }

  .table {
    margin-top: 40px;
  }

  .table__row {
    padding-left: 0;
  }

  .table__row-col:first-child {
    left: 0px;
    background: var(--bg-main);
    padding-left: 12px;
    width: 200px;
  }
}

@media (max-width: 460px) {
  .pricing__btn {
    margin: 80px auto;
  }

  .pricing__item-users-list {
    max-height: 200px;
    overflow-y: auto;
  }

  .comparison {
    margin-bottom: 80px;
  }

  .table__header,
  .table__row {
    grid-template-columns: 145px minmax(101px, 1fr) minmax(141px, 1fr) minmax(182px, 1fr) minmax(129px, 1fr);
  }

  .table__col--title,
  .table__row-col:first-child {
    max-width: 145px;
  }

  .table__col--title {
    font-size: 16px;
    line-height: 24px;
  }
}