.p-table .top-overview {
  margin-bottom: 5em;
}


/* PILL TOGGLE */
.payment-options .payment-types {
  font-size: 15px;
}

.payment-options {
  padding: 1em;
}

.price-toggle {
  width: 2.5em;
  background-color: var(--border);
  height: 1.4em;
  display: inline-block;
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  margin: 0 0.4em;
}

.price-pill {
  height: 1.4em;
  width: 1.4em;
  border-radius: 100px;
  background-color: var(--primary);
  display: block;
  margin-left: 0;
  transition: all ease-in-out 0.15s;
  left: 0;
  position: absolute;
  border: solid 4px var(--border);
}

.price-toggle.active .price-pill{
  left: calc(100% - 1.4em);
}

.p-table .tier-price:not(.active) {
  display: none;
}

/* ASP BUTTON OVERWRITE */
.price-external {
  cursor: pointer;
}

.price-external .asp_product_item > div:not(.asp_product_buy_button) {
  display: none;
}

 .price-external .asp_product_item {
    padding: 0;
    border: 0;
    margin: 0;
}

.p-table .lg span.price-external {
  padding: 0 !important;
  width: initial !important;
}

.p-table .lg span.price-external{
      width: 81% !important;
}

.p-table .lg span.price-external .asp_product_buy_btn_container,
.p-table .lg span.price-external button {
  display: block;
  width: 100%;
}

.p-table .lg  span.price-external button {
  margin: 0;
  padding-top: 0.45em;
  padding-bottom: 0.45em;
}


/* TOOLTIP  */
.p-table .tooltip-wrap {
  position: relative;
  margin-left: .1em;
  /* color: var(--primary); */
  top: -.2em;
}

.p-table .tooltip {
  position: absolute;
  max-width: 200px;
  min-width: 200px;
  width: 100%;
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
  padding: .5em;
  border-radius: .5em;
  background-color: rgba(0,0,0,.8);
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(2.4em);
  display: none
}

.p-table .tooltip:after {
  position: absolute;
  content: "";
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  bottom: -0.4em;
  border: solid .5em rgba(0,0,0,.8);
  border-top-color: transparent;
  border-left-color: transparent
}

.p-table .tooltip-wrap:hover .tooltip {
  display: block
}

.p-table .md .item .sticker,
.p-table .lg .sticker{
  position: absolute;
  font-size: 13px;
  background-color: #36b476;
  margin: 0;
  padding: 0.1em 0.5em;
  color: #fff;
  width: auto;
  z-index: 1;
  left: 0;
  top: -0.7em;
}

.p-table .md .item .sticker{
  border-top-left-radius: 8px;
}

.p-table .md .item .sticker:before,
.p-table .lg .sticker:before {
  position: absolute;
  width: 10px;
  content: "";
  height: 10px;
  top: 0;
  right: -10px;
  z-index: 0;
  border: solid 5px #188c53;
  border-top-color: transparent;
  border-right-color: transparent;
}

