/* ANIRADAR_SERVICE_COMPARISON_TABLE v1.3 */
:root {
  --aniradar-table-main: #285f9e;
  --aniradar-table-dark: #19436f;
  --aniradar-table-accent: #e9f2fb;
  --aniradar-table-pale: #f4f8fc;
  --aniradar-table-border: #d4dfeb;
  --aniradar-table-text: #25313d;
  --aniradar-table-success: #24734f;
  --aniradar-table-danger: #a23b3b;
  --aniradar-table-muted: #6b7078;
}

.aniradar-service-table {
  margin: 1.4em 0;
  color: var(--aniradar-table-text);
}

.aniradar-service-table__hint {
  display: none;
  margin: 0 0 .45em;
  color: var(--aniradar-table-muted);
  font-size: .76em;
  text-align: right;
}

.aniradar-service-table__scroll {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--aniradar-table-border);
  border-radius: 10px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.aniradar-service-table table {
  width: 100%;
  min-width: 680px;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.aniradar-service-table th,
.aniradar-service-table td {
  box-sizing: border-box;
  padding: .72em .6em;
  border: 0;
  border-right: 1px solid var(--aniradar-table-border);
  border-bottom: 1px solid var(--aniradar-table-border);
  background: #fff;
  text-align: center;
  vertical-align: middle;
  line-height: 1.45;
}

.aniradar-service-table tr > :last-child {
  border-right: 0;
}

.aniradar-service-table tbody tr:last-child > * {
  border-bottom: 0;
}

.aniradar-service-table thead th {
  background: var(--aniradar-table-main);
  color: #fff;
  font-size: .86em;
  font-weight: 700;
  white-space: nowrap;
}

.aniradar-service-table tbody tr:nth-child(even) td {
  background: #f8fbfe;
}

.aniradar-service-table__service-col { width: 22%; }
.aniradar-service-table__status-col { width: 18%; }
.aniradar-service-table__campaign-col { width: 31%; }
.aniradar-service-table__action-col { width: 29%; }

.aniradar-service-table--vod .aniradar-service-table__hint {
  display: block;
}

.aniradar-service-table--vod table {
  min-width: 920px;
}

.aniradar-service-table--vod .aniradar-service-table__service-col { width: 18%; }
.aniradar-service-table--vod .aniradar-service-table__delivery-col { width: 18%; }
.aniradar-service-table--vod .aniradar-service-table__price-col { width: 19%; }
.aniradar-service-table--vod .aniradar-service-table__trial-col { width: 19%; }
.aniradar-service-table--vod .aniradar-service-table__action-col { width: 26%; }

.aniradar-service-table__service {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35em;
  text-align: center;
}

.aniradar-service-table__icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
}

.aniradar-service-table__name {
  font-size: .82em;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.aniradar-service-table__campaign {
  font-size: .84em;
}

.aniradar-service-table__delivery {
  font-size: .82em;
  font-weight: 700;
}

.aniradar-service-table__shared-value {
  display: inline-block;
  font-size: .82em;
  font-weight: 700;
  line-height: 1.45;
}

.aniradar-service-table__shared-value.is-trial {
  padding: .28em .48em;
  border-radius: 6px;
  background: var(--aniradar-table-accent);
  color: var(--aniradar-table-dark);
}

.aniradar-service-table__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.8em;
  padding: .34em .55em;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: .78em;
  font-weight: 700;
  white-space: nowrap;
}

.aniradar-service-table__status.is-available {
  color: var(--aniradar-table-success);
  background: #f1faf5;
}

.aniradar-service-table__status.is-unavailable {
  color: var(--aniradar-table-danger);
  background: #fff5f5;
}

.aniradar-service-table__status.is-unchecked {
  color: var(--aniradar-table-muted);
  background: #f5f6f7;
}

.aniradar-service-table__button-wrap > a,
.aniradar-service-table__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 9.4em;
  min-height: 40px;
  padding: .58em .8em;
  border-radius: 7px;
  background: var(--aniradar-table-main);
  color: #fff !important;
  font-size: .78em;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none !important;
}

.aniradar-service-table__button-wrap > a:hover,
.aniradar-service-table__button-wrap > a:focus-visible,
.aniradar-service-table__button:hover,
.aniradar-service-table__button:focus-visible {
  background: var(--aniradar-table-dark);
  color: #fff !important;
}

.aniradar-service-table__empty {
  color: var(--aniradar-table-muted);
}

.aniradar-service-table__meta {
  margin: .55em .15em 0;
  color: var(--aniradar-table-muted);
  font-size: .76em;
  line-height: 1.6;
}

.aniradar-ebook-more,
.aniradar-vod-more {
  margin: 1em 0 1.4em;
  border: 1px solid var(--aniradar-table-border);
  border-radius: 8px;
  background: #fff;
}

.aniradar-ebook-more summary,
.aniradar-vod-more summary {
  padding: .75em .9em;
  background: var(--aniradar-table-pale);
  color: var(--aniradar-table-dark);
  font-weight: 700;
  cursor: pointer;
}

.aniradar-ebook-more__body,
.aniradar-vod-more__body {
  padding: .15em 1em .8em;
  font-size: .9em;
}

@media (max-width: 600px) {
  .aniradar-service-table__hint {
    display: block;
  }

  .aniradar-service-table__scroll {
    margin-right: -4px;
    margin-left: -4px;
  }

  .aniradar-service-table th,
  .aniradar-service-table td {
    padding: .65em .5em;
  }

  .aniradar-service-table thead th:first-child,
  .aniradar-service-table tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: 2px 0 0 rgba(25, 67, 111, .08);
  }

  .aniradar-service-table thead th:first-child {
    z-index: 3;
    background: var(--aniradar-table-main);
  }

  .aniradar-service-table__icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
}
