.main-form {
  margin-top: 5px;
}

.main-form > div {
  margin-right: 15px;
  width: calc(30% - 35px);
}

.main-form > div:last-child {
  width: calc(15% + 5px);
  margin-right: 0;
}

.listing-table,
.wp-block-table table,
table.wptb-preview-table {
  margin: 64px 0;
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
}

.wptb-frontend-table-edit-link {
  display: none;
}

.wp-block-table table {
  table-layout: fixed;
}

.not-fixed table {
  table-layout: auto;
}

.listing-table th,
.listing-table td,
.wp-block-table table th,
.wp-block-table table td,
table.wptb-preview-table th,
table.wptb-preview-table td {
  border-right: 1px dashed #d3d7de;
  height: 53px;
  text-align: center;
  font-weight: 500;
  font-size: 12px;
  padding: 0 12px;
}

.wp-block-table table th,
.wp-block-table table td,
table.wptb-preview-table th,
table.wptb-preview-table td {
  color: #6c7a93;
}

.wp-block-table table tr th,
.wp-block-table table tr td:first-child,
table.wptb-preview-table th,
table.wptb-preview-table td:first-child {
  color: #060b13;
}

.wp-block-table table th:last-child,
.wp-block-table table td:last-child,
table.wptb-preview-table th:last-child,
table.wptb-preview-table td:last-child {
  border-right: none;
}

.wp-block-table table tbody tr:first-child th,
.wp-block-table table tbody tr:first-child td,
table.wptb-preview-table tbody tr:first-child th,
table.wptb-preview-table tbody tr:first-child td {
  border-bottom: 1px solid #060b13;
  color: #060b13;
  padding: 10px;
  height: auto;
  text-align: center !important;
}

table.wptb-preview-table tbody tr:first-child th,
table.wptb-preview-table tbody tr:first-child td,
.wptb-table-4044 table.wptb-preview-table tbody tr:nth-child(2) td {
  border-bottom: 1px solid var(--comment-font-color);
}

.wp-block-table table th,
.wp-block-table table td,
table.wptb-preview-table td,
table.wptb-preview-table th {
  padding: 10px;
  height: auto;
  font-size: 12px;
  line-height: 1.7;
}

.wp-block-table table th *,
.wp-block-table table td *,
table.wptb-preview-table th *,
table.wptb-preview-table td *,
table.wptb-preview-table td div * {
  font-size: 12px;
  line-height: 1.7;
}

.wp-block-table tr:nth-child(odd) {
  background-color: transparent;
}

.wp-block-table tr:nth-child(even),
table.wptb-preview-table tr:nth-of-type(2n + 1) {
  background-color: var(--second-background-color);
}

table.wptb-preview-table tr:first-child {
  background-color: transparent;
}

.listing-table.simple-view {
  margin: 60px 0 56px;
}

.listing-table.simple-view th,
.listing-table.simple-view td,
.listing-table.simple-view th:first-of-type,
.listing-table.simple-view td:first-of-type {
  border-right: none;
  border-bottom: 1px solid #e2e4e9;
  font-size: 16px;
  padding: 10px;
  height: auto;
}

.listing-table.simple-view td,
.listing-table.simple-view td:first-of-type,
table.wptb-preview-table td,
table.wptb-preview-table td:first-of-type {
  padding: 18px 12px;
  font-weight: normal;
  font-size: 16px;
  line-height: 170%;
  color: var(--comment-font-color);
}

table.wptb-preview-table td:first-of-type * {
  color: #060b13;
  text-align: left;
}

.wptb-table-4044 table.wptb-preview-table tr:nth-child(2) td *,
table.wptb-preview-table tbody tr:first-child td {
  color: #060b13;
  text-align: center;
}

table.wptb-preview-table tr th:last-child,
table.wptb-preview-table tr td:last-child {
  border-right: none !important;
}

.main .listing-table img {
  vertical-align: middle;
}

.listing-table th:last-of-type,
.listing-table td:last-of-type {
  border-right: none;
}

