/* =========================================================
   Seller Dashboard – mobile table readability + minor polish
   Scope: .cgs-mp-seller-dashboard
   ========================================================= */

:root{
  --cgs-mp-brown:#6f605b;
  --cgs-mp-orange:#f36527;
  --cgs-mp-border: rgba(0,0,0,.16);
}

/* Legacy Marketplace header-mode contract */
header .cgs-mp-nav{
  display: none !important;
}

body.cgs-mp-mode header .cgs-mp-nav{
  display: block !important;
}

body.cgs-mp-mode .cgs-header-actionbar{
  display: none !important;
}

@supports selector(.x:has(.y)){
  body.cgs-mp-mode header .uagb-layout-flex:has(> .cgs-mp-nav--public){
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 8px 12px !important;
    overflow: visible !important;
    width: 100%;
  }

  body.cgs-mp-mode header .uagb-layout-flex:has(> .cgs-mp-nav--public) > .cgs-mp-nav--public{
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    margin: 0 !important;
  }

  body.cgs-mp-mode header .uagb-layout-flex:has(> .cgs-mp-nav--public) > .wp-block-uagb-container{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100%;
    min-width: 0;
    gap: 10px;
    overflow: visible !important;
  }

  body.cgs-mp-mode header .uagb-layout-flex:has(> .cgs-mp-nav--public) > .wp-block-uagb-container > p{
    display: contents;
    margin: 0;
    padding: 0;
  }

  body.cgs-mp-mode header .cgs-mp-nav--public .cgs-mp-nav__inner{
    justify-content: center;
    padding: 0;
    width: auto;
  }

  body.cgs-mp-mode header .cgs-mp-nav--public .cgs-mp-nav__left{
    justify-content: center;
    width: auto;
  }

  body.cgs-mp-mode header .cgs-mp-seller-cta,
  body.cgs-mp-mode header .cgs-mp-cartbar{
    flex: 0 0 auto;
  }

  body.cgs-mp-mode header .cgs-mp-seller-cta__pill{
    white-space: nowrap;
  }

  @media (max-width: 640px){
    body.cgs-mp-mode header .uagb-layout-flex:has(> .cgs-mp-nav--public){
      flex-wrap: wrap !important;
    }
  }
}

.cgs-mp-seller-dashboard .cgs-table td,
.cgs-mp-seller-dashboard .cgs-table th{
  vertical-align: middle;
}

.cgs-mp-seller-dashboard .cgs-table td a{
  font-weight: 800;
  text-decoration: none;
}

.cgs-mp-seller-dashboard .cgs-table td a:hover{
  text-decoration: underline;
}

/* Mobile card rows */
@media (max-width: 720px){
  .cgs-mp-seller-dashboard .cgs-table thead{ display:none; }

  .cgs-mp-seller-dashboard .cgs-table,
  .cgs-mp-seller-dashboard .cgs-table tbody,
  .cgs-mp-seller-dashboard .cgs-table tr,
  .cgs-mp-seller-dashboard .cgs-table td{
    display:block;
    width:100%;
  }

  .cgs-mp-seller-dashboard .cgs-table tr{
    border:1px solid rgba(0,0,0,.12);
    border-radius:12px;
    padding:10px 12px;
    margin:10px 0;
    background:#fff;
  }

  .cgs-mp-seller-dashboard .cgs-table td{
    padding:6px 0;
    border:none;
    word-break: break-word;
  }

  .cgs-mp-seller-dashboard .cgs-table td:before{
    content: attr(data-label) ": ";
    font-weight:800;
    opacity:.75;
  }

  .cgs-mp-seller-dashboard .cgs-mp-od-right{
    text-align:left !important;
  }

  .cgs-mp-seller-dashboard .cgs-button{
    margin: 4px 6px 4px 0;
  }
}

/* =========================================================
   Marketplace layout + wrappers
   ========================================================= */

.cgs-mp-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 12px;
}

.cgs-mp-wrap > h2{
  margin: 0 0 10px;
  line-height: 1.2;
}

/* Ensure global .cgs-mp-card base doesn't affect product cards */
.cgs-mp-card--product{
  padding: 0;
  margin: 0;
}

.cgs-mp-card .wpdt-c{
  margin-top: 6px;
}

