/* TungstenCloud 2.1.8 — narrow, page-scoped corrections only. */

/* Header identity and controls. */
@media (min-width: 901px) {
  html[theme="tungstencloud"] .el-header .header-right {
    gap: 6px !important;
  }
  html[theme="tungstencloud"] .el-header .header-right .right-item,
  html[theme="tungstencloud"] .el-header .header-right .el-dropdown-country,
  html[theme="tungstencloud"] .el-header .header-right .el-dropdown-header {
    min-height: 44px !important;
    height: 44px !important;
  }
  html[theme="tungstencloud"] .el-header .header-right .right-item > img,
  html[theme="tungstencloud"] .el-header .header-right .right-item .el-badge img {
    width: 25px !important;
    height: 25px !important;
  }
  html[theme="tungstencloud"] .el-header .header-right .el-dropdown-country > img {
    width: 25px !important;
    height: 25px !important;
    border-radius: 50% !important;
  }
  html[theme="tungstencloud"] .el-header .header-right .account-item .head-box {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    border: 1px solid rgba(255,255,255,.72) !important;
    border-radius: 50% !important;
    color: #fff !important;
    background: linear-gradient(135deg, #1769e0, #24b6c8) !important;
    box-shadow: 0 7px 18px rgba(23,105,224,.24) !important;
    font-weight: 750 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.18) !important;
  }
  html[theme="tungstencloud"] .tc-console-identity strong {
    font-size: 14px !important;
  }
  html[theme="tungstencloud"] .tc-console-identity small {
    font-size: 9px !important;
  }
}

/* Order-product page: use the canvas, remove the false inner border, and let a
 * single product card expand rather than leaving two thirds of the page blank. */
