/* taoke-ui-port-20261129
   Visual-only overlay for ttkk.ink, aligned to live Wukong storefront style.
   Does not restore the footer, add elite prices, re-enable WeChat, or change catalog order.
   Logo is an original 淘客AI circular 4-color sketch mark (not the Wukong monkey).
*/

/* ========== 1. Header title is black (Wukong live #174054) ========== */
html body.new-store-page .new-store .site-header a.brand,
html body.new-store-page .new-store .site-header a.brand:link,
html body.new-store-page .new-store .site-header a.brand:visited,
html body.new-store-page .new-store .site-header a.brand:hover,
html body.new-store-page .new-store .site-header a.brand:active,
html body.new-store-page .new-store .site-header .brand,
html body.new-store-page .new-store .site-header .brand > span,
html body.new-store-page .new-store .site-header .brand b,
html body.new-store-page .new-store .site-header a.brand b,
html body.new-store-page .new-store .site-header .subsite-brand-name,
html body.new-store-page .new-store .site-header .subsite-brand-name > *:not(small),
html body.new-store-page .new-store .brand b {
  color: #174054 !important;
}

/* ========== 2. Ordinary price + trailing 起 black; agent price red ========== */
html body.new-store-page .new-store .xingyu-catalog .product-card .card-bottom:not(.agent-deal) > span:first-child,
html body.new-store-page .new-store .xingyu-catalog .product-card .card-bottom:not(.agent-deal) strong,
html body.new-store-page .new-store .xingyu-catalog .product-card .card-bottom:not(.agent-deal) small,
html body.new-store-page .new-store .xingyu-catalog .public-list-price,
html body.new-store-page .new-store .xingyu-catalog .public-list-price s,
html body.new-store-page .new-store .xingyu-catalog .public-list-price strong,
html body.new-store-page .new-store .detail-page .plan-price:not(.agent-deal) strong,
html body.new-store-page .new-store .detail-page .plan-price > .plan-main-price strong,
html body.new-store-page .new-store .detail-page .plan-period,
html body.new-store-page .new-store .detail-page .plan-list-price,
html body.new-store-page .new-store .detail-page .plan-list-price s,
html body.new-store-page .new-store .detail-page .purchase-layout:not(:has(.plan-price.agent-deal)) .channel-option .channel-title > b,
html body.new-store-page .new-store .detail-page .purchase-layout:not(:has(.plan-price.agent-deal)) .order-summary .summary-total > strong,
html body.new-store-page .new-store .detail-page:not(:has(.plan-price.agent-deal)) .mobile-purchase-bar > span > strong {
  color: #000 !important;
}

html body.new-store-page .new-store .xingyu-catalog .public-agent-price,
html body.new-store-page .new-store .xingyu-catalog .public-agent-price strong,
html body.new-store-page .new-store .xingyu-catalog .product-card .card-bottom.agent-deal .agent-price-label,
html body.new-store-page .new-store .xingyu-catalog .product-card .card-bottom.agent-deal > span:first-child,
html body.new-store-page .new-store .xingyu-catalog .product-card .card-bottom.agent-deal strong,
html body.new-store-page .new-store .xingyu-catalog .product-card .card-bottom.agent-deal small,
html body.new-store-page .new-store .detail-page .plan-agent-price,
html body.new-store-page .new-store .detail-page .plan-price.agent-deal .plan-agent-label,
html body.new-store-page .new-store .detail-page .plan-price.agent-deal .plan-deal-row strong,
html body.new-store-page .new-store .detail-page .plan-price.agent-deal .plan-deal-row .plan-period,
html body.new-store-page .new-store .detail-page.agent-view .channel-title b {
  color: #df355c !important;
}

