/* Wide, readable membership matrix and reward-chest inspired credit packs. */
.cx-membership-panel{
  padding-inline:clamp(20px,2.4vw,48px);
}

.cx-membership-panel>.cx-membership-header,
.cx-membership-panel>.cx-membership-commerce-layout{
  width:100%;
  max-width:none;
}

.cx-membership-commerce-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:22px;
}

.cx-membership-commerce-layout>.cx-membership-comparison{
  min-width:0;
}

.cx-membership-comparison>header{
  padding:18px 22px;
}

.cx-membership-comparison>header strong{
  font-size:clamp(22px,1.55vw,29px);
}

.cx-membership-table{
  min-width:920px;
}

.cx-membership-table th,
.cx-membership-table td{
  height:64px;
  padding:12px 14px;
}

.cx-membership-table thead th{
  height:104px;
}

.cx-membership-table thead th:first-child{
  width:270px;
  font-size:9px;
}

.cx-membership-table thead strong{
  font-size:12px;
}

.cx-membership-table thead small{
  font-size:8px;
}

.cx-membership-table tbody th{
  font-size:10px;
}

.cx-membership-answer{
  width:31px;
  height:31px;
  font-size:16px;
}

.cx-membership-value,
.cx-membership-table-credit{
  font-size:11px!important;
}

.cx-membership-table-credit img{
  width:25px!important;
  height:25px!important;
}

.cx-membership-commerce-layout>.cx-credit-store{
  padding:20px 22px 18px;
}

.cx-membership-commerce-layout .cx-credit-store-header{
  min-height:64px;
  padding-bottom:16px;
}

.cx-membership-commerce-layout .cx-credit-store-header h3{
  font-size:clamp(29px,2.1vw,38px);
  letter-spacing:.1em;
}

.cx-credit-wallet{
  min-width:176px;
  padding:10px 14px;
}

.cx-credit-wallet-value{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  margin-top:5px;
}

.cx-credit-wallet-value>img{
  width:29px;
  height:29px;
  object-fit:contain;
  filter:drop-shadow(0 0 8px rgba(82,222,250,.38));
}

.cx-credit-wallet-value>#cxCreditBalance{
  font-size:28px;
}

.cx-credit-wallet-value>#cxCreditSymbol{
  margin-left:0;
  font-size:10px;
}

.cx-membership-commerce-layout .cx-credit-pack-list{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(230px,1fr);
  grid-template-columns:none;
  gap:0;
  margin-top:8px;
  overflow-x:auto;
  scrollbar-width:thin;
}

.cx-membership-commerce-layout .cx-credit-pack{
  position:relative;
  display:grid;
  min-height:276px;
  padding:16px 18px 12px;
  align-content:start;
  justify-items:center;
  border:0;
  border-left:1px solid rgba(82,219,248,.14);
  background:transparent;
  text-align:center;
}

.cx-membership-commerce-layout .cx-credit-pack:first-child{
  border-left:0;
}

.cx-membership-commerce-layout .cx-credit-pack::after{
  display:none;
}

.cx-membership-commerce-layout .cx-credit-pack-badge{
  z-index:4;
  top:14px;
  right:14px;
}

.cx-membership-commerce-layout .cx-credit-pack>.cx-credit-pack-visual{
  position:relative;
  display:block;
  width:100%;
  height:176px;
  min-width:0;
  margin:0;
  padding:0;
  overflow:hidden;
  border:0;
  color:#fff;
  background:transparent;
  cursor:pointer;
}

.cx-membership-commerce-layout .cx-credit-pack>.cx-credit-pack-visual:disabled{
  cursor:not-allowed;
  opacity:.48;
}

.cx-credit-pack-visual-media{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
}

.cx-credit-pack-visual-media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  filter:drop-shadow(0 18px 18px rgba(0,0,0,.5)) drop-shadow(0 0 14px rgba(82,212,247,.14));
  transition:transform .24s ease,filter .24s ease,opacity .24s ease;
}

.cx-credit-pack-price-overlay{
  position:absolute;
  z-index:2;
  inset:10px 5%;
  display:grid;
  place-content:center;
  gap:7px;
  color:#fff;
  background:radial-gradient(circle,rgba(4,13,22,.76),rgba(2,8,14,.88));
  opacity:0;
  transform:scale(.97);
  transition:opacity .2s ease,transform .2s ease;
  pointer-events:none;
}

