.control-add{margin-block:20px;border-top:1px solid #e6d9d9;padding-block-start:16px}.control-record{margin-block:16px}.control-record[hidden]{display:none}.control-record summary{padding:12px 0;cursor:pointer}.control-form{margin-block:16px}.control-form textarea{width:100%;min-height:120px}.control-record pre{white-space:pre-wrap;overflow-wrap:anywhere}#control-preview-dialog{width:min(800px,92vw);max-height:85vh;overflow:auto;padding:24px;border:0;border-radius:16px}#control-preview-dialog::backdrop{background:#0008}.control-form .wide{grid-column:1/-1}#navigation{max-height:calc(100vh - 220px);overflow:auto}@media(max-width:700px){.control-form{grid-template-columns:1fr}.control-form .wide{grid-column:1}}

#product-editor #product-sections{padding:16px;background:#fff;border:1px solid #e8dfd9;border-radius:14px}#product-sections legend{padding:0 8px;font-weight:700;color:#64162e}.section-selection-help{margin:0 0 12px;font-size:13px;color:#796d71}.section-chip-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#product-editor #product-sections .section-chip{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:10px;margin:0;padding:10px 12px;min-height:60px;border:1px solid #e8dfd9;border-radius:10px;background:#faf7f2;cursor:pointer;transition:border-color .15s,background .15s}#product-editor #product-sections input[type=checkbox]{width:18px;height:18px;min-width:18px;max-width:18px;min-height:18px;padding:0;margin:0;accent-color:#64162e;cursor:pointer;align-self:center}#product-sections .section-chip strong{display:block;font-size:13px;line-height:1.45}#product-sections .section-chip small{display:block;font-size:11px;font-weight:400;line-height:1.4;margin-top:3px;overflow-wrap:anywhere}#product-editor #product-sections .section-chip:has(input:checked){background:#f5e9ed;border-color:#64162e}#product-editor #product-sections .section-chip:hover{border-color:#b08968}#product-editor #product-sections .section-chip:focus-within{outline:2px solid #b08968;outline-offset:2px}.section-selected-count{margin:12px 0 0;font-size:12px;color:#64162e}.product-field-help{display:block;font-size:12px;font-weight:400;color:#796d71;margin-top:5px;line-height:1.6}@media(max-width:700px){.section-chip-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#product-editor #product-sections{padding:12px}}@media(max-width:380px){.section-chip-grid{grid-template-columns:1fr}}

.variant-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.variant-section-head h3{margin:0}.variant-section-head button{padding:9px 14px;font-size:13px}#product-editor .variant-section-head small{display:inline-block;direction:ltr;margin-inline-start:8px}

/* Compact product review lists and centered details. */
.review-status-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}.review-status-tabs button{display:flex;align-items:center;gap:10px}.review-status-tabs b{border-radius:20px;background:#f5e8ed;color:#64162e;padding:2px 9px}.review-list-tools{display:flex;gap:16px;align-items:end;margin:16px 0}.review-list-tools label{flex:1;max-width:520px}.review-list-tools input{margin-top:6px}.review-product-row{display:grid;grid-template-columns:48px minmax(130px,1fr) minmax(110px,.6fr) auto auto;gap:16px;align-items:center;padding:14px 16px;background:#fff;border:1px solid #eadfe1;border-radius:12px;margin-bottom:9px}.review-product-row img{width:48px;height:62px;object-fit:cover;border-radius:6px}.review-row-name small,.review-row-summary small{display:block;color:#887b7f;margin-top:5px}.review-no-photo{font-size:10px;color:#64162e}.review-product-row strong{overflow-wrap:anywhere}.review-product-row .status{white-space:normal}.review-pagination{display:flex;justify-content:center;align-items:center;gap:20px;margin:20px 0}.product-review-dialog{width:min(860px,calc(100vw - 32px));max-height:85dvh;overflow:auto;border:0;border-radius:18px;padding:20px;color:#33282c;background:#fff}.product-review-dialog::backdrop{background:rgb(35 15 23 / .55)}.product-review-dialog .product{display:block;margin:10px 0 0;border:0;padding:0}.product-review-dialog .product>img{width:120px;height:160px;object-fit:contain;float:inline-end;margin:0 0 12px 16px}.product-review-dialog .product-info{min-width:0}.review-close{position:sticky;top:0;z-index:1;background:#fff}.review-specs{clear:both;display:grid;gap:10px}.review-specs dt{font-weight:bold}.review-specs dd{margin:4px 0}.product-review-dialog .stock{flex-wrap:wrap}
@media(max-width:700px){.review-product-row{grid-template-columns:40px 1fr auto;gap:9px;padding:10px}.review-product-row img{width:40px;height:54px}.review-row-summary{grid-column:2}.review-product-row .status{grid-column:2}.review-product-row button{grid-column:3;grid-row:1 / 4}.review-list-tools{display:block}.review-list-tools [role=status]{display:block;margin-top:10px}.review-status-tabs button{padding:10px;font-size:13px}.product-review-dialog{padding:14px}.product-review-dialog .actions{flex-wrap:wrap}}

/* Separate close controls from the product publication badge, matching the approved spacing. */
.product-review-dialog{padding:28px;border-radius:20px}
.review-dialog-header{position:sticky;top:-28px;z-index:2;display:flex;align-items:center;padding:14px 0 20px;margin-bottom:18px;background:white}
.product-review-dialog .review-close{position:static;min-height:44px;padding:10px 22px}
.product-review-dialog .product{margin-top:0}
.product-review-dialog .product-info>.status{display:inline-block;margin:0 0 12px}
.product-review-dialog .product-info>h3{margin:0 0 14px;line-height:1.5}
.product-review-dialog .product-info>small{display:block;margin-bottom:12px}
.product-review-dialog .product-info>p{margin-bottom:22px}
.product-review-dialog .stock{gap:14px;padding:18px 0;align-items:center}
.product-review-dialog .stock>small{max-width:100%;overflow-wrap:anywhere}
.product-review-dialog .review-form{margin-top:24px;padding-top:22px}
.product-review-dialog .actions{gap:12px;margin:8px 0 22px;flex-wrap:wrap}
.product-review-dialog .review-specs{gap:20px;margin-top:26px;padding-top:22px;border-top:1px solid #eadfe1}
.product-review-dialog .review-specs dt{font-size:15px}.product-review-dialog .review-specs dd{margin:6px 0 0;line-height:1.8;overflow-wrap:anywhere}
.product-review-dialog .product>img{margin-inline-start:20px;margin-inline-end:0}
@media(max-width:700px){.product-review-dialog{padding:18px;width:calc(100vw - 24px)}.review-dialog-header{top:-18px;padding:8px 0 16px;margin-bottom:16px}.product-review-dialog .product>img{width:85px;height:115px;margin-inline-start:14px}.product-review-dialog .stock{gap:10px;padding:14px 0}.product-review-dialog .actions{gap:10px}.product-review-dialog .actions button{padding:10px 14px}.product-review-dialog .review-specs{gap:16px}}

.product-review-dialog .review-cover-button{float:inline-end;width:140px;padding:0;background:#faf7f2;margin:0 0 18px 0;margin-inline-start:20px;color:#64162e;border:1px solid #eadfe1}
.product-review-dialog .review-cover-button img{display:block;width:100%;height:180px;object-fit:contain;margin:0;border-radius:10px}.review-cover-button small{display:block;padding:7px;font-size:12px;color:inherit}
.product-review-dialog .review-specs{clear:both;grid-template-columns:repeat(3,minmax(0,1fr));padding:18px;background:#faf7f2;border:1px solid #eadfe1;border-radius:12px;margin:20px 0}
#review-image-viewer{width:min(1100px,calc(100vw - 24px));max-height:94dvh;padding:18px;border:0;border-radius:18px;background:#fff;color:#30242a}#review-image-viewer::backdrop{background:rgb(25 10 17 / .8)}.image-viewer-toolbar,.image-viewer-actions{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.image-viewer-stage{margin:16px 0;max-height:70dvh;overflow:auto;text-align:center;background:#faf7f2;border-radius:10px}.image-viewer-stage img{display:block;margin:auto;width:100%;max-height:70dvh;object-fit:contain}.image-viewer-stage.zoomed img{width:170%;max-width:none;max-height:none;object-fit:initial}.image-viewer-actions button{padding:10px 16px}
@media(max-width:700px){.product-review-dialog .review-specs{grid-template-columns:1fr;gap:14px;padding:14px}.product-review-dialog .review-cover-button{width:100px;margin-inline-start:14px}.product-review-dialog .review-cover-button img{height:135px}#review-image-viewer{padding:12px}.image-viewer-toolbar strong{max-width:65%;font-size:15px}.image-viewer-actions{gap:8px}.image-viewer-actions button{padding:8px 10px;font-size:13px}}
.compact-task-list{display:grid;grid-template-columns:1fr;gap:10px}.task-list-controls{margin:18px 0}.task-list-controls>label{max-width:520px}.compact-task-row{display:grid;grid-template-columns:minmax(140px,1fr) auto minmax(160px,1fr) auto;gap:16px;align-items:center;padding:16px;background:white;border:1px solid #eadfe1;border-radius:12px}.compact-task-row small{display:block;margin-top:4px;overflow-wrap:anywhere}.compact-task-row strong{overflow-wrap:anywhere}.compact-task-route{font-size:14px}.task-detail-dialog{width:min(860px,calc(100vw - 32px));max-height:85dvh;overflow:auto;border:0;border-radius:20px;padding:28px;background:#fff;color:#30242a}.task-detail-dialog::backdrop{background:rgb(35 15 23 / .55)}.task-detail-dialog>.task{border:0;padding:0;margin:0}.task-detail-dialog .actions{gap:12px;flex-wrap:wrap;margin:18px 0}.task-detail-dialog .task-top{gap:16px;flex-wrap:wrap}.task-detail-dialog .address{padding:14px;background:#faf7f2;border-radius:10px}.task-detail-dialog .task ul{padding-inline-start:22px}.task-detail-dialog .task li{margin-bottom:10px}.task-detail-dialog .task form{margin-top:12px}
@media(max-width:700px){.compact-task-row{grid-template-columns:1fr auto;gap:10px;padding:12px}.compact-task-row>.status{grid-column:1;grid-row:2}.compact-task-route{grid-column:1;grid-row:3}.compact-task-row>button{grid-column:2;grid-row:1 / 4}.task-detail-dialog{padding:18px;width:calc(100vw - 24px)}.task-detail-dialog .review-dialog-header{top:-18px}.task-detail-dialog .task-top h3{font-size:18px}}
