tr.pwad-sizes td {
  padding: 20px 0;
}

.pwad-size-table {
  max-width: 1000px;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.pwad-size-table-header {
  position: relative;
  background: #f9f9f9;
  border-bottom: 1px solid #e5e5e5;
  padding: 10px 15px;
  overflow: hidden;
}

.pwad-size-table-footer {
  background: #f9f9f9;
  padding: 15px;
}

.pwad-size-table-row.pwad-editable .pwad-size-table-header {
  background: #fff;
}

.pwad-size-table-row.pwad-editable .pwad-size-table-header:hover {
  background: rgba(0, 133, 186, 0.1);
}

.pwad-size-table-row.pwad-editing > .pwad-size-table-header,
.pwad-size-table-row.pwad-editing > .pwad-size-table-header:hover {
  background: rgba(0, 133, 186, 0.2);
}

.pwad-size-table-row input {
  max-width: 60%;
  vertical-align: middle;
}

.pwad-size-table-row input[readonly] {
  appearance: none;
  background: 0 0;
  box-shadow: none;
  border-color: transparent;
  margin-left: 0;
  padding-left: 0;
}

.pwad-size-table-row input[type=checkbox] {
  margin: 6px 0 0;
}

.pwad-size-table-row input[type=checkbox][readonly] {
  pointer-events: none;
}

.pwad-size-table-col {
  width: 20%;
  align-items: center;
  display: flex;
  float: left;
}

.pwad-size-table-col-enable {
  width: 8%;
}

.pwad-size-table-col-enable label {
  width: 36px;
  height: 20px;
  position: relative;
  background: #e5e5e5;
  border-radius: 10px;
  display: block;
  overflow: hidden;
}

.pwad-size-table-col-enable label input[type=checkbox] {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
}

.pwad-size-table-col-enable label input[type=checkbox] + span {
  height: 16px;
  width: 16px;
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 1;
  background: #999;
  border-radius: 8px;
  display: block;
  transition: background 0.25s linear, left 0.25s ease;
}

.pwad-size-table-col-enable label input[type=checkbox]:checked + span {
  left: 18px;
  background: #0085ba;
}

.pwad-size-table-col-key {
  width: 25%;
}

.pwad-size-table-col-dim {
  width: 15%;
}

.pwad-size-table-col-crop {
  width: 5%;
}

.pwad-size-table-thumb .pwad-size-table-col-name:before {
  width: 8px;
  height: 5px;
  border: 1px solid #999;
  border-width: 0 0 1px 1px;
  content: '';
  display: inline-block;
  margin: -3px 10px 0 0;
  vertical-align: text-top;
}

.pwad-size-table-thumb input[type=checkbox] {
  opacity: 0.5;
}

.pwad-size-table-actions {
  width: 20%;
  justify-content: flex-end;
}

.pwad-size-table-actions .button {
  height: 30px;
  margin: 0 0 0 5px;
}

.pwad-size-table-actions .pwad-size-edit,
.pwad-size-table-actions .pwad-size-remove,
.pwad-size-table-actions .pwad-size-thumb {
  width: 34px;
  height: 30px;
  padding: 0;
}

.pwad-size-table-actions .pwad-size-edit .dashicons,
.pwad-size-table-actions .pwad-size-remove .dashicons,
.pwad-size-table-actions .pwad-size-thumb .dashicons {
  position: relative;
  top: 3px;
}

.pwad-size-table-token {
  background: #e5e5e5;
  border-radius: 2px;
  font-size: 10px;
  padding: 4px 8px;
  text-transform: uppercase;
  border-radius: 4px;
}

.pwad-size-table-content {
  border-top: 1px solid #e5e5e5;
  padding: 10px;
}

.pwad-nav-tab-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pwad-nav-tab-wrapper .pwad-smart-cache-flag {
  margin-left: auto;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  /* border: 1px solid #dcdcde;
  background: #f6f7f7;
  color: #1d2327; */
  background: #50575e;
  color: #f6f7f7;
}

.pwad-nav-tab-wrapper .pwad-smart-cache-flag.is-on {
  /* background: #edfaef;
  border-color: #8bcf9b;
  color: #085e20; */
  background: #00a32a;
}

.pwad-nav-tab-wrapper .pwad-smart-cache-flag.is-off {
  /* background: #f6f7f7;
  border-color: #dcdcde;
  color: #50575e; */
}

.pwad-nav-tab-wrapper .nav-tab {
  align-self: flex-end;
}

.pwad-nav-tab-wrapper .nav-tab:not(:first-child) {
  margin-left: 0;
}

/* .pwad-debug-card {
  max-width: 1120px;
  background: #fff;
  border: 1px solid #dcdcde;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  padding: 16px;
} */

.pwad-debug-image-select {
  margin: 0;
}

.pwad-debug-image-select .button {
  margin-right: 10px;
}

.pwad-debug-tools {
  border-top: 1px solid #ccc;
  margin-top: 20px;
}

.pwad-debug-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.pwad-debug-main {
  min-width: 0;
}

.pwad-debug-sidebar {
  min-width: 0;
}

.pwad-debug-preview-stage {
  margin: 0 0 12px;
}

.pwad-debug-preview-wrap {
  aspect-ratio: 3 / 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ddd;
  /* border: 1px solid #111; */
  overflow: hidden;
}

.pwad-debug-preview-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

.pwad-debug-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.pwad-debug-size-select-wrap {
  margin: 0;
}

.pwad-debug-size-select-wrap label {
  display: inline-block;
  margin-bottom: 6px;
}

.pwad-debug-size-links {
  margin: 0;
}

.pwad-debug-size-links h3 {
  margin: 0 0 8px;
}

#pwad-debug-size-links-list {
  margin: 0;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.pwad-debug-size-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}

.pwad-debug-size-link-source {
  font-size: 11px;
  color: #50575e;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pwad-debug-size-link-empty {
  color: #50575e;
}

.pwad-debug-size-link-item .is-disabled {
  color: #8c8f94;
  pointer-events: none;
  text-decoration: none;
}

.pwad-debug-result {
  margin-top: 12px;
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #1d2327;
  background: #0f1419;
  color: #e6edf3;
  font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 12px;
}

@media (max-width: 960px) {
  .pwad-debug-layout {
    grid-template-columns: 1fr;
  }
}

.pwad-debug-log-entry {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 4px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pwad-debug-log-entry:last-child {
  border-bottom: 0;
}

.pwad-debug-log-time {
  color: #8b949e;
  flex: 0 0 auto;
}

.pwad-debug-log-message {
  flex: 1 1 auto;
  word-break: break-word;
}

.pwad-debug-log-entry.is-success .pwad-debug-log-message {
  color: #7ee787;
}

.pwad-debug-log-entry.is-error .pwad-debug-log-message {
  color: #ff7b72;
}

.pwad-debug-log-entry.is-info .pwad-debug-log-message {
  color: #79c0ff;
}