.cx-credit-pack-price-overlay b{
  font:900 clamp(20px,1.65vw,28px)/1 Arial,sans-serif;
}

.cx-credit-pack-price-overlay small{
  color:#8ee9f8;
  font:900 7px/1 Arial,sans-serif;
  letter-spacing:.14em;
}

.cx-credit-pack-visual:not(:disabled):hover .cx-credit-pack-visual-media img,
.cx-credit-pack-visual:not(:disabled):focus-visible .cx-credit-pack-visual-media img{
  opacity:.34;
  transform:translateY(-3px) scale(1.035);
  filter:drop-shadow(0 20px 20px rgba(0,0,0,.62));
}

.cx-credit-pack-visual:not(:disabled):hover .cx-credit-pack-price-overlay,
.cx-credit-pack-visual:not(:disabled):focus-visible .cx-credit-pack-price-overlay{
  opacity:1;
  transform:none;
}

.cx-credit-pack-meta{
  display:grid;
  justify-items:center;
  gap:7px;
  margin-top:5px;
}

.cx-credit-pack-meta>small{
  color:#d9f6fc;
  font:900 9px/1.2 Arial,sans-serif;
  letter-spacing:.17em;
  text-transform:uppercase;
}

.cx-credit-pack-meta>.cx-credit-pack-amount{
  margin:0;
  font-size:clamp(23px,1.65vw,29px);
}

.cx-credit-pack-meta>.cx-credit-pack-amount img{
  width:31px;
  height:31px;
}

.cx-credit-pack-meta>em{
  min-height:12px;
  color:#60dff1;
  font:900 10px/1 Arial,sans-serif;
  font-style:normal;
  letter-spacing:.06em;
}

/* The packs stay beside the matrix only while the matrix keeps a generous width. */
@media(min-width:1540px){
  .cx-membership-commerce-layout{
    grid-template-columns:minmax(960px,1fr) minmax(330px,390px);
    align-items:start;
  }

  .cx-membership-commerce-layout .cx-credit-pack-list{
    grid-auto-flow:row;
    grid-auto-columns:auto;
    grid-template-columns:1fr;
    overflow:visible;
  }

  .cx-membership-commerce-layout .cx-credit-pack{
    min-height:0;
    grid-template-columns:122px minmax(0,1fr);
    align-items:center;
    padding:8px 4px;
    border-left:0;
    border-top:1px solid rgba(82,219,248,.14);
    text-align:left;
  }

  .cx-membership-commerce-layout .cx-credit-pack:first-child{
    border-top:0;
  }

  .cx-membership-commerce-layout .cx-credit-pack>.cx-credit-pack-visual{
    width:122px;
    height:108px;
  }

  .cx-credit-pack-meta{
    justify-self:stretch;
    justify-items:start;
    margin:0;
    padding-left:14px;
  }

  .cx-credit-pack-meta>.cx-credit-pack-amount{
    font-size:24px;
  }

  .cx-credit-pack-meta>.cx-credit-pack-amount img{
    width:28px;
    height:28px;
  }

  .cx-membership-commerce-layout .cx-credit-pack-badge{
    top:7px;
    right:5px;
  }
}

@media(max-width:980px){
  .cx-membership-table{
    min-width:780px;
  }

  .cx-membership-table thead th:first-child{
    width:220px;
  }
}

/* Credit-pack checkout: artwork first, balance at the top-right, gain centered below. */
.cx-monetization-dialog[data-content-type="credit_pack"].has-preview{
  display:grid;
  width:min(650px,100%);
  grid-template-columns:1fr;
  overflow:visible;
}

.cx-monetization-dialog[data-content-type="credit_pack"] .cx-monetization-dialog-preview{
  height:270px;
  min-height:270px;
  border-right:0;
  border-bottom:1px solid color-mix(in srgb,var(--cx-purchase-accent) 25%,transparent);
  background:radial-gradient(circle at 50% 52%,color-mix(in srgb,var(--cx-purchase-accent) 22%,transparent),transparent 48%),#020b12;
}

.cx-monetization-dialog[data-content-type="credit_pack"] .cx-monetization-dialog-preview::before{
  inset:16px;
}

.cx-monetization-dialog[data-content-type="credit_pack"] .cx-monetization-dialog-preview[data-shape="square"] .cx-monetization-dialog-preview-media{
  inset:18px 90px 8px;
  width:auto;
  height:auto;
  aspect-ratio:auto;
  transform:none;
  border:0;
  background:transparent;
}

