/*
 * The server_plans block's table layout (site/blocks/server-plans.blade.php) on
 * any page, not only /vps: the VPS page's plan styles (pages/vps.css, "Section I"),
 * scoped to the block so they cannot reach the other sections of a page.
 *
 * The public-cloud page (body class product-page, which loads
 * pages/shared-hosting.css, not vps.css) drew its plans table unstyled — icons
 * at full width, one cell per screen. The block links this file itself.
 *
 * Wrapped in :where() so the block adds no specificity: this file is linked
 * from the page body, after site-custom.css, and must not win over that
 * file's adjustments (or over pages/vps.css on /vps) by coming later.
 */
/* item */
:where([data-server-plans]) .filter-bar .item {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, .05);
  padding: 14px 28px;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 500;
  transition: all .2s ease;
}
.light-theme :where([data-server-plans]) .filter-bar .item {
  background-color: var(--light);
}
:where([data-server-plans]) .filter-bar .item:not(.active):hover {
  background-color: var(--semi-dark);
}
.light-theme :where([data-server-plans]) .filter-bar .item:not(.active):hover {
  background-color: var(--border);
}
:where([data-server-plans]) .filter-bar .item.active {
  background-color: var(--primary);
  color: #FFFFFF;
}

/* responsive-table */
:where([data-server-plans]) .responsive-table {
  display: none
}
:where([data-server-plans]) .responsive-table.show {
  display: block
}

/* custom-table */
:where([data-server-plans]) .custom-table {
  width: 100%;
  margin-top: 30px;
}

/* tbody */
:where([data-server-plans]) .custom-table .tbody {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 0 -10px;
}
:where([data-server-plans]) .custom-table .tbody .tr {
  width: calc(25% - 20px);
  border-radius: 4px !important;
  overflow: hidden;
  margin: 10px;
  background-color: var(--semi-dark);
  border: 1px solid rgba(255, 255, 255, .05);
}
.light-theme :where([data-server-plans]) .custom-table .tbody .tr {
  background-color: var(--light);
  border-color: var(--border);
}
:where([data-server-plans]) .custom-table .tbody .tr:hover {
  background-color: rgba(255, 255, 255, .02);
}
.light-theme :where([data-server-plans]) .custom-table .tbody .tr:hover {
  background-color: #fff;
}
@media only screen and (max-width: 1199.98px) {
  :where([data-server-plans]) .custom-table .tbody .tr {
    width: calc(33.33% - 20px);
  }
}
@media only screen and (max-width: 991.98px) {
  :where([data-server-plans]) .custom-table .tbody .tr {
    width: calc(50% - 20px);
  }
}
@media only screen and (max-width: 767.98px) {
  :where([data-server-plans]) .custom-table .tbody .tr {
    width: calc(100% - 20px);
  }
}

/* td */
:where([data-server-plans]) .custom-table .tbody .td {
  width: 100% !important;
  display: flex !important;
}
:where([data-server-plans]) .custom-table .tbody .td:nth-child(2) {
  border-top: 1px solid rgba(255, 255, 255, .05) !important;
}
.light-theme :where([data-server-plans]) .custom-table .tbody .td:nth-child(2) {
  border-color: var(--border) !important;
}
:where([data-server-plans]) .custom-table .tbody .td:not(:first-of-type) {
  border-bottom: 1px solid rgba(255, 255, 255, .05) !important;
  padding: 0 !important;
}
.light-theme :where([data-server-plans]) .custom-table .tbody .td:not(:first-of-type) {
  border-color: var(--border) !important;
}

/* icon */
:where([data-server-plans]) .custom-table .tbody .td .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, .05);
  min-width: 40px;
  width: 40px;
}
.light-theme :where([data-server-plans]) .custom-table .tbody .td .icon {
  border-color: var(--border);
}
:where([data-server-plans]) .custom-table .tbody .td .icon img {
  filter: invert(1);
  width: 17px;
  opacity: .6;
}
.light-theme :where([data-server-plans]) .custom-table .tbody .td .icon img {
  filter: invert(0);
  opacity: .7;
}

/* text */
:where([data-server-plans]) .custom-table .tbody .td:not(.plan-td) .text {
  margin-left: 16px;
  padding: 6px;
}

/* plan-td */
:where([data-server-plans]) .custom-table .tbody .td.plan-td {
  min-width: 208px;
  width: 208px;
  padding: 20px 12px;
}