.listing-table th:first-of-type,
.listing-table td:first-of-type {
  text-align: left;
  color: #060b13;
  width: 25.8%;
  padding: 0 15px 0 19px;
}

.listing-table.simple-view th:first-of-type,
.listing-table.simple-view td:first-of-type,
.listing-table.auto-width th:first-of-type,
.listing-table.auto-width td:first-of-type {
  width: auto;
}

.listing-table.full-table th:first-of-type,
.listing-table.full-table td:first-of-type {
  text-align: center;
  color: #060b13;
  width: auto;
  padding: 0 15px 0 19px;
}

.listing-table.full-table th,
.listing-table.full-table td,
.listing-table.full-table th:first-of-type,
.listing-table.full-table td:first-of-type {
  padding: 15px;
  width: 33.33%;
}

.listing-table th.sheild {
  padding-left: 8px;
  padding-right: 8px;
}

.listing-table tr:nth-of-type(1) td:first-of-type,
.listing-table tr:nth-of-type(8) td:first-of-type,
.listing-table tr:nth-of-type(15) td:first-of-type {
  border-left: 4px solid #ca4072;
}

.listing-table tr:nth-of-type(2) td:first-of-type,
.listing-table tr:nth-of-type(9) td:first-of-type,
.listing-table tr:nth-of-type(16) td:first-of-type {
  border-left: 4px solid #b060c5;
}

.listing-table tr:nth-of-type(3) td:first-of-type,
.listing-table tr:nth-of-type(10) td:first-of-type,
.listing-table tr:nth-of-type(17) td:first-of-type {
  border-left: 4px solid #6354c5;
}

.listing-table tr:nth-of-type(4) td:first-of-type,
.listing-table tr:nth-of-type(11) td:first-of-type,
.listing-table tr:nth-of-type(18) td:first-of-type {
  border-left: 4px solid #5ba2ca;
}

.listing-table tr:nth-of-type(5) td:first-of-type,
.listing-table tr:nth-of-type(12) td:first-of-type,
.listing-table tr:nth-of-type(19) td:first-of-type {
  border-left: 4px solid #5bcaa9;
}

.listing-table tr:nth-of-type(6) td:first-of-type,
.listing-table tr:nth-of-type(13) td:first-of-type,
.listing-table tr:nth-of-type(20) td:first-of-type {
  border-left: 4px solid #b1c870;
}

.listing-table tr:nth-of-type(7) td:first-of-type,
.listing-table tr:nth-of-type(14) td:first-of-type,
.listing-table tr:nth-of-type(21) td:first-of-type {
  border-left: 4px solid #e4ca41;
}

.listing-table td:first-of-type {
  border-left: 4px solid #b060c5;
}

.listing-table.full-table tr td:first-of-type {
  border-left: none;
}

.listing-table td .risk-box {
  display: block;
  height: 30px;
  background-repeat: no-repeat;
  margin: 0 auto;
  width: 32px;
  margin-top: 4px;
  font-size: 0;
}

.listing-table td .risk-box.lvl_1 {
  background-image: url(../images/risk_dots/1.svg);
}

.listing-table td .risk-box.lvl_2 {
  background-image: url(../images/risk_dots/2.svg);
}

.listing-table td .risk-box.lvl_3 {
  background-image: url(../images/risk_dots/3.svg);
}

.listing-table td .risk-box.lvl_4 {
  background-image: url(../images/risk_dots/4.svg);
}

.listing-table td .risk-box.lvl_5 {
  background-image: url(../images/risk_dots/5.svg);
}

.listing-table td .risk-box.lvl_6 {
  background-image: url(../images/risk_dots/6.svg);
}

.listing-table td .risk-box.lvl_7 {
  background-image: url(../images/risk_dots/7.svg);
}

.listing-table th.valuation {
  width: 83px;
  text-align: left;
  padding-left: 10px;
}

.listing-table th:first-of-type img {
  margin-right: 16px;
}

.listing-table th {
  border-bottom: 1px solid var(--comment-font-color);
}