/* ========== 3. Circular 淘客AI brand mark; blink/bob only when html.wk-owner-online ========== */
html body.new-store-page .new-store .site-header .header-inner .brand .brand-icon,
html body.new-store-page .new-store .site-header .brand .brand-icon.taoke-brand-holder,
html body.new-store-page .new-store .member-workspace .workspace-header .workspace-brand > span,
html body.new-store-page .new-store .workspace-brand > span.taoke-brand-holder {
  position: relative !important;
  isolation: isolate;
  width: 42px !important;
  height: 42px !important;
  flex-shrink: 0;
  border-radius: 50% !important;
  background: #238a9b !important;
  border: 0 !important;
  border-color: #238a9b !important;
  overflow: visible !important;
  box-shadow: none !important;
  color: transparent !important;
  transform-origin: 50% 60%;
}
html body.new-store-page .new-store .brand-icon .taoke-brand-art,
html body.new-store-page .new-store .taoke-brand-holder .taoke-brand-art {
  font-size: 0 !important;
  color: transparent !important;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
}
html body.new-store-page .new-store .site-header .header-inner .brand .brand-icon::after,
html body.new-store-page .new-store .site-header .brand .brand-icon.taoke-brand-holder::after,
html body.new-store-page .new-store .member-workspace .workspace-header .workspace-brand > span::after,
html body.new-store-page .new-store .workspace-brand > span.taoke-brand-holder::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50% !important;
  background-color: #238a9b !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% 100% !important;
  background-image: url('/assets/taoke-brand-bbf191d6a47d.png') !important;
  background-image: image-set(url('/assets/taoke-brand-bbf191d6a47d.webp') type('image/webp'), url('/assets/taoke-brand-bbf191d6a47d.png') type('image/png')) !important;
  pointer-events: none;
}
/* Eyelids: hidden while offline (scaleY 0). Positions match the logo eyes. */
html body.new-store-page .new-store .site-header .header-inner .brand .brand-icon::before,
html body.new-store-page .new-store .site-header .brand .brand-icon.taoke-brand-holder::before,
html body.new-store-page .new-store .member-workspace .workspace-header .workspace-brand > span::before,
html body.new-store-page .new-store .workspace-brand > span.taoke-brand-holder::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 43.6%;
  height: 16%;
  z-index: 2;
  pointer-events: none;
  background-image: linear-gradient(#f7f3ea, #f7f3ea), linear-gradient(#f7f3ea, #f7f3ea);
  background-repeat: no-repeat;
  background-size: 12% 100%, 12% 100%;
  background-position: 37.4% 0, 62.6% 0;
  transform-origin: 50% 0;
  transform: scaleY(0);
}
html.wk-owner-online body.new-store-page .new-store .site-header .header-inner .brand .brand-icon,
html.wk-owner-online body.new-store-page .new-store .site-header .brand .brand-icon.taoke-brand-holder,
html.wk-owner-online body.new-store-page .new-store .member-workspace .workspace-header .workspace-brand > span,
html.wk-owner-online body.new-store-page .new-store .workspace-brand > span.taoke-brand-holder {
  outline: 2px solid rgba(35, 138, 155, 0);
  outline-offset: 0;
  animation: tk-owner-bob 3.2s ease-in-out infinite, tk-owner-ring 2.4s ease-out infinite;
}
html.wk-owner-online body.new-store-page .new-store .site-header .header-inner .brand .brand-icon::before,
html.wk-owner-online body.new-store-page .new-store .site-header .brand .brand-icon.taoke-brand-holder::before,
html.wk-owner-online body.new-store-page .new-store .member-workspace .workspace-header .workspace-brand > span::before,
html.wk-owner-online body.new-store-page .new-store .workspace-brand > span.taoke-brand-holder::before {
  animation: tk-owner-blink 4.6s ease-in-out infinite;
}
html.wk-owner-online body.new-store-page .new-store .site-header .header-inner .brand .brand-icon::after,
html.wk-owner-online body.new-store-page .new-store .site-header .brand .brand-icon.taoke-brand-holder::after,
html.wk-owner-online body.new-store-page .new-store .member-workspace .workspace-header .workspace-brand > span::after,
html.wk-owner-online body.new-store-page .new-store .workspace-brand > span.taoke-brand-holder::after {
  background-image:
    radial-gradient(circle at 76% 76%, #22c55e 0 8%, #ffffff 8.5% 12%, transparent 12.5%),
    url('/assets/taoke-brand-bbf191d6a47d.png') !important;
  background-image:
    radial-gradient(circle at 76% 76%, #22c55e 0 8%, #ffffff 8.5% 12%, transparent 12.5%),
    image-set(url('/assets/taoke-brand-bbf191d6a47d.webp') type('image/webp'), url('/assets/taoke-brand-bbf191d6a47d.png') type('image/png')) !important;
  background-size: 100% 100%, 100% 100% !important;
}
@keyframes tk-owner-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1.5px) scale(1.035); }
}
@keyframes tk-owner-ring {
  0% { outline-color: rgba(35, 138, 155, .55); outline-offset: 0; }
  75% { outline-color: rgba(35, 138, 155, 0); outline-offset: 6px; }
  100% { outline-color: rgba(35, 138, 155, 0); outline-offset: 6px; }
}
@keyframes tk-owner-blink {
  0%, 86%, 100% { transform: scaleY(0); }
  88% { transform: scaleY(1); }
  90% { transform: scaleY(0); }
  94% { transform: scaleY(0); }
  95.5% { transform: scaleY(1); }
  97% { transform: scaleY(0); }
}
@media (prefers-reduced-motion: reduce) {
  html.wk-owner-online body.new-store-page .new-store .site-header .header-inner .brand .brand-icon,
  html.wk-owner-online body.new-store-page .new-store .site-header .brand .brand-icon.taoke-brand-holder,
  html.wk-owner-online body.new-store-page .new-store .member-workspace .workspace-header .workspace-brand > span,
  html.wk-owner-online body.new-store-page .new-store .workspace-brand > span.taoke-brand-holder {
    animation: none !important;
    outline: 2px solid rgba(35, 138, 155, .3) !important;
    outline-offset: 2px !important;
  }
  html.wk-owner-online body.new-store-page .new-store .site-header .header-inner .brand .brand-icon::before,
  html.wk-owner-online body.new-store-page .new-store .site-header .brand .brand-icon.taoke-brand-holder::before,
  html.wk-owner-online body.new-store-page .new-store .member-workspace .workspace-header .workspace-brand > span::before,
  html.wk-owner-online body.new-store-page .new-store .workspace-brand > span.taoke-brand-holder::before {
    animation: none !important;
  }
}

