.mobile-view {
  display: none;
}

.ankyron-legend-wrapper {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ankyron-legend-items {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.375rem;
  column-gap: 1rem;
  padding-left: 2px;
}

.ankyron-legend-items .bg-box {
  width: 5px;
  height: 5px;
  display: inline-block;
  border-radius: calc(0.5rem - 4px);
  background: #343399;
}
.ankyron-legend-items .chip-heading {
  font-weight: 600;
}

.ankyron-legend-description {
  font-size: 12px;
  display: flex;
  row-gap: .375rem;
  column-gap: 1rem;
  padding-top: .375rem;
  padding-left: 2px;
  flex-direction: column;
}

.ankyron-legend-description-item {
  display: flex;
  gap: 5px;
  align-items: center;
}

.ankyron-legend-description-item-icon {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 5px;
}
.ankyron-legend-description-item-icon.active {
  background-color: #343399;
}
.ankyron-legend-description-item-icon.inactive {
  background-color: #cccccc;
}

.ankyron-legend-item {
  display: flex;
  align-items: center;
}

.ankyron-legend-title {
  line-height: 1rem;
  color: #28303d;
  font-weight: 600;
  margin: 0;
  font-size: 0.75rem;
}

.ankyron-legend-item-content {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Searchable custom selects (.searchable-select) */
#custom-filter-search-button.global-search {
  display: none !important;
}

.searchable-select-wrap {
  position: relative;
  width: 100%;
}

select.searchable-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.searchable-select-trigger,
.custom-filter-select {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 30px;
  padding: 0.35rem 2rem 0.35rem 0.5rem;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #28303d;
  text-align: left;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: calc(0.5rem - 2px);
  cursor: pointer;
}

.searchable-select-trigger {
  min-width: 0;
}

.searchable-select-trigger-label {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.searchable-select-trigger::after {
  position: absolute;
  right: 10px;
  content: '';
  top: 9px;
  width: 6px;
  height: 6px;
  border-bottom: 1px solid #6d6d6d;
  border-right: 1px solid #6d6d6d;
  transform: rotate(45deg);
  display: inline-block;
}

.searchable-select-trigger:hover {
  border-color: #343399;
  background-color: #ffffff;
}

.searchable-select-trigger:focus {
  outline: 1px solid #343399;
  outline-offset: 1px;
}

/* [hidden] must win: a plain display:flex on .panel overrides the UA hidden rule */
.searchable-select-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 1001;
  max-height: min(18rem, 55vh);
  background: #fff;
  border: 1px solid #cfe0fc;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.12);
}

.searchable-select-panel[hidden] {
  display: none !important;
}

.searchable-select-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.searchable-select-search {
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box !important;
  padding: 0.45rem 0.5rem !important;
  font: inherit;
  font-size: 0.8125rem;
  border: none !important;
  border-bottom: 1px solid #e5e7eb !important;
  background-color: #ffffff !important;
}

.searchable-select-search:focus {
  outline: none;
  border-bottom-color: #343399;
}

.searchable-select-list {
  margin: 0;
  list-style: none;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.searchable-select-option {
  padding: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #212529;
  cursor: pointer;
}

/* React Select–style: keyboard highlight vs selection */
.searchable-select-option.is-focused {
  background-color: #deebff;
}

.searchable-select-option:hover:not(.is-focused) {
  background-color: #f5f9ff;
}

.searchable-select-option[aria-selected='true'] {
  font-weight: 600;
}

.searchable-select-option[aria-selected='true']:not(.is-focused) {
  background-color: #e8f0ff;
}

.woocommerce-products-header {
  padding-top: 2rem !important;
  padding-bottom: 1.5rem !important;
}

.woocommerce-products-header .woocommerce-products-header__title {
  font-size: 30px !important;
  font-weight: 500 !important;
  margin-bottom: 0.5rem;
}

.woocommerce-products-header .term-description {
  width: 100%;
  font-size: 15px;
  text-align: justify;
}

.woocommerce-products-header .term-description p {
  color: #212529;
  font-size: 15px;
  margin-bottom: 0;
}

.custom-filters-wrapper {
  padding: 1rem;
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow:
    var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1002;
  align-self: flex-start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  background: #e8f0ff;
}

.custom-filters-placeholder {
  height: 0;
}

.custom-filters-wrapper.is-fixed {
  position: fixed !important;
  left: var(--filters-left);
  top: var(--filters-top, 0);
  width: var(--filters-width);
  z-index: 1100;
}

.custom-filters-wrapper.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.custom-filters-inner {
  display: grid;
  grid-template-columns: repeat(6, minmax(0px, 1fr));
  gap: 0.75rem;
}

.custom-filters-inner .custom-filter {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.custom-filters-inner .custom-filter label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: #343399;
  letter-spacing: 0.05em;
  padding-left: 5px;
}

.custom-filters-inner .custom-filter select {
  font-size: 0.75rem;
  line-height: 1rem;
}

.custom-filter-search-wrapper {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.custom-filter-search-wrapper .custom-filter-search-with-icon {
  position: relative;
  flex: 1;
}

.custom-filter-search-wrapper .custom-filter-search-with-icon svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
}

.custom-filter-search-wrapper input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: calc(0.5rem - 2px);
  background-color: #fafafa !important;
  height: 38px;
  box-shadow: unset;
  padding-left: 2.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #28303d;
}

.custom-filter-search-wrapper button {
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  height: 38px;
  border-radius: calc(0.5rem - 2px);
  background-color: #343399 !important;
  color: #ffffff !important;
  font-size: 0.875rem;
  line-height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
}

.custom-filter-search-wrapper button:hover {
  opacity: 0.8;
}

.custom-filter-search-buttons {
  display: flex;
  gap: 0.5rem;
}

.selected-filters {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  align-items: flex-start;
}

.selected-filters .selected-filters-title {
  color: #212529;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 5px;
}

.selected-filters .selected-filters-wrapper {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.selected-filters .selected-filters-wrapper .selected-filter {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 12px !important;
  line-height: 1rem;
  padding: 0.25rem 0.625rem;
  background-color: #e6e8ee;
  border: 1px solid #bdc0d1;
  border-radius: 9999px;
}

.selected-filters .selected-filters-wrapper .selected-filter-label {
  color: #212529;
}

.selected-filters .selected-filters-wrapper .selected-filter-remove {
  padding: 0;
  background-color: transparent;
  height: 12px;
  display: flex;
  align-items: center;
}

#custom-filter-search-clear {
  position: absolute;
  width: 12px;
  height: 12px;
  right: 24px;
  top: 12px;
  display: none;
  outline: none;
}

.clear-all-filters-text {
  font-size: 11px;
  text-decoration: underline;
  color: #212529;
}

.clear-all-filters-text:hover {
  color: #ef4444;
}

.custom-filters-toggle {
  display: none;
}

.product-table-wrapper {
  padding: 1rem 0;
}

.product-table-header {
  font-size: 12px;
  color: #212529;
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.product-table-divider {
  margin: 0;
}

.table-body thead {
  height: 0px;
  line-height: 0px;
  opacity: 0;
  display: none;
}

.table-container {
  margin-top: 0.75rem;
  overflow-x: auto;
  overflow-y: visible;
  position: sticky;
  top: 134px;
  z-index: 1001;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.table-container::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.woocommerce-product-table-headers {
  margin: 0;
}

.table-body {
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
}

.woocommerce-product-table-headers thead {
  position: sticky;
  top: var(--plp-table-head-sticky-top, 0px);
  z-index: 1000;
  background-color: #ffffff !important;
}

.woocommerce-product-table {
  margin: 0;
  border-radius: 0.5rem;
}

.woocommerce-product-table th {
  background-color: #fbfbfb !important;
}

.woocommerce-product-table thead th .sort-wrapper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.woocommerce-product-table thead th .sort-button {
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #d2d4da;
}

.woocommerce-product-table thead th .sort-button:hover {
  color: #212529;
}

.woocommerce-product-table thead th.sort-asc .sort-button,
.woocommerce-product-table thead th.sort-desc .sort-button {
  color: #343399;
}

.woocommerce-product-table thead th.sort-desc .sort-button {
  transform: rotate(180deg);
}

.woocommerce-product-table thead th .sort-button:focus {
  outline: none;
  box-shadow: none;
}

.woocommerce-product-table thead th.attribute-entry_name {
  min-width: 197px;
}

.woocommerce-product-table thead th.attribute-figures, 
.woocommerce-product-table tbody tr.product-row td:nth-child(3) {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
}

.woocommerce-product-table thead th.attribute-gene {
  min-width: 118px;
}

.woocommerce-product-table thead th.attribute-target {
  min-width: 79px;
}

.woocommerce-product-table thead th.attribute-uni_prot_id {
  min-width: 100px;
}

.woocommerce-product-table thead th.attribute-organism {
  min-width: 96px;
}

.woocommerce-product-table thead th.attribute-snr {
  min-width: 61px;
}

.tooltip-wrapper {
  display: flex;
  gap: 5px;
}

@media (min-width: 769px) {
  .ankyron-legend-description {
    flex-direction: row;
  }
  .woocommerce-product-table thead th {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
  }

  .woocommerce-product-table thead th.attribute-clone {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
  }

  .woocommerce-product-table thead th.attribute-entry_name {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
  }

  .woocommerce-product-table thead th.attribute-gene, 
  .woocommerce-product-table tbody tr.product-row td:nth-child(4) {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
  }

  .woocommerce-product-table thead th.attribute-target {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
  }

  .woocommerce-product-table thead th.attribute-uni_prot_id {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
  }

  .woocommerce-product-table thead th.attribute-organism {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
  }

  .woocommerce-product-table thead th.attribute-snr, 
  .woocommerce-product-table tbody tr.product-row td:nth-child(8) {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
  }

  .woocommerce-product-table thead th.attribute-qualified,
  .woocommerce-product-table tbody tr.product-row td:nth-child(9) {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
  }

  .woocommerce-product-table thead th.config,
  .woocommerce-product-table tbody tr.product-row td:nth-last-child(4) {
    width: 125px;
    min-width: 125px;
    max-width: 125px;
  }

  .woocommerce-product-table thead th.quantity {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
  }

  .woocommerce-product-table thead th.price {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
  }

  .woocommerce-product-table thead th.cart {
    width: 86px;
    min-width: 86px;
    max-width: 86px;
  }

  .woocommerce-product-table tbody tr.product-row td {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
  }

  .woocommerce-product-table tbody tr.product-row td:nth-child(1) {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
  }

  .woocommerce-product-table tbody tr.product-row td:nth-child(2) {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
  }

  .woocommerce-product-table tbody tr.product-row td:nth-child(5),
  .woocommerce-product-table tbody tr.product-row td:nth-child(7) {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
  }

  .woocommerce-product-table tbody tr.product-row td:nth-child(6) {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
  }

  .woocommerce-product-table tbody tr.product-row td.quantity {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
  }

  .woocommerce-product-table tbody tr.product-row td.price {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
  }

  .woocommerce-product-table tbody tr.product-row td.cart-cell {
    width: 86px;
    min-width: 86px;
    max-width: 86px;
  }
}

.woocommerce-product-table th:first-child {
  border-top-left-radius: 0.5rem;
}

.woocommerce-product-table th:last-child {
  border-top-right-radius: 0.5rem;
}

.woocommerce-product-table tbody td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1rem;
  color: #29303d;
  border-bottom: #e5e7eb 1px solid;
  padding: 0.5rem;
  background-color: #ffffff !important;
  vertical-align: middle;
}

.woocommerce-product-table tbody td.table-loading-cell {
  padding: 0.75rem;
}

.table-loading-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.table-loading-skeleton-row {
  display: grid;
  grid-template-columns: 0.7fr 1fr 0.7fr 1.1fr 0.8fr 0.5fr;
  gap: 0.5rem;
}

.table-loading-skeleton-line {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #eef2f7 0%,
    #f8fafc 45%,
    #eef2f7 100%
  );
  background-size: 200% 100%;
  animation: tableSkeletonShimmer 1.2s linear infinite;
}

.table-loading-skeleton-line.short {
  max-width: 70px;
}

.table-loading-skeleton-line.medium {
  max-width: 110px;
}

.table-loading-skeleton-line.long {
  max-width: 160px;
}

@keyframes tableSkeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.mobile-product-card-skeleton {
  pointer-events: none;
}

.mobile-card-image-skeleton,
.mobile-skeleton-line {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 45%, #eef2f7 100%);
  background-size: 200% 100%;
  animation: tableSkeletonShimmer 1.2s linear infinite;
}

.mobile-card-image-skeleton {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.mobile-card-body-skeleton {
  padding: 0.75rem;
}

.mobile-skeleton-line {
  height: 10px;
  margin-bottom: 0.5rem;
}

.mobile-skeleton-line.long {
  width: 90%;
}

.mobile-skeleton-line.medium {
  width: 70%;
}

.mobile-skeleton-line.short {
  width: 45%;
  margin-bottom: 0;
}

.woocommerce-product-table tbody td .dark-label {
  font-size: 12px;
  color: #16225a;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.woocommerce-product-table tbody td .dark-label a:hover {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.woocommerce-product-table tbody td .dark-label a:focus{
  outline: none;
  box-shadow: none;
}

.woocommerce-product-table tbody td .light-label {
  font-size: 12px;
  color: #16225a;
  font-weight: 500;
}

.woocommerce-product-table tbody td.price {
  font-weight: 700;
}
.cart-cell .added_to_cart {
  display: none;
}

.woocommerce-product-table button.cart-link {
  padding: 0;
  width: 53px;
  height: 27px;
  background-color: #343399;
  font-size: 10px;
  font-family: 'Open Sans', sans-serif;
  color: #ffffff;
  border-radius: calc(0.5rem - 2px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.woocommerce-product-table button.cart-link:hover {
  opacity: 0.8;
}

.woocommerce-product-table button.cart-link:before {
  color: #ffffff;
  font-family: 'Font Awesome 5 Free';
  content: '\f217';
}

.woocommerce-product-table tbody td .config-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.woocommerce-product-table tbody td .config-wrapper select {
  font-size: 10px;
  height: 21.5px;
  font-family: 'Open Sans', sans-serif;
}

.woocommerce-product-table tbody tr:last-child td,
.woocommerce-product-table tbody tr:nth-last-child(2) td {
  border-bottom: none !important;
}

.woocommerce-product-table tbody tr:nth-last-child(2) td:first-child {
  border-bottom-left-radius: 0.5rem;
}

.woocommerce-product-table tbody tr:nth-last-child(2) td:last-child {
  border-bottom-right-radius: 0.5rem;
}

.woocommerce-product-table thead th {
  white-space: nowrap;
  color: #212529;
  font-size: 10px;
  padding: 0.625rem 0.75rem;
  text-transform: uppercase;
  border-bottom: 2px solid #e5e7eb;
}

/* Freeze last 3 columns (Qty, Price, Cart) during horizontal scroll */
@media (min-width: 769px) {
  .woocommerce-product-table {
    --frozen-cart-width: 86px;
    --frozen-price-width: 110px;
    --frozen-qty-width: 96px;
  }

  .woocommerce-product-table thead th:nth-last-child(1),
  .woocommerce-product-table tbody td:nth-last-child(1) {
    position: sticky;
    right: 0;
    z-index: 6;
    min-width: var(--frozen-cart-width);
    background: #ffffff !important;
  }

  .woocommerce-product-table thead th:nth-last-child(2),
  .woocommerce-product-table tbody td:nth-last-child(2) {
    position: sticky;
    right: var(--frozen-cart-width);
    z-index: 6;
    min-width: var(--frozen-price-width);
    background: #ffffff !important;
  }

  .woocommerce-product-table thead th:nth-last-child(1),
  .woocommerce-product-table thead th:nth-last-child(2),
  .woocommerce-product-table thead th:nth-last-child(3) {
    z-index: 8;
    background: #fbfbfb !important;
  }
}

@media (max-width: 1400px) {
  .woocommerce-product-table thead th:nth-last-child(3),
  .woocommerce-product-table tbody td:nth-last-child(3) {
    position: sticky;
    right: calc(var(--frozen-cart-width) + var(--frozen-price-width));
    z-index: 6;
    min-width: var(--frozen-qty-width);
    background: #ffffff !important;
    box-shadow: -8px 0 8px -8px rgb(15 23 42 / 0.2);
  }
}

.feature-pills {
  margin-top: 0.125rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem;
  row-gap: 0.5rem;
}
.feature-pills span {
  color: #ffffff;
  font-size: 0.7rem;
  padding: 0 0.5rem;
  border-radius: 0.25rem;
  margin: 0 0.125rem 0 0;
  height: 19px;
  display: flex;
  align-items: center;
  background-color: #343399;
}

.feature-pills span.disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.thumbnail-wrapper {
  display: block;
  position: relative;
  cursor: default;
  width: 90px;
  height: 90px;
  border: #cccccc 1px solid;
  border-radius: 4px;
  user-select: none;
}

.thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.thumbnail-wrapper.enabled {
  cursor: pointer;
}

.thumbnail-overlay {
  display: none;
  position: absolute;
  bottom: -10px;
  right: -10px;
  color: #ffffff;
  width: 25px;
  height: 25px;
  text-align: center;
  line-height: 1rem;
  border-radius: 50%;
  background-color: rgba(255,0,0,.8);
  font-size: 13px;
}

.thumbnail-wrapper.enabled .thumbnail-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pages-count-wrapper,
.product-table-limit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-table-limit select {
  height: 28.5px;
  min-width: 52px;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
}

.pages-count {
  display: flex;
  gap: 0.25rem;
}

.pages-count .page-numbers-wrapper {
  display: flex;
  gap: 0.25rem;
}

.pages-count button {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 11px;
  color: #28303d;
  height: 26.5px;
  display: flex;
  align-items: center;
}

@media (max-width: 380px) {
  .pages-count button.pages-first, .pages-count button.pages-last {
    display: none;
  }
}

.pages-count button:hover {
  background: #f4f4f6 !important;
}

.pages-count .page-numbers-wrapper .page-number.active {
  background: #343399 !important;
  opacity: 1 !important;
  color: #ffffff;
  border-color: #343399;
  cursor: default;
}

.pages-count .page-numbers-wrapper .page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  font-size: 11px;
  color: #6b7280;
}

.woocommerce-product-table tbody td.product-figures {
  padding: 1.25rem clamp(1rem, 3vw, 2.5rem) !important;
  background: linear-gradient(180deg, #eef3fb 0%, #e4ecfa 100%) !important;
  position: relative;
  vertical-align: top !important;
  white-space: normal !important;
}

.woocommerce-product-table tbody td.product-figures .figure-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #e6e6f4;
  border-radius: 6px;
  padding: 0;
}

.woocommerce-product-table tbody td.product-figures .figure-close:hover {
  background: #d1d1e8;
  transform: scale(1.1);
}

.woocommerce-product-table tbody td .product-figure-image-wrapper {
  position: relative;
  width: 320px;
  min-width: 320px;
}

.woocommerce-product-table tbody td .product-figure-image-wrapper .figure-zoom {
  position: absolute;
  right: 25px;
  top: 25px;
  width: 30px;
  height: 30px;
  background: #e6e6f4;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.woocommerce-product-table tbody td .product-figure-image-wrapper .figure-zoom:hover {
  background: #d1d1e8;
  transform: scale(1.1);
}

.woocommerce-product-table tbody td.product-figures .product-figures-slider {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  max-width: 1200px;
}

.woocommerce-product-table tbody td.product-figures .product-figures-track {
  display: flex;
  transform: translateX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  height: 325px;
}

.woocommerce-product-table tbody td.product-figures .product-figure {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 2.5vw, 1.75rem);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgb(15 23 42 / 0.04),
    0 12px 40px -12px rgb(23 33 90 / 0.12);
}

.woocommerce-product-table tbody td.product-figures .product-figure-img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  max-height: 280px;
  height: 280px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: clamp(0.5rem, 2vw, 1rem);
  border: 1px solid #e5e7eb;
  box-sizing: border-box;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    border-color 0.2s ease;
}

.woocommerce-product-table tbody td.product-figures .product-figure-legend {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  text-align: left;
  padding: 0.25rem 0;
}

.woocommerce-product-table tbody td.product-figures .product-figure-legend p {
  margin: 0 0 0.65em;
}

.woocommerce-product-table tbody td.product-figures .product-figure-legend p:last-child {
  margin-bottom: 0;
}

.woocommerce-product-table tbody td.product-figures .product-figure-legend strong,
.woocommerce-product-table tbody td.product-figures .product-figure-legend b {
  color: #16225a;
  font-weight: 600;
}

.woocommerce-product-table tbody td.product-figures .product-figure-legend a {
  color: #343399;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.woocommerce-product-table tbody td.product-figures .product-figure-legend a:hover {
  color: #1e3a8a;
}

@media (max-width: 640px) {
  .woocommerce-product-table tbody td.product-figures .product-figure {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .woocommerce-product-table tbody td.product-figures .product-figure-legend {
    text-align: left;
    max-width: none;
  }

  .woocommerce-product-table tbody td.product-figures .product-figure-img {
    max-width: 260px;
    max-height: 220px;
  }
}

.woocommerce-product-table tbody td.product-figures .figure-next,
.woocommerce-product-table tbody td.product-figures .figure-previous {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #343399;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
  cursor: pointer;
  box-shadow: 0 2px 12px rgb(23 33 90 / 0.28);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
    padding: 0;
}

.woocommerce-product-table tbody td.product-figures .figure-next:hover,
.woocommerce-product-table tbody td.product-figures .figure-previous:hover {
  background: #1f2b75;
  box-shadow: 0 4px 16px rgb(23 33 90 / 0.35);
}

.woocommerce-product-table tbody td.product-figures .figure-next:active,
.woocommerce-product-table tbody td.product-figures .figure-previous:active {
  transform: translateY(-50%) scale(0.96);
}


.woocommerce-product-table tbody td.product-figures .figure-next {
  right: clamp(0.35rem, 1.5vw, 0.75rem);
}

.woocommerce-product-table tbody td.product-figures .figure-previous {
  left: clamp(0.35rem, 1.5vw, 0.75rem);
}

@media (max-width: 480px) {
  .woocommerce-product-table tbody td.product-figures .figure-next,
  .woocommerce-product-table tbody td.product-figures .figure-previous {
    width: 36px;
    height: 36px;
  }
}

#myImg {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#myImg:hover {
  opacity: 0.7;
}

/* Lightbox (#myModal): display cannot transition — use opacity + classes */
#myModal.modal {
  display: none;
  position: fixed;
  z-index: 1111;
  padding: 3.5rem 1rem 1rem;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.92);
  opacity: 0;
  flex-direction: column;
  align-items: stretch;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#myModal.modal.lightbox-open {
  display: flex;
}