.listing-table tr:nth-child(odd) {
  background-color: #fff;
}

.listing-table tr:nth-child(even) {
  background-color: var(--second-background-color);
}

.listing-table td {
  color: var(--comment-font-color);
}

.main .listing-table input {
  display: inline;
}

.main .listing-table a {
  font-size: inherit;
  color: inherit;
  text-decoration: none;
  vertical-align: middle;
  display: inline-block;
  width: calc(100% - 45px);
}

.listing-second-table {
  width: 100%;
  margin-bottom: 128px;
  border-spacing: 0;
  border-collapse: collapse;
}

.listing-second-table th,
.listing-second-table td {
  border-right: 1px dashed #d3d7de;
  height: 54px;
  text-align: center;
  font-weight: 500;
  font-size: 12px;
}

.listing-second-table tr:nth-child(even) {
  background-color: var(--second-background-color);
}

.listing-second-table td:first-of-type,
.listing-second-table th:first-of-type {
  text-align: left;
  color: #060b13;
  padding: 0 15px 0 17px;
}

.listing-second-table td:last-of-type,
.listing-second-table th:last-of-type {
  border-right: none;
}

.listing-second-table th {
  border-bottom: 1px solid var(--comment-font-color);
}

.listing-second-table img {
  vertical-align: inherit;
  padding-bottom: 10px;
}

.listing-second-table a {
  vertical-align: middle;
}

.compare-info {
  display: none;
  position: fixed;
  justify-content: center;
  align-items: center;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  z-index: 10000000;
  text-align: center;
  background-color: var(--primary-font-color);
}

.compare-info a {
  font-weight: 600;
  font-size: 16px;
  line-height: 170%;
  color: #fff;
  text-decoration: none;
}

.compare-info a span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.compare-info.open {
  display: flex;
}

.files-info {
  display: none;
}

