/* Frontend table styled to match the Wiper Sizes admin list table. */
.ws-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 10px 0;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.ws-search {
  margin-bottom: 10px;
}

.ws-search input {
  width: 100%;
  font-family: inherit;
  max-width: 320px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #8c8f94;
  border-radius: 3px;
  background: #fff;
  color: #000000;
  box-shadow: 0 0 0 transparent;
}

.ws-table.wp-list-table,
.ws-table {
  width: 100%;
  font-family: inherit;
  min-width: 900px;
  border-spacing: 0;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #c3c4c7;
  color: #000000;
  font-size: 15px;
  line-height: 1.45;
}

.ws-table.widefat {
  clear: both;
}

.ws-table th,
.ws-table td {
  padding: 8px 10px;
  vertical-align: middle;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #c3c4c7;
}


.ws-table th,
.ws-table td {
  white-space: normal;
  word-break: normal;
}

.ws-table th:nth-child(1),
.ws-table td:nth-child(1) { min-width: 82px; }
.ws-table th:nth-child(2),
.ws-table td:nth-child(2) { min-width: 170px; }
.ws-table th:nth-child(3),
.ws-table td:nth-child(3) { min-width: 92px; }
.ws-table th:nth-child(4),
.ws-table td:nth-child(4) { min-width: 190px; }
.ws-table th:nth-child(5),
.ws-table td:nth-child(5) { min-width: 78px; }
.ws-table th:nth-child(6),
.ws-table td:nth-child(6) { min-width: 90px; }


.ws-table th,
.ws-table td {
  color: #0a0a0a !important;
  font-family: inherit !important;
}

.ws-table th {
  height: 45px;
  padding-top: 14px;
  padding-bottom: 11px;
  background: #f5f7f9;
  color: #000000;
  font-weight: 600;
}

.ws-table tbody tr:nth-child(odd) {
  background: #fff;
}

.ws-table tbody tr:nth-child(even),
.ws-table.striped tbody tr:nth-child(even) {
  background: #f6f7f7;
}


.ws-table tr.ws-row-hidden {
  display: none;
}

.ws-table tbody tr:hover {
  background: #f0f6fc;
}

.ws-table th:nth-child(5),
.ws-table td:nth-child(5),
.ws-table th:nth-child(6),
.ws-table td:nth-child(6) {
  text-align: center;
}

.ws-thumb,
.ws-adapter-thumb {
  max-width: 60px;
  max-height: 45px;
  width: auto;
  height: auto;
  display: inline-block;
  object-fit: contain;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
}


.ws-image-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.ws-image-btn:hover .ws-adapter-thumb,
.ws-image-btn:focus .ws-adapter-thumb {
  border-color: #2271b1;
}

.ws-yt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 1;
}

.ws-youtube-icon {
  max-width: 32px;
  max-height: 32px;
  width: auto;
  height: auto;
  display: inline-block;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.ws-yt-btn:hover .ws-youtube-icon,
.ws-yt-btn:focus .ws-youtube-icon {
  opacity: 1;
}

.ws-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ws-modal-inner {
  position: relative;
  width: min(900px, 92vw);
  max-height: 86vh;
  background: #000;
  padding: 42px 12px 12px;
}


.ws-image-modal-inner {
  width: auto;
  max-width: 92vw;
  background: #fff;
}

.ws-modal-image {
  display: block;
  max-width: 86vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ws-modal-content iframe {
  display: block;
  max-height: 70vh;
}

.ws-modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  min-height: 28px;
  padding: 3px 10px;
  background: #fff;
  color: #1d2327;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}

.ws-modal-close:hover {
  color: #000;
}

@media (max-width: 900px) {
  .ws-table.wp-list-table,
  .ws-table {
    min-width: 820px;
  }

  .ws-table th,
  .ws-table td {
    padding: 6px 8px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .ws-table-wrap {
    max-width: 100%;
    overflow-x: hidden;
  }

  .ws-search input {
    max-width: none;
  }

  .ws-table.wp-list-table,
  .ws-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 11px;
    line-height: 1.25;
  }

  .ws-table th,
  .ws-table td {
    padding: 6px 3px;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  
.ws-table th,
.ws-table td {
  color: #0a0a0a !important;
  font-family: inherit !important;
}

.ws-table th {
    height: auto;
    min-height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 10.5px;
    text-transform: uppercase;
  }

  .ws-table th:nth-child(1),
  .ws-table td:nth-child(1) { width: 14%; min-width: 0; }
  .ws-table th:nth-child(2),
  .ws-table td:nth-child(2) { width: 27%; min-width: 0; }
  .ws-table th:nth-child(3),
  .ws-table td:nth-child(3) { width: 18%; min-width: 0; }
  .ws-table th:nth-child(4),
  .ws-table td:nth-child(4) { width: 21%; min-width: 0; }
  .ws-table th:nth-child(5),
  .ws-table td:nth-child(5) { width: 10%; min-width: 0; }
  .ws-table th:nth-child(6),
  .ws-table td:nth-child(6) { width: 10%; min-width: 0; }

  .ws-thumb,
  .ws-adapter-thumb {
    max-width: 30px;
    max-height: 24px;
  }

  
.ws-yt-btn {
    width: 24px;
    height: 24px;
  }

  .ws-youtube-icon {
    max-width: 22px;
    max-height: 22px;
  }
}

.ws-table.wp-list-table th:first-child,
.ws-table.wp-list-table td:first-child,
.ws-table th:first-child,
.ws-table td:first-child {
  padding-left: 20px !important;
}

@media (max-width: 640px) {
  .ws-table.wp-list-table th:first-child,
  .ws-table.wp-list-table td:first-child,
  .ws-table th:first-child,
  .ws-table td:first-child {
    padding-left: 6px !important;
  }
}