#myModal.modal.lightbox-open:not(.lightbox-visible) {
  opacity: 0;
  pointer-events: none;
}

#myModal.modal.lightbox-open.lightbox-visible {
  opacity: 1;
  pointer-events: auto;
}

#myModal.modal.lightbox-open .lightbox-image-stage,
#myModal.modal.lightbox-open #caption {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.05s,
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
}

#myModal.modal.lightbox-open.lightbox-visible .lightbox-image-stage,
#myModal.modal.lightbox-open.lightbox-visible #caption {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  #myModal.modal {
    transition-duration: 0.15s;
  }

  #myModal.modal.lightbox-open .lightbox-image-stage,
  #myModal.modal.lightbox-open #caption {
    transition-duration: 0.15s;
    transition-delay: 0s;
  }
}

.lightbox-image-stage {
  width: 100%;
  max-width: calc(100% - 50px);
  height: 325px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.lightbox-main-viewport {
  flex: 1;
  width: 100%;
  height: 325px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #cccccc;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.04);
}

.lightbox-main-track {
  display: flex;
  height: 100%;
  min-height: inherit;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.custom-slider-image-wrapper {
  position: relative;
}

.custom-slider-image-wrapper .figure-zoom {
  position: absolute;
  right: 25px;
  top: 25px;
  background: #e6e6f4;
  border-radius: 6px;
  z-index: 2;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-slider-image-wrapper .figure-zoom:hover {
  background: #d1d1e8;
  transform: scale(1.1);
}

.lightbox-slide {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  box-sizing: border-box;
}

.lightbox-slide-img {
  margin: auto;
  display: block;
  width: auto;
  min-width: 320px;
  width: 320px;
  min-width: 320px;
  height: 280px;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.25s ease;
  border-radius: 10px;
  user-select: none;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: clamp(0.5rem, 2vw, 1rem);
  -webkit-user-drag: none;
}

.lightbox-slide-img.is-zoomed {
  cursor: grab;
  touch-action: none;
}

.lightbox-slide-img.is-panning {
  cursor: grabbing;
  transition: none;
}

.lightbox-thumbs {
  width: 100%;
  padding: 0 0.25rem;
}

.lightbox-thumbs-inner {
  display: none;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.35rem 0.25rem 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / 0.35) transparent;
  justify-content: center;
}

.lightbox-thumbs-inner::-webkit-scrollbar {
  height: 6px;
}

.lightbox-thumbs-inner::-webkit-scrollbar-thumb {
  background: rgb(255 255 255 / 0.3);
  border-radius: 999px;
}

.lightbox-thumb {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: rgb(255 255 255 / 0.08);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.lightbox-thumb:hover {
  border-color: rgb(255 255 255 / 0.45);
  transform: translateY(-2px);
}

.lightbox-thumb.is-active {
  border-color: #7c8cff;
  box-shadow: 0 0 0 2px rgb(124 140 255 / 0.35);
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
  font-family: 'Open Sans', sans-serif;
  margin: auto;
  display: block;
  font-size: 14px;
  font-weight: 400;
  width: min(85vw, 980px);
  text-align: center;
  color: #bebebe;
  padding: 0.75rem 0 1.25rem;
  min-height: 2.5rem;
  line-height: 1.5;
  margin-top: 30px;
}

/* The Close Button */
.close-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 6;
  display: flex;
  flex-direction: row-reverse;
  gap: 0.5rem;
}

.close {
  color: #bebebe;
  font-size: 34px;
  font-weight: bold;
  transition: 0.3s;
  padding: 0;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.close:hover {
  color: #ffffff;
  outline: none;
  background: #3c3c3c;
}

.lightbox-zoom-button {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: none;
  background: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #bebebe;
  outline: none;
}
.lightbox-zoom-button:hover {
  background: #3c3c3c;
  color: #ffffff;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: #343399;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  outline: none;
}

.lightbox-nav:hover {
  opacity: 0.8;
  background: #343399;
  outline: none;
  color: #ffffff !important;
}

.lightbox-prev {
  left: 1.25rem;
}

.lightbox-next {
  right: 1.25rem;
}

.lightbox-prev::before {
  content: '\2039';
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.lightbox-next::before {
  content: '\203A';
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.lightbox-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 6;
}

.lightbox-zoom-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media only screen and (max-width: 700px) {
  #myModal.modal {
    padding-top: 3rem;
  }
  .lightbox-image-stage {
    max-width: 100% !important;
    height: auto;
  }

  .ankyron-legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .lightbox-slide-img {
    max-height: 52vh;
  }

  .lightbox-slide,
  .lightbox-main-viewport {
    min-height: 44vh;
  }

  .lightbox-thumb {
    width: 60px;
    height: 60px;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-zoom-controls {
    right: 0.5rem;
    bottom: 0.5rem;
  }
}

@media (max-width: 768px) {
  .lightbox-slide {
    flex-direction: column;
    justify-content: flex-start;
  }

  #myModal.modal .lightbox-slide {
    max-height: 320px !important;
    min-height: 320px !important;
    height: 320px !important;
  }

  #myModal.modal .lightbox-image-stage {
    min-height: 370px !important;
    max-height: 370px !important;
  }

  #myModal.modal #caption {
    margin-top: 0 !important;
  }
  #myModal.modal .lightbox-thumbs {
    display: none;
  }

  #custom-slider-modal .custom-slider-caption {
    text-align: center;
  }
  .desktop-view {
    display: none;
  }
  .mobile-view {
    display: block;
    margin-top: 0.75rem;
    font-family: 'Open Sans', sans-serif;
  }

  .mobile-product-card {
    border: 1px solid #d1d5db;
    border-radius: 0.875rem;
    background: #ffffff;
    margin-bottom: 0.75rem;
    overflow: hidden;
  }

  .mobile-card-top,
  .mobile-card-middle,
  .mobile-card-bottom {
    padding: 1rem;
    border-bottom: 1px solid #d1d5db;
  }

  .mobile-card-top {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 0.75rem;
  }

  .mobile-card-main {
    min-width: 0;
  }

  .mobile-card-middle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
  }

  .mobile-card-bottom {
    border-bottom: 0;
    padding-top: 0.75rem;
  }

  .mobile-field {
    margin-bottom: 8px;
  }

  .mobile-field .label {
    font-size: 10px;
    line-height: 1.25;
    color: #212529;
    margin-bottom: 0.15rem;
    text-transform: none;
  }

  .mobile-field .value {
    color: #29303d;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
  }

  .mobile-field .value.strong,
  .mobile-field .value.linklike {
    color: #16225a;
    font-size: 12px;
  }

  .mobile-field .subvalue {
    color: #212529;
    font-size: 10px;
  }

  .mobile-field .value.protein {
    font-weight: 400;
    color: #29303d;
    font-size: 11px;
    line-height: 1.45;
  }

  .mobile-card-apps {
    margin-top: 8px;
  }

  .mobile-card-apps .feature-pills {
    margin-top: 0;
  }

  .mobile-card-media {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
  }

  .mobile-qualified {
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
    background: #dcfce7;
    border-radius: 999px;
    padding: 0.2rem 0.4rem;
  }

  .mobile-thumbnail-trigger {
    position: relative;
    border: 1px solid #d1d5db;
    background: #d1d5db;
    color: #ffffff;
    border-radius: 0.875rem;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .mobile-thumbnail-trigger img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-thumbnail-count {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    border-radius: 999px;
    background: rgba(255,0,0,.8);
    color: #fff;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-weight: 700;
  }

  .mobile-figure-label {
    font-size: 12px;
    color: #667085;
  }

  .mobile-card-config .config-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.625rem;
  }

  .mobile-card-config .config-wrapper select {
    height: 31px;
    border-radius: 0.625rem;
    border: 1px solid #d1d5db;
    font-size: 11px;
    padding: 0 0.5rem;
    background-size: 11px 11px;
    background-position: calc(100% - 0.5rem) center;
  }

  .mobile-card-buy {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    gap: 0.5rem;
  }

  .mobile-card-buy .product-qty-stepper {
    width: 100%;
  }

  .mobile-card-buy .product-qty-stepper .product-qty {
    width: 100% !important;
    min-width: 0;
    height: 31px;
    font-size: 12px;
  }

  .mobile-price-wrap {
    text-align: right;
    font-size: 14px;
    color: #28303d;
    font-weight: 700;
  }

  .mobile-cart-wrap .cart-link {
    min-width: 70px;
    justify-content: center;
    font-size: 15px;
    border-radius: 8px;
    padding: 0 12px !important;
    background-color: #16225a;
    color: #ffffff;
    height: 31px;
    font-size: 12px;
    display: flex;
    gap: 0.375rem;
    align-items: center;
  }

  .mobile-cart-wrap .cart-link:before {
    color: #ffffff;
    font-family: 'Font Awesome 5 Free';
    content: '\f217';
  }
  .custom-filters-inner {
    display: none;
    margin-top: 15px;
    grid-template-columns: repeat(2, minmax(0px, 1fr)) !important;
  }

  .custom-filters-wrapper.filters-open .custom-filters-inner {
    display: grid;
  }

  .custom-filters-wrapper.filters-open .custom-filter-search-wrapper {
    display: flex;
  }

  .product-table-header,
  .pages-count-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .active-filters-count {
    display: none;
    background-color: #16225a;
    color: #ffffff;
    width: 40px;
    height: 24px;
    font-size: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 9999px;
  }

  .custom-filters-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    text-align: left;
    border-radius: calc(0.5rem - 2px);
    font-size: 14px;
    font-weight: 500;
    color: #29303d;
  }

  .custom-filters-toggle.active::after {
    transition: transform 0.3s ease-in-out;
    transform: rotate(225deg);
    top: 17px;
  }

  .custom-filters-toggle:hover {
    background-color: #ffffff;
  }
  .custom-filters-toggle::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 15px;
    width: 6px;
    height: 6px;
    border-bottom: 1px solid #6d6d6d;
    border-right: 1px solid #6d6d6d;
    transform: rotate(45deg);
    display: inline-block;
  }
}