/* Logged-in user avatars: circular, original 淘客 silhouette (not the Wukong monkey). */
html body.new-store-page .user-menu-avatar,
html body .new-store .user-menu-avatar,
html body.new-store-page .workspace-avatar,
html body .new-store .workspace-avatar,
.user-menu-avatar,
.workspace-avatar {
  position: relative !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  color: transparent !important;
  font-size: 0 !important;
  background: #238a9b url('/assets/taoke-user-avatar-961026040075.png') center / cover no-repeat !important;
  box-shadow: none !important;
}
html body.new-store-page .user-menu-avatar::after,
html body .new-store .user-menu-avatar::after,
html body.new-store-page .workspace-avatar::after,
html body .new-store .workspace-avatar::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: 50% !important;
  background: url('/assets/taoke-user-avatar-961026040075.png') center / cover no-repeat !important;
  background-image: image-set(url('/assets/taoke-user-avatar-961026040075.webp') type('image/webp'), url('/assets/taoke-user-avatar-961026040075.png') type('image/png')) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}
.user-menu-avatar > *,
.workspace-avatar > * {
  opacity: 0 !important;
}

/* Header width aligns with catalogue shells (from Wukong header-align). */
html body.new-store-page .new-store .site-header {
  box-sizing: border-box;
  width: min(1160px, calc(100% - 64px)) !important;
  max-width: none !important;
  margin-top: 0 !important;
}
@media (min-width: 1450px) {
  html body.new-store-page .new-store .site-header { width: min(1160px, calc(100% - 100px)) !important; }
}
@media (max-width: 800px) {
  html body.new-store-page .new-store .site-header { width: calc(100% - 40px) !important; }
}
@media (max-width: 580px) {
  html body.new-store-page .new-store .site-header { width: calc(100% - 32px) !important; }
}