.cgs-mp-toast{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000000;
  max-width: min(320px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(17, 24, 39, .96);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.cgs-mp-toast.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.cgs-mp-pending-banner{
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(243,101,39,.22);
  background: linear-gradient(180deg, #fff8f2 0%, #fbf5ee 100%);
  box-shadow: 0 10px 24px rgba(111,96,91,.08);
}

.cgs-mp-pending-banner__eyebrow,
.cgs-mp-pending-panel__eyebrow{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cgs-mp-orange);
  margin-bottom: 8px;
}

.cgs-mp-pending-banner__title,
.cgs-mp-pending-panel__title{
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
  color: #1f1a17;
}

.cgs-mp-pending-banner__text,
.cgs-mp-pending-panel__text{
  margin: 0;
  color: rgba(0,0,0,.75);
}

.cgs-mp-pending-banner__meta,
.cgs-mp-pending-panel__meta{
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: rgba(0,0,0,.78);
  font-size: 14px;
}

.cgs-mp-pending-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

.cgs-mp-pending-btn{
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--cgs-mp-orange);
  background: var(--cgs-mp-orange);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(243,101,39,.18);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.cgs-mp-pending-btn:hover,
.cgs-mp-pending-btn:focus{
  background: var(--cgs-mp-brown);
  border-color: var(--cgs-mp-brown);
  color: #fff;
  text-decoration: none;
}

.cgs-mp-pending-btn:focus-visible{
  outline: 3px solid rgba(243,101,39,.32);
  outline-offset: 3px;
}

.cgs-mp-pending-btn--secondary{
  background: #fff;
  border-color: var(--cgs-mp-brown);
  color: var(--cgs-mp-brown);
  box-shadow: none;
}

.cgs-mp-pending-btn--secondary:hover,
.cgs-mp-pending-btn--secondary:focus{
  background: var(--cgs-mp-brown);
  border-color: var(--cgs-mp-brown);
  color: #fff;
}

/* =========================================================
   Marketplace landing CTA buttons
   ========================================================= */

.cgs-mp-landing-cta{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
}

.cgs-mp-landing-cta-btn,
.cgs-mp-landing-cta-btn:visited,
.cgs-mp-landing-cta-btn.is-disabled{
  appearance:none;
  -webkit-appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 22px;
  border:1px solid #6f605b;
  border-radius:999px;
  background:#fff;
  color:var(--cgs-mp-brown, #6f605b) !important;
  font-size:15px;
  font-weight:600;
  line-height:1.2;
  text-align:center;
  text-decoration:none !important;
  background-image:none !important;
  box-shadow:0 5px 12px rgba(111,96,91,.22);
  transition:background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.cgs-mp-landing-cta-btn::before,
.cgs-mp-landing-cta-btn::after{
  content:none !important;
  display:none !important;
}

.cgs-mp-landing-cta-btn:hover,
.cgs-mp-landing-cta-btn:focus,
.cgs-mp-landing-cta-btn:focus-visible{
  background:var(--cgs-mp-brown, #6f605b);
  border-color:var(--cgs-mp-brown, #6f605b);
  color:#fff !important;
  text-decoration:none !important;
  box-shadow:none;
  outline:none;
}

.cgs-mp-landing-cta-btn:focus-visible{
  outline:3px solid rgba(243,101,39,.28);
  outline-offset:3px;
}

.cgs-mp-landing-cta-btn.is-disabled{
  opacity:.68;
  box-shadow:none;
  pointer-events:none;
}

.cgs-mp-landing-cta-helper{
  max-width:34ch;
  color:rgba(47,42,36,.76);
  font-size:13px;
  line-height:1.45;
}

.cgs-mp-landing-cta-link,
.cgs-mp-landing-cta-link:visited{
  color:var(--cgs-mp-brown, #6f605b);
  font-size:13px;
  font-weight:700;
  line-height:1.4;
  text-decoration:underline;
  text-underline-offset:2px;
}

.cgs-mp-landing-cta-link:hover,
.cgs-mp-landing-cta-link:focus{
  color:var(--cgs-mp-orange, #f36527);
}

.cgs-mp-pending-panel{
  position: fixed;
  inset: 0;
  z-index: 1000002;
}

.cgs-mp-pending-panel[hidden]{
  display: none;
}

.cgs-mp-pending-panel__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .48);
}

.cgs-mp-pending-panel__dialog{
  position: relative;
  width: min(560px, calc(100vw - 28px));
  margin: min(10vh, 64px) auto 0;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(243,101,39,.16);
  box-shadow: 0 26px 54px rgba(0,0,0,.24);
  padding: 22px 22px 20px;
}

.cgs-mp-pending-panel__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: rgba(0,0,0,.72);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cgs-mp-pending-panel.is-busy .cgs-mp-pending-panel__dialog{
  opacity: .72;
  pointer-events: none;
}

body.cgs-mp-pending-panel-open{
  overflow: hidden;
}

/* Empty states (wpDT + custom) */
.cgs-mp-empty,
.wpDataTablesEmpty,
.dataTables_empty{
  text-align: center;
  padding: 18px 12px;
  opacity: 0.8;
}

@media (max-width: 640px){
  .cgs-mp-pending-banner__title,
  .cgs-mp-pending-panel__title{
    font-size: 20px;
  }

  .cgs-mp-pending-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .cgs-mp-pending-btn{
    width: 100%;
  }

  .cgs-mp-landing-cta{
    align-items:stretch;
  }

  .cgs-mp-landing-cta-btn,
  .cgs-mp-landing-cta-btn:visited,
  .cgs-mp-landing-cta-btn.is-disabled{
    width:100%;
  }
}

/* =========================================================
   Public Marketplace nav (legacy shortcode migrated from WPCode)
   ========================================================= */

.cgs-mp-nav--public{
  width: 100%;
  margin: 10px 0 !important;
}

.cgs-mp-nav--public .cgs-mp-nav__inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.cgs-mp-nav--public .cgs-mp-nav__left{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  min-width: 0;
  scrollbar-width: none;
}

.cgs-mp-nav--public .cgs-mp-nav__left::-webkit-scrollbar{
  display: none;
}

.cgs-mp-nav--public,
.cgs-mp-nav--public .cgs-mp-nav__inner,
.cgs-mp-nav--public .cgs-mp-nav__left{
  overflow: visible;
}

.cgs-mp-nav--public .cgs-mp-tab{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px;
  background: var(--cgs-mp-orange, #f36527);
  color: #fff;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 2px 10px rgba(0,0,0,.10);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .12s ease, box-shadow .12s ease, color .12s ease, border-color .12s ease;
}

.cgs-mp-nav--public .cgs-mp-tab:hover{
  background: var(--cgs-mp-brown, #6f605b);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
}

.cgs-mp-nav--public .cgs-mp-tab.is-active{
  background: var(--cgs-mp-brown, #6f605b);
  color: #fff;
  border-color: rgba(0,0,0,.22);
}

.cgs-mp-nav--public .cgs-mp-tab.is-active:hover{
  background: var(--cgs-mp-brown, #6f605b);
}

.cgs-mp-nav--public .cgs-mp-tab:focus-visible{
  outline: 3px solid rgba(243,101,39,.24);
  outline-offset: 2px;
}

.cgs-mp-nav--public .cgs-mp-nav__left p{
  margin: 0;
  padding: 0;
  display: contents;
}

.cgs-mp-nav--public .cgs-mp-nav__left br{
  display: none;
}

@media (max-width: 640px){
  .cgs-mp-nav--public .cgs-mp-nav__inner{
    padding: 0 12px;
  }

  .cgs-mp-nav--public .cgs-mp-tab{
    padding: 5px 10px;
    font-size: 12px;
  }
}

@media (max-width: 420px){
  .cgs-mp-nav--public .cgs-mp-tab{
    padding: 4px 9px;
    font-size: 11.5px;
  }
}

/* =========================================================
   Admin exceptions table
   ========================================================= */

.cgs-mp-admin-exceptions__head{
  margin-bottom: 14px;
}

.cgs-mp-admin-exceptions__head h3{
  margin: 0 0 4px;
}

.cgs-mp-admin-exceptions__head p{
  margin: 0;
  color: rgba(0,0,0,.68);
}

.cgs-mp-admin-exceptions__table-wrap{
  overflow-x: auto;
}

.cgs-mp-admin-exceptions__table{
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.cgs-mp-admin-exceptions__table th,
.cgs-mp-admin-exceptions__table td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  text-align: left;
  vertical-align: top;
}

.cgs-mp-admin-exceptions__table th{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(111,96,91,.88);
}

.cgs-mp-admin-exceptions__table td{
  font-size: 14px;
  color: rgba(0,0,0,.82);
}

.cgs-mp-admin-exceptions__table a{
  color: var(--cgs-mp-brown, #6f605b);
  font-weight: 700;
  text-decoration: none;
}

.cgs-mp-admin-exceptions__table a:hover{
  text-decoration: underline;
}

.cgs-mp-admin-exceptions__severity{
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(111,96,91,.10);
  color: var(--cgs-mp-brown, #6f605b);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.cgs-mp-admin-exceptions__severity--critical,
.cgs-mp-admin-exceptions__severity--high{
  background: rgba(163,42,42,.12);
  color: #8e2929;
}

.cgs-mp-admin-exceptions__severity--medium{
  background: rgba(243,101,39,.14);
  color: #b54f1c;
}

.cgs-mp-admin-exceptions__severity--low,
.cgs-mp-admin-exceptions__severity--info{
  background: rgba(70,116,79,.12);
  color: #3b6f48;
}

.cgs-mp-admin-exceptions__seller-email,
.cgs-mp-admin-exceptions__seller-id{
  color: rgba(0,0,0,.62);
}

@media (max-width: 720px){
  .cgs-mp-admin-exceptions__table,
  .cgs-mp-admin-exceptions__table thead,
  .cgs-mp-admin-exceptions__table tbody,
  .cgs-mp-admin-exceptions__table tr,
  .cgs-mp-admin-exceptions__table td{
    display: block;
    width: 100%;
  }

  .cgs-mp-admin-exceptions__table{
    min-width: 0;
  }

  .cgs-mp-admin-exceptions__table thead{
    display: none;
  }

  .cgs-mp-admin-exceptions__table tr{
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,.1);
  }

  .cgs-mp-admin-exceptions__table td{
    padding: 6px 0;
    border: 0;
  }

  .cgs-mp-admin-exceptions__table td::before{
    content: attr(data-label) ": ";
    display: inline;
    font-weight: 800;
    color: rgba(111,96,91,.82);
  }
}

/* =========================================================
   Seller/Admin sub-nav (manual shortcode nav)
   ========================================================= */

.cgs-mp-nav{
  display: flex;
  gap: 8px 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 14px 0 22px;
}

.cgs-mp-nav--seller,
.cgs-mp-nav--admin{
  position: relative;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  box-shadow:
    0 10px 24px rgba(111,96,91,.06),
    inset 0 1px 0 rgba(255,255,255,.7);
}

.cgs-mp-nav--seller::after,
.cgs-mp-nav--admin::after{
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: rgba(111,96,91,.08);
}

.cgs-mp-nav--seller .cgs-mp-nav-prefix,
.cgs-mp-nav--admin  .cgs-mp-nav-prefix{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding-right: 10px;
  margin-right: 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(111,96,91,.82);
  opacity: 1;
}

.cgs-mp-nav--seller a.cgs-pill,
.cgs-mp-nav--admin  a.cgs-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(111,96,91,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--cgs-mp-brown, #6f605b);
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(111,96,91,.06);
  transition: background-color .12s ease, box-shadow .12s ease, color .12s ease, border-color .12s ease, transform .12s ease;
}

.cgs-mp-nav--seller a.cgs-pill.is-active,
.cgs-mp-nav--admin  a.cgs-pill.is-active{
  background: var(--cgs-mp-brown, #6f605b) !important;
  color: #fff !important;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: 0 6px 14px rgba(111,96,91,.14);
  font-weight: 800;
}

.cgs-mp-nav--seller a.cgs-pill:hover,
.cgs-mp-nav--admin  a.cgs-pill:hover{
  background: var(--cgs-mp-brown, #6f605b);
  color: #fff;
  border-color: var(--cgs-mp-brown, #6f605b);
  box-shadow: 0 6px 14px rgba(111,96,91,.12);
  transform: translateY(-1px);
}

.cgs-mp-nav--seller a.cgs-pill:focus-visible,
.cgs-mp-nav--admin  a.cgs-pill:focus-visible{
  outline: 3px solid rgba(243,101,39,.18);
  outline-offset: 2px;
}

.cgs-mp-nav--seller a.cgs-pill.is-active:hover,
.cgs-mp-nav--admin  a.cgs-pill.is-active:hover{
  transform: none;
}

.cgs-inv-tabs-wrap{
  margin: 0 0 14px;
}

.cgs-inv-tabs{
  display:flex;
  gap:10px;
  margin:0;
  border-bottom:1px solid rgba(0,0,0,.12);
}

.cgs-inv-tab{
  display:inline-flex;
  align-items:center;
  padding:10px 14px;
  border:1px solid rgba(0,0,0,.12);
  border-bottom:none;
  border-top-left-radius:10px;
  border-top-right-radius:10px;
  text-decoration:none;
  background:#f7f7f7;
  color:inherit;
}

.cgs-inv-tab:not(.is-active):hover{
  background:#fff;
}

.cgs-inv-tab.is-active,
.cgs-inv-tab.is-active:visited{
  background:#f36b21;
  color:#fff;
  border-color:#f36b21;
  font-weight:700;
  position:relative;
  top:1px;
}

.cgs-inv-tab.is-active:hover,
.cgs-inv-tab.is-active:focus{
  filter:brightness(.98);
  color:#fff;
}

.cgs-mp-seller-source-note{
  margin-top:8px;
  font-size:12px;
  line-height:1.35;
}

.cgs-mp-seller-listing-actions{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:6px;
  min-width:120px;
  max-width:170px;
  white-space:normal;
}

.cgs-mp-seller-listing-actions a.cgs-action-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:28px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid transparent;
  background:#6f605b;
  color:#fff !important;
  font-size:12px;
  font-weight:800;
  line-height:1.1;
  text-decoration:none !important;
  box-shadow:0 1px 2px rgba(0,0,0,.12);
  transition:background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.cgs-mp-seller-listing-actions a.cgs-action-button:hover,
.cgs-mp-seller-listing-actions a.cgs-action-button:focus{
  text-decoration:none !important;
  background:#f36527;
  border-color:#f36527;
  color:#fff !important;
}

.cgs-mp-seller-listing-actions a.cgs-action-button--primary{
  background:#f36527;
  border-color:#f36527;
}

.cgs-mp-seller-listing-actions a.cgs-action-button--primary:hover,
.cgs-mp-seller-listing-actions a.cgs-action-button--primary:focus{
  background:#d95618;
  border-color:#d95618;
}

.cgs-mp-seller-listing-actions a.cgs-action-button--muted{
  background:#fff;
  border-color:rgba(111,96,91,.35);
  color:#6f605b !important;
}

.cgs-mp-seller-listing-actions a.cgs-action-button--muted:hover,
.cgs-mp-seller-listing-actions a.cgs-action-button--muted:focus{
  background:rgba(243,101,39,.08);
  border-color:#f36527;
  color:#f36527 !important;
}

.cgs-mp-seller-listing-actions a.cgs-action-button--danger{
  background:#fff3f2;
  border-color:#f2b8b5;
  color:#b42318 !important;
}

.cgs-mp-seller-listing-actions a.cgs-action-button--danger:hover,
.cgs-mp-seller-listing-actions a.cgs-action-button--danger:focus{
  background:#b42318;
  border-color:#b42318;
  color:#fff !important;
}

.cgs-mp-seller-source-badge{
  display:inline-flex;
  align-items:center;
  padding:3px 8px;
  border-radius:999px;
  background:#fff1f1;
  border:1px solid #f7b5b5;
  color:#b42318;
  font-weight:700;
}

.cgs-mp-seller-source-label{
  margin-top:5px;
  color:#6b7280;
}

/* =========================================================
   CGS Marketplace — Cart Controls + Mini Cart Drawer
   ========================================================= */

/* Hidden must always win */
.cgs-mp-cart-overlay[hidden],
.cgs-mp-cart-drawer[hidden]{
  display:none !important;
}

/* Cart control (nav) */
.cgs-mp-cartbar{
  display:flex;
  gap:10px;
  align-items:center;
}

.cgs-mp-cart-trigger{
  width:34px;
  height:34px;
  border-radius:999px;
  border:2px solid #f36527;
  background:#fff;
  color:#f36527; /* drives SVG via currentColor where supported */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position:relative;
  padding:0;
  cursor:pointer;
}

/* ============================================================
   Marketplace nav row wrapper — tighten spacing above cart icon
   Stable hook: wrapper that contains BOTH .cgs-mp-nav and #cgs-mp-cartbar
   ============================================================ */

/* Modern browsers (Chrome/Edge/Safari): stable selector (no dynamic Spectra IDs) */
@supports selector(.x:has(.y)) {

  /* <= 640px: tighten nav/cartbar vertical spacing + scale icon */
  @media (max-width: 640px){

    /* The Spectra flex wrapper that contains the nav + cartbar */
    .uagb-layout-flex:has(> .cgs-mp-nav):has(> #cgs-mp-cartbar){
      gap: 6px !important;
      row-gap: 6px !important;
      justify-content: flex-start !important;
      align-content: flex-start !important;
      padding-bottom: 0 !important;
      margin-bottom: 0 !important;
    }

    /* Spectra wraps nav links in <p> elements */
    .cgs-mp-nav p{ margin: 0 !important; }

    /* Reduce bottom spacing under the nav */
    .cgs-mp-nav{ margin: 10px 0 0 !important; }

    .cgs-mp-nav--seller,
    .cgs-mp-nav--admin{
      padding: 10px 12px 12px;
      border-radius: 14px;
      gap: 8px;
    }

    .cgs-mp-nav--seller .cgs-mp-nav-prefix,
    .cgs-mp-nav--admin  .cgs-mp-nav-prefix{
      flex: 1 0 100%;
      min-height: auto;
      margin: 0 0 2px;
      padding-right: 0;
    }

    .cgs-mp-nav--seller a.cgs-pill,
    .cgs-mp-nav--admin  a.cgs-pill{
      min-height: 38px;
      padding: 8px 12px;
    }

    /* Slightly smaller icon to match mobile pills */
    #cgs-mp-cart-trigger{
      width: 30px !important;
      height: 30px !important;
    }

    #cgs-mp-cart-trigger svg{
      width: 16px !important;
      height: 16px !important;
    }

    #cgs-mp-cart-badge{
      top: -6px !important;
      right: -6px !important;
      min-width: 18px !important;
      height: 18px !important;
      font-size: 11px !important;
    }
  }

  /* <= 420px: when cartbar wraps, give it a full-width centered row */
  @media (max-width: 420px){

    .cgs-mp-nav--seller,
    .cgs-mp-nav--admin{
      padding: 10px;
      gap: 7px;
    }

    .cgs-mp-nav--seller a.cgs-pill,
    .cgs-mp-nav--admin  a.cgs-pill{
      flex: 1 1 auto;
      justify-content: center;
    }

    .uagb-layout-flex:has(> .cgs-mp-nav):has(> #cgs-mp-cartbar){
      flex-wrap: wrap !important;
    }

    .uagb-layout-flex:has(> .cgs-mp-nav):has(> #cgs-mp-cartbar) > #cgs-mp-cartbar{
      flex: 0 0 100% !important;
      width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;

      display: flex !important;          /* ensure centering works */
      justify-content: center !important;
      line-height: 1 !important;
    }
  }
}


.cgs-mp-cart-trigger:hover,
.cgs-mp-cart-trigger:focus{
  background: rgba(243,101,39,.08);
  outline: none;
}

.cgs-mp-cart-icon{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:0;
}

.cgs-mp-cart-icon__img{
  width:18px;
  height:18px;
  display:block;
}

.cgs-mp-cart-badge{
  position:absolute;
  top:-7px;
  right:-7px;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:900;
  background:#000;
  color:#fff;
}

/* Do NOT use display:none for animation (hidden kills transitions) */
.cgs-mp-cart-overlay,
.cgs-mp-cart-drawer{
  position: fixed !important;
}

/* Overlay */
.cgs-mp-cart-overlay{
  inset: 0;
  z-index: 999998;
  background: rgba(0,0,0,.45);

  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

/* Drawer */
.cgs-mp-cart-drawer{
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 92vw);
  z-index: 999999;

  background:#fff;
  box-shadow:none;
  display:flex;
  flex-direction:column;

  transform: translateX(100%);
  opacity: 1;
  pointer-events: none;
  transition: transform .38s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

/* Open state */
html.cgs-mp-cart-open .cgs-mp-cart-overlay{
  opacity: 1;
  pointer-events: auto;
}

html.cgs-mp-cart-open .cgs-mp-cart-drawer{
  box-shadow:-12px 0 40px rgba(0,0,0,.25);
  transform: translateX(0);
  pointer-events: auto;
}

/* Reduced motion (keep single instance) */
@media (prefers-reduced-motion: reduce){
  .cgs-mp-cart-drawer,
  .cgs-mp-cart-overlay{
    transition:none !important;
  }
}

/* Drawer internals */
.cgs-mp-cart-drawer__head{
  padding:14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid rgba(0,0,0,.08);
}

.cgs-mp-cart-drawer__title{ font-weight:900; }

.cgs-mp-cart-drawer__close{
  border:1px solid rgba(0,0,0,.18);
  background:#fff;
  border-radius:10px;
  width:38px;
  height:38px;
  font-weight:900;
  cursor:pointer;
}

.cgs-mp-cart-drawer__body{
  padding:12px 14px;
  overflow:auto;
  flex:1;
}

.cgs-mp-cart-drawer__foot{
  padding:12px 14px;
  border-top:1px solid rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Checkout button in drawer (brand pills) */
.cgs-mp-cart-drawer .cgs-mp-mini-cart-checkout{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  background:#f36527;
  border:1px solid #f36527;
  border-radius:999px;

  padding:12px 14px;
  font-weight:900;
  text-decoration:none;
  line-height:1;

  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.cgs-mp-cart-drawer a.cgs-mp-mini-cart-checkout,
.cgs-mp-cart-drawer a.cgs-mp-mini-cart-checkout:link,
.cgs-mp-cart-drawer a.cgs-mp-mini-cart-checkout:visited,
.cgs-mp-cart-drawer a.cgs-mp-mini-cart-checkout:hover,
.cgs-mp-cart-drawer a.cgs-mp-mini-cart-checkout:focus,
.cgs-mp-cart-drawer a.cgs-mp-mini-cart-checkout:active{
  color:#fff !important;
}

.cgs-mp-cart-drawer .cgs-mp-mini-cart-checkout:hover,
.cgs-mp-cart-drawer .cgs-mp-mini-cart-checkout:focus{
  background:#6f605b;
  border-color:#6f605b;
  outline:none;
}

.cgs-mp-cart-drawer .cgs-mp-mini-cart-checkout:active{
  transform: translateY(1px);
}

/* Mini-cart line items */
.cgs-mp-mini-cart-seller{
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  padding:10px 12px;
  margin:0 0 12px;
}

.cgs-mp-mini-cart-seller__head{
  font-weight:900;
  margin:0 0 10px;
  opacity:.9;
}

.cgs-mp-mini-cart-total-line{
  font-weight: 800;
}

.cgs-mp-mini-cart-line{
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
  padding:10px 0;
  border-top:1px solid rgba(0,0,0,.08);
}

.cgs-mp-mini-cart-line:first-child{
  border-top:none;
  padding-top:0;
}

.cgs-mp-mini-cart-line__title{ font-weight:900; line-height:1.2; }
.cgs-mp-mini-cart-line__sub{ font-size:13px; opacity:.75; margin-top:4px; }

.cgs-mp-mini-cart-line__actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-end;
}

.cgs-mp-qtyspin{
  display:flex;
  align-items:center;
  gap:6px;
}

.cgs-mp-qtyspin__btn{
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.18);
  background:#fff;
  font-weight:900;
  cursor:pointer;
}

.cgs-mp-qtyspin__val{
  width:62px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.18);
  padding:0 8px;
  font-weight:800;
}

.cgs-mp-mini-remove{
  border:1px solid rgba(0,0,0,.18);
  background:#fff;
  border-radius:10px;
  padding:8px 10px;
  font-weight:800;
  cursor:pointer;
}

.cgs-mp-mini-cart-empty{
  text-align:center;
  padding:20px 10px;
  opacity:.8;
}

.cgs-mp-mini-cart-line.is-busy{
  opacity:.55;
  pointer-events:none;
}

.cgs-mp-mini-cart-seller .cgs-mp-ship-metrics-card{
  margin-top: 10px;
}

/* Mobile */
@media (max-width: 640px){
  .cgs-mp-cart-drawer{ width:100vw; }
  .cgs-mp-ship-metrics-card{
    padding: 9px 10px;
  }
  .cgs-mp-ship-metrics__row{
    gap: 3px 8px;
  }
}

/* Drawer footer action row */
.cgs-mp-mini-cart-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

/* Empty cart button (secondary) */
.cgs-mp-mini-cart-empty-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:12px 14px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.18);
  background:#fff;
  color:#6f605b;
  font-weight:900;
  cursor:pointer;
  line-height:1;
  text-decoration:none;
}

.cgs-mp-mini-cart-empty-btn:hover,
.cgs-mp-mini-cart-empty-btn:focus{
  background:rgba(111,96,91,.10);
  outline:none;
}

.cgs-mp-mini-cart-empty-btn:disabled{
  opacity:.6;
  cursor:not-allowed;
}

/* =========================================================
   Cart page layout
   ========================================================= */

.cgs-mp-cart-seller-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.cgs-mp-cart-ship{
  display:flex;
  align-items:center;
  gap:8px;
}

.cgs-mp-cart-ship__label{
  font-weight:800;
  opacity:.75;
  font-size:13px;
}

.cgs-mp-cart-seller-totals{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-top:10px;
  font-weight:800;
  opacity:.9;
}

.cgs-mp-cart-cat{
  font-size:12px;
  font-weight:900;
  opacity:.65;
  margin-bottom:4px;
  text-transform:capitalize;
}

.cgs-mp-cart-grand{
  margin-top:14px;
  border-top:1px solid rgba(0,0,0,.10);
  padding-top:12px;
}

.cgs-mp-cart-group .cgs-mp-ship-metrics-card{
  margin-top: 12px;
}

.cgs-mp-cart-grand__row{
  display:flex;
  justify-content:space-between;
  gap:14px;
  margin:4px 0;
}

.cgs-mp-cart-grand__row.is-total{
  margin-top:8px;
  font-size:16px;
}

/* Action row (Checkout + Empty cart) */
.cgs-mp-cart-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
  align-items:center;
}

/* Empty cart button — match drawer “remove” style */
.cgs-mp-empty-cart{
  border:1px solid rgba(0,0,0,.18);
  background:#fff;
  border-radius:999px;
  padding:12px 14px;
  font-weight:900;
  cursor:pointer;
}

.cgs-mp-empty-cart:hover,
.cgs-mp-empty-cart:focus{
  background:rgba(0,0,0,.04);
  outline:none;
}

.cgs-mp-empty-cart:disabled{
  opacity:.6;
  cursor:not-allowed;
}

/* ============================================================
   Cart page — Checkout pill (same as drawer)
   ============================================================ */

.cgs-mp-cart-actions a.cgs-mp-mini-cart-checkout,
.cgs-mp-cart-actions a.cgs-mp-mini-cart-checkout:link,
.cgs-mp-cart-actions a.cgs-mp-mini-cart-checkout:visited{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  background:#f36527 !important;
  border:1px solid #f36527 !important;
  color:#fff !important;

  border-radius:999px !important;
  padding:12px 16px !important;
  font-weight:900 !important;
  text-decoration:none !important;
  line-height:1 !important;
}

.cgs-mp-cart-actions a.cgs-mp-mini-cart-checkout:hover,
.cgs-mp-cart-actions a.cgs-mp-mini-cart-checkout:focus{
  background:#6f605b !important;
  border-color:#6f605b !important;
  color:#fff !important;
  outline:none !important;
}

.cgs-mp-pending-banner a.cgs-mp-mini-cart-checkout,
.cgs-mp-pending-banner a.cgs-mp-mini-cart-checkout:link,
.cgs-mp-pending-banner a.cgs-mp-mini-cart-checkout:visited,
.cgs-mp-cart-notice a.cgs-mp-mini-cart-checkout,
.cgs-mp-cart-notice a.cgs-mp-mini-cart-checkout:link,
.cgs-mp-cart-notice a.cgs-mp-mini-cart-checkout:visited{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:#f36527 !important;
  border:1px solid #f36527 !important;
  color:#fff !important;
  border-radius:999px !important;
  padding:12px 16px !important;
  font-weight:900 !important;
  text-decoration:none !important;
  line-height:1 !important;
}

.cgs-mp-pending-banner a.cgs-mp-mini-cart-checkout:hover,
.cgs-mp-pending-banner a.cgs-mp-mini-cart-checkout:focus,
.cgs-mp-cart-notice a.cgs-mp-mini-cart-checkout:hover,
.cgs-mp-cart-notice a.cgs-mp-mini-cart-checkout:focus{
  background:#6f605b !important;
  border-color:#6f605b !important;
  color:#fff !important;
  outline:none !important;
}

.cgs-mp-pending-banner .cgs-mp-pending-btn--secondary,
.cgs-mp-cart-notice .cgs-mp-pending-btn--secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:#fff !important;
  border:1px solid #6f605b !important;
  color:#6f605b !important;
  border-radius:999px !important;
  padding:12px 16px !important;
  font-weight:900 !important;
  text-decoration:none !important;
  line-height:1 !important;
  box-shadow:none !important;
}

.cgs-mp-pending-banner .cgs-mp-pending-btn--secondary:hover,
.cgs-mp-pending-banner .cgs-mp-pending-btn--secondary:focus,
.cgs-mp-cart-notice .cgs-mp-pending-btn--secondary:hover,
.cgs-mp-cart-notice .cgs-mp-pending-btn--secondary:focus{
  background:#6f605b !important;
  border-color:#6f605b !important;
  color:#fff !important;
  outline:none !important;
}

/* Disabled checkout state */
.cgs-mp-cart-actions a.cgs-mp-mini-cart-checkout.is-disabled,
.cgs-mp-cart-actions a.cgs-mp-mini-cart-checkout.is-disabled:hover,
.cgs-mp-cart-actions a.cgs-mp-mini-cart-checkout.is-disabled:focus{
  background:rgba(0,0,0,.18) !important;
  border-color:rgba(0,0,0,.18) !important;
  color:#fff !important;
  cursor:not-allowed !important;
  pointer-events:none !important;
  box-shadow:none !important;
  opacity:.8 !important;
}

/* ============================================================
   Cart details page — mobile: stack line, actions stay on 1 row
   ============================================================ */
@media (max-width: 640px){

  /* Stack description over actions */
  .cgs-mp-cart-line{
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* Override inline min-width:220px on description */
  .cgs-mp-cart-line > div:first-child{
    min-width: 0 !important;
    width: 100% !important;
  }

  /* Actions row: qty + remove on ONE line */
  .cgs-mp-cart-line > div:last-child{
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  /* Qty widget: cart uses __btn / __val */
  .cgs-mp-cart-line .cgs-mp-qtyspin{
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
    flex: 0 0 auto !important;
  }

  .cgs-mp-cart-line .cgs-mp-qtyspin__btn{
    min-width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    line-height: 26px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }

  .cgs-mp-cart-line .cgs-mp-qtyspin__val{
    width: 36px !important;
    height: 28px !important;
    padding: 0 4px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }

  /* Remove button (same class as mini/remove button) */
  .cgs-mp-cart-line .cgs-mp-mini-remove{
    height: 30px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    line-height: 28px !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
}

/* Hide mini-cart UI on downstream pages (cart + checkout) */
body.cgs-mp-no-mini-cart .cgs-mp-cartbar,
body.cgs-mp-no-mini-cart #cgs-mp-cartbar,
body.cgs-mp-no-mini-cart .cgs-mp-cart-overlay,
body.cgs-mp-no-mini-cart #cgs-mp-cart-overlay,
body.cgs-mp-no-mini-cart .cgs-mp-cart-drawer,
body.cgs-mp-no-mini-cart #cgs-mp-cart-drawer{
  display:none !important;
}

#cgs-mp-cart-trigger.is-busy { opacity: .75; pointer-events: none; }
#cgs-mp-cart-badge.is-busy { opacity: .75; }


/* Listing Editor */
.cgs-mp-editor { max-width: 860px; margin: 0 auto; }
.cgs-mp-editor__head h2 { margin: 0 0 6px; }
.cgs-mp-editor__sub { opacity: .75; margin: 0 0 14px; }
.cgs-mp-editor__loading { padding: 10px 0; opacity: .75; }
.cgs-mp-editor__error { margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(0,0,0,.15); border-radius: 12px; background: rgba(220,0,0,.06); }
.cgs-mp-editor__core { display: grid; gap: 12px; margin: 16px 0; }
.cgs-mp-editor__row-core label { display:block; font-weight:700; margin-bottom:6px; }
.cgs-mp-editor input[type="text"],
.cgs-mp-editor input[type="number"],
.cgs-mp-editor input[type="search"],
.cgs-mp-editor textarea,
.cgs-mp-editor select {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.25;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.cgs-mp-editor input[type="text"]:focus,
.cgs-mp-editor input[type="number"]:focus,
.cgs-mp-editor input[type="search"]:focus,
.cgs-mp-editor textarea:focus,
.cgs-mp-editor select:focus {
  outline: none;
  border-color: rgba(243,101,39,.65);
  box-shadow: 0 0 0 3px rgba(243,101,39,.16);
}
.cgs-mp-editor__row-core textarea { min-height: 90px; }
.cgs-mp-editor .cgs-mp-editor__en { display:inline-flex; align-items:center; gap:6px; font-weight:400; margin:0; line-height:1.25; }
.cgs-mp-editor .cgs-mp-editor__en input[type="checkbox"] { width:auto; padding:0; margin:0; border:0; border-radius:0; }
.cgs-mp-editor__row-core--qty { display:block; }
.cgs-mp-editor__row-core--shipping-metrics{
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfaf7 0%, #fff 100%);
}
.cgs-mp-editor__shipping-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.cgs-mp-editor__shipping-field{
  min-width: 0;
}
.cgs-mp-editor__shipping-field label{
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.cgs-mp-editor__shipping-packing{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.cgs-mp-editor__shipping-packing-head{
  margin-bottom: 10px;
}
.cgs-mp-editor__shipping-packing-head label{
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.cgs-mp-editor__shipping-packing-body{
  display: grid;
  gap: 10px;
}
.cgs-mp-editor__packing-fields{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.cgs-mp-editor__qty-main { min-width:0; }
.cgs-mp-editor__qty-toggle { margin-top: 6px; }
.cgs-mp-editor__h { margin: 18px 0 10px; }
.cgs-mp-editor__attrs { display: grid; gap: 10px; }
.cgs-mp-editor__row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr) auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  align-items: start;
  background: #fff;
}
.cgs-mp-editor__col { min-width: 0; }
.cgs-mp-editor__label { font-weight: 700; margin: 0; display: block; }
.cgs-mp-editor__col--val .cgs-mp-editor__val,
.cgs-mp-editor__col--val .cgs-mp-toggle { width: 100%; }
.cgs-mp-editor__col--en { display: flex; align-items: center; justify-content: flex-start; }
.cgs-mp-editor .cgs-mp-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.cgs-mp-editor .cgs-mp-toggle input[type="checkbox"],
.cgs-mp-editor .cgs-mp-editor__enabled,
.cgs-mp-editor .cgs-mp-editor__checkline input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #f36527;
}
.cgs-mp-editor__hint { font-size: 12px; line-height: 1.35; color: #6b7280; }
.cgs-mp-editor__actions { margin-top: 16px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.cgs-mp-editor__notice { margin: 12px 0; padding: 12px 14px; border: 1px solid rgba(0,0,0,.12); border-radius: 14px; background: rgba(0,0,0,.03); }

@media (max-width: 780px) {
  .cgs-mp-editor__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cgs-mp-editor__col--en {
    justify-content: flex-start;
  }
}

.cgs-mp-listing{
  max-width: 1100px;
  margin: 0 auto;
}

.cgs-mp-listing__hero{
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 24px;
  align-items: start;
}

.cgs-mp-listing__gallery,
.cgs-mp-listing__summary,
.cgs-mp-listing__ship-metrics,
.cgs-mp-listing__section{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.cgs-mp-listing__gallery,
.cgs-mp-listing__summary{
  padding: 16px;
}

.cgs-mp-listing__side{
  display: grid;
  gap: 12px;
  align-content: start;
}

.cgs-mp-listing__main{
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #f6f0eb;
}

.cgs-mp-listing__main-lightbox,
.cgs-mp-listing__main-img{
  display: block;
  width: 100%;
  height: 100%;
}

.cgs-mp-listing__main-img{
  object-fit: cover;
}

.cgs-mp-listing__thumbs{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-top: 12px;
}

.cgs-mp-listing__thumb{
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  padding: 0;
  border-radius: 14px;
  border: 2px solid transparent;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.cgs-mp-listing__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cgs-mp-listing__thumb.is-active{
  border-color: var(--cgs-mp-orange, #f36527);
}

.cgs-mp-listing__eyebrow{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cgs-mp-orange, #f36527);
}

.cgs-mp-listing__title{
  margin: 6px 0 6px;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.cgs-mp-listing__price{
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  font-weight: 700;
  color: rgba(111, 96, 91, .82);
  margin-bottom: 8px;
}

.cgs-mp-listing__bundle{
  margin-bottom: 8px;
  font-size: .9rem;
  font-weight: 700;
  color: rgba(111, 96, 91, .92);
}

.cgs-mp-listing__availability{
  margin-bottom: 12px;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(0,0,0,.62);
}

.cgs-mp-listing__availability.is-soldout{
  color: rgba(132, 74, 48, .88);
}

.cgs-mp-listing__ship-metrics{
  margin: 0;
  padding: 11px 14px 12px;
}

.cgs-mp-listing__ship-metrics-title{
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(0,0,0,.52);
}

.cgs-mp-listing__ship-metrics-list{
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}

.cgs-mp-listing__ship-metrics-item{
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(0,0,0,.68);
}

.cgs-mp-listing__ship-metrics-item + .cgs-mp-listing__ship-metrics-item::before{
  content: "\2022";
  margin-right: 10px;
  color: rgba(0,0,0,.26);
}

.cgs-mp-listing__actions{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.cgs-mp-listing__actions .cgs-mp-card__btn,
.cgs-mp-listing__actions .cgs-mp-cart-toggle-row{
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.10);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.cgs-mp-listing__actions .cgs-mp-cart-toggle-row[data-state="add"]{
  background: var(--cgs-mp-brown, #6f605b);
  color: #fff;
}

.cgs-mp-listing__actions .cgs-mp-cart-toggle-row[data-state="add"]:hover{
  background: var(--cgs-mp-orange, #f36527);
  border-color: var(--cgs-mp-orange, #f36527);
}

.cgs-mp-listing__actions .cgs-mp-cart-toggle-row[data-state="edit"]{
  background: #fff;
  color: var(--cgs-mp-brown, #6f605b);
  border-color: var(--cgs-mp-brown, #6f605b);
}

.cgs-mp-listing__actions .cgs-mp-cart-toggle-row[data-state="edit"]:hover{
  background: var(--cgs-mp-orange, #f36527);
  color: #fff;
  border-color: var(--cgs-mp-orange, #f36527);
}

.cgs-mp-listing__actions .cgs-mp-cart-toggle-row[disabled],
.cgs-mp-listing__actions .cgs-mp-cart-toggle-row[data-state="soldout"]{
  background: #eee;
  color: #777;
  border-color: #ddd;
  cursor: not-allowed;
  box-shadow: none;
}

.cgs-mp-in-cart{
  min-height: 1.1rem;
  font-size: .84rem;
  line-height: 1.35;
  color: rgba(0,0,0,.56);
}

.cgs-mp-in-cart.has-value{
  color: rgba(0,0,0,.7);
}

.cgs-mp-listing__lede{
  color: rgba(0,0,0,.78);
}

.cgs-mp-listing__lede p{
  margin: 0 0 10px;
}

.cgs-mp-listing__sections{
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.cgs-mp-listing__section{
  padding: 14px;
}

.cgs-mp-listing__section h3{
  margin: 0 0 10px;
  font-size: clamp(.94rem, 1.4vw, 1.06rem);
  font-weight: 650;
  letter-spacing: -.01em;
}

.cgs-mp-listing__section-copy{
  color: rgba(0,0,0,.8);
  font-size: .96rem;
  line-height: 1.55;
}

.cgs-mp-listing__section-copy p{
  margin: 0 0 10px;
}

.cgs-mp-listing__facts{
  display: grid;
  gap: 10px;
  margin: 0;
}

.cgs-mp-listing__fact{
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.cgs-mp-listing__fact:first-child{
  padding-top: 0;
  border-top: 0;
}

.cgs-mp-listing__fact dt{
  font-size: .78rem;
  font-weight: 600;
  color: rgba(0,0,0,.52);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cgs-mp-listing__fact dd{
  margin: 0;
  font-size: .95rem;
  font-weight: 650;
  color: rgba(0,0,0,.9);
  line-height: 1.45;
}

.cgs-mp-listing__fact-list{
  margin: 0;
  padding-left: 18px;
}

.cgs-mp-listing__fact-list--shipping{
  display: grid;
  gap: 4px;
}

.cgs-mp-listing__lineage{
  display: inline-flex;
  align-items: center;
}

.cgs-mp-listing__lineage-link{
  display: inline-flex;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.1);
}

.cgs-mp-listing__lineage-thumb{
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
}

@media (max-width: 900px){
  .cgs-mp-listing__hero{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .cgs-mp-listing__gallery,
  .cgs-mp-listing__summary,
  .cgs-mp-listing__section{
    padding: 13px;
    border-radius: 16px;
  }

  .cgs-mp-listing__fact{
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.cgs-mp-listing-media-grid {
  align-items: start;
}

.cgs-mp-listing-media-grid.is-drag-active .cgs-mp-media-tile[draggable="true"] {
  cursor: grabbing;
}

.cgs-mp-media-tile {
  position: relative;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.cgs-mp-media-tile[draggable="true"] {
  cursor: grab;
}

.cgs-mp-media-tile.is-dragging {
  opacity: .55;
}

.cgs-mp-media-tile.drop-target {
  outline: 2px solid rgba(31,79,153,.35);
  outline-offset: -2px;
}

.cgs-mp-media-tile.is-drag-over-before {
  box-shadow: inset 4px 0 0 #1f4f99;
}

.cgs-mp-media-tile.is-drag-over-after {
  box-shadow: inset -4px 0 0 #1f4f99;
}

.cgs-mp-media-tile.is-primary {
  border: 2px solid #1f7a34;
}

.cgs-mp-media-tile.is-pending-delete {
  border: 2px dashed #b42318;
}

.cgs-mp-media-tile.is-pending-add {
  border: 1px dashed #1f4f99;
}

.cgs-mp-media-thumb-wrap {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #f3f3f3;
}

.cgs-mp-media-lb {
  display: block;
  width: 100%;
  height: 100%;
}

.cgs-mp-gallery-lb {
  display: block;
}

.cgs-mp-media-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.cgs-mp-media-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  color: rgba(0,0,0,.65);
  padding: 8px;
}

.cgs-mp-media-chips {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: calc(100% - 74px);
}

.cgs-mp-media-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  padding: 4px 7px;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.cgs-mp-media-chip.is-primary {
  background: #1f7a34;
}

.cgs-mp-media-chip.is-delete {
  background: #b42318;
}

.cgs-mp-media-chip.is-pending {
  background: #1f4f99;
}

.cgs-mp-media-icon-action {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.25);
  background: rgba(255,255,255,.95);
  color: #222;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.cgs-mp-media-drag-handle {
  position: absolute;
  top: 8px;
  right: 38px;
  z-index: 3;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.95);
  color: #222;
  font-size: 11px;
  line-height: 1;
  padding: 0;
  cursor: grab;
}

.cgs-mp-media-drag-handle:active {
  cursor: grabbing;
}

.cgs-mp-media-undo-link {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 3;
  border: 0;
  background: rgba(255,255,255,.95);
  color: #7f1d1d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
}

.cgs-mp-source-select,
.cgs-mp-stocklot-filter,
.cgs-mp-stocklot-select {
  width: 100%;
}

.cgs-mp-source-panel {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  display: grid;
  gap: 10px;
}

.cgs-mp-source-panel .cgs-mp-editor__row-core {
  margin: 0;
}

.cgs-mp-source-select,
.cgs-mp-stocklot-select {
  min-height: 40px;
}

.cgs-mp-editor__checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 8px;
  font-weight: 600;
}

.cgs-mp-editor__checkline input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #f36527;
}

.cgs-mp-batching-panel {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  display: grid;
  gap: 10px;
}

.cgs-mp-batching-panel__title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  color: #374151;
}

.cgs-mp-batching-panel .cgs-mp-editor__row-core {
  margin: 0;
}

.cgs-mp-batching-panel .cgs-mp-batching-fields {
  margin-top: 4px;
}

.cgs-mp-batching-fields {
  display: grid;
  gap: 8px;
}

.cgs-mp-batching-fields label {
  margin: 0;
  font-weight: 700;
}

.cgs-mp-batching-unit-size {
  width: 100%;
}

.cgs-mp-stocklot-lookup {
  position: relative;
}

.cgs-mp-stocklot-filter {
  margin-bottom: 8px;
}

.cgs-mp-stocklot-select {
  min-height: 40px;
}

.cgs-mp-stocklot-lookup.is-loading .cgs-mp-stocklot-filter,
.cgs-mp-stocklot-lookup.is-loading .cgs-mp-stocklot-select,
.cgs-mp-stocklot-filter:disabled,
.cgs-mp-stocklot-select:disabled {
  background: #f5f6f7;
  color: #6b7280;
  border-color: rgba(0,0,0,.15);
  cursor: not-allowed;
}

.cgs-mp-core-pid {
  max-width: 220px;
}

.cgs-mp-pid-panel {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  display: grid;
  gap: 8px;
}

.cgs-mp-pid-panel .cgs-mp-pid-panel__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cgs-mp-pid-panel .cgs-mp-core-pid[readonly] {
  background: #f7f8f9;
  color: #374151;
}

.cgs-mp-pid-panel .cgs-mp-pid-panel__toggle {
  margin: 0;
  white-space: nowrap;
}

.cgs-mp-stocklot-clear {
  margin-top: 8px;
}

.cgs-mp-stocklot-existing {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 8px;
}

.cgs-mp-stocklot-existing-text {
  flex: 0 0 auto;
}

.cgs-mp-stocklot-open-existing {
  flex: 0 0 auto;
}

.cgs-mp-stocklot-existing-list {
  display: grid;
  gap: 8px;
}

.cgs-mp-stocklot-existing-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  background: #f9fafb;
}

.cgs-mp-stocklot-existing-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.cgs-mp-stocklot-existing-meta {
  font-size: 11px;
  color: #6b7280;
}

.cgs-mp-stocklot-existing-title {
  font-size: 12px;
  line-height: 1.3;
  color: #374151;
}

.cgs-mp-stocklot-existing-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.cgs-mp-origin-age-helper {
  margin-top: 6px;
}

.cgs-mp-origin-age-reset {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cgs-mp-orange);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.cgs-mp-origin-age-reset:hover {
  color: #d95618;
}

.cgs-mp-origin-age-reset:focus-visible {
  outline: 2px solid rgba(243, 101, 39, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}

.cgs-mp-editor .cgs-mp-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.10);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease, transform .05s ease;
}

.cgs-mp-editor .cgs-mp-btn:active {
  transform: translateY(1px);
}

.cgs-mp-editor .cgs-mp-btn--primary {
  background: var(--cgs-mp-orange);
  border-color: var(--cgs-mp-orange);
  color: #fff !important;
}

.cgs-mp-editor .cgs-mp-btn--primary:hover {
  background: #d95618;
  border-color: #d95618;
  color: #fff !important;
}

.cgs-mp-editor .cgs-mp-btn--secondary {
  background: #fff;
  border-color: rgba(92, 70, 50, .35);
  color: var(--cgs-mp-brown);
}

.cgs-mp-editor .cgs-mp-btn--secondary:hover {
  background: rgba(243,101,39,.08);
  border-color: var(--cgs-mp-orange);
  color: var(--cgs-mp-orange);
}

.cgs-mp-editor .cgs-mp-btn--danger {
  background: #fff3f2;
  border-color: #f2b8b5;
  color: #b42318;
}

.cgs-mp-editor .cgs-mp-btn--block {
  display: inline-flex;
  width: 100%;
}

.cgs-mp-editor .cgs-mp-btn.is-disabled,
.cgs-mp-editor .cgs-mp-btn[disabled],
.cgs-mp-create-now.is-disabled,
.cgs-mp-create-now:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.cgs-mp-editor .cgs-mp-btn:focus {
  outline: none;
}

.cgs-mp-editor .cgs-mp-btn:focus-visible {
  outline: 3px solid rgba(243,101,39,.35);
  outline-offset: 2px;
}

.cgs-mp-editor__notice-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.cgs-mp-editor__status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.cgs-mp-editor__status-pill.is-draft {
  background: #e7f7ea;
  border-color: #b7e0bf;
  color: #166534;
}

.cgs-mp-editor__status-pill.is-active {
  background: #166534;
  border-color: #166534;
  color: #fff;
}

.cgs-mp-editor__status-pill.is-paused {
  background: #fff1f1;
  border-color: #f7b5b5;
  color: #b42318;
}

.cgs-mp-editor__status-pill.is-inactive {
  background: #fff7d6;
  border-color: #f0d56b;
  color: #8a6500;
}

.cgs-mp-editor__status-pill.is-archived {
  background: #f3f4f6;
  border-color: #d0d5dd;
  color: #344054;
}

.cgs-mp-editor__status-pill.is-source-depleted {
  background: #eceff3;
  border-color: #c9d1db;
  color: #475467;
}

/* Iframe popup mode: hide theme chrome */
body.cgs-mp-embedded-listing header,
body.cgs-mp-embedded-listing footer,
body.cgs-mp-embedded-listing .site-header,
body.cgs-mp-embedded-listing .site-footer,
body.cgs-mp-embedded-listing nav,
body.cgs-mp-embedded-listing .wp-block-navigation,
body.cgs-mp-embedded-listing #masthead,
body.cgs-mp-embedded-listing #colophon,
body.cgs-mp-iframe header,
body.cgs-mp-iframe footer,
body.cgs-mp-iframe .site-header,
body.cgs-mp-iframe .site-footer,
body.cgs-mp-iframe nav,
body.cgs-mp-iframe .wp-block-navigation,
body.cgs-mp-iframe #masthead,
body.cgs-mp-iframe #colophon {
  display: none !important;
}
body.cgs-mp-embedded-listing,
body.cgs-mp-iframe {
  padding-top: 0 !important;
}

.cgs-mp-listing__standalone-nav {
  margin: 0 0 16px;
  text-align: center;
}

.cgs-mp-listing__standalone-nav a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.cgs-mp-embedded-listing .cgs-mp-listing-shell--detail {
  max-width: 940px;
  margin: 0 auto;
  padding: 12px 16px 18px;
}

body.cgs-mp-embedded-listing .cgs-mp-listing {
  max-width: 900px;
}

@media (max-width: 640px) {
  body.cgs-mp-embedded-listing .cgs-mp-listing-shell--detail {
    max-width: none;
    padding: 8px;
  }

  body.cgs-mp-embedded-listing .cgs-mp-listing {
    max-width: none;
  }
}

.cgs-mp-ship-metrics{
  margin-top: 6px;
  color: rgba(0,0,0,.6);
}

.cgs-mp-ship-metrics-card{
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: rgba(0,0,0,.02);
}

.cgs-mp-ship-metrics-card__title{
  margin: 0 0 4px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: rgba(0,0,0,.52);
}

.cgs-mp-ship-metrics__row{
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}

.cgs-mp-ship-metrics__item{
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

.cgs-mp-ship-metrics__item + .cgs-mp-ship-metrics__item::before{
  content: "\2022";
  margin-right: 10px;
  color: rgba(0,0,0,.26);
}

.cgs-mp-ship-metrics__note{
  margin-top: 3px;
  font-size: 11px;
  color: rgba(0,0,0,.48);
}
