/* TELEGRAM-MS independent public catalog identity — full-surface CSS add-on v2 (2026-10-20)
   Only loaded inside public catalogs bearing .independent-storefront.
   Does not change admin, behavior, status messages or other services. */
body.independent-storefront {
  --cb-edge: color-mix(in srgb, var(--cb-secondary) 18%, transparent);
  --cb-edge-strong: color-mix(in srgb, var(--cb-primary) 40%, transparent);
  --cb-soft: color-mix(in srgb, var(--cb-primary) 9%, var(--cb-surface));
  --cb-muted: color-mix(in srgb, var(--cb-text) 72%, var(--cb-surface));
  --cb-surface-2: color-mix(in srgb, var(--cb-bg) 58%, var(--cb-surface));
  --cb-shadow: color-mix(in srgb, var(--cb-secondary) 17%, transparent);
  background:var(--cb-bg); color:var(--cb-text);
  font-family:var(--cb-font);
}

body.independent-storefront :is(button,input,select,textarea) { font-family:inherit; }
body.independent-storefront :is(button,a,input,select,textarea):focus-visible {
  outline:2px solid var(--cb-primary); outline-offset:2px;
}
/* Header and its mobile actions; old responsive CSS used !important. */


body.independent-storefront .identity .store-name small {color:var(--cb-muted)}
body.independent-storefront .catalog-nav-actions button,
body.independent-storefront .catalog-nav-actions :is(.favorites-toggle,.theme-toggle,.cart-trigger) {
  background:var(--cb-secondary)!important;
  border:1px solid var(--cb-edge-strong)!important;
  color:var(--cb-secondary-ink)!important;
}
body.independent-storefront .catalog-nav-actions button:is(:hover,:focus-visible) {
  filter:brightness(1.07);
}
body.independent-storefront .catalog-nav-actions .favorites-toggle.active {
  background:var(--cb-primary)!important;color:var(--cb-ink)!important;
}
body.independent-storefront .nav-hint {color:var(--cb-muted)}
/* The hero (including mobile's image column and CTA) stays within merchant colors. */

body.independent-storefront .hero :is(h1,p,.eyebrow,.hero-trust) {color:inherit}
body.independent-storefront .hero .live-dot {background:var(--cb-primary)}
body.independent-storefront .hero-art {background:var(--cb-soft)}
body.independent-storefront .hero-art-icon {color:var(--cb-primary);text-shadow:none}
body.independent-storefront .mobile-hero-cta {
  background:var(--cb-primary); color:var(--cb-ink);
  border:1px solid var(--cb-edge-strong);
}


/* Mobile sections & categories; the former hard-coded white on dark layout. */