@media (max-width: 380px) {
  #myModal.modal .lightbox-slide {
    max-width: 280px !important;
  }

  #myModal.modal .lightbox-image-stage {
    max-width: 280px !important;
  }
  #myModal.modal .lightbox-slide-img {
    min-width: 250px !important;
  }
  .lightbox-slide-img {
    min-width: 250px !important;
    height: auto;
  }
}

/* Sit below the fixed WP admin bar when logged in */
body.admin-bar .custom-filters-wrapper {
  top: 46px;
}

@media (max-width: 768px) and (min-width: 601px) {
  body.admin-bar .custom-filters-wrapper {
    top: 32px;
  }
}


#myModal.modal.lightbox-open {
  display: flex;
}

#myModal.modal.lightbox-open:not(.lightbox-visible) {
  opacity: 0;
  pointer-events: none;
}

#myModal.modal.lightbox-open.lightbox-visible {
  opacity: 1;
  pointer-events: auto;
}

#myModal.modal.lightbox-open .lightbox-image-stage,
#myModal.modal.lightbox-open #caption {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.05s,
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
}

#myModal.modal.lightbox-open.lightbox-visible .lightbox-image-stage,
#myModal.modal.lightbox-open.lightbox-visible #caption {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1400px) {
  .product-figures-row {
    display: none;
  }
}


