.wp-block-table {
    margin: 20px 0;
    width: 100%;
    border-collapse: collapse;
    box-shadow: 2px 2px 3px 1px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--slate-300, #CBD5E1);
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    border: 0;
}

.wp-block-table thead {
    background-color: #0E61A1;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.wp-block-table thead th {
    text-align: left;
    padding: 16px;
    border: 0;
    border-right: 1px solid #CBD5E1;
    vertical-align: middle;
    text-transform: capitalize;
}

.wp-block-table thead th:first-child {
    border-top-left-radius: 8px;
    border-right: 1px solid #CBD5E1;
}

.wp-block-table thead th:last-child {
    border-right: 0;
    border-top-right-radius: 8px;
}

.wp-block-table tbody td {
    background: var(--base-white, #FFF);
    padding: 16px;
    border-bottom: 1px solid var(--slate-300, #CBD5E1);
    border-right: 1px solid #e3ecf4;
    border-left: 1px solid #e3ecf4;
    text-align: left;
    vertical-align: middle;
    text-transform: capitalize;
    color: #000;
    font-size: 16px;
}

.wp-block-table tbody td:last-child {
    border-right: 0;
}

.wp-block-table tfoot {
    background-color: #DBEAFE;
    color: #000;
    font-size: 16px;
    font-weight: 400;
    border-top: 1px solid var(--slate-400, #CBD5E1) !important;
}

.wp-block-table tfoot td {
    text-align: left;
    padding: 16px;
    border: 0;
    border-top: 0;
    border-right: 1px solid #CBD5E1;
    vertical-align: middle;
    text-transform: capitalize;
}

.wp-block-table tfoot td:last-child {
    border-right: 0;
}

.wp-block-table tfoot tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.wp-block-table tfoot tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

/* Fixed layout */
.wp-block-table.has-fixed-layout {
    table-layout: fixed;
}

.wp-block-table.has-fixed-layout thead th {
    background-color: #0E61A1;
    color: #fff;
    font-weight: bold;
    text-align: left;
    padding: 16px;
    border-bottom: 2px solid #CBD5E1;
    font-size: 16px;
    text-transform: capitalize;
}

.wp-block-table.has-fixed-layout tbody td {
    background-color: #fff;
    padding: 16px;
    border-bottom: 1px solid #e3ecf4;
    vertical-align: middle;
    text-transform: capitalize;
    color: #000;
}

/* Stripe styles */
.wp-block-table.is-style-stripes thead th {
    border-right: 1px solid #CBD5E1;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: #FFF;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(even) {
    background-color: #EFF6FF;
}

.wp-block-table.is-style-stripes tbody td {
    background-color: transparent;
}

.wp-block-table.is-style-stripes tbody tr td {
    border-right: 1px solid #CBD5E1;
}

.wp-block-table.is-style-stripes tfoot td {
    border-right: 1px solid #CBD5E1;
}

.wp-block-table.is-style-stripes tfoot td:last-child {
    border-right: 0;
}

.wp-block-table.no-thead tbody tr:first-of-type {
    background-color: #0E61A1;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}


.wp-block-table.no-thead tbody tr:first-of-type td {
    text-align: left;
    padding: 16px;
    border: 0;
    border-right: 1px solid #CBD5E1;
    vertical-align: middle;
    text-transform: capitalize;
    background-color: transparent;
}

.wp-block-table.no-thead tbody tr:first-of-type td:first-child {
    border-top-left-radius: 8px;
    border-right: 1px solid #CBD5E1;
}

.wp-block-table.no-thead tbody tr:first-of-type td:last-child {
    border-top-right-radius: 8px;
    border-right: 0;
}

.wp-block-table.no-thead.is-style-stripes tbody tr:first-of-type {
    background-color: #0E61A1;
}

.wp-block-table.no-thead.is-style-stripes tbody tr:first-of-type td {
    background-color: transparent;
}

@media (max-width: 768px) {
    .wp-block-table {
      display: block;
      overflow-x: auto !important;
      -webkit-overflow-scrolling: touch;
      width: 100%;
    }
  
    .wp-block-table table {
      min-width: 600px;
    }
  }
  