.files-info.open,
.files-info span {
  display: inline;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.listing-table.simetric-table th:first-of-type {
  width: auto;
  text-align: center;
}

.listing-table.simetric-table th[rowspan='2'] {
  vertical-align: bottom;
  text-align: left;
  padding-bottom: 20px;
}

.listing-table.simetric-table td:first-of-type {
  width: auto;
}

.listing-table.simetric-table thead tr:nth-child(even) {
  background-color: transparent;
}

.simple-text p {
  font-weight: normal;
  font-size: 16px;
  line-height: 170%;
  color: var(--comment-font-color);
}

.ht {
  cursor: pointer;
  position: relative;
}

.ht:hover .tooltip {
  visibility: visible;
}

.ht .tooltip {
  visibility: hidden;
  background-color: #060b13;
  color: #fff;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  width: 100px;
  bottom: 100%;
  left: 50%;
  margin-left: -58px;
  text-align: center;
  font-weight: 500;
  font-size: 12px;
}

.ht .tooltip::after {
  content: ' ';
  position: absolute;
  top: 100%;
  /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}

.ht .tooltip {
  opacity: 0;
  transition: opacity 1s;
}

.ht:hover .tooltip {
  opacity: 0.9;
}

@media only screen and (max-width: 768px) {
  .listing-table {
    margin: 40px 0 10px 0;
  }

  .table-wrapper {
    overflow-x: scroll;
    width: 140%;
    margin-left: -17%;
  }

  .table-wrapper.contained {
    width: 100%;
    margin-left: 0;
  }

  .table-wrapper::-webkit-scrollbar {
    background-color: red;
    height: 4px;
    background-color: #d2d7df;
    border-radius: 4px;
  }

  .table-wrapper::-webkit-scrollbar-thumb {
    background-color: #1f365e;
    border-radius: 4px;
  }

  .listing-table td:first-of-type,
  .listing-second-table td:first-of-type {
    display: block;
    width: 90%;
    height: auto;
    margin-bottom: 5px;
    font-size: 14px;
    padding-top: 10px;
    padding-bottom: 0 !important;
    border-right: none;
  }

  .listing-second-table td:first-of-type {
    padding-top: 25px;
  }

  .date-outside .listing-second-table td:first-of-type {
    padding-bottom: 15px !important;
  }

  .listing-second-table td:first-of-type .mobile-data {
    padding: 10px 0;
  }

  .listing-table td:first-of-type .mobile-data {
    font-size: inherit;
    color: inherit;
    padding: 15px 0;
    position: relative;
  }

  .listing-table td:first-of-type .mobile-data a {
    position: absolute;
    width: auto;
    right: 0;
    top: 5px;
    font-size: 24px;
  }

  .listing-table td:first-of-type .mobile-data span {
    font-size: inherit;
  }

  .listing-table tr:nth-child(odd),
  .listing-second-table tr:nth-child(odd) {
    background-color: var(--second-background-color);
  }

  .listing-table tr,
  .listing-second-table tr {
    border-bottom: 1px dashed #d3d7de;
  }

  .listing-table tr:last-of-type,
  .listing-second-table tr:last-of-type {
    border-bottom: none;
  }

  .listing-second-table th,
  .listing-second-table td {
    height: auto;
  }

  .show-area .content-to-hidden .listing-second-table th,
  .show-area .content-to-hidden .listing-second-table td {
    padding: 10px;
  }

  .show-area .content-to-hidden .listing-second-table td:nth-of-type(2) {
    border-left: 1px dashed #d3d7de;
  }

  .listing-second-table td div {
    font-size: inherit;
  }

  .listing-table.full-table th:first-of-type,
  .listing-table.full-table td:first-of-type {
    width: auto;
    padding: 15px 15px 0 15px;
  }

  .date-outside .date-input button.quotations-next,
  .date-outside .date-input button.quotations-prev {
    display: none;
  }

  .is-not-mobile {
    display: none !important;
  }

  .wp-block-table table {
    table-layout: auto;
  }

  .listing-table.quotation th:first-of-type,
  .listing-table td:first-of-type {
    position: relative;
  }

  .listing-table.quotation .checkbox-container {
    position: absolute;
    top: 15px;
    display: block !important;
  }

  .main .listing-table a {
    width: 100%;
  }

  .listing-table,
  .wp-block-table table,
  table.wptb-preview-table {
    margin: 0 0 10px 0;
  }

  .mobile-quotes {
    margin-left: 35px;
  }

  .mobile-quotes-hide {
    display: none;
  }
}

@media only screen and (min-width: 769px) {
  .mobile-data {
    display: none;
  }

  .listing-table.simple-view td:first-of-type {
    width: 25%;
  }

  /* special view for data input in lisiting */

  .date-outside h1 {
    margin-bottom: 0;
    padding-bottom: 32px;
    border-bottom: 1px solid #e2e4e9;
  }

  .date-outside .main-form {
    position: relative;
  }

  .date-outside .main-form > div.date-input {
    position: absolute;
    top: -100px;
    right: 0;
    margin-right: 0;
    width: 378px;
    text-align: right;
    white-space: nowrap;
    padding-right: 13px;
  }

  .date-outside .main-form > div.date-input input.time-display {
    background-color: transparent;
    border: none;
    width: 210px;
    display: inline-block;
    font-weight: 600;
    font-size: 24px;
    line-height: 140%;
    padding: 0;
    height: auto;
    color: var(--primary-font-color);
  }

  .date-outside .main-form > div.date-input label {
    display: inline-block;
    font-weight: 600;
    font-size: 16px;
    line-height: 170%;
    margin-right: 46px;
    margin-bottom: 5px;
    vertical-align: middle;
  }

  .date-outside .main-form > div {
    width: calc(33% - 7px);
    margin-right: 32px;
  }

  .date-outside .main-form > div:nth-child(3) {
    margin-right: 0;
  }

  .date-outside .date-input button.quotations-next {
    right: -15px;
  }

  .date-outside .date-input button {
    top: calc(50% - 25px);
  }

  .date-outside .date-input button.quotations-prev {
    right: 222px;
    left: auto;
  }
}
