/* Native Joomla price page for REGOS. */
body.regos-native-price #sp-main-body {
  padding: 0 !important;
}

.regos-price {
  --price-line: rgba(80, 102, 136, .16);
  --price-line-soft: rgba(80, 102, 136, .1);
  --price-soft: #F8FAFC;
  --price-blue-tint: rgba(35, 72, 128, .045);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  color: var(--text);
  background: var(--white);
}

.regos-price .container {
  width: min(var(--container), calc(100% - 48px));
}

.price-title-section {
  padding: 36px 0 18px;
}

.price-title-section h1 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 2.35rem;
  font-weight: 600;
  line-height: 1.16;
}

.price-divider {
  margin: 20px 0 0;
  border: 0;
  border-top: 1px solid var(--price-line);
}

.price-tabs-section {
  padding: 0 0 76px;
}

.price-tabs {
  display: grid;
  gap: 34px;
}

.price-tabs__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  border-bottom: 1px solid var(--price-line);
}

.price-tab,
.price-tab-button {
  position: relative;
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 22px 16px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: color .18s ease;
}

.price-tab:hover,
.price-tab:focus,
.price-tab-button:hover,
.price-tab-button:focus {
  color: var(--navy-deep);
  outline: none;
}

.price-tab.is-active,
.price-tab-button.is-active {
  color: var(--navy-deep);
}

.price-tab.is-active::after,
.price-tab-button.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: var(--pill-radius);
  background: var(--red);
}

.price-tab__label {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.price-tab__label span {
  overflow-wrap: anywhere;
}

.price-tabs__content,
.price-tabs__panels {
  min-width: 0;
}

.price-tab-panel[hidden] {
  display: none;
}

.price-comparison,
.price-service-table {
  margin-top: 30px;
}

.price-comparison:first-child,
.price-service-table:first-child {
  margin-top: 0;
}

.price-comparison h2,
.price-service-table h2 {
  margin: 0 0 18px;
  color: var(--navy-deep);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.price-matrix-wrap,
.price-table-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--price-line);
  border-bottom: 1px solid var(--price-line);
  background: var(--white);
}

.price-matrix,
.price-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text);
}

.price-matrix th,
.price-matrix td,
.price-table th,
.price-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--price-line-soft);
  font-size: .86rem;
  line-height: 1.35;
  vertical-align: middle;
}

.price-matrix thead th {
  width: 18%;
  min-width: 140px;
  padding-top: 18px;
  padding-bottom: 18px;
  background: var(--white);
  text-align: center;
}

.price-matrix thead th:first-child {
  width: 28%;
  min-width: 220px;
}

.price-matrix thead th.is-featured {
  color: var(--blue);
  background: linear-gradient(180deg, var(--blue-soft) 0%, var(--white) 100%);
  box-shadow: inset 0 2px 0 rgba(35, 72, 128, .42);
}

.price-matrix thead strong {
  display: block;
  margin-bottom: 7px;
  color: var(--navy-deep);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.2;
}

.price-matrix thead th.is-featured strong {
  color: var(--blue);
}

.price-matrix__amount {
  display: block;
  color: var(--navy-deep);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
}

.price-matrix__currency {
  display: block;
  margin-top: 2px;
  color: var(--navy-deep);
  font-weight: 500;
  line-height: 1.12;
}

.price-matrix__note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 500;
  line-height: 1.25;
}

.price-matrix tbody th {
  width: 28%;
  color: var(--text);
  background: var(--white);
  font-weight: 500;
  text-align: left;
}

.price-matrix tbody td {
  color: var(--navy-deep);
  background: rgba(248, 250, 252, .58);
  font-weight: 600;
  text-align: center;
}

.price-matrix tbody td.is-featured {
  background: var(--price-blue-tint);
}

.price-matrix tr:last-child th,
.price-matrix tr:last-child td,
.price-table tr:last-child th,
.price-table tr:last-child td {
  border-bottom: 0;
}

.price-matrix__category th,
.price-matrix__category td,
.price-table__category th {
  padding-top: 12px;
  padding-bottom: 12px;
  color: var(--navy-deep);
  background: var(--price-soft) !important;
  font-weight: 600;
}

.price-bool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: .78rem;
}

.price-bool--yes {
  color: #168b56;
  background: rgba(22, 139, 86, .1);
}

.price-bool--no {
  color: #8a95a6;
  background: rgba(80, 102, 136, .08);
}

.price-table th {
  color: var(--navy-deep);
  background: var(--price-soft);
  font-weight: 600;
  text-align: center;
}

.price-table td {
  color: var(--muted);
  background: rgba(248, 250, 252, .42);
  text-align: center;
}

.price-table__name {
  width: 64%;
  color: var(--navy-deep) !important;
  background: var(--white) !important;
  text-align: left !important;
}

.price-table__category th {
  text-align: left;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 991px) {
  .price-title-section {
    padding-top: 30px;
  }

  .price-tabs-section {
    padding-bottom: 64px;
  }

  .price-tabs__nav {
    display: flex;
    align-items: stretch;
    max-width: none;
    margin: 0 -24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 24px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
  }

  .price-tab,
  .price-tab-button {
    flex: 0 0 248px;
    padding-right: 18px;
    padding-left: 18px;
    scroll-snap-align: start;
  }
}

@media (max-width: 767px) {
  .regos-price .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .price-title-section {
    padding-top: 26px;
  }

  .price-title-section h1 {
    font-size: 2rem;
  }

  .price-tabs {
    gap: 28px;
  }

  .price-tabs__nav {
    gap: 18px;
    margin: 0 -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .price-tab,
  .price-tab-button {
    min-height: 70px;
    flex-basis: min(72vw, 250px);
    padding-right: 16px;
    padding-left: 16px;
    padding-bottom: 14px;
    font-size: .9rem;
  }

  .price-comparison h2,
  .price-service-table h2 {
    font-size: 1.34rem;
  }

  .price-matrix,
  .price-table {
    min-width: 690px;
  }

  .price-matrix thead th:first-child,
  .price-matrix tbody th {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 188px;
    min-width: 188px;
    background: var(--white);
  }

  .price-matrix thead th:first-child {
    z-index: 3;
  }

  .price-matrix__category th {
    position: sticky;
    left: 0;
    z-index: 3;
  }

  .price-matrix th,
  .price-matrix td,
  .price-table th,
  .price-table td {
    padding: 10px 11px;
    font-size: .8rem;
  }
}

@media (max-width: 420px) {
  .price-title-section h1 {
    font-size: 1.82rem;
  }

  .price-tab,
  .price-tab-button {
    flex-basis: min(70vw, 236px);
  }

  .price-matrix,
  .price-table {
    min-width: 650px;
  }

  .price-matrix thead th:first-child,
  .price-matrix tbody th {
    width: 174px;
    min-width: 174px;
  }
}