:where([data-server-plans]) .custom-table .tbody .td.plan-td .flag {
  position: relative;
}
:where([data-server-plans]) .custom-table .tbody .td.plan-td .flag:not(:last-child) {
  margin-bottom: 8px;
}
:where([data-server-plans]) .custom-table .tbody .td.plan-td .flag::before {
  position: absolute;
  content: attr(data-tooltip);
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  background: #1e5f74;
  color: #fff;
  border-radius: 4px;
  padding: 10px;
  font-size: 12px;
  min-width: 10px;
  white-space: nowrap;
  word-wrap: break-word;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease;
}
:where([data-server-plans]) .custom-table .tbody .td.plan-td .flag::after {
  position: absolute;
  content: '';
  left: calc(100% - 6px);
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-right-color: #1e5f74;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease;
}
:where([data-server-plans]) .custom-table .tbody .td.plan-td .flag:hover::before,
:where([data-server-plans]) .custom-table .tbody .td.plan-td .flag:hover::after {
  opacity: 1;
  visibility: visible;
}

:where([data-server-plans]) .custom-table .tbody .td.plan-td .flags img {
  display: block;
  width: 17px;
  margin: 0 8px;
}

:where([data-server-plans]) .custom-table .tbody .td.plan-td .text {
  margin-left: 8px;
}
:where([data-server-plans]) .custom-table .tbody .td.plan-td .text .name {
  font-size: 14px;
  font-family: var(--secondary-font);
  color: #ffffff;
  font-weight: 600;
  line-height: 1.6;
}
.light-theme :where([data-server-plans]) .custom-table .tbody .td.plan-td .text .name {
  color: var(--dark);
}
:where([data-server-plans]) .custom-table .tbody .td.plan-td .text .des {
  font-size: 14px;
  font-family: var(--secondary-font);
  font-weight: 500;
  color: var(--text-gray);
}

:where([data-server-plans]) .custom-table .tbody .td:not(.plan-td) {
  padding: 0 8px;
}
/* text */
:where([data-server-plans]) .custom-table .tbody .td:not(.plan-td) .name {
  font-size: 14px;
  font-family: var(--secondary-font);
  font-weight: 500;
  color: var(--text-gray);
  line-height: 1.6;
}
:where([data-server-plans]) .custom-table .tbody .td:not(.plan-td) .des {
  font-size: 14px;
  font-family: var(--secondary-font);
  font-weight: 400;
  color: var(--text-gray);
}

/* cpu-td */
:where([data-server-plans]) .custom-table .tbody .td.cpu-td {
  min-width: 176px;
  width: 176px;
}

/* ram-td */
:where([data-server-plans]) .custom-table .tbody .td.ram-td {
  min-width: 112px;
  width: 112px;
}

/* storage-td */
:where([data-server-plans]) .custom-table .tbody .td.storage-td {
  min-width: 144px;
  width: 144px;
}

/* bandwidth-td */
:where([data-server-plans]) .custom-table .tbody .td.bandwidth-td {
  min-width: 144px;
  width: 144px;
}

/* ip-td */
:where([data-server-plans]) .custom-table .tbody .td.ip-td {
  min-width: 130px;
  width: 130px;
}

/* price-td */
:where([data-server-plans]) .custom-table .tbody .td.price-td {
  min-width: 154px;
  width: 154px;
}
:where([data-server-plans]) .custom-table .tbody .td.price-td .price {
  font-size: 16px;
  font-family: var(--secondary-font);
  font-weight: 600;
  color: #ffffff;
  margin-left: 16px;
  padding: 10px 6px;
}
:where([data-server-plans]) .custom-table .tbody .td.price-td .price {
  color: var(--text-gray);
}
:where([data-server-plans]) .custom-table .tbody .td.price-td .price span {
  font-size: 12px;
  display: inline-flex;
  margin-left: 4px;
  font-weight: 300;
  color: var(--text-gray);
}

/* actions-td */
:where([data-server-plans]) .custom-table .tbody .td.actions-td {
  min-width: 160px;
  width: 160px;
  padding: 10px !important;
}
:where([data-server-plans]) .custom-table .tbody .td.actions-td .btn-fill-primary {
  width: 100%;
  min-width: unset;
  padding: 8px 20px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
}

/* se-footer */
:where([data-server-plans]) .se-footer .line {
  margin: 6px 12px;
}
:where([data-server-plans]) .se-footer .line .icon {
  min-width: 16px;
  width: 16px;
  margin-right: 10px;
}
:where([data-server-plans]) .se-footer .line .text {
  font-size: 14px;
  font-family: var(--secondary-font);
  font-weight: 500;
  color: var(--text-gray);
  line-height: 1;
}
/* --------------------------------- */