@media (prefers-reduced-motion: reduce) {
  #myModal.modal {
    transition-duration: 0.15s;
  }

  #myModal.modal.lightbox-open .lightbox-image-stage,
  #myModal.modal.lightbox-open #caption {
    transition-duration: 0.15s;
    transition-delay: 0s;
  }
}

#myModal.modal .lightbox-image-stage {
  width: 100%;
  max-width: min(92vw, 1100px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  min-height: min(58vh, 640px);
}

#myModal.modal .lightbox-main-viewport {
  flex: 1;
  width: 100%;
  min-height: min(52vh, 560px);
  overflow: hidden;
  border-radius: 12px;
  background: rgb(0 0 0 / 0.35);
  border: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.04);
}

#myModal.modal .lightbox-main-track {
  display: flex;
  height: 100%;
  min-height: inherit;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

#myModal.modal .lightbox-slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: min(52vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  box-sizing: border-box;
}

#myModal.modal .lightbox-slide-img {
  margin: auto;
  display: block;
  width: auto;
  max-width: 100%;
  min-height: 300px;
  max-height: min(64vh, 720px);
  transform-origin: center center;
  transition: transform 0.25s ease;
  border-radius: 8px;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}

#myModal.modal .lightbox-slide-img.is-zoomed {
  cursor: grab;
  touch-action: none;
}