.cx-monetization-dialog[data-content-type="credit_pack"] .cx-monetization-dialog-preview[data-shape="square"] .cx-monetization-dialog-preview-media img{
  object-fit:contain;
  transform:none;
  filter:drop-shadow(0 25px 25px rgba(0,0,0,.58)) drop-shadow(0 0 24px color-mix(in srgb,var(--cx-purchase-accent) 22%,transparent));
}

.cx-monetization-dialog[data-content-type="credit_pack"] .cx-monetization-dialog-content{
  position:static;
  display:flex;
  padding:18px 34px 28px;
  flex-direction:column;
  text-align:center;
}

.cx-monetization-dialog[data-content-type="credit_pack"]:not(.is-success) .cx-monetization-dialog-content>small{
  position:absolute;
  z-index:6;
  top:24px;
  left:28px;
  padding:0;
}

.cx-monetization-dialog[data-content-type="credit_pack"]:not(.is-success) .cx-monetization-dialog-title-row{
  position:absolute;
  z-index:6;
  top:43px;
  left:28px;
  justify-content:center;
  margin:0;
  padding:0;
}

.cx-monetization-dialog[data-content-type="credit_pack"] .cx-monetization-dialog-title-row h3{
  font-size:31px;
}

.cx-monetization-dialog[data-content-type="credit_pack"] .cx-monetization-dialog-type{
  display:none;
}

.cx-monetization-dialog[data-content-type="credit_pack"] p{
  order:2;
  max-width:510px;
  margin:0 auto 18px;
  font-size:10px;
}

.cx-monetization-dialog[data-content-type="credit_pack"] .cx-monetization-dialog-economy{
  order:1;
  display:block;
  margin:0 0 14px;
}

.cx-monetization-dialog[data-content-type="credit_pack"] .cx-monetization-dialog-price{
  width:max-content;
  min-width:250px;
  min-height:82px;
  margin:auto;
  padding:13px 25px;
  border:0;
  border-top:1px solid color-mix(in srgb,var(--cx-purchase-accent) 42%,transparent);
  border-bottom:1px solid color-mix(in srgb,var(--cx-purchase-accent) 25%,transparent);
  background:transparent;
  justify-items:center;
}

.cx-monetization-dialog[data-content-type="credit_pack"] .cx-monetization-dialog-price .cx-credit-price{
  justify-content:center;
  font-size:34px;
}

.cx-monetization-dialog[data-content-type="credit_pack"] .cx-monetization-dialog-price .cx-credit-price img{
  width:42px;
  height:42px;
}

.cx-monetization-dialog[data-content-type="credit_pack"] .cx-monetization-dialog-price em{
  margin-top:8px;
}

.cx-monetization-dialog[data-content-type="credit_pack"] .cx-monetization-dialog-balance{
  position:absolute;
  z-index:6;
  top:18px;
  right:66px;
  min-height:0;
  padding:9px 12px;
  border:1px solid color-mix(in srgb,var(--cx-purchase-accent) 24%,transparent);
  background:rgba(2,15,23,.82);
  text-align:right;
}

.cx-monetization-dialog[data-content-type="credit_pack"] .cx-monetization-dialog-balance small{
  margin-bottom:5px;
}

.cx-monetization-dialog[data-content-type="credit_pack"] .cx-credit-pack-modal-balance{
  font-size:19px;
}

.cx-monetization-dialog[data-content-type="credit_pack"] .cx-credit-pack-modal-balance img{
  width:25px;
  height:25px;
}

.cx-monetization-dialog[data-content-type="credit_pack"] .cx-monetization-dialog-actions{
  order:3;
  justify-content:center;
}

.cx-monetization-dialog[data-content-type="credit_pack"] .cx-monetization-dialog-actions-spacer{
  display:none;
}

@media(max-width:680px){
  .cx-monetization-dialog[data-content-type="credit_pack"] .cx-monetization-dialog-preview{
    height:220px;
    min-height:220px;
  }

  .cx-monetization-dialog[data-content-type="credit_pack"] .cx-monetization-dialog-preview[data-shape="square"] .cx-monetization-dialog-preview-media{
    inset:32px 45px 6px;
    width:auto;
    height:auto;
    transform:none;
  }

  .cx-monetization-dialog[data-content-type="credit_pack"] .cx-monetization-dialog-balance{
    top:12px;
    right:58px;
  }
}
