/**
 * ONE PLUS — universal content tables
 * Scoped to main content wrappers only (not wp-admin / plugin UIs).
 */

.article-wrap__content--text .oneplus-table-wrap,
.ttx .oneplus-table-wrap,
.blog-wrap .oneplus-table-wrap,
.entry-content .oneplus-table-wrap,
.op-blog-content .oneplus-table-wrap,
.site-main .oneplus-table-wrap {
  --op-table-blue: #086cdc;
  --op-table-blue-deep: #092b96;
  --op-table-text: #1a2438;
  --op-table-muted: #5b6475;
  --op-table-line: #d9e6f7;
  --op-table-head: #eef5ff;
  --op-table-icon-bg: #e8f1ff;
  --op-table-radius: 16px;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 24px;
  padding: 0;
  border: 1px solid var(--op-table-line);
  border-radius: var(--op-table-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(9, 43, 150, 0.06);
  overflow: hidden;
  box-sizing: border-box;
}

.article-wrap__content--text .oneplus-table-wrap--scroll,
.ttx .oneplus-table-wrap--scroll,
.blog-wrap .oneplus-table-wrap--scroll,
.entry-content .oneplus-table-wrap--scroll,
.op-blog-content .oneplus-table-wrap--scroll,
.site-main .oneplus-table-wrap--scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-wrap__content--text table.oneplus-table,
.ttx table.oneplus-table,
.blog-wrap table.oneplus-table,
.entry-content table.oneplus-table,
.op-blog-content table.oneplus-table,
.site-main table.oneplus-table {
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
  color: var(--op-table-text);
  table-layout: auto;
}

.article-wrap__content--text table.oneplus-table th,
.article-wrap__content--text table.oneplus-table td,
.ttx table.oneplus-table th,
.ttx table.oneplus-table td,
.blog-wrap table.oneplus-table th,
.blog-wrap table.oneplus-table td,
.entry-content table.oneplus-table th,
.entry-content table.oneplus-table td,
.op-blog-content table.oneplus-table th,
.op-blog-content table.oneplus-table td,
.site-main table.oneplus-table th,
.site-main table.oneplus-table td {
  border: 0 !important;
  border-bottom: 1px solid var(--op-table-line) !important;
  border-right: 1px solid var(--op-table-line) !important;
  padding: 16px 18px !important;
  vertical-align: middle !important;
  font-size: 15px;
  line-height: 1.45;
  color: var(--op-table-text);
  word-break: break-word;
  overflow-wrap: anywhere;
  background: #fff;
}

.article-wrap__content--text table.oneplus-table th:last-child,
.article-wrap__content--text table.oneplus-table td:last-child,
.ttx table.oneplus-table th:last-child,
.ttx table.oneplus-table td:last-child,
.blog-wrap table.oneplus-table th:last-child,
.blog-wrap table.oneplus-table td:last-child,
.entry-content table.oneplus-table th:last-child,
.entry-content table.oneplus-table td:last-child,
.op-blog-content table.oneplus-table th:last-child,
.op-blog-content table.oneplus-table td:last-child,
.site-main table.oneplus-table th:last-child,
.site-main table.oneplus-table td:last-child {
  border-right: 0 !important;
}

.article-wrap__content--text table.oneplus-table tr:last-child > *,
.ttx table.oneplus-table tr:last-child > *,
.blog-wrap table.oneplus-table tr:last-child > *,
.entry-content table.oneplus-table tr:last-child > *,
.op-blog-content table.oneplus-table tr:last-child > *,
.site-main table.oneplus-table tr:last-child > * {
  border-bottom: 0 !important;
}

.article-wrap__content--text table.oneplus-table thead th,
.article-wrap__content--text table.oneplus-table tr.oneplus-table__head th,
.ttx table.oneplus-table thead th,
.ttx table.oneplus-table tr.oneplus-table__head th,
.blog-wrap table.oneplus-table thead th,
.blog-wrap table.oneplus-table tr.oneplus-table__head th,
.entry-content table.oneplus-table thead th,
.entry-content table.oneplus-table tr.oneplus-table__head th,
.op-blog-content table.oneplus-table thead th,
.op-blog-content table.oneplus-table tr.oneplus-table__head th,
.site-main table.oneplus-table thead th,
.site-main table.oneplus-table tr.oneplus-table__head th {
  background: var(--op-table-head) !important;
  color: #131313;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.article-wrap__content--text table.oneplus-table--cols-2 td:first-child,
.article-wrap__content--text table.oneplus-table--cols-3 td:first-child,
.article-wrap__content--text table.oneplus-table--cols-4 td:first-child,
.ttx table.oneplus-table--cols-2 td:first-child,
.ttx table.oneplus-table--cols-3 td:first-child,
.ttx table.oneplus-table--cols-4 td:first-child,
.blog-wrap table.oneplus-table--cols-2 td:first-child,
.blog-wrap table.oneplus-table--cols-3 td:first-child,
.blog-wrap table.oneplus-table--cols-4 td:first-child,
.entry-content table.oneplus-table--cols-2 td:first-child,
.entry-content table.oneplus-table--cols-3 td:first-child,
.entry-content table.oneplus-table--cols-4 td:first-child,
.site-main table.oneplus-table--cols-2 td:first-child,
.site-main table.oneplus-table--cols-3 td:first-child,
.site-main table.oneplus-table--cols-4 td:first-child {
  width: 58%;
}

.article-wrap__content--text table.oneplus-table td.oneplus-table__cell--price,
.ttx table.oneplus-table td.oneplus-table__cell--price,
.blog-wrap table.oneplus-table td.oneplus-table__cell--price,
.entry-content table.oneplus-table td.oneplus-table__cell--price,
.site-main table.oneplus-table td.oneplus-table__cell--price {
  color: var(--op-table-blue);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.article-wrap__content--text table.oneplus-table th.oneplus-table__cell--price,
.ttx table.oneplus-table th.oneplus-table__cell--price,
.blog-wrap table.oneplus-table th.oneplus-table__cell--price,
.entry-content table.oneplus-table th.oneplus-table__cell--price,
.site-main table.oneplus-table th.oneplus-table__cell--price {
  text-align: right;
}

.article-wrap__content--text table.oneplus-table td.oneplus-table__cell--free,
.ttx table.oneplus-table td.oneplus-table__cell--free,
.blog-wrap table.oneplus-table td.oneplus-table__cell--free,
.entry-content table.oneplus-table td.oneplus-table__cell--free,
.site-main table.oneplus-table td.oneplus-table__cell--free {
  color: #17835a;
  font-weight: 700;
}

/* Icon + service name: always vertically centered to each other (all tables, all langs) */
.article-wrap__content--text table.oneplus-table .oneplus-table__label,
.ttx table.oneplus-table .oneplus-table__label,
.blog-wrap table.oneplus-table .oneplus-table__label,
.entry-content table.oneplus-table .oneplus-table__label,
.site-main table.oneplus-table .oneplus-table__label {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-height: 36px;
  box-sizing: border-box;
}

.article-wrap__content--text table.oneplus-table .oneplus-table__ico,
.ttx table.oneplus-table .oneplus-table__ico,
.blog-wrap table.oneplus-table .oneplus-table__ico,
.entry-content table.oneplus-table .oneplus-table__ico,
.site-main table.oneplus-table .oneplus-table__ico {
  flex: 0 0 auto;
  align-self: center !important;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--op-table-icon-bg);
  color: var(--op-table-blue);
}

.article-wrap__content--text table.oneplus-table .oneplus-table__ico svg,
.ttx table.oneplus-table .oneplus-table__ico svg,
.blog-wrap table.oneplus-table .oneplus-table__ico svg,
.entry-content table.oneplus-table .oneplus-table__ico svg,
.site-main table.oneplus-table .oneplus-table__ico svg {
  width: 20px;
  height: 20px;
  display: block;
}

.article-wrap__content--text table.oneplus-table .oneplus-table__text,
.ttx table.oneplus-table .oneplus-table__text,
.blog-wrap table.oneplus-table .oneplus-table__text,
.entry-content table.oneplus-table .oneplus-table__text,
.site-main table.oneplus-table .oneplus-table__text {
  min-width: 0;
  flex: 1 1 auto;
  align-self: center !important;
  display: flex;
  align-items: center !important;
  line-height: 1.35;
}

.article-wrap__content--text table.oneplus-table .oneplus-table__text > *:first-child,
.ttx table.oneplus-table .oneplus-table__text > *:first-child,
.blog-wrap table.oneplus-table .oneplus-table__text > *:first-child,
.entry-content table.oneplus-table .oneplus-table__text > *:first-child,
.site-main table.oneplus-table .oneplus-table__text > *:first-child {
  margin-top: 0;
}

.article-wrap__content--text table.oneplus-table .oneplus-table__text > *:last-child,
.ttx table.oneplus-table .oneplus-table__text > *:last-child,
.blog-wrap table.oneplus-table .oneplus-table__text > *:last-child,
.entry-content table.oneplus-table .oneplus-table__text > *:last-child,
.site-main table.oneplus-table .oneplus-table__text > *:last-child {
  margin-bottom: 0;
}

/* Keep every column (1–5 / wide) vertically middle in the row */
.article-wrap__content--text table.oneplus-table td.oneplus-table__cell--price,
.article-wrap__content--text table.oneplus-table td.oneplus-table__cell--term,
.article-wrap__content--text table.oneplus-table td.oneplus-table__cell--free,
.ttx table.oneplus-table td.oneplus-table__cell--price,
.ttx table.oneplus-table td.oneplus-table__cell--term,
.ttx table.oneplus-table td.oneplus-table__cell--free,
.blog-wrap table.oneplus-table td.oneplus-table__cell--price,
.blog-wrap table.oneplus-table td.oneplus-table__cell--term,
.blog-wrap table.oneplus-table td.oneplus-table__cell--free,
.entry-content table.oneplus-table td.oneplus-table__cell--price,
.entry-content table.oneplus-table td.oneplus-table__cell--term,
.entry-content table.oneplus-table td.oneplus-table__cell--free,
.site-main table.oneplus-table td.oneplus-table__cell--price,
.site-main table.oneplus-table td.oneplus-table__cell--term,
.site-main table.oneplus-table td.oneplus-table__cell--free {
  vertical-align: middle !important;
}

.article-wrap__content--text table.oneplus-table a,
.ttx table.oneplus-table a,
.blog-wrap table.oneplus-table a,
.entry-content table.oneplus-table a,
.site-main table.oneplus-table a {
  color: var(--op-table-blue-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-wrap__content--text table.oneplus-table a:focus-visible,
.ttx table.oneplus-table a:focus-visible,
.blog-wrap table.oneplus-table a:focus-visible,
.entry-content table.oneplus-table a:focus-visible,
.site-main table.oneplus-table a:focus-visible {
  outline: 2px solid var(--op-table-blue);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .article-wrap__content--text table.oneplus-table tbody tr:hover > td,
  .ttx table.oneplus-table tbody tr:hover > td,
  .blog-wrap table.oneplus-table tbody tr:hover > td,
  .entry-content table.oneplus-table tbody tr:hover > td,
  .site-main table.oneplus-table tbody tr:hover > td {
    background: #f8fbff !important;
  }
}

/* Mobile card layout for simple 2–4 col tables */
@media (max-width: 720px) {
  .article-wrap__content--text .oneplus-table-wrap:not(.oneplus-table-wrap--complex):not(.oneplus-table-wrap--wide),
  .ttx .oneplus-table-wrap:not(.oneplus-table-wrap--complex):not(.oneplus-table-wrap--wide),
  .blog-wrap .oneplus-table-wrap:not(.oneplus-table-wrap--complex):not(.oneplus-table-wrap--wide),
  .entry-content .oneplus-table-wrap:not(.oneplus-table-wrap--complex):not(.oneplus-table-wrap--wide),
  .site-main .oneplus-table-wrap:not(.oneplus-table-wrap--complex):not(.oneplus-table-wrap--wide) {
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    margin-bottom: 24px;
  }

  .article-wrap__content--text table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide),
  .ttx table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide),
  .blog-wrap table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide),
  .entry-content table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide),
  .site-main table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) {
    display: block;
    width: 100% !important;
  }

  .article-wrap__content--text table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) thead,
  .article-wrap__content--text table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tr.oneplus-table__head,
  .ttx table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) thead,
  .ttx table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tr.oneplus-table__head,
  .blog-wrap table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) thead,
  .blog-wrap table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tr.oneplus-table__head,
  .entry-content table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) thead,
  .entry-content table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tr.oneplus-table__head,
  .site-main table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) thead,
  .site-main table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tr.oneplus-table__head {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .article-wrap__content--text table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tbody,
  .article-wrap__content--text table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tr,
  .article-wrap__content--text table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td,
  .ttx table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tbody,
  .ttx table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tr,
  .ttx table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td,
  .blog-wrap table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tbody,
  .blog-wrap table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tr,
  .blog-wrap table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td,
  .entry-content table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tbody,
  .entry-content table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tr,
  .entry-content table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td,
  .site-main table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tbody,
  .site-main table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tr,
  .site-main table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td {
    display: block;
    width: 100% !important;
  }

  .article-wrap__content--text table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tbody tr,
  .ttx table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tbody tr,
  .blog-wrap table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tbody tr,
  .entry-content table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tbody tr,
  .site-main table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tbody tr {
    margin: 0 0 12px;
    padding: 14px 16px;
    border: 1px solid var(--op-table-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(9, 43, 150, 0.05);
  }

  .article-wrap__content--text table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tbody tr:last-child,
  .ttx table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tbody tr:last-child,
  .blog-wrap table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tbody tr:last-child,
  .entry-content table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tbody tr:last-child,
  .site-main table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) tbody tr:last-child {
    margin-bottom: 0;
  }

  .article-wrap__content--text table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td,
  .ttx table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td,
  .blog-wrap table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td,
  .entry-content table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td,
  .site-main table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td {
    border: 0 !important;
    border-bottom: 1px solid #eef2f7 !important;
    padding: 10px 0 !important;
    text-align: left !important;
    white-space: normal;
  }

  .article-wrap__content--text table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td:last-child,
  .ttx table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td:last-child,
  .blog-wrap table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td:last-child,
  .entry-content table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td:last-child,
  .site-main table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td:last-child {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .article-wrap__content--text table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td::before,
  .ttx table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td::before,
  .blog-wrap table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td::before,
  .entry-content table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td::before,
  .site-main table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td::before {
    content: attr(data-label);
    display: block;
    margin: 0 0 4px;
    color: var(--op-table-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
  }

  .article-wrap__content--text table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td:first-child::before,
  .ttx table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td:first-child::before,
  .blog-wrap table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td:first-child::before,
  .entry-content table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td:first-child::before,
  .site-main table.oneplus-table:not(.oneplus-table--complex):not(.oneplus-table--cols-wide) td:first-child::before {
    display: none;
  }

  .article-wrap__content--text table.oneplus-table .oneplus-table__ico,
  .ttx table.oneplus-table .oneplus-table__ico,
  .blog-wrap table.oneplus-table .oneplus-table__ico,
  .entry-content table.oneplus-table .oneplus-table__ico,
  .site-main table.oneplus-table .oneplus-table__ico {
    width: 32px;
    height: 32px;
  }

  .article-wrap__content--text table.oneplus-table .oneplus-table__ico svg,
  .ttx table.oneplus-table .oneplus-table__ico svg,
  .blog-wrap table.oneplus-table .oneplus-table__ico svg,
  .entry-content table.oneplus-table .oneplus-table__ico svg,
  .site-main table.oneplus-table .oneplus-table__ico svg {
    width: 18px;
    height: 18px;
  }
}