/* DESKTOP DESIGN
////////////////////////*/
@media(min-width:869px){
  .p-table .lg {
    border-bottom: solid 1px var(--border);
    position: relative;
  }

  .p-table .lg:before{
      content: "";
      position: absolute;
      background-image: url(/wp-content/uploads/2020/08/plus-patterns_square.svg);
      left: auto;
      right: -1.3em;
      top: -1.3em;
      width: 10em;
      height: 17em;
      background-size: 72%;
  }

  .p-table .md {
    display: none;
  } 
  .p-table .lg ul,
  .p-table .lg ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .p-table .lg .tr li {
    padding: 1.2em;
    font-size:0.95em;
    background-color: #fff;
    border-top: solid 1px var(--border);
  }

  .p-table .lg .tr .row-title {
    border-left: solid 1px var(--border);
  }

  .p-table .lg .th-title, 
  .p-table .lg .row-title {
    min-width: 32%;
    max-width: 32%;
  }

  /* TABLE HEADER */
  .p-table .lg .th-title {
    align-items:flex-end;
    position: relative;
    justify-content: center;
    background-color:transparent !important;
  }

  .p-table .lg .th-title:before{
    content: "";
    position: absolute;
    width: 6em;
    height: 6em;
    background-size: contain;
    background-image: url(/wp-content/uploads/2020/07/logo-spokenhere_icon.svg);
    left: auto;
    right: -2em;
    opacity: 0.1;
    bottom: 1em;
    z-index: -1;
  }

  .p-table .col-1-title {
    display: block;
    width: 100%;
    padding: 0.75em 1em;
    background-color: var(--border);
    text-align: left;
    font-weight: 900;
    font-size: 1.1em;
    color:#000;
  }

  .p-table .lg .th li {
    text-align: center;
    background-color: #fff;
    /* border-radius: 0.1em 0.1em 0 0; */
    /* overflow: hidden; */
    position: relative;
  }

  .p-table .lg .th-title > div {
    width: 100%;
  }

  .p-table .lg .tier-type {
    background-color: var(--sBlue);
    padding: 1em;
    border-top: solid 1px var(--border);
  }

  .p-table .lg .th > li:nth-child(2) .tier-type {
    background-color: #eeeeee;
  }

  .p-table .lg .th > li:nth-child(4) .tier-type {
    background-color: #a4a3a4;
    color:#fff;
  }
  
  

  .p-table .lg .th > li:nth-child(5) .tier-type {
    background-color: var(--darkBlue);
    color: #fff;
  }

  .p-table .lg .tier-type-snippet {
      font-size: 13px;
  }

  

  

  .p-table .lg .tier-type-title {
      font-size: 1.2em;
      color:inherit;
  }

  .p-table .lg .th .tier-price{
    padding: 1em 1em 4.5em;
  }
  

  .p-table .lg .th .number {
    font-size: 2em;
    font-weight: 600;
    color:#000;
  }

  .p-table .lg .th .number-snippet {
      font-size: 0.8em;
  }

  .p-table .lg .th .price-external{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .p-table .lg .price-external {
    bottom: 1.4em;
    font-size: 14px;
    text-decoration: none;
    padding: 0.5em 1em;
    background-color: var(--primary);
    width: 81%;
    color: #fff;
    border-radius: 0.2em;
    display: block;
    margin: auto;
  }

  .p-table .lg .th .price-external:hover{
    background-color:var(--darkBlue);
  }
  

  
  
  /* ROWS */
  .p-table .lg .tr:nth-child(2n) li {
    /* background-color: var(--lorange); */
  }

  /* COLUMNS */
  .p-table .lg .row-cols {
    /* border-right: solid 1px var(--border); */
    border-left: solid 1px var(--border);
    /* box-shadow: var(--shadow); */
  }

  .p-table .lg li:nth-last-child(1) {
    border-right: solid 1px var(--border);
  }
   
}



/* MOBILE DESIGN
////////////////////////*/
@media(max-width:868px){
  .p-table .lg {
    display: none;
  }  

  .p-table .top-overview {
    margin-bottom: 2em;
  }

  .p-table .md .col-1-title {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 0.5em;
  }

  .p-table .md .item {
    padding: 2em;
    position: relative;
    border-radius: 2em;
    border:var(--border);
  }

  .p-table .md .item.has-sticker{
    border-top-left-radius: 0;
  }

  .p-table .md .item:not(:last-of-type) {
      margin-bottom: 2em;
  }

  .p-table .md .item.item-0 {
    background-color: #eeeeee;
  }

  .p-table .md .item.item-1 {
    background-color: var(--sBlue);
  }

  .p-table .md .item.item-2 {
    background-color: #a4a3a4;
    color:#fff;
  }

  .p-table .md .item.item-3 {
    background-color: var(--darkBlue);
    color:#fff;
  }

  .p-table .md .item.item-2 .tier-title,
  .p-table .md .item.item-3 .tier-title{
    color:#fff;
  }

  .p-table .md .item.item-2 .table li:before,
  .p-table .md .item.item-3 .table li:before{
    background-color:#fff;
  }


  .p-table .md .table {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .p-table .md .table li {
    padding: 0.5em 0 0.5em 1.2em;
    font-size: 0.95em;
    position: relative;
    display: -webkit-box;display: -ms-flexbox;display: flex;
    -webkit-box-pack: justify;-ms-flex-pack: justify;justify-content: space-between;
  }

  .p-table .md .table li:before{
    content: "";
    position: absolute;
    left: 0;
    width: 0.5em;
    height: 0.5em;
    background-color: var(--body);
    top: 1em;
  }

  .p-table .md .tier-price {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 0.3em;
    padding-bottom: 0.3em;
    border-bottom: solid 1px #dcdcdc;
  }

  .p-table .md .tier-price span {
      font-size: 14px;
      font-weight: 500;
  }

  .p-table .md .tier-title {
    font-size: 1em;
    margin-bottom: 0;
  }

  .p-table .md .tier-snippet {
      font-size: 0.95em;
      font-style: italic;
  }

  .p-table .md .button.price-external {
    box-shadow: none !important;
    margin-top: 1em;
  } 


  /* ASP BUTTON  */
  .p-table span.price-external div,
  .price-external .asp_product_buy_btn_container button {
      box-shadow: none !important;
  }

}