/* DTC Corporate UI icon and control system */
:root{
  --corp-icon:#3157e5;
  --corp-icon-muted:#667085;
  --corp-icon-bg:#eef3ff;
  --corp-icon-border:#dbe4f5;
  --corp-control-radius:9px;
}
.corp-icon{width:1em;height:1em;display:inline-block;vertical-align:-.14em;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.corp-icon-wrap{display:inline-flex;align-items:center;justify-content:center;line-height:1;color:currentColor}
.corp-icon-wrap + .corp-icon-wrap{margin-left:.12em}
button .corp-icon-wrap,.btn .corp-icon-wrap,a.btn .corp-icon-wrap,.action-btn .corp-icon-wrap,.approve-btn .corp-icon-wrap,.decline-btn .corp-icon-wrap{margin-right:.38rem}
button,.btn,.action-btn,.approve-btn,.decline-btn{font-variant-emoji:text;letter-spacing:normal}

/* Admin navigation */
.sidebar .nav-item{border-radius:9px;margin:2px 8px;padding:.52rem .62rem;gap:.62rem;min-height:42px;font-weight:600;letter-spacing:-.005em}
.sidebar .nav-item .icon{width:30px;height:30px;border-radius:8px;background:transparent;border:1px solid transparent;color:#75819a;display:inline-flex;align-items:center;justify-content:center;font-size:15px;flex:0 0 30px;transition:background .18s,border-color .18s,color .18s}
.sidebar .nav-item .icon .corp-icon{width:16px;height:16px}
.sidebar .nav-item:hover .icon{background:#f4f7fc;border-color:#e4eaf3;color:#3e5f9d}
.sidebar .nav-item.active .icon{background:var(--corp-icon-bg);border-color:var(--corp-icon-border);color:var(--corp-icon)}
.sidebar .nav-sec{font-size:.58rem;letter-spacing:.12em;color:#98a2b3;font-weight:700;padding-left:1rem;margin-bottom:.22rem}
.sidebar .nav-item.active{background:#f7f9fd;box-shadow:inset 3px 0 0 var(--corp-icon);color:#1d2b46}
.sidebar .nav-item::before{display:none!important}
.mob-btn{align-items:center;gap:.45rem}

/* Corporate button treatment */
.btn,.action-btn,.approve-btn,.decline-btn,.copy-btn,.xbtn,.portal-shop-submit,.portal-shop-coupon button,.chat-send-btn,.admin-chat-send{
  border-radius:var(--corp-control-radius)!important;
  box-shadow:none!important;
  animation:none!important;
}
.btn:hover,.action-btn:hover,.approve-btn:hover,.decline-btn:hover{transform:translateY(-1px)!important}
.btn:active,.action-btn:active,.approve-btn:active,.decline-btn:active{transform:none!important}
.approve-btn{background:#eef8f3!important;border-color:#b7e2ca!important;color:#176b43!important}
.decline-btn{background:#fff5f5!important;border-color:#efc4c8!important;color:#a63745!important}

/* Common icon containers */
.portal-menu-icon,.upload-icon,.search-icon,.empty-icon,.trust-icon,.audit-summary-icon,.success-icon,.state-icon,.input-icon,.post-section-icon,.float-icon,.portal-shop-upload-icon,.portal-shop-success-icon,.success-check{
  font-size:0!important;
  color:var(--corp-icon)!important;
  background:var(--corp-icon-bg)!important;
  border:1px solid var(--corp-icon-border)!important;
  border-radius:9px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.portal-menu-icon .corp-icon,.upload-icon .corp-icon,.search-icon .corp-icon,.empty-icon .corp-icon,.trust-icon .corp-icon,.audit-summary-icon .corp-icon,.success-icon .corp-icon,.state-icon .corp-icon,.input-icon .corp-icon,.post-section-icon .corp-icon,.float-icon .corp-icon,.portal-shop-upload-icon .corp-icon,.portal-shop-success-icon .corp-icon,.success-check .corp-icon{width:17px;height:17px}
.portal-menu-icon{width:30px!important;height:30px!important}
.portal-account-menu .danger .portal-menu-icon{background:#fff5f5!important;border-color:#f3d1d5!important;color:#ad3544!important}

/* Status symbols are restrained and semantic */
.badge .corp-icon,.pill .corp-icon,.stage-pill .corp-icon,.exp-flag .corp-icon,.viz-badge .corp-icon{width:12px;height:12px;margin-right:.25rem}
.corp-status-success{color:#18794e}
.corp-status-warning{color:#a15c00}
.corp-status-error{color:#b42335}

/* Product/shop visual polish */
.hero-actions .btn,.nav-actions .btn{min-height:40px;padding-inline:1rem}
.product-card,.portal-shop-card,.card,.cust-card{box-shadow:0 6px 18px rgba(25,42,77,.055)!important}
.product-card:hover,.portal-shop-card:hover,.cust-card:hover{box-shadow:0 10px 28px rgba(25,42,77,.09)!important}
.hero-showcase .secure-core{background:#fff!important;border:1px solid #d8e2f3!important;color:var(--corp-icon)!important;box-shadow:0 18px 50px rgba(38,76,150,.12)!important}
.hero-showcase .secure-core .corp-icon{width:34px;height:34px}

/* Native options cannot contain SVG; keep labels clean */
option{font-variant-emoji:text}

/* Reduce decorative motion for a corporate interface */
.shine::after,.button-shine,.sparkle,.sparkles{display:none!important}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}


/* Admin SVG consistency — no emoji-style interface icons */
.admin-menu-icon,.security-lock-icon,.bulk-recipient-search-icon,.audit-input-icon>span,.keys-search-field>span,.referral-assign-security>span,.dtc-availability-checkbox,.product-payment-box{
  font-size:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.admin-menu-icon .corp-icon{width:15px;height:15px}
.security-lock-icon .corp-icon{width:22px;height:22px}
.bulk-recipient-search-icon .corp-icon,.audit-input-icon>span .corp-icon,.keys-search-field>span .corp-icon{width:15px;height:15px}
.referral-assign-security>span .corp-icon{width:18px;height:18px}
.dtc-availability-checkbox .corp-icon,.product-payment-box .corp-icon{width:13px;height:13px}
.modal-section-label .corp-icon-wrap,.card-title .corp-icon-wrap{margin-right:.4rem}
.dashboard-professional-icon{display:inline-flex;align-items:center;justify-content:center;color:currentColor}
.dashboard-professional-icon .corp-icon{width:13px;height:13px}

/* ─── Shop reviews + product logo showcase admin ─────────────────────────── */
.shop-social-proof-card{overflow:visible}
.shop-showcase-panel{border:1px solid var(--border);background:#fbfdff;border-radius:14px;padding:1rem;margin-top:.85rem}
.shop-showcase-panel+.shop-showcase-panel{margin-top:1rem}
.shop-showcase-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.9rem}
.shop-showcase-panel-head strong{display:block;font-size:.86rem;color:var(--text)}
.shop-showcase-panel-head small{display:block;margin-top:.22rem;color:var(--muted);font-size:.69rem;line-height:1.5}
.shop-admin-toggle{display:flex;align-items:center;gap:.5rem;min-height:42px;padding:.55rem .7rem;border:1px solid var(--border);border-radius:10px;background:#fff;font-size:.73rem;font-weight:750;color:var(--text)}
.shop-admin-toggle input{width:16px;height:16px}
.shop-admin-note{margin:.65rem 0 .85rem;padding:.7rem .8rem;border:1px solid #d9e6f7;border-radius:10px;background:#f3f8ff;color:#60738a;font-size:.68rem;line-height:1.55}
.shop-review-editor,.shop-logo-editor{display:grid;gap:.7rem}
.shop-review-row{display:grid;grid-template-columns:78px minmax(0,1fr);gap:.8rem;padding:.8rem;border:1px solid var(--border);border-radius:12px;background:#fff}
.shop-review-photo{width:70px;height:70px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#edf4ff;color:#155eef;font-weight:900;border:1px solid #d9e5f4}
.shop-review-photo img{width:100%;height:100%;object-fit:cover;display:block}
.shop-review-fields{min-width:0}
.shop-review-top{display:grid;grid-template-columns:1.1fr .9fr 120px auto;gap:.55rem;align-items:end}
.shop-review-actions{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin-top:.55rem}
.shop-review-actions input[type=file]{display:none}
.shop-review-row textarea{min-height:78px}
.shop-logo-editor{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:.85rem}
.shop-logo-row{display:grid;grid-template-columns:74px minmax(0,1fr);gap:.75rem;align-items:center;padding:.75rem;border:1px solid var(--border);border-radius:12px;background:#fff}
.shop-logo-preview{width:66px;height:66px;border:1px solid #dce5f1;border-radius:12px;background:#f8fafc;display:grid;place-items:center;overflow:hidden;padding:6px}
.shop-logo-preview img,.shop-logo-preview svg{width:100%;height:100%;object-fit:contain;display:block}
.shop-logo-info{min-width:0}
.shop-logo-name{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-bottom:.45rem}
.shop-logo-name strong{font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shop-logo-controls{display:flex;gap:.45rem;align-items:center;flex-wrap:wrap;margin-top:.45rem}
.shop-logo-controls input[type=file]{display:none}
.shop-logo-url{font-size:.68rem;padding:.48rem .55rem}
@media(max-width:900px){
  .shop-logo-editor{grid-template-columns:1fr}
  .shop-review-top{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .shop-showcase-panel{padding:.75rem}
  .shop-showcase-panel-head{flex-direction:column}
  .shop-review-row{grid-template-columns:1fr}
  .shop-review-photo{width:60px;height:60px}
  .shop-review-top{grid-template-columns:1fr}
  .shop-logo-row{grid-template-columns:58px minmax(0,1fr);padding:.65rem}
  .shop-logo-preview{width:52px;height:52px}
}

/* ─── Shop showcase controls — professional switches / local save actions ── */
.shop-panel-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}
.shop-panel-actions .btn{display:inline-flex;align-items:center;gap:.38rem}
.shop-control-grid{display:grid;grid-template-columns:minmax(210px,1fr) minmax(210px,1fr) minmax(180px,.75fr);gap:.7rem;align-items:stretch;margin-bottom:.9rem}
.shop-control-number{margin:0;justify-content:center;padding:.62rem .72rem;border:1px solid var(--border);border-radius:12px;background:#fff}
.shop-control-number input{margin-top:.35rem}
.shop-switch-card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.72rem;min-height:66px;padding:.7rem .78rem;border:1px solid var(--border);border-radius:12px;background:#fff;cursor:pointer;user-select:none;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.shop-switch-card:hover{border-color:#bfd1ec;background:#fcfdff}
.shop-switch-input{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;pointer-events:none!important}
.shop-switch-ui{position:relative;width:44px;height:25px;border-radius:999px;background:#cbd5e1;box-shadow:inset 0 0 0 1px rgba(15,23,42,.06);transition:background .2s ease,box-shadow .2s ease;flex:0 0 auto}
.shop-switch-ui::after{content:"";position:absolute;top:3px;left:3px;width:19px;height:19px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(15,23,42,.22);transition:transform .2s ease}
.shop-switch-input:checked + .shop-switch-ui{background:var(--blue);box-shadow:0 0 0 3px rgba(37,99,235,.10)}
.shop-switch-input:checked + .shop-switch-ui::after{transform:translateX(19px)}
.shop-switch-input:focus-visible + .shop-switch-ui{outline:3px solid rgba(37,99,235,.24);outline-offset:3px}
.shop-switch-copy{min-width:0;display:block}
.shop-switch-copy strong{display:block;color:var(--text);font-size:.76rem;line-height:1.25}
.shop-switch-copy small{display:block;margin-top:.2rem;color:var(--muted);font-size:.64rem;line-height:1.4;font-weight:500}
.shop-inline-save-status{display:none;margin:.15rem 0 .75rem;padding:.56rem .7rem;border-radius:9px;font-size:.68rem;font-weight:700;line-height:1.4}
.shop-inline-save-status.show{display:block}
.shop-inline-save-status.ok{border:1px solid var(--success-border);background:var(--success-bg);color:var(--success)}
.shop-inline-save-status.error{border:1px solid var(--error-border);background:var(--error-bg);color:var(--error)}
.shop-inline-save-status.info{display:block;border:1px solid var(--blue-mid);background:var(--blue-light);color:var(--blue-dark)}
.shop-review-top .shop-switch-card{min-height:58px;padding:.55rem .62rem;align-self:end}
.shop-review-top .shop-switch-ui{width:40px;height:23px}
.shop-review-top .shop-switch-ui::after{width:17px;height:17px}
.shop-review-top .shop-switch-input:checked + .shop-switch-ui::after{transform:translateX(17px)}
.shop-review-actions .btn.btn-primary,.shop-logo-controls .btn.btn-primary{min-width:96px}
.shop-logo-name .shop-switch-card{min-height:34px;padding:.3rem .46rem;gap:.42rem;border-radius:9px}
.shop-logo-name .shop-switch-ui{width:36px;height:21px}
.shop-logo-name .shop-switch-ui::after{width:15px;height:15px}
.shop-logo-name .shop-switch-input:checked + .shop-switch-ui::after{transform:translateX(15px)}
.shop-logo-name .shop-switch-copy strong{font-size:.68rem}
.shop-logo-name .shop-switch-copy small{display:none}
.shop-checkbox-grid{display:grid;grid-template-columns:repeat(3,minmax(170px,1fr));gap:.6rem;margin-bottom:.9rem}
.shop-check-card{position:relative;display:flex;align-items:center;gap:.55rem;min-height:44px;padding:.58rem .68rem;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--text);font-size:.72rem;font-weight:700;cursor:pointer;user-select:none;transition:border-color .18s ease,background .18s ease}
.shop-check-card:hover{border-color:#bfd1ec;background:#fcfdff}
.shop-check-card input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.shop-check-ui{position:relative;width:18px;height:18px;flex:0 0 18px;border:1.5px solid #b8c5d8;border-radius:5px;background:#fff;transition:.18s ease}
.shop-check-card input:checked + .shop-check-ui{border-color:var(--blue);background:var(--blue)}
.shop-check-card input:checked + .shop-check-ui::after{content:"";position:absolute;left:5px;top:2px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.shop-check-card input:focus-visible + .shop-check-ui{outline:3px solid rgba(37,99,235,.22);outline-offset:2px}
@media(max-width:900px){
  .shop-control-grid{grid-template-columns:1fr 1fr}
  .shop-control-number{grid-column:1/-1}
  .shop-checkbox-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}
}
@media(max-width:620px){
  .shop-panel-actions{width:100%;justify-content:flex-start}
  .shop-control-grid{grid-template-columns:1fr}
  .shop-control-number{grid-column:auto}
  .shop-switch-card{min-height:60px}
  .shop-checkbox-grid{grid-template-columns:1fr 1fr;gap:.5rem}
  .shop-check-card{min-height:42px;padding:.52rem .58rem;font-size:.68rem}
}