#myModal.modal .lightbox-slide-img.is-panning {
  cursor: grabbing;
  transition: none;
}

#myModal.modal .lightbox-thumbs {
  width: 100%;
  padding: 0 0.25rem;
}

#myModal.modal .lightbox-thumbs-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.35rem 0.25rem 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / 0.35) transparent;
  justify-content: center;
}

#myModal.modal .lightbox-thumbs-inner::-webkit-scrollbar {
  height: 6px;
}

#myModal.modal .lightbox-thumbs-inner::-webkit-scrollbar-thumb {
  background: rgb(255 255 255 / 0.3);
  border-radius: 999px;
}

#myModal.modal .lightbox-thumb {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: rgb(255 255 255 / 0.08);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

#myModal.modal .lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

#myModal.modal .lightbox-thumb:hover {
  border-color: rgb(255 255 255 / 0.45);
  transform: translateY(-2px);
}

#myModal.modal .lightbox-thumb.is-active {
  border-color: #7c8cff;
  box-shadow: 0 0 0 2px rgb(124 140 255 / 0.35);
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#myModal.modal #caption {
  font-family: 'Open Sans', sans-serif;
  margin: auto;
  display: block;
  font-size: 14px;
  font-weight: 400;
  width: min(85vw, 980px);
  text-align: center;
  color: #bebebe;
  padding: 0.75rem 0 1.25rem;
  min-height: 2.5rem;
  line-height: 1.5;
}

