/* RESET RULES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@import url("https://fonts.googleapis.com/css?family=Noto+Sans:400,700&display=swap");

:root {
  --white: white;
  --gray: #999;
  --lightgray: whitesmoke;
  --popular: #ffdd40;
  --starter: #383472;
  --essential: #383472;
  --professional: #383472;
  --dark-blue: #383472;
  --sky: #74deff;
}


/* .table-wrapper table {
  table-layout: auto;
} */

button {
  background: none;
  border: none;
  cursor: pointer;
}


#pricing {
  font: 18px/1.5 "Noto Sans", sans-serif;
  background: var(--lightgray);
  width: 100% !important;
}

section:nth-child(1),
section:nth-child(3) {
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
}

.container {
  max-width: 96%;
  padding: 0 10px;
  margin: 0 auto;
}

/* TABLE STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* .table-wrapper thead {
  position: sticky;
  top: 0;
  z-index: 100;
} */


.table-wrapper svg.essential path,
.table-wrapper svg.starter path,
.table-wrapper svg.professional path {
  fill: var(--starter);
}
.table-wrapper svg.not-included {
  fill: var(--gray);
}

.table-wrapper table thead tr th .professional {
  border-top-right-radius: 5px;
}
.table-wrapper table thead tr th:first-child {
  border-top-left-radius: 5px;
  overflow: hidden;
}
/* .table-wrapper table thead tr th .basic {
    border-top-left-radius: 5px;
}  */
.th-plan.th-plan-basic {
  border-bottom-left-radius: 5px;
}
.th-plan.th-plan-profesional {
  border-bottom-right-radius: 5px;
}

.table-wrapper table tbody,
.th-plan {
  background: var(--white);
}

/* table {
  position: relative;
  text-align: center;
  width: 100%;
} */

table thead {
  /* background: var(--white); */
  transition: box-shadow 0.2s;
}

/* table tr {
  display: flex;
} */

/* table th,
table td {
  width: 300px;
  min-width: 150px;
} */

table th:nth-child(1) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1.3;
  padding: 0 10px;
}
td.sub-item {
  padding-left: 35px;
}

table th:nth-child(1) .svg-wrapper {
  margin-top: 10px;
}

table th:nth-child(1) svg {
  width: 22px;
  height: 22px;
}

table th .heading {
  padding: 0.8rem 1rem;
  color: var(--white);
}

table th .heading {
  background: var(--dark-blue);
}

.txt-heading-sticky {
  /* add z-index: 1000; remove property top; script on scrolll to it, add position fixed; top: 60. on next heading remove postion fixed and top, add the same to next heading. */
  position: sticky;
  /* top: 120px; */
  /* top: 60px; */
  background-color: var(--white);
}
.fixed-amount {
  position: fixed;
  background: none !important;
}
tr.sticky-shadow {
  box-shadow: 0px 1px 8px 0px #ccc;
}
.txt-bold {
  font-weight: 600;
}
.th-mask {
  visibility: visible;
  color: #383472 !important;
  text-align: center;
}
.th-border .th-mask {
  visibility: visible;
}
.th-border {
  border-bottom: 1px solid #ccc;
}
.th-border .heading.basic {
  border-top-left-radius: 0;
}
/* 
table th:nth-child(2) .heading {
  background: var(--starter);
}

table th:nth-child(3) .heading {
  background: var(--essential);
}

table th:nth-child(4) .heading {
  background: var(--professional);
} */

table th .info {
  position: relative;
  /* padding: 1.5rem 0; */
  padding: 0;
  border-left: 1px solid var(--lightgray);
}

table th .popular {
  position: absolute;
  top: 10px;
  right: 0;
  font-size: 11px;
  background: var(--popular);
  padding: 4px 8px;
  border-radius: 2px;
}

table th .amount {
  font-size: 2rem;
  font-weight: 400;
}

table th .amount span {
  display: block;
  transform: translateY(-8px);
}

/* 
table th:nth-child(2) .amount {
  color: var(--starter);
}

table th:nth-child(3) .amount {
  color: var(--essential);
}

table th:nth-child(4) .amount {
  color: var(--professional);
} 
*/

table th .billing-msg,
table th .amount span {
  font-weight: normal;
  font-size: 0.8rem;
  margin-top: 7px;
}

table th button,
table tfoot button {
  display: inline-block;
  border-radius: 8px;
  padding: 8px 20px;
  margin-top: 10px;
  transition: all 0.2s;
}

table th:nth-child(2) button,
table tfoot button.plan-basic {
  color: var(--starter);
  border: 1px solid var(--starter);
}

table th:nth-child(2) button:hover,
table tfoot button.plan-basic:hover {
  background: var(--starter);
}

table th:nth-child(3) button,
table tfoot button.plan-standard {
  color: var(--essential);
  border: 1px solid var(--essential);
}

table th:nth-child(3) button:hover,
table tfoot button.plan-standard:hover {
  background: var(--essential);
}

table th:nth-child(4) button,
table tfoot button.plan-professional {
  color: var(--professional);
  border: 1px solid var(--professional);
}

