.ctm-shell{max-width:1100px;margin:16px auto 50px;color:#263346;font-family:inherit}.ctm-shell *{box-sizing:border-box}.ctm-heading{background:linear-gradient(120deg,#f7eefe,#eefaff 60%,#effbe4);border:1px solid #e8dff1;border-radius:24px;padding:27px;margin-bottom:18px}.ctm-heading span{color:#7641b7;font-weight:800;font-size:.78rem;letter-spacing:.1em}.ctm-heading h2{font-size:clamp(24px,3vw,38px);line-height:1.2;color:#293766;margin:9px 0}.ctm-heading p{margin:0;color:#42546d}.ctm-panel{background:#fff;border:1px solid #e5e7ef;border-radius:18px;padding:24px;margin:18px 0;box-shadow:0 8px 26px rgba(42,43,70,.04)}.ctm-panel h3,.ctm-panel h2{margin:0 0 14px;color:#283664}.ctm-panel p{line-height:1.55}.ctm-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:16px 0}.ctm-stats>div{padding:17px;background:#f3edfc;border:1px solid #e6daf6;border-radius:16px;display:flex;flex-direction:column}.ctm-stats strong{font-size:26px;color:#693bc2}.ctm-stats span{font-size:12px;color:#465770}.ctm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ctm-field{display:flex;flex-direction:column;gap:6px;margin:10px 0;font-size:14px;font-weight:700;color:#283953}.ctm-field input,.ctm-field select,.ctm-field textarea{background:white!important;color:#253247!important;border:1px solid #cbd1df!important;border-radius:10px!important;padding:11px!important;width:100%;font-size:15px!important;font-weight:400}.ctm-checkbox{display:flex;align-items:flex-start;gap:10px;margin:20px 0;font-size:14px;color:#263346}.ctm-checkbox input{margin-top:4px}.ctm-form>button{background:linear-gradient(110deg,#7c35cc,#5535ad);color:#fff;border:0;border-radius:11px;padding:13px 20px;font-weight:800;cursor:pointer}.ctm-form>button:hover{filter:brightness(1.08)}.ctm-dynamic{background:#f8f5ff;padding:15px 20px;margin:15px 0;border-radius:14px}.ctm-dynamic[hidden]{display:none!important}.ctm-dynamic h4{margin:0;color:#6633a5}.ctm-notice{border-left:4px solid #8150c3;padding:12px 16px;background:#f1eafa;border-radius:8px}.ctm-table{overflow:auto}.ctm-table table{width:100%;border-collapse:collapse}.ctm-table th,.ctm-table td{text-align:left;padding:12px;border-bottom:1px solid #e9e8ef}.ctm-table small{color:#667}.ctm-admin-list{max-width:1200px}.ctm-admin .ctm-panel dl{display:grid;grid-template-columns:170px 1fr;gap:6px 14px}.ctm-admin .ctm-panel dt{font-weight:700}.ctm-admin .ctm-panel dd{margin:0;overflow-wrap:anywhere}.ctm-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding-top:14px}.ctm-action{display:flex;gap:7px;flex-wrap:wrap}.ctm-action input{min-width:220px}.ctm-photo-list{display:flex;gap:10px;flex-wrap:wrap}.ctm-photo-list img{width:110px;height:110px;object-fit:contain;border:1px solid #ddd;border-radius:9px}@media(max-width:680px){.ctm-grid{grid-template-columns:1fr}.ctm-panel{padding:16px}.ctm-admin .ctm-panel dl{grid-template-columns:1fr}.ctm-admin .ctm-panel dt{margin-top:8px}}

/* Marketplace V1.0.1 — candidatures, suivi et pièces visuelles */
.ctm-overline{display:inline-block;margin-bottom:8px;font-size:12px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#7850ab}
.ctm-section-heading{margin:24px 0 10px!important;padding-bottom:9px;border-bottom:1px solid #ede8f5;color:#34466c;font-size:18px}
.ctm-steps{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 21px}
.ctm-steps span{padding:8px 11px;border-radius:999px;background:#f1f3f7;color:#6c7688;font-size:12px;font-weight:700}
.ctm-steps .is-done{background:#e9f6e9;color:#26733a}
.ctm-steps .is-current{background:#f1e8fd;color:#6840a6}
.ctm-status{display:inline-flex;align-items:center;justify-content:center;gap:5px;border-radius:999px;font-size:13px;font-weight:700;padding:8px 13px;background:#f4ecfd;color:#6740a3}
.ctm-status-approved{background:#e7f6ed;color:#24643c}
.ctm-status-rejected{background:#ffefec;color:#a63627}
.ctm-status-more_info{background:#fff3d5;color:#795006}
.ctm-status-pending{background:#f4edff;color:#6840a6}
.ctm-message{border-left:4px solid #8b5ad0;background:#f7f2ff;border-radius:12px;padding:14px 17px;margin:16px 0}
.ctm-message p{margin:8px 0 0}
.ctm-reply{margin-top:20px;padding:15px;background:#fdfbff;border-radius:12px}
.ctm-reply h4{color:#293766;margin:0 0 8px}
.ctm-categories{border:1px solid #e0d9ec;border-radius:14px;padding:16px 18px;margin:16px 0;background:#faf8ff}
.ctm-categories legend{font-weight:800;color:#283953;padding:0 6px}
.ctm-categories p{margin:0 0 9px;color:#59677e;font-size:13px}
.ctm-categories-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 14px}
.ctm-categories-grid label{display:flex;align-items:center;gap:8px;padding:7px 3px;font-weight:600;font-size:14px;color:#293950;cursor:pointer}
.ctm-categories-grid input{width:auto;accent-color:#743bb3;flex-shrink:0}
.ctm-categories.ctm-required-error{border-color:#c43737;box-shadow:0 0 0 2px #f9e3e3}
.ctm-logo-preview{margin:8px 0 0;max-height:140px;max-width:220px;object-fit:contain;border:1px solid #e6e1eb;background:#fff;border-radius:12px;padding:10px}
.ctm-logo-preview[hidden]{display:none!important}
.ctm-admin-logo{display:flex;align-items:center;gap:15px;margin:16px 0}
.ctm-admin-logo img{max-width:105px;height:auto;max-height:100px;object-fit:contain;border:1px solid #ddd;border-radius:12px;background:#fff;padding:6px}
.ctm-admin-app-head{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:12px}
.ctm-admin-app-head h2{margin:2px 0 12px!important}
.ctm-filter-nav{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0 10px}
.ctm-filter-nav a{display:inline-block;border:1px solid #dcd9e7;border-radius:999px;background:#fff;color:#4c4e67;text-decoration:none;padding:8px 13px;font-weight:650}
.ctm-filter-nav a.is-active{background:#7445b5;border-color:#7445b5;color:#fff}
.ctm-empty{text-align:center;padding:32px 20px}
.ctm-empty h2{margin-bottom:5px!important}
.ctm-help{font-size:13px;color:#5a677f}
@media(max-width:680px){.ctm-categories-grid{grid-template-columns:1fr}.ctm-steps span{font-size:11px}.ctm-admin-app-head{display:block}.ctm-admin-app-head .ctm-status{margin-bottom:14px}}

.ctm-vendor-logo{display:block;width:auto;max-width:145px;max-height:120px;object-fit:contain;border:1px solid #e4dfee;border-radius:12px;padding:8px;margin:10px 0}

/* V1.0.2 — choix du profil vendeur et réglages administrateur */
.ctm-seller-types{margin:12px 0 18px;padding:15px 17px;background:#faf7ff;border:1px solid #e0d9ec;border-radius:14px}
.ctm-seller-types legend{padding:0 6px;color:#283953;font-weight:800}
.ctm-seller-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ctm-seller-choice label{display:flex;flex-wrap:wrap;align-items:center;column-gap:9px;padding:13px;background:#fff;border:1px solid #e7e2ee;border-radius:12px;cursor:pointer;color:#27364b}
.ctm-seller-choice input{accent-color:#733eb1;flex-shrink:0}
.ctm-seller-choice small{flex-basis:100%;padding-left:25px;color:#53657a;font-size:12px}
.ctm-siret-wrap[hidden]{display:none!important}
.ctm-siret-wrap .ctm-help{margin:-2px 0 8px;line-height:1.35}
.ctm-admin-settings{max-width:950px}
.ctm-admin-settings h3{margin:25px 0 10px;color:#293766}
.ctm-admin-settings .ctm-checkbox{margin:14px 0;align-items:flex-start}
.ctm-admin-settings .ctm-checkbox span{display:flex;flex-direction:column;gap:4px}
.ctm-admin-settings .ctm-checkbox small{color:#59677e;font-size:12px}
@media(max-width:680px){.ctm-seller-choice{grid-template-columns:1fr}}

/* V1.0.3 — erreurs par champ, saisies conservees */
.ctm-notice{margin:15px 0 18px;line-height:1.55}
.ctm-error-list{margin:10px 0 0 20px;padding:0;color:#672b40;font-size:14px}
.ctm-error-list li{margin:5px 0}
.ctm-field input:invalid:not(:placeholder-shown),.ctm-field textarea:invalid:not(:placeholder-shown){box-shadow:none}

/* V1.1.0 — revisions de produits, fiches publiques et controle de publication */
.ctm-edit-panel{background:#fbf9ff;border:1px solid #e4d9f2;border-radius:15px;margin:15px 0;padding:0 17px;overflow:hidden}
.ctm-edit-panel summary{cursor:pointer;list-style:auto;padding:14px 0;font-size:15px;color:#53317e}
.ctm-edit-panel summary span{font-size:12px;color:#697586}
.ctm-edit-panel[open]{padding-bottom:20px}
.ctm-edit-panel .ctm-form{border-top:1px solid #e7dff3;padding-top:16px}
.ctm-edit-panel .ctm-form h4{font-size:17px;color:#283664;margin:14px 0 5px}
.ctm-edit-panel .ctm-field textarea{min-height:90px}
.ctm-review-flag{color:#7a4ba7;font-size:12px;line-height:1.4}
.ctm-review-box{margin:20px 0;padding:20px;border:1px solid #dac9f0;background:#faf5ff;border-radius:16px;overflow:auto}
.ctm-review-box h3{margin:0 0 8px}
.ctm-review-box table{margin:16px 0}
.ctm-review-box td{vertical-align:top;white-space:normal;overflow-wrap:anywhere}
.ctm-edit-actions{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}
.ctm-edit-actions button{background:#f0eaf8;color:#513177;border:1px solid #d4c5e7;padding:12px 15px;font-weight:700;border-radius:10px;cursor:pointer}
.ctm-edit-actions .ctm-approve-btn{color:#fff;background:linear-gradient(110deg,#7c35cc,#5535ad);border:0}
.ctm-product-link{margin:6px 0;color:#703bae;font-weight:700;font-size:13px}
.ctm-product-link a{color:#703bae}
.ctm-public-product-info{border:1px solid #e7ddf2;border-radius:14px;background:linear-gradient(120deg,#f8f2ff,#f2fbeb);padding:17px 18px;margin:18px 0;font-size:15px;line-height:1.5}
.ctm-public-product-info p{margin:4px 0 8px}
.ctm-public-product-info .ctm-not-yet{font-weight:800;color:#5f3a92}
.ctm-loop-badge{font-size:12px;color:#663ca7;font-weight:700;margin:5px 0 8px}
.ctm-market-price{font-weight:700;color:#27354e}
.woocommerce a.ctm-discover-product{background:#7240b2!important;color:#fff!important;border-radius:10px!important;text-align:center}
@media(max-width:680px){.ctm-edit-panel{padding:0 12px}.ctm-review-box{padding:12px}.ctm-edit-actions{flex-direction:column}.ctm-edit-actions button{width:100%}}

/* V1.2.0 — page partenaire / apercu de la future commande */
body.ctm-marketplace-product div.product .summary .ctm-market-price,
body.ctm-marketplace-product div.product .summary .price .ctm-market-price{
  display:inline-block;color:#22824b!important;font-size:clamp(22px,2.2vw,32px)!important;
  font-weight:800;line-height:1.25;margin:7px 0 12px
}
body.ctm-marketplace-product div.product .summary .ctm-public-product-info{
  border:1px solid #e9def6;background:linear-gradient(115deg,#f8f2ff,#f2fbec);
  border-radius:16px;padding:15px 20px;margin:15px 0 18px;color:#2d3b4c;
}
body.ctm-marketplace-product div.product .summary .ctm-public-product-info .ctm-not-yet{color:#6641a2}
body.ctm-marketplace-product div.product .summary .ctm-short-description{color:#4b5c6a;font-size:15px}
body.ctm-marketplace-product div.product .summary .ctm-disabled-cart{
  background:#fbf8ff;border:1px solid #e8def3;border-radius:20px;
  padding:20px 22px;margin:20px 0 22px;display:grid;
  grid-template-columns:minmax(95px,125px) minmax(180px,1fr);gap:14px 16px;
  align-items:end;max-width:100%;box-sizing:border-box
}
body.ctm-marketplace-product .ctm-disabled-cart .ctm-disabled-quantity{display:flex;flex-direction:column;gap:7px;margin:0;color:#394660;font-weight:700;font-size:13px}
body.ctm-marketplace-product .ctm-disabled-cart .ctm-disabled-quantity input{
  width:100%;height:48px;box-sizing:border-box;text-align:center;border:1px solid #d7d5e2;
  background:#fff;color:#667085;border-radius:12px;font-weight:700;font-size:17px
}
body.ctm-marketplace-product .ctm-disabled-cart .ctm-cart-disabled-button{
  box-sizing:border-box;max-width:100%;width:max-content;min-width:185px;height:48px;
  padding:0 20px;border:0;border-radius:12px;background:linear-gradient(110deg,#e9a9bb,#d6a3c5);
  color:#4a3d51;font-weight:800;cursor:not-allowed;box-shadow:none;opacity:.75;
}
body.ctm-marketplace-product .ctm-disabled-cart>p{
  grid-column:1/-1;color:#62498a;font-size:13px;line-height:1.55;margin:2px 0 0
}
body.ctm-marketplace-product .ctm-disabled-cart>p strong{font-weight:800}
/* Nous limitons la couleur des badges/encarts aux produits partenaires : les autres fiches WooCommerce restent intactes */
@media(max-width:600px){
  body.ctm-marketplace-product div.product .summary .ctm-disabled-cart{padding:14px;grid-template-columns:90px minmax(0,1fr);gap:10px}
  body.ctm-marketplace-product .ctm-disabled-cart .ctm-cart-disabled-button{min-width:0;width:100%;font-size:13px;padding:0 9px}
}

/* V1.2.0 — stock tampon vendeur et reception atelier */
.ctm-inventory-head{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:9px}
.ctm-inventory-head h3{margin:3px 0 0}
.ctm-inventory>p{color:#4d5c70}
.ctm-badge{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.01em;padding:7px 10px;border-radius:999px}
.ctm-badge-neutral{background:#f0eafb;color:#644098}
.ctm-inventory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:13px;margin:18px 0}
.ctm-stock-tile{border:1px solid #e4ddec;background:linear-gradient(138deg,#fff,#faf7ff);border-radius:15px;padding:17px;min-width:0}
.ctm-stock-header{display:flex;justify-content:space-between;gap:8px;color:#293764}
.ctm-stock-header small{color:#7d7c91;flex-shrink:0}
.ctm-stock-number{display:flex;align-items:baseline;gap:10px;margin:15px 0}
.ctm-stock-number strong{font-size:31px;color:#6a3eb1}
.ctm-stock-number span{font-size:12px;color:#46546c;line-height:1.3}
.ctm-stock-submit{border-top:1px solid #ece5f3;margin-top:13px;padding-top:13px}
.ctm-stock-submit summary{color:#6b3bb3;font-weight:800;cursor:pointer}
.ctm-stock-submit form{margin-top:12px}
.ctm-stock-submit .ctm-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ctm-stock-submit .ctm-field{font-size:12px}
.ctm-stock-submit .ctm-field input,.ctm-stock-submit .ctm-field textarea{font-size:13px!important}
.ctm-stock-submit button{border:0;border-radius:10px;padding:11px 15px;background:#7041b3;color:white;font-weight:800;cursor:pointer}
.ctm-empty-stock{padding:19px;margin-top:11px;background:#f7f4ff;border-radius:12px;color:#4a526c}
.ctm-inventory h4{margin:20px 0 8px;color:#293765}
.ctm-stock-admin-item{background:#fff;border:1px solid #e4ddeb;border-radius:13px;padding:16px;margin:13px 0;display:flex;flex-wrap:wrap;align-items:flex-start;gap:20px;justify-content:space-between}
.ctm-stock-admin-item>div:first-child{flex:1;min-width:200px}
.ctm-stock-admin-item p{margin:8px 0;color:#53617b}
.ctm-stock-confirm,.ctm-stock-adjust{flex:1;min-width:260px;max-width:440px;border:1px solid #e5dced;background:#faf7ff;border-radius:13px;padding:14px}
.ctm-stock-admin-item .ctm-field{margin:3px 0 10px}
.ctm-stock-admin-item .ctm-form button{cursor:pointer}
.ctm-stock-audit{width:100%;font-size:13px;color:#4d506a}
.ctm-stock-audit summary{cursor:pointer;color:#6b3bb3;font-weight:700}
.ctm-stock-audit ul{padding-left:20px}
@media(max-width:700px){.ctm-stock-submit .ctm-grid{grid-template-columns:1fr}.ctm-stock-confirm,.ctm-stock-adjust{min-width:0;max-width:none;width:100%}}