/* ========== 4. Order-history search: white rounded capsule, normal height ========== */
html body.new-store-page .new-store section.order-history label.order-history-search,
html body.new-store-page .new-store .member-workspace section.order-history label.order-history-search,
html body.new-store-page .new-store section.order-history label.order-history-search:focus-within,
html body.new-store-page .new-store .member-workspace section.order-history label.order-history-search:focus-within {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 165px;
  flex: 0 1 auto !important;
  width: 230px;
  max-width: 100%;
  height: 44px !important;
  max-height: 44px !important;
  min-height: 44px !important;
  padding: 0 14px 0 12px !important;
  color: #7c97bd;
  background: #fff !important;
  background-color: #fff !important;
  border: 1px solid #d7e3f2 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  outline: none !important;
  box-sizing: border-box;
}
html body.new-store-page .new-store section.order-history label.order-history-search:focus-within,
html body.new-store-page .new-store .member-workspace section.order-history label.order-history-search:focus-within {
  border-color: #5e96ec !important;
  box-shadow: 0 0 0 3px rgba(25, 89, 233, 0.12) !important;
}
html body.new-store-page .new-store section.order-history label.order-history-search > svg,
html body.new-store-page .new-store .member-workspace section.order-history label.order-history-search > svg {
  flex: 0 0 auto !important;
  width: 16px;
  height: 16px;
  color: inherit;
}
html body.new-store-page .new-store section.order-history label.order-history-search input,
html body.new-store-page .new-store section.order-history label.order-history-search input:focus,
html body.new-store-page .new-store section.order-history label.order-history-search input:focus-visible,
html body.new-store-page .new-store section.order-history label.order-history-search input[type="search"],
html body.new-store-page .new-store .member-workspace section.order-history label.order-history-search input,
html body.new-store-page .new-store .member-workspace section.order-history label.order-history-search input:focus,
html body.new-store-page .new-store .member-workspace section.order-history label.order-history-search input:focus-visible,
html body.new-store-page .new-store .member-workspace section.order-history label.order-history-search input[type="search"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100%;
  min-width: 0;
  padding: 0 !important;
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  height: 42px !important;
  max-height: 42px !important;
  min-height: 0 !important;
  line-height: normal !important;
  color: #2b4b78 !important;
  font: inherit;
  font-size: 12px;
}
html body.new-store-page .new-store section.order-history label.order-history-search input[type="search"]::-webkit-search-decoration,
html body.new-store-page .new-store section.order-history label.order-history-search input[type="search"]::-webkit-search-cancel-button,
html body.new-store-page .new-store section.order-history label.order-history-search input[type="search"]::-webkit-search-results-button,
html body.new-store-page .new-store section.order-history label.order-history-search input[type="search"]::-webkit-search-results-decoration,
html body.new-store-page .new-store .member-workspace section.order-history label.order-history-search input[type="search"]::-webkit-search-decoration,
html body.new-store-page .new-store .member-workspace section.order-history label.order-history-search input[type="search"]::-webkit-search-cancel-button,
html body.new-store-page .new-store .member-workspace section.order-history label.order-history-search input[type="search"]::-webkit-search-results-button,
html body.new-store-page .new-store .member-workspace section.order-history label.order-history-search input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: none !important;
}
@media (max-width: 1050px) {
  html body.new-store-page .new-store section.order-history label.order-history-search,
  html body.new-store-page .new-store .member-workspace section.order-history label.order-history-search,
  html body.new-store-page .new-store section.order-history label.order-history-search:focus-within,
  html body.new-store-page .new-store .member-workspace section.order-history label.order-history-search:focus-within {
    flex: 0 0 auto !important;
    width: 100%;
    min-width: 0;
  }
}

/* Public 订单查询 / checkout contact fields: white rounded capsules, normal height (not tall ellipses). */
html body.new-store-page .new-store .checkout-card label.checkout-contact input,
html body.new-store-page .new-store .checkout-card label.checkout-contact input:focus,
html body.new-store-page .new-store .lookup-page label.checkout-contact input,
html body.new-store-page .new-store .lookup-panel label.checkout-contact input {
  height: 44px !important;
  max-height: 44px !important;
  min-height: 44px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid #d7e3f2 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
html body.new-store-page .new-store .checkout-card label.checkout-contact input:focus,
html body.new-store-page .new-store .lookup-page label.checkout-contact input:focus,
html body.new-store-page .new-store .lookup-panel label.checkout-contact input:focus {
  border-color: #5e96ec !important;
  box-shadow: 0 0 0 3px rgba(25, 89, 233, 0.12) !important;
}

/* ========== 5. Customer-order delivery: 卡密 one line, copy on the right; 充值网址 left-adjacent ========== */
html body.new-store-page .new-store .delivered-cards > div:not(.delivery-recharge-row):not(.delivered-qr-card):not(.delivered-cards-footer),
body.new-store-page .new-store .delivered-cards.delivered-cards.delivered-cards > div:not(.delivery-recharge-row):not(.delivered-qr-card) {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}
html body.new-store-page .new-store .delivered-cards > div:not(.delivery-recharge-row) > span {
  min-width: 0;
  flex: 1 1 auto;
}
body.new-store-page .new-store .delivered-cards.delivered-cards.delivered-cards > div:not(.delivery-recharge-row) > span > .delivery-card-label {
  display: inline !important;
  margin-right: 6px !important;
  vertical-align: baseline;
}
body.new-store-page .new-store .delivered-cards.delivered-cards.delivered-cards > div:not(.delivery-recharge-row) > span > code,
html body.new-store-page .new-store .delivered-cards code {
  display: inline !important;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  vertical-align: baseline;
}
html body.new-store-page .new-store .delivered-cards > div:not(.delivery-recharge-row) > button {
  flex: 0 0 auto !important;
  margin-left: auto;
}
body.new-store-page .new-store .delivered-cards.delivered-cards.delivered-cards > .delivery-recharge-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: baseline !important;
  gap: 6px !important;
  text-align: left !important;
}
body.new-store-page .new-store .delivered-cards.delivered-cards.delivered-cards > .delivery-recharge-row > .delivery-recharge-label {
  flex: 0 0 auto !important;
  width: auto !important;
}
body.new-store-page .new-store .delivered-cards.delivered-cards.delivered-cards > .delivery-recharge-row > .delivery-recharge-url {
  flex: 1 1 12em !important;
  min-width: 0 !important;
  text-align: left !important;
}
/* Do not restyle product-detail .recharge-link 「点我充值」. */

