/* Legacy VM product workspace trial. All presentation lives in this file. */
body.grp-product-workspace-open #content-container,
body.grp-product-workspace-open .grp-add-product-fab { display: none !important; }
#grp-add-product-modal.grp-product-workspace { position: relative; inset: auto; padding: 0; z-index: auto; width: 100%; }
#grp-add-product-modal.grp-product-workspace.is-open { display: block; }
.grp-product-workspace .grp-modal-backdrop { display: none; }
#grp-add-product-modal.grp-product-workspace .grp-modal-shell { width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; transform: none; animation: none; overflow: visible; background: transparent; }
.grp-product-workspace .grp-modal-header { background: transparent !important; padding: 12px 0 24px; border-bottom: 0; }
.grp-product-workspace .grp-modal-title h2 { font-size: 28px; }
.grp-product-workspace .grp-modal-body,
.grp-product-workspace .grp-modal-frame { height: auto; background: transparent !important; overflow: visible; border-radius: 0; }
.grp-product-workspace .grp-modal-frame iframe { min-height: 600px; background: transparent; display: block; }
.grp-product-workspace.is-loading iframe { visibility: hidden; }
.grp-product-workspace .grp-modal-loading { background: var(--tz-surface-alt, #f7fafb); }
.grp-product-workspace .grp-modal-close { flex-shrink: 0; }
body.grp-product-document { --gp-bg: #f7fafb; --gp-panel: #fff; --gp-text: #203b43; --gp-muted: #617780; --gp-border: #dce6e9; margin: 0 !important; padding: 0 !important; background: var(--gp-bg) !important; color: var(--gp-text); }
body.grp-product-document.dark-theme { --gp-bg: #1b282d; --gp-panel: #223238; --gp-text: #e4eff1; --gp-muted: #afc4ca; --gp-border: #3b5159; }
body.grp-product-document header, body.grp-product-document footer,
body.grp-product-document .site-header, body.grp-product-document .site-footer,
body.grp-product-document .elementor-location-header, body.grp-product-document .elementor-location-footer,
body.grp-product-document #wpadminbar, body.grp-product-document .grpms-topbar,
body.grp-product-document .tuzzello-header, body.grp-product-document .tuzzello-topbar,
body.grp-product-document .gtranslate_wrapper, body.grp-product-document .language-switcher { display: none !important; }
body.grp-product-document .page, body.grp-product-document .site,
body.grp-product-document .site-content, body.grp-product-document .content-area,
body.grp-product-document .site-main { padding: 0 !important; margin: 0 !important; max-width: 100% !important; width: 100% !important; }
body.grp-product-document #main-content.grp-product-editor { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; padding: 0 2px 24px !important; margin: 0 !important; width: 100%; max-width: none; background: var(--gp-bg) !important; color: var(--gp-text) !important; }
.grp-product-editor > .notice, .gp-steps { grid-column: 1 / -1; }
body.grp-product-document #create-product-form { min-width: 0; width: 100%; max-width: none; margin: 0; padding: 0; }
.gp-steps { display: flex; gap: 8px; padding: 12px 0 20px; border-bottom: 1px solid var(--gp-border); }
.gp-steps button { display: flex; align-items: center; gap: 10px; flex: 1; padding: 8px; background: transparent !important; color: var(--gp-muted) !important; box-shadow: none !important; border: 0 !important; font: inherit; text-align: left; cursor: pointer; }
.gp-steps button span { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--gp-border); }
.gp-steps button.is-current { color: var(--gp-text) !important; font-weight: 700; }
.gp-steps button.is-current span { background: #47767e; color: white; }
.grp-product-editor [hidden] { display: none !important; }
body.grp-product-document .grp-product-editor .block-table { margin: 0 0 18px !important; padding: 18px !important; background: var(--gp-panel) !important; border: 1px solid var(--gp-border) !important; border-radius: 10px !important; box-shadow: none !important; }
body.grp-product-document .grp-product-editor .block-table thead th { padding: 0 0 14px !important; min-height: 0 !important; font-size: 16px !important; font-weight: 650 !important; letter-spacing: 0 !important; text-transform: none !important; background: transparent !important; border: 0 !important; color: var(--gp-text) !important; }
body.grp-product-document .grp-product-editor .block-table thead th::before,
body.grp-product-document .grp-product-editor .block-table::before { display: none !important; }
body.grp-product-document .grp-product-editor .block-table td { padding: 10px 0 !important; background: transparent !important; color: var(--gp-text) !important; }
body.grp-product-document .grp-product-editor label { color: var(--gp-text) !important; font-size: 13px !important; font-weight: 600 !important; }
body.grp-product-document .grp-product-editor small { color: var(--gp-muted) !important; }
body.grp-product-document .grp-product-editor input:not([type=checkbox]):not([type=hidden]),
body.grp-product-document .grp-product-editor select,
body.grp-product-document .grp-product-editor textarea { background: var(--gp-panel) !important; color: var(--gp-text) !important; border: 1px solid var(--gp-border) !important; border-radius: 7px !important; box-shadow: none !important; width: 100% !important; font-size: 14px !important; }
body.grp-product-document .grp-product-editor textarea { min-height: 110px; }
body.grp-product-document .grp-product-editor button { box-shadow: none !important; }
body.grp-product-document .grp-product-editor .block-table-buttons { position: static !important; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 0 !important; padding: 18px 0 !important; background: transparent !important; border-top: 1px solid var(--gp-border); width: 100% !important; }
.gp-progress { margin-right: auto; color: var(--gp-muted); font-size: 12px; }
body.grp-product-document .grp-product-editor .gp-next,
body.grp-product-document .grp-product-editor #save-addproduct-button { background: #f35b04 !important; color: #fff !important; border: 0; border-radius: 7px; padding: 12px 20px; cursor: pointer; }
.gp-back, .gp-edit-details { background: transparent; border: 1px solid var(--gp-border); border-radius: 7px; padding: 10px 16px; color: var(--gp-text); cursor: pointer; }
.gp-preview { align-self: start; background: var(--gp-panel); padding: 20px; border: 1px solid var(--gp-border); border-radius: 10px; min-width: 0; }
.gp-eyebrow { color: var(--gp-muted); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
.gp-preview-image { display: grid; place-items: center; aspect-ratio: 1; background: var(--gp-bg); border-radius: 8px; margin: 18px 0; overflow: hidden; color: var(--gp-muted); font-size: 13px; }
.gp-preview-image img { width: 100%; height: 100%; object-fit: contain; }
body.grp-product-document .gp-preview h2, body.grp-product-document .gp-review h2 { color: var(--gp-text) !important; font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; }
.gp-preview p, .gp-review p { color: var(--gp-muted) !important; font-size: 13px; overflow-wrap: anywhere; }
.gp-preview-description { white-space: pre-line; }
.gp-review { background: var(--gp-panel); border: 1px solid var(--gp-border); border-radius: 10px; padding: 24px; }
.gp-review dl { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 16px; margin: 24px 0; font-size: 14px; }
.gp-review dt { color: var(--gp-muted); }
.gp-review dd { margin: 0; color: var(--gp-text); overflow-wrap: anywhere; }
@media (max-width: 1050px) { body.grp-product-document #main-content.grp-product-editor { grid-template-columns: minmax(0,1fr); } .gp-preview { display: none; } }
@media (max-width: 600px) { .gp-steps button { flex-direction: column; font-size: 12px; text-align: center; } .grp-product-workspace .grp-modal-title h2 { font-size: 23px; } body.grp-product-document .grp-product-editor .block-table { padding: 14px !important; } }
/* Higher specificity deliberately isolates overrides of the legacy form styles. */
body.grp-product-document #main-content.grp-product-editor,
body.grp-product-document #main-content.grp-product-editor * { box-sizing: border-box; }
body.grp-product-document #main-content.grp-product-editor #create-product-form [hidden] { display: none !important; }
#main-content.grp-product-editor .gp-step-panel { background: var(--gp-panel); border: 1px solid var(--gp-border); border-radius: 10px; padding: 24px; }
body.grp-product-document #main-content.grp-product-editor #create-product-form .block-table { padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; margin: 0 0 20px !important; overflow: visible; }
body.grp-product-document #main-content.grp-product-editor #create-product-form .block-table tbody { padding: 0 !important; }
body.grp-product-document #main-content.grp-product-editor #create-product-form .block-table td { padding: 8px 0 !important; }
body.grp-product-document #main-content.grp-product-editor #create-product-form .block-table thead th { font-size: 14px !important; padding: 0 0 8px !important; }
body.grp-product-document #main-content.grp-product-editor #create-product-form textarea { min-height: 100px !important; height: 100px; }
body.grp-product-document #main-content.grp-product-editor #create-product-form textarea[name=full_description] { min-height: 140px !important; height: 140px; }
body.grp-product-document #main-content.grp-product-editor #create-product-form input:not([type=checkbox]):not([type=hidden]),
body.grp-product-document #main-content.grp-product-editor #create-product-form select,
body.grp-product-document #main-content.grp-product-editor #create-product-form textarea { background: var(--gp-panel) !important; color: var(--gp-text) !important; border-color: var(--gp-border) !important; }
body.grp-product-document #main-content.grp-product-editor .block-table-categories td,
body.grp-product-document #main-content.grp-product-editor .select2-selection { background: var(--gp-panel) !important; color: var(--gp-text) !important; }
body.grp-product-document #main-content.grp-product-editor button { box-shadow: none !important; }
body.grp-product-document #main-content.grp-product-editor .gp-steps button { min-width: 0 !important; font-weight: 500 !important; white-space: normal !important; padding: 8px !important; justify-content: flex-start !important; }
body.grp-product-document #main-content.grp-product-editor .gp-steps button.is-current { font-weight: 700 !important; }
body.grp-product-document #main-content.grp-product-editor > .notice { background: var(--gp-panel) !important; color: var(--gp-text) !important; margin: 0 !important; border-radius: 6px; }
body.grp-product-document #main-content.grp-product-editor > .notice p,
body.grp-product-document #main-content.grp-product-editor > .notice strong { color: inherit !important; }
body.grp-product-document #main-content.grp-product-editor #product-images-container { background: var(--gp-bg) !important; border-radius: 8px !important; border-color: var(--gp-border) !important; }
body.grp-product-document #main-content.grp-product-editor .block-table-buttons { flex-direction: row !important; }
body.grp-product-document #main-content.grp-product-editor .gp-review { border: 0; padding: 0; }
@media (max-width: 600px) {
  #main-content.grp-product-editor .gp-step-panel { padding: 16px; }
  body.grp-product-document #main-content.grp-product-editor .gp-steps button { gap: 8px; justify-content: center !important; }
  body.grp-product-document #main-content.grp-product-editor #create-product-form .block-table-buttons button { min-width: 0 !important; padding: 0 12px !important; }
  .gp-progress { flex-basis: 100%; }
}
/* Refined workspace: no legacy page chrome, constrained Elementor canvas or flash. */
body.grp-product-document { visibility: hidden; }
body.grp-product-document.gp-document-ready { visibility: visible; }
html:has(body.grp-product-document),
body.grp-product-document,
body.grp-product-document .site,
body.grp-product-document .site-main,
body.grp-product-document .entry-content,
body.grp-product-document .elementor,
body.grp-product-document .elementor[data-elementor-type] .elementor-element.elementor-element {
  background-image: none !important;
  background-color: transparent !important;
}
body.grp-product-document { background-color: var(--gp-bg) !important; }
body.grp-product-document .elementor-background-overlay,
body.grp-product-document .elementor-background-slideshow,
body.grp-product-document .elementor > .elementor-element::before,
body.grp-product-document .elementor > .elementor-element::after { display: none !important; }
body.grp-product-document .elementor[data-elementor-type] .elementor-element.elementor-element,
body.grp-product-document .elementor-section.elementor-section-boxed > .elementor-container,
body.grp-product-document .elementor .elementor-container,
body.grp-product-document .elementor .elementor-widget-wrap,
body.grp-product-document .elementor .elementor-widget-container,
body.grp-product-document .elementor .e-con,
body.grp-product-document .elementor .e-con-inner,
body.grp-product-document .entry-content {
  --container-max-width: 100%;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0;
}
body.grp-product-document #main-content.grp-product-editor.gp-preview-external { grid-template-columns: minmax(0, 1fr); }
#grp-add-product-modal.grp-product-workspace {
  --gp-bg: #f7fafb; --gp-panel: #fff; --gp-text: #203b43; --gp-muted: #617780; --gp-border: #dce6e9;
}
body.dark-theme #grp-add-product-modal.grp-product-workspace {
  --gp-bg: #1b282d; --gp-panel: #223238; --gp-text: #e4eff1; --gp-muted: #afc4ca; --gp-border: #3b5159;
}
#grp-add-product-modal.grp-product-workspace.gp-has-preview .grp-modal-frame {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start;
}
#grp-add-product-modal.grp-product-workspace .gp-preview {
  display: block; position: sticky; top: 24px; margin-top: 88px;
  background: var(--gp-panel); box-shadow: none; color: var(--gp-text);
}
#grp-add-product-modal.grp-product-workspace .gp-preview [hidden] { display: none !important; }
#grp-add-product-modal.grp-product-workspace .gp-preview h2 { font-size: 20px; color: var(--gp-text); }
#grp-add-product-modal.grp-product-workspace .gp-preview small { font-size: 12px; color: var(--gp-muted); font-weight: 400; }
#grp-add-product-modal.grp-product-workspace .gp-preview-description { max-height: 160px; overflow: auto; }
/* Reduce card weight and typographic emphasis. */
body.grp-product-document #main-content.grp-product-editor .gp-step-panel {
  border: 0; border-radius: 8px; padding: 24px; box-shadow: none;
}
body.grp-product-document #main-content.grp-product-editor #create-product-form label { font-weight: 500 !important; font-size: 13px !important; }
body.grp-product-document #main-content.grp-product-editor #create-product-form .block-table thead th { font-weight: 600 !important; font-size: 15px !important; }
body.grp-product-document #main-content.grp-product-editor #create-product-form .gp-general-section thead { display: none; }
body.grp-product-document #main-content.grp-product-editor #create-product-form .block-table tr { background: transparent !important; }
body.grp-product-document #main-content.grp-product-editor #create-product-form .block-table input,
body.grp-product-document #main-content.grp-product-editor #create-product-form .block-table textarea { font-weight: 400 !important; }
body.grp-product-document #main-content.grp-product-editor #create-product-form button:not(#save-addproduct-button):not(.gp-next) {
  background: transparent !important; color: var(--gp-text) !important; border: 1px solid var(--gp-border) !important;
  font-weight: 500 !important; min-height: 36px !important; border-radius: 6px !important;
}
body.grp-product-document #main-content.grp-product-editor #create-product-form .grpms-ai-description-tools { margin: 4px 0 12px !important; }
body.grp-product-document #main-content.grp-product-editor #create-product-form .grpms-ai-description-button {
  border: 0 !important; padding: 0 !important; min-height: 28px !important; margin: 0 !important;
  font-size: 12px !important; color: #47767e !important;
}
body.grp-product-document.dark-theme #main-content.grp-product-editor #create-product-form .grpms-ai-description-button { color: #a4d5dc !important; }
body.grp-product-document #main-content.grp-product-editor #create-product-form .grpms-ai-description-button::before { content: '✧'; margin-right: 6px; }
/* Categories: searchable control with lightweight removable chips. */
body.grp-product-document #main-content.grp-product-editor #create-product-form .block-table-categories { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
body.grp-product-document #main-content.grp-product-editor #create-product-form .block-table-categories td { width: 100% !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
body.grp-product-document #main-content.grp-product-editor #create-product-form .block-table-categories td:last-child { display: flex !important; gap: 20px; padding: 6px 0 !important; }
body.grp-product-document #main-content.grp-product-editor #create-product-form .block-table-categories td:last-child label { background: transparent !important; border: 0 !important; padding: 0 !important; }
body.grp-product-document #main-content.grp-product-editor #create-product-form .select2-container { width: 100% !important; }
body.grp-product-document #main-content.grp-product-editor #create-product-form .select2-selection--multiple {
  background: var(--gp-panel) !important; border: 1px solid var(--gp-border) !important; border-radius: 7px !important;
  min-height: 44px !important; padding: 4px 8px !important;
}
body.grp-product-document #main-content.grp-product-editor #create-product-form .select2-selection__rendered { display: flex !important; flex-wrap: wrap; gap: 6px; padding: 0 !important; margin: 0 !important; }
body.grp-product-document #main-content.grp-product-editor #create-product-form .select2-search--inline { flex: 1; min-width: 200px; margin: 0 !important; }
body.grp-product-document #main-content.grp-product-editor #create-product-form .select2-search__field {
  border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important;
  min-height: 28px !important; height: 28px !important; padding: 0 !important; margin: 2px 0 !important; width: 100% !important; font-weight: 400 !important;
}
body.grp-product-document #main-content.grp-product-editor #create-product-form .select2-selection__choice {
  background: var(--gp-bg) !important; border: 0 !important; border-radius: 5px !important;
  color: var(--gp-text) !important; font-size: 12px !important; font-weight: 400 !important; padding: 4px 8px !important; margin: 2px 0 !important;
}
body.grp-product-document .select2-dropdown { background: var(--gp-panel); color: var(--gp-text); border-color: var(--gp-border); border-radius: 7px; }
/* Empty containers carry no decoration. Existing buttons open the existing media picker. */
body.grp-product-document #main-content.grp-product-editor #create-product-form #product-images-container,
body.grp-product-document #main-content.grp-product-editor #create-product-form #download-files-container {
  min-height: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important;
  width: 100% !important; display: flex; flex-wrap: wrap; gap: 12px;
}
body.grp-product-document #main-content.grp-product-editor #create-product-form #product-images-container:empty,
body.grp-product-document #main-content.grp-product-editor #create-product-form #download-files-container:empty { display: none !important; }
body.grp-product-document #main-content.grp-product-editor #create-product-form #add-image-button.gp-image-picker {
  width: 100% !important; min-height: 82px !important; justify-content: flex-start !important; gap: 14px; padding: 16px !important;
  text-align: left; white-space: normal !important; border-style: dashed !important;
}
.gp-image-picker strong { display: block; font-weight: 500; font-size: 13px; }
.gp-image-picker small { display: block; margin-top: 6px; font-weight: 400; font-size: 12px; line-height: 1.4; }
.gp-upload-icon { font-size: 24px; color: var(--gp-muted); }
body.grp-product-document #main-content.grp-product-editor #create-product-form #download-files-row:not([aria-hidden=true]) { display: block !important; width: 100% !important; }
body.grp-product-document #main-content.grp-product-editor #create-product-form #download-files-row td { display: block !important; width: 100% !important; }
body.grp-product-document #main-content.grp-product-editor #create-product-form .download-file-row {
  display: grid !important; grid-template-columns: minmax(100px, 1fr) auto minmax(120px, 1fr) auto;
  align-items: end !important; gap: 12px !important; width: 100%; padding: 14px; margin: 8px 0 !important;
  background: var(--gp-bg); border: 1px solid var(--gp-border); border-radius: 7px;
}
body.grp-product-document #main-content.grp-product-editor #create-product-form .download-file-row > div { min-width: 0; }
body.grp-product-document #main-content.grp-product-editor #create-product-form .download-file-row button { min-width: 0 !important; padding: 0 10px !important; }
@media(max-width: 1100px) {
  #grp-add-product-modal.grp-product-workspace.gp-has-preview .grp-modal-frame { grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; }
  body.grp-product-document #main-content.grp-product-editor #create-product-form .download-file-row { grid-template-columns: minmax(0, 1fr) auto; }
}
@media(max-width: 800px) {
  #grp-add-product-modal.grp-product-workspace.gp-has-preview .grp-modal-frame { grid-template-columns: minmax(0, 1fr); }
  #grp-add-product-modal.grp-product-workspace .gp-preview { position: static; margin-top: 0; }
  body.grp-product-document #main-content.grp-product-editor .gp-step-panel { padding: 16px; }
}