/* The Close Button */
#myModal.modal .close-wrapper {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  z-index: 6;
  display: flex;
  flex-direction: row-reverse;
  gap: 0.5rem;
}

#myModal.modal .close {
  color: #bebebe;
  font-size: 34px;
  font-weight: bold;
  transition: 0.3s;
  padding: 0;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}
#myModal.modal .close:hover {
  color: #ffffff;
  outline: none;
  background: #3c3c3c;
}

#myModal.modal .lightbox-zoom-button {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: none;
  background: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #bebebe;
  outline: none;
}
#myModal.modal .lightbox-zoom-button:hover {
  background: #3c3c3c;
  color: #ffffff;
}

#myModal.modal .close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

#myModal.modal .lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  outline: none;
}

#myModal.modal .lightbox-nav:hover {
  background: rgb(255 255 255 / 0.18);
  color: #ffffff !important;
  outline: none;
}

#myModal.modal .lightbox-prev {
  left: 1.25rem;
}

#myModal.modal .lightbox-next {
  right: 1.25rem;
}

#myModal.modal .lightbox-prev::before {
  content: '\2039';
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

#myModal.modal .lightbox-next::before {
  content: '\203A';
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

#myModal.modal .lightbox-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 6;
}

#myModal.modal .lightbox-zoom-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}