.wcpt-grid-view .wcpt-table > thead {
  display: none;
}

.wcpt-grid-view .wcpt-table > tbody {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.wcpt.wcpt-grid-view .wcpt-table > tbody > tr,
.wcpt.wcpt-grid-view .wcpt-table > thead > tr {
  flex: 1 1 30%;
  border: 1px solid #ddd !important;
  text-align: center;
  padding: 10px;
  height: auto;
  border-radius: 4px;
  box-shadow: var(--wcpt-nav-box-shadow);
}

.wcpt.wcpt-grid-view .wcpt-table > tbody > tr > td {
  border: none !important;
  text-align: inherit !important;
  display: block;
  background: transparent !important;
  padding: 0 !important;
}

.wcpt-grid-view .wcpt-cell-val > .wcpt-item-row {
  margin-bottom: 8px;
}

.wcpt-grid-view .wcpt-cell-val > .wcpt-item-row:last-child {
  margin-bottom: 0 !important;
}

.wcpt-grid-view .wcpt-table {
  border: none !important;
}

/* view switcher */
.wcpt-grid-table-view-switcher {
  text-align: right;
  white-space: nowrap;
  font-size: 18px;
}

.wcpt > .wcpt-grid-table-view-switcher {
  margin-bottom: 0.5em;
}

.wcpt-left-sidebar .wcpt-grid-table-view-switcher {
  text-align: left;
}

.wcpt-grid-table-view-switcher__text-before-switcher {
  vertical-align: baseline;
}

.wcpt-grid-table-view-switcher__button {
  cursor: pointer;
  padding: 2px;
  display: inline-block;
  position: relative;
  line-height: 1em;
}

.wcpt-grid-table-view-switcher__button {
  color: rgb(0 0 0 / 40%);
  font-size: inherit;
  stroke-width: 1.5px;
  display: inline-block;
}

.wcpt-grid-table-view-switcher .wcpt-grid-table-view-switcher__button__icon {
  font-size: 1.1em;
  vertical-align: bottom;
}

.wcpt-grid-table-view-switcher
  .wcpt-grid-table-view-switcher__button.wcpt-active
  > * {
  color: black;
}

.wcpt-grid-table-view-switcher__button__text {
  display: inline-block;
  font-size: inherit;
  position: relative;
}

.wcpt.wcpt-grid-view .wcpt-attribute,
.wcpt.wcpt-grid-view .wcpt-categories,
.wcpt.wcpt-grid-view .wcpt-tags,
.wcpt.wcpt-grid-view .wcpt-taxonomy {
  display: inline-flex;
  flex-wrap: wrap;
}

.wcpt-grid-view .wcpt-table-scroll-wrapper-outer {
  overflow: visible;
  border: none !important;
}

@media (max-width: 1199px) {
  .wcpt-grid-table-view-switcher {
    text-align: left;
    margin: 1em 0;
  }

  .wcpt-navigation .wcpt-grid-table-view-switcher {
    display: none;
  }
}

/* == Integrations == */

/* HUSKY */
.wcpt-husky-grid-view-switcher {
  margin: 15px 0;
}