body.independent-storefront .section-head .eyebrow {color:var(--cb-primary)!important}
body.independent-storefront .mobile-category-all {color:var(--cb-primary)}
body.independent-storefront .mobile-cat-card,
body.independent-storefront .promo,
body.independent-storefront .product,
body.independent-storefront .filters {
  background:var(--cb-surface);color:var(--cb-text);
  border-color:var(--cb-edge);
  box-shadow:0 8px 25px var(--cb-shadow);
}
body.independent-storefront .mobile-cat-card small,
body.independent-storefront .product-code,
body.independent-storefront .filters label,
body.independent-storefront .pagination span {color:var(--cb-muted)}
body.independent-storefront :is(.mobile-cat-card img,.mobile-cat-card .cat-fallback,.product-photo,.cart-line-photo,.gallery-stage) {
  background:var(--cb-surface-2); color:var(--cb-text);
}
body.independent-storefront .product-category,
body.independent-storefront .product-meta span,
body.independent-storefront .stock-tag {
  background:var(--cb-soft)!important;color:var(--cb-text)!important;
  border-color:var(--cb-edge);
}
body.independent-storefront :is(.product-name,.product-copy,.product-selections label) {color:var(--cb-text)}
body.independent-storefront :is(.product-price,.search>span) {color:var(--cb-primary)}
body.independent-storefront :is(.filters input,.filters select,.product-selections select,.clear,.pagination button) {
  background:var(--cb-surface);color:var(--cb-text);border-color:var(--cb-edge);
}
body.independent-storefront .product-utility button,
body.independent-storefront .ms-reaction-main,
body.independent-storefront .ms-reaction-picker:not([hidden]) {
  background:var(--cb-soft); color:var(--cb-text);border-color:var(--cb-edge);
}
body.independent-storefront :is(.wa-btn,.add-cart,.checkout-btn,.lead-save,.cart-trigger,#catalogPromoLink,.commerce-catalog-banner) {
  background:var(--cb-primary);color:var(--cb-ink);
}
body.independent-storefront .gallery-thumbs button.active {border-color:var(--cb-primary)}
body.independent-storefront .image-count {background:var(--cb-secondary);color:var(--cb-secondary-ink)}
body.independent-storefront .product-photo:after {background:var(--cb-primary)}
/* Mobile bottom navigation and three service bubbles shown in the screenshot. */
body.independent-storefront .mobile-bottom-nav {
  background:var(--cb-secondary);border-top-color:var(--cb-edge-strong);
  box-shadow:0 -5px 22px var(--cb-shadow);
}
body.independent-storefront .mobile-bottom-nav button {
  color:var(--cb-secondary-ink);background:transparent;
}
body.independent-storefront .mobile-bottom-nav button.active {
  color:var(--cb-ink);background:var(--cb-primary);
}
body.independent-storefront .catalog-mobile-floats button,
body.independent-storefront .catalog-mobile-floats .mobile-chat-launch,
body.independent-storefront .catalog-mobile-floats .mobile-install-btn,
body.independent-storefront .floating-cart.catalog-float-icon {
  background:var(--cb-primary)!important;color:var(--cb-ink)!important;
  border-color:var(--cb-edge-strong)!important;
  box-shadow:0 8px 24px var(--cb-shadow)!important;
}
body.independent-storefront .catalog-mobile-floats .mobile-notify-btn {
  background:var(--cb-secondary)!important;color:var(--cb-secondary-ink)!important;
}
body.independent-storefront .floating-cart .float-counter {
  background:var(--cb-surface);color:var(--cb-text);border-color:var(--cb-primary);
}
body.independent-storefront .catalog-back-to-top {
  background:var(--cb-primary);color:var(--cb-ink);border-color:var(--cb-edge-strong);
}
/* Gallery, cart, chat, pop-ups, lead collection, and toast: public brand, not platform. */
body.independent-storefront :is(.gallery-box,.cart-panel,.lead-modal-content,.catalog-promo-panel,.catalog-chat-window) {
  background:var(--cb-surface);color:var(--cb-text);border-color:var(--cb-edge);
}
body.independent-storefront :is(.gallery-close,.gallery-stage button,.gallery-thumbs button,.lead-close,.lead-skip,.catalog-promo-dismiss,.catalog-promo-close) {
  background:var(--cb-soft);color:var(--cb-text);border-color:var(--cb-edge);
}
body.independent-storefront :is(.lead-kicker,.gallery-counter,.lead-modal-content p,.lead-check,.chat-privacy) {color:var(--cb-muted)}
body.independent-storefront .lead-optin-link,
body.independent-storefront .chat-privacy,
body.independent-storefront .save-cart-box,
body.independent-storefront .chat-reply-alerts {
  background:var(--cb-soft);color:var(--cb-text);border-color:var(--cb-edge);
}
body.independent-storefront .lead-optin-link small,
body.independent-storefront .chat-reply-alerts small,
body.independent-storefront .chat-media-tools small {color:var(--cb-muted)}
body.independent-storefront .lead-optin-link button,
body.independent-storefront .chat-reply-alerts button,
body.independent-storefront .chat-media-tools button,
body.independent-storefront .chat-file-pick,
body.independent-storefront #catalogChatForm button,
body.independent-storefront .catalog-promo-image-retry {
  background:var(--cb-primary); color:var(--cb-ink);border-color:var(--cb-edge-strong);
}
body.independent-storefront .catalog-chat-window header {
  background:var(--cb-secondary);color:var(--cb-secondary-ink);
}
body.independent-storefront .catalog-chat-window header small {color:inherit;opacity:.78}
body.independent-storefront .catalog-chat-window header button {color:inherit}
body.independent-storefront .catalog-chat-messages {background:var(--cb-surface)}
body.independent-storefront .catalog-chat-messages p {color:var(--cb-muted)}
body.independent-storefront .catalog-chat-bubble {background:var(--cb-soft);color:var(--cb-text)}
body.independent-storefront .catalog-chat-bubble.visitor {background:var(--cb-primary);color:var(--cb-ink)}
body.independent-storefront :is(#catalogChatForm,.chat-media-tools,.chat-reply-alerts) {
  background:var(--cb-surface);border-color:var(--cb-edge);
}
body.independent-storefront :is(#catalogChatInput,#catalogChatForm input,.lead-form input,.checkout-field input,.checkout-field textarea,.save-cart-box input) {
  background:var(--cb-surface);color:var(--cb-text);border-color:var(--cb-edge);
}
body.independent-storefront .catalog-chat-reply-toast,
body.independent-storefront .catalog-feedback-toast {background:var(--cb-secondary);color:var(--cb-secondary-ink);border-color:var(--cb-edge-strong)}
body.independent-storefront .catalog-scroll-progress {background:var(--cb-primary)}
body.independent-storefront .promo-caption {background:var(--cb-secondary);color:var(--cb-secondary-ink)}
body.independent-storefront .footer,
body.independent-storefront footer {background:var(--cb-surface);color:var(--cb-text);border-color:var(--cb-edge)}
body.independent-storefront .footer span {color:var(--cb-muted)}
/* Security/error state uses original semantic reds; preserve these deliberately. */
@media (max-width:700px){
  body.independent-storefront {background:var(--cb-bg);color:var(--cb-text)}
  body.independent-storefront .header {background:var(--cb-surface)}
  body.independent-storefront :is(.mobile-category-section,.catalog-area,.promos) .section-head h2 {color:var(--cb-text)}
  body.independent-storefront .filters {background:var(--cb-surface)}
}
@media (prefers-reduced-motion:reduce){
  body.independent-storefront .mobile-bottom-nav button,
  body.independent-storefront .catalog-mobile-floats button {transition:none!important}
}