table th:nth-child(4) button:hover,
table tfoot button.plan-professional:hover {
  background: var(--professional);
}

table th button:hover,
table tfoot button:hover {
  color: var(--white);
}

table .th-plan button {
  background-color: #383472;
  color: #fff !important;
}

table td {
  padding: 10px;
}

table td:not(:first-child) {
  border-left: 1px solid var(--lightgray);
}

table td:first-child {
  font-size: 1rem;
  text-align: left;
}

table svg {
  width: 18px;
  height: 18px;
}

table svg.not-included {
  fill: var(--gray);
}

table svg.starter {
  fill: var(--starter);
}

table svg.essential {
  fill: var(--essential);
}

table svg.professional {
  fill: var(--professional);
}

.not-includeds {
  visibility: hidden !important;
}

/* BODY CLASSES & MQ
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.sticky-table thead tr,
.sticky2-table thead tr {
  z-index: 1;
}

/* .dt-scroll-body .thead {
  display: none !important;
} */

@media screen and (min-width: 780px) {
  section:nth-child(1),
  section:nth-child(3) {
    padding: 0;
  }

  section:nth-child(1) {
    height: 70vh;
  }

  section:nth-child(3) {
    height: 100vh;
  }

  table th:nth-child(1) {
    padding: 0 20px;
  }

  table td {
    padding: 20px;
  }

table tr:nth-child(even) {
  background-color: whitesmoke !important; /* Slightly darker background for even rows */
}

  table td svg path {
    fill: var(--dark-blue) !important;
  }

  .sticky-table table thead {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
  }

  .sticky-table table thead {
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.12);
  }

  .sticky2-table table thead {
    position: absolute;
    left: 0;
  }
}

/* FOOTER
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.page-footer {
  font-size: 0.85rem;
  padding: 10px;
  text-align: right;
  color: var(--black);
}

.page-footer span {
  color: #e31b23;
}

.main-item-product-price {
  /* text-align: center; */
  font-weight: 600;
  font-size: 25px;
  /* margin-bottom: 35px; */
  /* margin-top: -43px; */
  color: #383472;
  text-decoration: underline;
}
.has-sub-level {
  font-weight: bold;
}
.sub-level {
  padding-left: 55px;
}


table.dataTable > thead > tr > th,
table.dataTable > thead > tr > td {
  padding: 0;
}
.th-plan,
.th-plan .amount,
.th-plan .heading {
  text-align: center;
  padding: 15px 0;
}
.dt-scroll-body table thead {
  /* display: none !important; */
  background-color: #fff;
}

table tbody tr td:nth-child(n+2) {
  text-align: center;
}
table tfoot tr td {
  text-align: center !important;
  padding: 28.6px 10px 28.6px 10px !important
}
table tfoot tr td button {
  margin-top: 0;
}

@media screen and (max-width: 1120px) {
  table th .popular {
    display: none;
  }
}


@media screen and (max-width: 895px) {
  #pricing table th .amount {
    font-size: 1.5rem;
    line-height: 2;
  }
  #pricing table th:first-child,
  #pricing table tbody tr td:first-child {
    font-size: 15px;
  }
}

@media screen and (max-width: 875px) {
  .table-wrapper table th:first-child {
    width: 160px;
  }
  #pricing .container {
    width: 100%;
    max-width: unset;
    margin: auto;
    margin-left: 0;
  }
  .txt-heading-sticky {
    top: 64px;
  }
}

@media screen and (max-width: 790px) {
  #pricing.container-fluid {
    margin-left: 0;
    width: 100%;
  }
  table tr:nth-child(even) {
    background-color: whitesmoke !important; /* Slightly darker background for even rows */
  }
}
@media screen and (max-width: 760px) {
  .txt-heading {
    white-space: wrap;
    padding: 22px 10px;
    padding-top: 1px;
  }
  td.sub-item {
    padding-left: 23px;
  }
  .sub-level {
    padding-left: 35px !important;
  }
}

@media screen and (max-width: 690px) {
  #pricing {
    font-size: 15px;
  }
  .th-plan .heading {
    padding-left: 0;
    padding-right: 0;
  }
  #pricing table th:not(:first-child),
    #pricing .container {
    padding-left: 0;
    padding-right: 0;
  }
}

@media screen and (max-width: 505px) {
}

.table-banner {
  display: none;
  border: 1px solid red;
} 

@media screen and (max-width: 380px) {
  /* how to scroll table on mobile while keeping the header fixed
  * on screen scroll top is 0 or not yet scroll, set table-wrapper overflow-x auto
  * on screen scroll top is not 0 or scroll, remove table-wrapper overflow-x
  * scroll greater than table repeat step 1.
*/
  #pricing {
    padding: 0;
  }
  .table-wrapper {
    /* overflow: hidden; */
    overflow-x: auto;
  }
  .table-wrapper table {
    table-layout: auto !important;
  }

  .table-wrapper table th {
    width: 180px !important;
  }

  .table-banner {
    display: block;
    /* width: 100%; */
    height: 100px;
    background-color: aquamarine;
  }
}