/* ========== 6. Checkout payment methods as side-by-side cards; keep closed WeChat hidden ========== */
html body.new-store-page .new-store .checkout-card .payment-choice,
html body.new-store-page .new-store .checkout-page .payment-choice,
html body.new-store-page .new-store .purchase-refresh .payment-choice {
  display: block !important;
  min-height: 0 !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 0 14px !important;
}
html body.new-store-page .new-store .checkout-card .payment-choice > span,
html body.new-store-page .new-store .checkout-page .payment-choice > span,
html body.new-store-page .new-store .purchase-refresh .payment-choice > span {
  display: block !important;
  font-size: 13px !important;
  font-weight: 650;
  color: #174054 !important;
  margin: 0 0 12px !important;
}
html body.new-store-page .new-store .checkout-card .payment-choice > div,
html body.new-store-page .new-store .checkout-page .payment-choice > div,
html body.new-store-page .new-store .purchase-refresh .payment-choice > div,
html body.new-store-page .new-store .checkout-card .payment-choice [role="radiogroup"],
html body.new-store-page .new-store .checkout-page .payment-choice [role="radiogroup"] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100%;
}
html body.new-store-page .new-store .checkout-card .payment-choice [role="radio"],
html body.new-store-page .new-store .checkout-page .payment-choice [role="radio"],
html body.new-store-page .new-store .purchase-refresh .payment-choice [role="radio"],
html body.new-store-page .new-store .checkout-card .payment-choice button {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-height: 76px !important;
  text-align: left !important;
  border-radius: 16px !important;
  padding: 14px 14px !important;
  background: #fff !important;
  border: 1px solid #d4e5eb !important;
  color: #174054 !important;
  box-shadow: 0 2px 8px rgba(23, 64, 84, .05) !important;
  position: relative;
  cursor: pointer;
}
html body.new-store-page .new-store .checkout-card .payment-choice [role="radio"].active,
html body.new-store-page .new-store .checkout-card .payment-choice [role="radio"][aria-checked="true"],
html body.new-store-page .new-store .checkout-page .payment-choice [role="radio"].active,
html body.new-store-page .new-store .checkout-page .payment-choice [role="radio"][aria-checked="true"] {
  background: #e8f6f6 !important;
  border-color: #238a9b !important;
  color: #174054 !important;
  box-shadow: 0 0 0 1px #238a9b inset !important;
}
html body.new-store-page .new-store .checkout-card .payment-choice [role="radio"] > span:not(.payment-provider-mark) {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}
html body.new-store-page .new-store .checkout-card .payment-choice small {
  font-size: 10px;
  font-weight: 400;
  display: block;
  white-space: normal;
  margin: 0;
}
html body.new-store-page .new-store .checkout-card .payment-choice button:has(.payment-provider-mark.wechat),
html body.new-store-page .new-store .checkout-page .payment-choice button:has(.payment-provider-mark.wechat),
html body.new-store-page .new-store .payment-choice .payment-provider-mark.wechat {
  display: none !important;
}
html body.new-store-page .new-store .checkout-card .payment-choice button:has(.payment-provider-mark.wechat) {
  display: none !important;
}

/* ========== 7. Keep footer hidden ========== */
body.new-store-page .new-store footer.site-footer,
body.new-store-page .new-store .site-footer-compact {
  display: none !important;
}

/* ========== 8. Light logged-in / access-page polish (public + what we can do without admin screenshots) ========== */
html body.new-store-page .new-store .member-workspace .shop-settings > :is(.shop-summary, .shop-panel) {
  background: rgba(235, 255, 252, .94) !important;
  border-color: rgba(98, 169, 177, .38) !important;
  box-shadow: 0 7px 20px rgba(25, 91, 104, .08) !important;
}
