/* Generated cost-matrix Table CSS */
  .cost-matrix {
    background: #2084BC;
    color: #ffffff !important;
    padding: 0 !important;
  }

  .cost-matrix table,
  .cost-matrix tr {
    border: none !important;
    background: none !important;
  }

  .cost-matrix .discount a,
  .cost-matrix .discount a:hover {
    color: #ffcd34 !important;
  }

  .cost-matrix h2 {
    color: #ffffff !important;
    padding-top: 40px;
}

  /* General styles */
  .cost-matrix table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
  }

  .cost-matrix td {
    padding: 12px;
    vertical-align: middle;
  }

  .cost-matrix .table-head {
    font-weight: bold;
  }
  .cost-matrix a.btn.btn-secondary
 {
    border: none;
    color: white;
    padding: 10px 40px !important;
    border: 1px solid white;
}
  .cost-matrix a.btn.btn-secondary:hover {
    background: white;
    color: #2183bc;
}

  .cost-matrix .discount {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
  }

  .cost-matrix .discount a {
    text-decoration: none;
  }

  .cost-matrix .discount a:hover {
    text-decoration: underline;
  }
  .cost-matrix td.pricing-columns {
    width: 100%;
  }

  /* Mobile-first styles */
  .cost-matrix .table-head {
    display: none !important;
  }

  .cost-matrix table td {
    display: block !important;
    height: auto !important;
    border: none !important;
    padding: 8px 12px !important;
    position: relative !important;
    padding-left: 160px !important;
    min-height: 60px !important;
    box-sizing: border-box !important;
  }

  .cost-matrix table tr td:first-child {
    padding-left: 12px !important;
    font-weight: bold !important;
    margin-bottom: 5px !important;
  }
  .cost-matrix table tr:nth-child(2) td:nth-child(2):before {
    content: "Public:" !important;
  }
  .cost-matrix table tr:nth-child(2) td:nth-child(3):before {
    content: "UCSB Discount:" !important;
  }
  .cost-matrix table tr:nth-child(2) td:nth-child(4):before {
    content: "International Students:" !important;
  }
  .cost-matrix table tr:nth-child(3) td:nth-child(2):before {
    content: "Public:" !important;
  }
  .cost-matrix table tr:nth-child(3) td:nth-child(3):before {
    content: "UCSB Discount:" !important;
  }
  .cost-matrix table tr:nth-child(3) td:nth-child(4):before {
    content: "International Students:" !important;
  }

  .cost-matrix table td:before {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 140px !important;
    font-weight: bold !important;
    color: #ffffff !important;

    white-space: nowrap !important;
  }

  .cost-matrix table tr td:first-child:before {
    display: none !important;
  }

    .cost-matrix table tr {
    margin-bottom: 60px !important;
    display: block !important;
}

  .cost-matrix table tbody tr td {
    text-align: center !important;
  }

  .cost-matrix table tbody tr td:first-child {
    text-align: left !important;
  }

  .cost-matrix table td {
    display: flex !important;
    height: auto !important;
    border: none !important;
    position: relative !important;
    justify-content: flex-end;
    max-width: 90%;
    margin: 0 auto;
  }

  .cost-matrix td::before {
    text-align: left;
  }
  .cost-matrix td.pricing-columns {
    width: 100%;
  }
  .cost-matrix table tr td:first-child {
    justify-content: center;
  }
  /* Desktop styles */
  @media (min-width: 680px) {
    .cost-matrix .table-head {
      display: table-row !important;
    }

    .cost-matrix table td {
      display: table-cell !important;
      padding: 12px !important;
      padding-left: 12px !important;
      height: 3.5em !important;
      min-height: auto !important;
    }
    

    .cost-matrix table tr td:first-child {
      margin-bottom: 0 !important;
    }

    .cost-matrix table td:before {
      display: none !important;
    }

    .cost-matrix table tr {
      margin-bottom: 0 !important;
      display: table-row !important;
      height: 2.5em !important;
    }
    .cost-matrix td.pricing-columns {
      width: 25% !important;
    }
    .cost-matrix a.btn.btn-secondary {
    border: 1px solid white;
    color: #fffffe;
    padding: 12px 40px !important;
}
  }