.cms-module-tools{display:grid;grid-template-columns:minmax(200px,2fr) repeat(3,minmax(130px,1fr));gap:16px;margin:24px 0}.cms-module-tools>label{min-width:0}.cms-module-tools input,.cms-module-tools select{width:100%;min-width:0}.cms-admin .cms-language-tabs{margin-bottom:24px}.cms-language-tabs .is-selected{background:var(--brand-green);color:var(--color-on-primary)}.cms-crm-content{min-width:0}.cms-kanban{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(260px,1fr);gap:16px;overflow-x:auto;padding:4px 2px 20px;overscroll-behavior-x:contain;align-items:start}.cms-kanban-column{background:var(--color-surface-soft);border:1px solid var(--color-line);border-radius:20px;padding:16px;min-height:240px;display:grid;gap:16px}.cms-kanban-column>header{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:4px solid var(--stage-color);padding-top:16px}.cms-kanban-column h2{font-size:1rem}.cms-stage-count{background:var(--color-white);padding:2px 8px;border-radius:8px;font-size:.8125rem}.cms-kanban-cards{display:grid;gap:12px}.cms-deal-card{background:var(--color-white);border:1px solid var(--color-line);border-radius:14px;padding:16px;min-width:0;box-shadow:var(--shadow-card)}.cms-deal-card[draggable=true]{cursor:grab}.cms-deal-card .cms-button,.cms-entity-card-body>.cms-button{padding:0;min-height:32px;text-align:left;justify-content:flex-start;color:var(--color-ink);font-weight:600}.cms-deal-card .cms-button:hover{background:transparent;color:var(--brand-green)}.cms-deal-card p,.cms-deal-card small{font-size:.8125rem;overflow-wrap:anywhere}.cms-deal-card strong{font-size:.875rem}.cms-kanban-column.is-drop{outline:2px dashed var(--brand-green);outline-offset:-4px;background:var(--color-mint)}.cms-overdue{color:var(--color-error);font-weight:500}.cms-pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:24px}.cms-pagination span{font-size:.875rem;color:var(--color-muted)}.cms-detail-list{display:grid;gap:4px;overflow-wrap:anywhere;min-width:0;margin:0}.cms-detail-list dt{font-size:.75rem;color:var(--color-muted);margin-top:8px}.cms-detail-list dd{margin:0;font-size:.8125rem;font-weight:500}.cms-timeline{display:grid;gap:16px}.cms-timeline-item{display:grid;gap:8px;border-left:2px solid var(--color-line);padding:8px 0 8px 16px;overflow-wrap:anywhere}.cms-timeline-item small{font-size:.8125rem}.cms-note-form{display:grid;gap:16px;justify-items:start}.cms-note-form label{width:100%}.cms-stage-edit-list{display:grid;gap:16px}.cms-stage-edit{display:grid;grid-template-columns:minmax(110px,1fr) minmax(140px,2fr) 80px minmax(130px,1fr) 44px 44px 44px;gap:12px;align-items:end}.cms-stage-edit .cms-button{padding:8px;min-height:48px}.cms-stage-edit input[type=color]{padding:8px!important}.cms-category-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.cms-order-lines{display:grid;gap:0}.cms-order-lines>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;border-bottom:1px solid var(--color-line);padding:16px 0}.cms-order-lines>div strong:first-child{grid-column:1/-1}.cms-order-lines span{color:var(--color-muted);font-size:.875rem}.cms-access-matrix{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.cms-access-matrix .cms-panel{gap:12px}.cms-check-row input[type=checkbox]{width:20px!important;min-height:20px!important;height:20px;accent-color:var(--brand-green);flex:0 0 20px}.cms-check-row{display:flex!important;align-items:center;gap:12px;font-weight:400!important}.cms-page-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.cms-admin .cms-panel+.cms-panel{margin-top:0}.cms-admin #cms-screen>form+.cms-panel{margin-top:24px}.cms-sidebar{min-width:0}.cms-nav{white-space:normal}.cms-admin .cms-edit-columns{grid-template-columns:minmax(0,1fr) minmax(250px,320px)}.cms-admin .cms-error{overflow-wrap:anywhere}.cms-module-tools>label:last-child:nth-child(2){grid-column:2}.cms-module-tools:has(>label:nth-child(2):last-child){grid-template-columns:minmax(0,1fr) minmax(180px,240px)}
.cms-kanban-column{align-content:start}.cms-screen-heading>div:first-child{flex:1;min-width:0}.cms-screen-heading .cms-card-actions{display:flex;flex:0 1 auto;max-width:540px;justify-content:flex-end}.cms-screen-heading{align-items:center}.cms-admin .cms-deal-card .cms-entity-card-body{gap:8px}.cms-module-tools:has(>label:nth-child(3):last-child){grid-template-columns:minmax(0,2fr) repeat(2,minmax(150px,1fr))}
@media(max-width:1150px){.cms-module-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.cms-stage-edit{grid-template-columns:1fr 1fr 80px}.cms-stage-edit .cms-button{width:44px}.cms-stage-edit>label:nth-child(4){grid-column:1/-1}.cms-admin .cms-edit-columns{grid-template-columns:minmax(0,1fr)}}
@media(max-width:767px){.cms-module-tools,.cms-module-tools:has(>label:nth-child(2):last-child),.cms-module-tools:has(>label:nth-child(3):last-child){grid-template-columns:minmax(0,1fr)}.cms-module-tools>label:last-child:nth-child(2){grid-column:auto}.cms-kanban{grid-auto-columns:min(82vw,300px);gap:12px}.cms-access-matrix,.cms-page-rules{grid-template-columns:1fr}.cms-stage-edit{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.cms-stage-edit>label:nth-child(3){grid-column:1}.cms-stage-edit>label:nth-child(4){grid-column:2}.cms-deal-card{padding:14px}.cms-pagination{gap:8px;flex-wrap:wrap}.cms-order-lines>div{grid-template-columns:1fr}.cms-admin .cms-panel{padding:20px}.cms-screen-heading .cms-card-actions{width:100%}}

.cms-admin .cms-module-card{display:flex;gap:20px;align-items:center}.cms-module-card>.cms-entity-card-body{flex:1;min-width:0}.cms-module-card .cms-entity-card-body>*{overflow-wrap:anywhere}.cms-access-matrix .cms-panel{align-content:start}.cms-module-card>.cms-status{align-self:center}.cms-admin .cms-module-card>img{width:64px;height:64px}.cms-module-card>.cms-entity-card-body>.cms-button{max-width:100%;white-space:normal}
@media(max-width:767px){.cms-admin .cms-module-card{flex-wrap:wrap;gap:12px}.cms-module-card>.cms-entity-card-body{flex-basis:calc(100% - 80px)}.cms-module-card>strong,.cms-module-card>.cms-status{font-size:.8125rem}.cms-form-grid{grid-template-columns:minmax(0,1fr)}.cms-stage-edit{min-width:0}.cms-stage-edit>label{min-width:0}.cms-stage-edit input{min-width:0}}

/* Module forms do not inherit template-specific entity editor columns. */
.cms-module-form,.cms-module-form .cms-field,.cms-module-form .cms-panel,.cms-module-form label,.cms-module-form input,.cms-module-form select,.cms-module-form textarea{min-width:0}
.cms-admin .cms-module-form .cms-edit-columns>.cms-panel:last-child{grid-template-columns:minmax(0,1fr)}
.cms-product-image-picker .cms-image-preview{object-fit:contain;background:var(--color-surface-soft)}
.cms-access-matrix .cms-check-row{align-items:flex-start}
.cms-check-row>span{min-width:0;overflow-wrap:anywhere}
.cms-access-matrix .cms-check-row input{margin-top:2px!important}
@media(prefers-reduced-motion:reduce){.cms-deal-card,.cms-module-card,.cms-module-tools input,.cms-module-tools select{animation:none;transition:none}}

/* Reviews reuse the editor controls and remain independent from entity forms. */
.cms-review-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.cms-admin .cms-review-source{min-width:0;align-content:start;gap:20px;padding:24px}
.cms-review-source-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cms-review-source-heading h2{font-size:1.25rem}
.cms-review-source>.cms-editor-section-head{grid-column:1/-1}
.cms-review-source .cms-detail-list{border-top:1px solid var(--color-line);padding-top:12px}
.cms-review-source .cms-detail-list dt{margin-top:6px}
.cms-reviews-notice{margin-bottom:24px!important;font-size:.9375rem}
.cms-review-refresh-results{display:grid;gap:10px;margin-top:14px}.cms-review-refresh-result{display:grid;grid-template-columns:minmax(105px,150px) minmax(0,1fr);gap:18px;padding:14px 16px;border:1px solid var(--color-line);border-radius:14px;background:#fff;font-size:.8125rem;line-height:1.6}.cms-review-refresh-result>strong{color:var(--color-ink);font-weight:600}.cms-review-refresh-result>div{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}.cms-review-refresh-result small{font-size:.75rem}@media(max-width:600px){.cms-review-refresh-result{grid-template-columns:1fr;gap:6px}}
.cms-admin .cms-reviews-items{margin-top:28px!important;min-width:0}
.cms-reviews-items .cms-module-tools{margin:0}
.cms-review-list{display:grid;gap:16px}
.cms-review-card{display:grid;min-width:0;gap:16px;padding:24px;border:1px solid var(--color-line);border-radius:var(--radius-card,20px);background:var(--color-white)}
.cms-review-card.is-hidden{background:var(--color-surface-soft)}
.cms-review-meta,.cms-review-links{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;min-width:0}
.cms-review-meta strong{min-width:0;overflow-wrap:anywhere}
.cms-review-meta .cms-muted,.cms-review-links{font-size:.8125rem}
.cms-review-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:.9375rem;max-width:85ch}
.cms-review-links a{text-underline-offset:3px;overflow-wrap:anywhere}
@media(max-width:1199px){.cms-review-source-grid{grid-template-columns:minmax(0,1fr)}.cms-admin .cms-review-source{grid-template-columns:repeat(2,minmax(0,1fr))}.cms-review-source-heading,.cms-review-source .cms-detail-list,.cms-review-source>.cms-error{grid-column:1/-1}}
@media(max-width:767px){.cms-review-source-grid{gap:16px}.cms-admin .cms-review-source{grid-template-columns:minmax(0,1fr);padding:20px;gap:16px}.cms-review-source-heading,.cms-review-source .cms-detail-list,.cms-review-source>.cms-error{grid-column:auto}.cms-review-card{padding:20px;gap:14px}.cms-review-card .cms-card-actions .cms-button{width:100%}}

/* Pipeline names and outcome choices are primary; stable IDs stay in advanced details. */
.cms-admin .cms-stage-editor-card{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:18px;border:1px solid var(--color-line);border-radius:18px;background:#fff;min-width:0}
.cms-stage-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.cms-stage-number{font-size:13px;font-weight:600;color:var(--color-muted)}
.cms-stage-card-actions{display:flex;align-items:center;gap:6px}
.cms-stage-card-fields{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1.2fr) 92px;gap:14px;align-items:end;min-width:0}
.cms-stage-card-fields .cms-field{margin:0;gap:7px;min-width:0}
.cms-stage-card-fields .cms-field>span{font-size:13px;line-height:1.4}
.cms-stage-card-fields input,.cms-stage-card-fields .kv-select-trigger{min-height:52px;height:52px}
.cms-stage-advanced{font-size:12px;line-height:1.6;color:var(--color-muted);border-top:1px solid var(--color-line);padding-top:12px}
.cms-stage-advanced>summary{cursor:pointer;color:var(--color-muted)}
.cms-stage-advanced>.cms-field{margin-top:14px;gap:7px}
.cms-stage-advanced>.cms-field>span{font-size:12px}
.cms-stage-advanced input[readonly]{background:#f7f8fa;font-size:12px;color:var(--color-muted);min-height:42px;height:42px}
.cms-stage-advanced>.cms-field-helper{margin-top:8px;font-size:11px}
@media(max-width:700px){.cms-stage-card-fields{grid-template-columns:minmax(0,1fr) 92px}.cms-stage-card-fields>.cms-field:first-child{grid-column:1/-1}.cms-admin .cms-stage-editor-card{padding:16px}}

/* Catalogue editing keeps one clear preview and compact repeated rows. */
.cms-admin .cms-catalog-view{gap:6px}
.cms-admin .cms-catalog-view>.cms-button{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;border-radius:12px;background:#fff}
.cms-admin .cms-catalog-view svg{display:block;width:20px;height:20px}
.cms-admin .cms-catalog-list[data-view=grid] .cms-product-no-image{width:100%;height:180px;border:1px solid var(--color-line);border-radius:12px}
.cms-admin .cms-catalog-list[data-view=table] .cms-entity-card{display:grid;grid-template-columns:48px minmax(0,1fr) 130px 110px 92px;gap:16px;align-items:center}
.cms-catalog-table-head{display:grid;grid-template-columns:48px minmax(0,1fr) 130px 110px 92px;gap:16px;padding:12px 16px;border-bottom:1px solid var(--color-line);color:var(--color-muted);font-size:12px;line-height:1.5;font-weight:500}
.cms-admin .cms-catalog-list[data-view=table] .cms-product-no-image{width:48px;min-width:48px;height:48px;min-height:48px;font-size:10px}
@media(max-width:850px){.cms-catalog-table-head{display:none}}
@media(max-width:850px){.cms-admin .cms-catalog-list[data-view=table] .cms-entity-card{grid-template-columns:48px minmax(0,1fr) 110px;gap:12px}.cms-admin .cms-catalog-list[data-view=table] .cms-entity-card>.cms-muted{grid-column:2}.cms-admin .cms-catalog-list[data-view=table] .cms-entity-card>.cms-status{grid-column:3;justify-self:start}}
@media(max-width:480px){.cms-admin .cms-catalog-list[data-view=table] .cms-entity-card{grid-template-columns:42px minmax(0,1fr);padding:14px 10px}.cms-admin .cms-catalog-list[data-view=table] .cms-entity-card>.cms-product-list-price{grid-column:2}.cms-admin .cms-catalog-list[data-view=table] .cms-entity-card>.cms-status{grid-column:2}}
.cms-admin .cms-product-gallery{grid-template-columns:minmax(0,1fr);gap:14px}
.cms-product-gallery-preview{display:grid;place-items:center;position:relative;min-height:260px;height:280px;border:1px solid var(--color-line,#d4e1f5);border-radius:18px;background:#fff;padding:22px 18px 40px;overflow:hidden}
.cms-product-gallery-preview>img{display:block;width:100%;height:100%;object-fit:contain;min-height:0}
.cms-product-gallery-preview>.cms-muted{font-size:13px;text-align:center;line-height:1.7;max-width:24ch}
.cms-product-gallery-overlay,.cms-product-gallery-footer{position:absolute;left:12px;right:12px;display:flex;align-items:center;gap:8px;pointer-events:none}
.cms-product-gallery-overlay{top:12px;justify-content:space-between}
.cms-product-gallery-footer{bottom:12px;justify-content:space-between}
.cms-product-gallery-overlay>*,.cms-product-gallery-footer>*{pointer-events:auto}
.cms-product-gallery-main-action,.cms-product-gallery-main-badge,.cms-product-gallery-caption{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--color-line,#d4e1f5);border-radius:10px;background:#fff;padding:8px 10px;font-size:12px;line-height:1.4;color:var(--color-ink,#1e293b);box-shadow:0 2px 8px #1e293b0d}
.cms-admin .cms-product-gallery-main-action{font:inherit;font-size:12px;line-height:1.4;cursor:pointer}
.cms-product-gallery-main-action:hover{border-color:var(--color-primary,#3e6ab3)}
.cms-product-gallery-main-action svg,.cms-product-gallery-main-badge svg{width:16px;height:16px;flex-shrink:0;color:var(--color-primary,#3e6ab3)}
.cms-product-gallery-caption{color:var(--color-muted,#64748b);font-size:11px;padding:6px 9px;white-space:nowrap}
.cms-product-gallery-order{display:flex;gap:5px}
.cms-admin .cms-product-gallery-preview .cms-collection-icon{width:36px;min-width:36px;height:36px;min-height:36px;border-radius:10px;border-color:var(--color-line,#d4e1f5);box-shadow:0 2px 8px #1e293b0d}
.cms-product-gallery-preview .cms-collection-icon svg{width:18px;height:18px}
.cms-admin .cms-product-gallery-delete{margin-left:auto}
.cms-admin .cms-product-gallery-delete:hover{color:#9a4038;border-color:#c5958f}
.cms-product-gallery-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:10px;min-width:0}
.cms-product-gallery-thumb{position:relative;display:block;width:100%;height:90px;min-height:90px;padding:8px 8px 22px;background:#fff;border:1px solid var(--color-line,#d4e1f5);border-radius:12px;cursor:pointer;overflow:hidden}
.cms-product-gallery-thumb>img{display:block;width:100%;height:100%;object-fit:contain}
.cms-product-gallery-thumb>span{position:absolute;left:4px;right:4px;bottom:5px;font-size:10px;line-height:1.2;color:var(--color-muted,#64748b);text-align:center}
.cms-product-gallery-thumb[aria-pressed=true]{border-color:var(--color-primary,#3e6ab3);box-shadow:inset 0 0 0 1px var(--color-primary,#3e6ab3)}
.cms-admin .cms-collection-icon{width:38px;min-width:38px;height:38px;border-radius:11px;padding:0;background:#fff;flex:none}
.cms-admin .cms-collection-icon:disabled{opacity:.3;cursor:not-allowed}
.cms-admin .cms-variant-row{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding:18px;border-color:var(--color-line,#d4e1f5);background:#fff}
.cms-variant-row-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.cms-variant-row-head>strong{font-size:14px;font-weight:600}
.cms-variant-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:end}
.cms-variant-row .cms-field{margin:0;gap:7px}
.cms-variant-row .cms-field>span{font-size:13px;line-height:1.4}
.cms-variant-row .cms-field input{height:52px;min-height:52px}
.cms-variant-row>.cms-field-helper{font-size:12px;line-height:1.55;margin-top:-6px}
.cms-variant-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--color-line,#d4e1f5);padding-top:14px}
.cms-variant-footer>.cms-check-row{margin:0;font-size:13px}
.cms-admin .cms-variant-photo{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.cms-admin .cms-variant-photo>img{width:38px;height:44px;border:1px solid var(--color-line,#d4e1f5);border-radius:8px;object-fit:contain;flex:none}
.cms-variant-photo>.cms-button{font-size:12px;min-height:38px;padding:8px 11px}
.cms-variant-photo>.cms-collection-icon{width:30px;min-width:30px;height:30px}
@media(max-width:600px){.cms-variant-fields{grid-template-columns:minmax(0,1fr)}.cms-admin .cms-variant-row{padding:16px;gap:13px}.cms-product-gallery-preview{height:260px;min-height:240px}.cms-product-gallery-thumbs{grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:8px}}
@media(pointer:coarse){.cms-admin .cms-product-gallery-preview .cms-collection-icon{width:44px;min-width:44px;height:44px;min-height:44px}.cms-product-gallery-main-action{min-height:44px}}

.cms-offer-settings{display:grid;gap:16px;min-width:0}
.cms-offer-discount{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:end}
.cms-offer-item-row{display:grid;gap:12px;padding:16px;border:1px solid var(--color-line,#d4e1f5);border-radius:16px;background:#fff;min-width:0}
.cms-offer-item-main{display:grid;grid-template-columns:minmax(0,1fr) 100px 38px;gap:12px;align-items:end}
.cms-offer-item-row .cms-field{margin:0;gap:7px}
.cms-offer-item-row .cms-field>span{font-size:13px;line-height:1.4}
.cms-offer-item-row .cms-field input,.cms-offer-item-row .kv-select-trigger{min-height:52px;height:52px}
.cms-offer-item-row .cms-collection-icon{align-self:end;margin-bottom:7px}
.cms-offer-settings input:disabled,.cms-offer-items input:disabled{background:#f6f7f9;color:#7e8795}
@media(max-width:600px){.cms-offer-discount{grid-template-columns:minmax(0,1fr)}.cms-offer-item-main{grid-template-columns:minmax(0,1fr) 38px}.cms-offer-item-main>.cms-field:first-child{grid-column:1/-1}.cms-offer-item-main>.cms-field:nth-child(2){max-width:150px}}

/* Catalogue extensions use the same cards and controls as the other editors. */
.cms-catalog-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}.cms-catalog-view{display:flex;gap:8px;margin:0 0 18px}.cms-catalog-view [aria-pressed=true]{border-color:var(--color-primary,#3e6ab3);color:var(--color-primary,#3e6ab3);box-shadow:inset 0 0 0 1px currentColor}.cms-catalog-list[data-view=grid]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.cms-catalog-list[data-view=grid] .cms-entity-card{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:20px}.cms-catalog-list[data-view=grid] .cms-entity-card>img{width:100%;height:180px;object-fit:contain}.cms-catalog-list[data-view=table]{gap:0}.cms-catalog-list[data-view=table] .cms-entity-card{border-radius:0;border-width:0 0 1px;padding:14px 16px}.cms-catalog-list[data-view=table] .cms-entity-card>img{width:48px;height:48px;object-fit:contain}.cms-product-no-image{width:72px;min-width:72px;min-height:64px;display:grid;place-items:center;color:var(--color-muted,#64748b);font-size:12px}.cms-product-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cms-product-photo{display:flex;flex-wrap:wrap;gap:6px;padding:10px;border:1px solid var(--color-border,#d4e1f5);border-radius:14px}.cms-product-photo img{width:100%;height:145px;object-fit:contain;border-radius:10px}.cms-product-photo small{width:100%;color:var(--color-muted,#64748b)}.cms-product-photo .cms-button{font-size:13px;padding:8px;min-height:38px}.cms-collection-rows{display:grid;gap:16px}.cms-characteristic-row,.cms-bundle-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:12px}.cms-bundle-row{grid-template-columns:minmax(0,1fr) 100px auto}.cms-variant-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px;border:1px solid var(--color-border,#d4e1f5);border-radius:18px}.cms-variant-row .cms-checkbox{align-self:center}.cms-variant-photo{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.cms-variant-photo img{width:48px;height:56px;object-fit:contain}.cms-discount-targets{max-height:380px;overflow:auto;display:grid;gap:12px;padding:4px}.cms-order-lines .cms-order-product{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:16px;align-items:center}.cms-order-product>img{width:72px;height:84px;object-fit:contain;border-radius:12px}.cms-order-product>div{display:grid;gap:6px}.cms-order-product>span{grid-column:2}.cms-order-product>strong{grid-column:3;grid-row:1 / span 2}.cms-order-product-placeholder{display:grid;place-items:center;width:72px;height:84px;border:1px solid var(--color-border,#d4e1f5);border-radius:12px;color:var(--color-muted,#64748b);font-size:12px}
@media(max-width:1100px){.cms-catalog-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.cms-catalog-list[data-view=grid]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.cms-catalog-tools{grid-template-columns:1fr 1fr}.cms-catalog-tools>:first-child{grid-column:1/-1}.cms-catalog-list[data-view=grid]{grid-template-columns:1fr}.cms-characteristic-row,.cms-bundle-row{grid-template-columns:1fr 1fr}.cms-characteristic-row>.cms-button,.cms-bundle-row>.cms-button{grid-column:1/-1}.cms-variant-row{grid-template-columns:1fr}.cms-order-lines .cms-order-product{grid-template-columns:56px minmax(0,1fr)}.cms-order-product>img{width:56px;height:64px}.cms-order-product>strong{grid-column:2;grid-row:auto}.cms-catalog-list .cms-module-card{flex-wrap:wrap}}

.cms-product-list-price{display:grid;gap:5px;white-space:nowrap}.cms-product-list-price>del{font-size:12px}.cms-product-sale-label{font-size:11px;color:var(--color-primary,#3e6ab3);font-weight:500}.cms-catalog-display-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-bottom:18px}.cms-catalog-display-tools>.cms-catalog-view{margin:0}.cms-catalog-display-tools>.cms-check-row{margin:0}
.cms-catalog-list .cms-catalog-product-card{position:relative}.cms-catalog-list .cms-product-stock{display:inline-flex;align-items:center;gap:7px;min-width:0;align-self:center;font-size:13px;line-height:20px;color:var(--color-muted,#64748b);white-space:nowrap}.cms-product-stock-dot{flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:currentColor}.cms-product-stock.is-available>.cms-product-stock-dot{background:#237a52}.cms-catalog-list[data-view=grid] .cms-product-stock{align-self:flex-start}
@media(max-width:850px){.cms-admin .cms-catalog-list[data-view=table] .cms-catalog-product-card{padding-right:60px}.cms-catalog-list[data-view=table] .cms-product-stock{grid-column:2}}
@media(forced-colors:active){.cms-product-publication{border-color:CanvasText}.cms-product-stock-dot,.cms-product-stock.is-available>.cms-product-stock-dot{background:CanvasText}}

/* Category hierarchy shares the existing catalogue editor and card styling. */

/* Product sections share one form, one draft and one save action. */
.cms-product-editor-tabs{display:flex;align-items:center;gap:6px;padding:6px;border:1px solid var(--color-line);border-radius:18px;background:var(--color-surface-soft,#f7f9fd);width:max-content;max-width:100%;overflow-x:auto;scrollbar-width:thin}
.cms-admin .cms-product-editor-tabs>[role=tab]{flex:0 0 auto;min-height:46px;padding:11px 18px;border:0;border-radius:12px;background:transparent;color:var(--color-muted);font:inherit;font-size:15px;line-height:1.4;white-space:nowrap;cursor:pointer}
.cms-admin .cms-product-editor-tabs>[role=tab][aria-selected=true]{background:var(--color-primary);color:var(--color-on-primary,#fff);font-weight:600}
.cms-admin .cms-product-editor-tabs>[role=tab]:hover:not([aria-selected=true]){background:var(--color-mint);color:var(--color-primary)}
.cms-admin .cms-product-editor-tabs>[role=tab]:focus-visible{outline:2px solid var(--color-primary);outline-offset:-3px}
.cms-admin .cms-product-editor-tabs>[role=tab]:disabled{cursor:wait;opacity:.5}
.cms-product-editor-panels,.cms-product-editor-panel{min-width:0}
.cms-product-editor-panel>.cms-editor-section{margin:0}
@media(max-width:767px){.cms-admin .cms-product-editor-tabs>[role=tab]{padding:10px 13px;min-height:44px;font-size:14px}}

/* An explicit zero-minimum form track keeps local tabs from expanding the mobile page. */
.cms-admin .cms-module-form:has(>.cms-product-editor-tabs){grid-template-columns:minmax(0,1fr);width:100%;max-width:100%;min-width:0}
.cms-product-editor-tabs{min-width:0;box-sizing:border-box}
.cms-product-editor-panels,.cms-product-editor-panel{width:100%;max-width:100%}
@media(max-width:767px){.cms-product-editor-tabs{width:100%;max-width:100%}}

/* Module actions keep their text and callbacks. */
.cms-admin .cms-module-action-icon{flex:0 0 20px;width:20px;height:20px}

/* Review source activation is a native, labelled switch in its own compact header. */
.cms-admin .cms-review-source>.cms-review-source-heading{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;gap:12px}
.cms-admin .cms-review-source-heading-copy{display:grid;gap:6px;min-width:0;flex:1 1 auto}
.cms-admin .cms-review-source-toggle{display:grid;place-items:center;flex:0 0 48px;min-width:48px;min-height:44px;margin:-8px -6px 0 0;cursor:pointer}
.cms-admin .cms-review-source-toggle>input[role=switch]{appearance:none;flex:none;position:relative;display:block;width:48px;min-width:48px;height:28px;min-height:28px;padding:0;margin:0;border:0;border-radius:20px;background:#cbd5e1;box-shadow:none;cursor:pointer}
.cms-admin .cms-review-source-toggle>input[role=switch]::before{content:'';display:block;position:absolute;top:4px;left:4px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .15s}
.cms-admin .cms-review-source-toggle>input[role=switch]:checked{background:var(--color-primary)}
.cms-admin .cms-review-source-toggle>input[role=switch]:checked::before{transform:translateX(20px)}
.cms-admin .cms-review-source-toggle>input[role=switch]:focus-visible{outline:3px solid var(--color-primary);outline-offset:4px}
.cms-admin .cms-review-source-toggle>input[role=switch]:disabled{opacity:.6;cursor:default}
@media(prefers-reduced-motion:reduce){.cms-admin .cms-review-source-toggle>input[role=switch],.cms-admin .cms-review-source-toggle>input[role=switch]::before{transition:none}}
@media(forced-colors:active){.cms-admin .cms-review-source-toggle>input[role=switch]{appearance:auto;background:Canvas;border-color:ButtonText}.cms-admin .cms-review-source-toggle>input[role=switch]::before{display:none}}

/* Four provider settings fit two equal columns; the existing narrow layout stays intact. */
@media(min-width:1200px){.cms-admin .cms-review-source-grid:has(>.cms-review-source:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Mail settings keep the address, its state and its actions together. */
.cms-admin #cms-screen .cms-notification-panel{display:grid;gap:22px;padding:28px 30px;min-width:0}
.cms-admin #cms-screen .cms-notification-panel>.cms-editor-section-head{padding:0;border:0;gap:0}
.cms-admin #cms-screen .cms-notification-panel>.cms-editor-section-head h2{margin:0;font-size:18px;line-height:26px;font-weight:600;letter-spacing:0}
.cms-admin #cms-screen .cms-notification-toggle{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0;padding:16px 18px;border-radius:14px;background:var(--color-surface-soft,#f7f9fd);cursor:pointer}
.cms-admin #cms-screen .cms-notification-toggle>span{display:grid;gap:4px;min-width:0}
.cms-admin #cms-screen .cms-notification-toggle strong{font-size:15px;line-height:22px;font-weight:500}
.cms-admin #cms-screen .cms-notification-toggle small{font-size:13px;line-height:20px;color:var(--color-muted,#64748b)}
.cms-admin #cms-screen .cms-notification-switch[role=switch]{appearance:none;display:block;position:relative;flex:0 0 44px;width:44px!important;min-width:44px;height:26px!important;min-height:26px!important;padding:0!important;margin:0!important;border:0!important;border-radius:20px;background:#cbd1df;box-shadow:none;cursor:pointer;transition:background .15s}
.cms-admin #cms-screen .cms-notification-switch[role=switch]::before{content:'';display:block;position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #1e293b1f;transition:transform .15s}
.cms-admin #cms-screen .cms-notification-switch[role=switch]:checked{background:var(--color-primary,#4f5edb)}
.cms-admin #cms-screen .cms-notification-switch[role=switch]:checked::before{transform:translateX(18px)}
.cms-admin #cms-screen .cms-notification-switch[role=switch]:focus-visible{outline:3px solid var(--color-primary,#4f5edb);outline-offset:4px}
.cms-admin #cms-screen .cms-notification-switch[role=switch]:disabled{opacity:.5;cursor:default}
.cms-admin #cms-screen .cms-notification-toggle:has(input:disabled){cursor:default}
.cms-admin #cms-screen .cms-notification-recipient{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 24px;min-width:0}
.cms-admin #cms-screen .cms-recipient-label{grid-column:1;font-size:13px;line-height:20px;color:var(--color-muted,#64748b)}
.cms-admin #cms-screen .cms-recipient-address{grid-column:1;display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-width:0}
.cms-admin #cms-screen .cms-recipient-email{margin:0;color:var(--color-ink,#45464e);font-size:16px;line-height:24px;font-weight:500;overflow-wrap:anywhere;min-width:0}
.cms-admin #cms-screen .cms-recipient-state{display:inline-flex;align-items:center;justify-self:start;width:fit-content;max-width:100%;padding:4px 8px;border-radius:7px;background:#f1f3f8;color:#667085;font-size:12px;line-height:18px;font-weight:400;white-space:normal}
.cms-admin #cms-screen .cms-recipient-state[data-state=verified]{background:#e8f5ee;color:#24774f}
.cms-admin #cms-screen .cms-recipient-state[data-state=pending]{background:#eef0ff;color:#4b59ba}
.cms-admin #cms-screen .cms-recipient-state:is([data-state=unverified],[data-state=dirty]){background:#fff5df;color:#8b681a}
.cms-admin #cms-screen .cms-notification-recipient>.cms-recipient-verification{display:contents}
.cms-admin #cms-screen .cms-recipient-hint{margin:0;color:var(--color-muted,#64748b);font-size:13px;line-height:20px;overflow-wrap:anywhere;min-width:0}
.cms-admin #cms-screen .cms-notification-recipient>.cms-recipient-verification>.cms-recipient-hint{grid-column:1}
.cms-admin #cms-screen .cms-recipient-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;min-width:0}
.cms-admin #cms-screen .cms-notification-recipient>.cms-recipient-verification>.cms-recipient-actions{grid-column:2;grid-row:1/4;align-self:center;justify-content:flex-end}
.cms-admin #cms-screen .cms-recipient-actions:empty{display:none}
.cms-admin #cms-screen .cms-recipient-confirm{min-height:40px;padding:9px 13px;border-radius:11px;font-size:13px;line-height:20px;white-space:normal;text-align:center}
.cms-admin #cms-screen .cms-recipient-edit{min-height:40px;padding:9px 0;border:0;border-radius:0;background:transparent;color:var(--color-primary,#4f5edb);font-size:13px;line-height:20px;text-decoration:none;text-underline-offset:4px}
.cms-admin #cms-screen .cms-recipient-edit:hover{text-decoration:underline;background:transparent}
.cms-admin #cms-screen .cms-notification-additional{min-width:0;border-top:1px solid var(--color-line,#edf0f7);padding-top:16px}
.cms-admin #cms-screen .cms-notification-additional>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;list-style:none;min-height:40px;padding:3px 0;color:var(--color-ink,#45464e);font-size:14px;line-height:22px;cursor:pointer}
.cms-admin #cms-screen .cms-notification-additional>summary::-webkit-details-marker{display:none}
.cms-admin #cms-screen .cms-additional-summary-copy{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;min-width:0}
.cms-admin #cms-screen .cms-additional-summary-copy>small{font-size:12px;color:var(--color-muted,#64748b)}
.cms-admin #cms-screen .cms-notification-additional>summary>:is(svg,[data-cms-icon]){flex:0 0 18px;width:18px;height:18px;color:var(--color-muted,#64748b);transition:transform .15s}
.cms-admin #cms-screen .cms-notification-additional[open]>summary>svg{transform:rotate(180deg)}
.cms-admin #cms-screen .cms-notification-additional>summary:focus-visible{outline:2px solid var(--color-primary,#4f5edb);outline-offset:5px;border-radius:3px}
.cms-admin #cms-screen .cms-additional-recipient{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px 20px;padding-top:16px;min-width:0}
.cms-admin #cms-screen .cms-additional-recipient>.cms-field{grid-column:1;min-width:0;margin:0;gap:7px}
.cms-admin #cms-screen .cms-additional-recipient>.cms-field>span{font-size:13px;line-height:20px;font-weight:400;color:var(--color-muted,#64748b)}
.cms-admin #cms-screen .cms-additional-recipient input{height:48px;min-height:48px;font-size:14px;line-height:22px}
.cms-admin #cms-screen .cms-additional-recipient>.cms-recipient-state{grid-column:2;grid-row:1;align-self:center}
.cms-admin #cms-screen .cms-additional-recipient>.cms-recipient-verification{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap}
.cms-admin #cms-screen .cms-notification-panel [hidden]{display:none!important}
@media(max-width:767px){.cms-admin #cms-screen .cms-notification-panel{padding:22px 20px;gap:20px}.cms-admin #cms-screen .cms-notification-toggle{padding:14px;gap:14px}.cms-admin #cms-screen .cms-notification-recipient{grid-template-columns:minmax(0,1fr);gap:8px}.cms-admin #cms-screen .cms-notification-recipient>.cms-recipient-verification>.cms-recipient-actions{grid-column:1;grid-row:auto;justify-content:flex-start;margin-top:2px}.cms-admin #cms-screen .cms-additional-recipient{grid-template-columns:minmax(0,1fr);gap:10px}.cms-admin #cms-screen .cms-additional-recipient>.cms-recipient-state{grid-column:1;grid-row:auto}.cms-admin #cms-screen .cms-additional-recipient>.cms-recipient-verification{align-items:flex-start;flex-direction:column}.cms-admin #cms-screen .cms-recipient-confirm,.cms-admin #cms-screen .cms-recipient-edit{min-height:44px}.cms-admin #cms-screen .cms-notification-additional>summary{min-height:40px}}
@media(prefers-reduced-motion:reduce){.cms-admin #cms-screen .cms-notification-switch[role=switch],.cms-admin #cms-screen .cms-notification-switch[role=switch]::before,.cms-admin #cms-screen .cms-notification-additional>summary>:is(svg,[data-cms-icon]){transition:none}}
@media(forced-colors:active){.cms-admin #cms-screen .cms-notification-switch[role=switch]{appearance:auto;background:Canvas}.cms-admin #cms-screen .cms-notification-switch[role=switch]::before{display:none}.cms-admin #cms-screen .cms-recipient-state{border:1px solid CanvasText}}