html[theme="tungstencloud"][data-tc-page="cart"] .el-main {
  padding: clamp(18px, 1.5vw, 32px) !important;
}
html[theme="tungstencloud"][data-tc-page="cart"] .el-main > .main-card,
html[theme="tungstencloud"][data-tc-page="cart"] .template .main-card {
  width: 100% !important;
  max-width: 1680px !important;
  margin: 0 auto !important;
  padding: clamp(24px, 2vw, 36px) !important;
  overflow: hidden !important;
  border: 1px solid var(--tc-cart-line, rgba(22,57,96,.18)) !important;
  border-radius: 20px !important;
  background: var(--tc-cart-surface, #fff) !important;
  box-shadow: 0 18px 46px rgba(25,55,88,.09) !important;
}
html[theme="tungstencloud"][data-tc-page="cart"] .main-title {
  margin: 0 0 24px !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 27px !important;
}
html[theme="tungstencloud"][data-tc-page="cart"] .main-title::before,
html[theme="tungstencloud"][data-tc-page="cart"] .main-title::after {
  display: none !important;
}
html[theme="tungstencloud"][data-tc-page="cart"] .main-content-box {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[theme="tungstencloud"][data-tc-page="cart"] .search-box {
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-bottom: 22px !important;
}
html[theme="tungstencloud"][data-tc-page="cart"] .goods-list-div {
  width: 100% !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)) !important;
  gap: 22px !important;
}
html[theme="tungstencloud"][data-tc-page="cart"] .shopping-item {
  width: 100% !important;
  max-width: none !important;
  min-height: 360px !important;
  border-width: 1px !important;
  border-radius: 16px !important;
}
html[theme="tungstencloud"][data-tc-page="cart"] .shopping-item .goods-description {
  min-height: 190px !important;
  max-height: 330px !important;
  border-bottom: 1px solid var(--tc-cart-line, rgba(22,57,96,.16)) !important;
  background: color-mix(in srgb, var(--tc-cart-surface-2, #e6eef7) 78%, #fff) !important;
}

/* Dynamic product pages: one visual card, wider working area, rounded module
 * panels. This is also injected after module CSS by product.js. */
html[theme="tungstencloud"][data-tc-page="product"] .el-main {
  padding: clamp(18px, 1.45vw, 30px) !important;
}
html[theme="tungstencloud"][data-tc-page="product"] .tc-product-shell {
  width: 100% !important;
  max-width: 1720px !important;
  margin: 0 auto !important;
}
html[theme="tungstencloud"][data-tc-page="product"] .tc-product-shell > .content {
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[theme="tungstencloud"][data-tc-page="product"] :where(#cloudList,#dcimList,#commonProductList,.common_product_list,.mf-finance-list,.tc-legacy-product-list) {
  width: 100% !important;
  max-width: none !important;
}
html[theme="tungstencloud"][data-tc-page="product"] :where(#cloudList,#dcimList,#commonProductList,.common_product_list,.mf-finance-list,.tc-legacy-product-list) > .main-card {
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[theme="tungstencloud"][data-tc-page="product"] .tc-legacy-product-list .main-card > .main-card-title {
  border-radius: 18px !important;
}
html[theme="tungstencloud"][data-tc-page="product"] .tc-legacy-product-list .main-card-table {
  overflow: hidden !important;
  border-radius: 18px !important;
}
html[theme="tungstencloud"][data-tc-page="product"] .tc-legacy-product-list .main-card-search {
  min-height: 66px !important;
  padding: 14px 20px !important;
}
html[theme="tungstencloud"][data-tc-page="product"] .tc-legacy-product-list .batch-op-btn .el-button-group {
  display: inline-flex !important;
  min-width: 0 !important;
}
html[theme="tungstencloud"][data-tc-page="product"] .tc-legacy-product-list .batch-op-btn .el-button-group > .el-button:first-child {
  min-width: 118px !important;
  padding: 0 17px !important;
  overflow: visible !important;
  color: #fff !important;
  text-indent: 0 !important;
  white-space: nowrap !important;
}
html[theme="tungstencloud"][data-tc-page="product"] .tc-legacy-product-list .batch-op-btn .el-button-group > .el-button:last-child {
  width: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
}
html[theme="tungstencloud"][data-tc-page="product"] .tc-legacy-product-list .traffic-warning .search-btn {
  min-width: 128px !important;
}

/* Standard client pages: rounded, readable workspaces without changing their
 * business controls. */
html[theme="tungstencloud"][data-tc-page="account"] .main-card,
html[theme="tungstencloud"][data-tc-page="security"] .main-card {
  width: 100% !important;
  max-width: 1660px !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  border-radius: 20px !important;
}
html[theme="tungstencloud"][data-tc-page="account"] .main-card-title,
html[theme="tungstencloud"][data-tc-page="security"] .main-card-title {
  border-radius: 18px !important;
}
html[theme="tungstencloud"][data-tc-page="account"] .content-box,
html[theme="tungstencloud"][data-tc-page="security"] .content-table,
html[theme="tungstencloud"][data-tc-page="security"] .tabledata {
  border-radius: 16px !important;
}

/* Add-on pages requested by the user: resource centre, tickets, sub-account
 * and referral plan. */
html[theme="tungstencloud"][data-tc-plugin="true"] .el-main {
  padding: clamp(18px, 1.45vw, 30px) !important;
}
html[theme="tungstencloud"][data-tc-plugin="true"] .el-main > .main-card,
html[theme="tungstencloud"][data-tc-plugin="true"] .el-main > .clid-box,
html[theme="tungstencloud"][data-tc-plugin="true"] .el-main > .recommend-box,
html[theme="tungstencloud"][data-tc-plugin="true"] .el-main > .recommend-box-open,
html[theme="tungstencloud"][data-tc-plugin="true"] .el-main > .recommend-content {
  width: 100% !important;
  max-width: 1660px !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  border: 1px solid var(--tc-line) !important;
  border-radius: 20px !important;
  background: var(--tc-surface) !important;
  box-shadow: 0 16px 40px rgba(25,55,88,.08) !important;
}
html[theme="tungstencloud"][data-tc-page="source"] .main-card,
html[theme="tungstencloud"][data-tc-page="ticket"] .main-card {
  padding: 26px 28px 30px !important;
}
html[theme="tungstencloud"][data-tc-page="child-account"] .clid-box {
  padding: 26px 28px 30px !important;
}
html[theme="tungstencloud"][data-tc-page="recommend"] .recommend-box,
html[theme="tungstencloud"][data-tc-page="recommend"] .recommend-box-open,
html[theme="tungstencloud"][data-tc-page="recommend"] .recommend-content {
  padding: 24px 26px 30px !important;
}
html[theme="tungstencloud"][data-tc-page="source"] .content-item,
html[theme="tungstencloud"][data-tc-page="source"] .com-r-box,
html[theme="tungstencloud"][data-tc-page="source"] .com-l-box,
html[theme="tungstencloud"][data-tc-page="ticket"] .tabledata,
html[theme="tungstencloud"][data-tc-page="child-account"] .el-table,
html[theme="tungstencloud"][data-tc-page="recommend"] .recommend-item {
  border-radius: 14px !important;
}

@media (max-width: 900px) {
  html[theme="tungstencloud"][data-tc-page="cart"] .el-main,
  html[theme="tungstencloud"][data-tc-page="product"] .el-main,
  html[theme="tungstencloud"][data-tc-plugin="true"] .el-main {
    padding: 14px !important;
  }
  html[theme="tungstencloud"][data-tc-page="cart"] .el-main > .main-card,
  html[theme="tungstencloud"][data-tc-plugin="true"] .el-main > .main-card,
  html[theme="tungstencloud"][data-tc-plugin="true"] .el-main > .clid-box,
  html[theme="tungstencloud"][data-tc-plugin="true"] .el-main > .recommend-box,
  html[theme="tungstencloud"][data-tc-plugin="true"] .el-main > .recommend-box-open {
    padding: 18px 16px 22px !important;
    border-radius: 14px !important;
  }
  html[theme="tungstencloud"][data-tc-page="cart"] .goods-list-div {
    grid-template-columns: minmax(0,1fr) !important;
  }
  html[theme="tungstencloud"][data-tc-page="product"] .tc-legacy-product-list .main-card > .main-card-title,
  html[theme="tungstencloud"][data-tc-page="product"] .tc-legacy-product-list .main-card-table {
    border-radius: 14px !important;
  }
}


/* TungstenCloud 2.1.8: flag-only language control without a surrounding frame. */
@media (min-width: 901px) {
  html[theme="tungstencloud"] .el-header .header-right .language-item {
    width: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
  }
  html[theme="tungstencloud"] .el-header .header-right .language-item .el-dropdown,
  html[theme="tungstencloud"] .el-header .header-right .language-item .el-dropdown-country {
    width: 34px !important;
    min-width: 34px !important;
    height: 24px !important;
    min-height: 24px !important;
  }
  html[theme="tungstencloud"] .el-header .header-right .language-item .el-dropdown-country {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  html[theme="tungstencloud"] .el-header .header-right .language-item .el-dropdown-country:hover,
  html[theme="tungstencloud"] .el-header .header-right .language-item .el-dropdown-country:focus {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html[theme="tungstencloud"] .el-header .header-right .language-item .el-dropdown-country > img {
    width: 32px !important;
    min-width: 32px !important;
    height: 21px !important;
    flex: 0 0 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 2px !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html[theme="tungstencloud"] .el-header .header-right .tc-language-label,
  html[theme="tungstencloud"] .el-header .header-right .language-item .right-icon {
    display: none !important;
  }
}
