/* Default table style */
.wp-block-table table {
  width: 100% !important;
  border-collapse: collapse;
  margin-bottom: 1.375rem !important;
  /*background-color: #F8F8F8;*/
  border-spacing: 0 !important;
  width: 100%;
  table-layout: fixed !important;
  border-spacing: 0 !important;
  padding: 0 !important;
  border: 1px solid #AD87B4;
}

.wp-block-table th {
  text-align: left;
  padding: 8px;
  font-size: 1rem;
  border-top: 1px solid #AD87B4;
  border-bottom: 1px solid #AD87B4;
  border-left: 1px solid #AD87B4;
  background-color: #F7F6F9;
  font-weight: 500;
}
.wp-block-table th:first-child  {
  border-left: 1px solid #AD87B4;
}

.wp-block-table td {
  text-align: left;
  vertical-align: top;
  padding: 8px;
  font-size: 0.9rem;
  background-color: #F7F6F9;
  border-bottom: 1px solid #AD87B4;
  border-left: 1px solid #AD87B4;
}
.wp-block-table td:first-child {
  border-bottom: 1px solid #AD87B4;
  border-left: 1px solid #AD87B4;
}
.wp-block-table td:last-child {
  border-bottom: 1px solid #AD87B4;
  border-left: 1px solid #AD87B4;
}
.wp-block-table tbody .label {
  display: none;
}

/* Stack table on mobile */
@media (max-width: 800px) {
  /* Default table styles for no-header tables on mobile */
  .wp-block-table.no-header table {
    border: 1px solid #AD87B4;
  }

  .wp-block-table.no-header td{
    display: table-cell;
    width: auto;
    padding-left: 8px;
  }

  /* Existing styles for tables with headers */
  .wp-block-table:not(.no-header) table {
    border: 0;
  }

  .wp-block-table:not(.no-header) thead {
    display: none;
  }

  .wp-block-table:not(.no-header) td{
    border-left: 1px solid #AD87B4;
    border-right: 1px solid #AD87B4;
  }

  .wp-block-table:not(.no-header) tbody td:nth-child(1) {
    border-top: 1px solid #AD87B4;
  }

  .wp-block-table:not(.no-header) tbody td:last-child {
    border-bottom: 1px solid #AD87B4;
  }

  .wp-block-table:not(.no-header) tbody td {
    display: block;
    font-size: 0.9rem;
    width: 100%;
    border-bottom: 1px solid #AD87B4;
    position: relative;
 
  }

  .wp-block-table:not(.no-header) tbody td.remove-padding-left {
    padding-left: 8px; /* Remove padding-left property */
  }

  .wp-block-table:not(.no-header) tbody tr:first-child {
    margin-top: 0;
  }

  .wp-block-table:not(.no-header) tbody tr {
    display: block;
    margin-top: 0.625em;
    background-color: #F7F6F9;
  }

  .wp-block-table:not(.no-header) tbody td .label {
    display: inline-block;
    width: 50%;
    text-align: left;
    padding-right: 8px;
    font-weight: 500 !important;
  }
  .wp-block-table:not(.no-header) tbody td .content {
    display: inline-block;
    width: 50%;
    text-align: left;
    font-weight: normal;
    padding-left: 1px;
  }
}