/* Toura Passport Supplier Studio — unified full-window editor, 2026-11-17.
   Presentation only. One scroll container for New, Draft, Corrections, and Read-only.
   No changes to permissions, saves, server review, pricing, Pickup, or publishing. */
html:has(#productModal:not(.hidden)),
body:has(#productModal:not(.hidden)) { overflow:hidden !important; }
#productModal:not(.hidden){
  box-sizing:border-box !important;display:flex !important;align-items:center !important;
  justify-content:center !important;overflow:hidden !important;
  padding:12px !important;overscroll-behavior:contain !important;
}
#productModal:not(.hidden) > .product-builder{
  box-sizing:border-box !important;position:relative !important;
  width:min(1360px,calc(100vw - 24px)) !important;
  max-width:calc(100vw - 24px) !important;
  height:auto !important;max-height:calc(100dvh - 24px) !important;
  display:block !important;flex:none !important;
  overflow-x:hidden !important;overflow-y:auto !important;
  overscroll-behavior:contain !important;scrollbar-gutter:stable;
  padding:18px 22px 20px !important;
  background:#fff !important;
}
#productModal .product-builder .review-window-controls{
  display:flex !important;position:relative !important;z-index:2 !important;
  align-items:center !important;justify-content:flex-end !important;
  gap:9px !important;float:none !important;top:auto !important;
  min-height:38px !important;margin:0 0 8px !important;padding:0 !important;
  background:transparent !important;box-shadow:none !important;
}
#productModal .product-builder .review-window-controls .modal-x{
  position:static !important;display:grid !important;place-items:center !important;
  width:38px !important;height:38px !important;min-width:38px !important;
  border:1px solid #dbe5ec !important;border-radius:10px !important;
  padding:0 !important;margin:0 !important;background:#f5f8fb !important;
  font-size:23px !important;line-height:1 !important;color:#143e60 !important;
  cursor:pointer !important;
}
#productModal .product-builder .review-window-toggle:not([hidden]){
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
  min-height:38px !important;border:1px solid #b8ccdc !important;
  border-radius:10px !important;padding:8px 13px !important;
  background:#f5f9fc !important;color:#14466c !important;
  font:inherit !important;font-size:12px !important;font-weight:800 !important;
  cursor:pointer !important;
}
#productModal .product-builder .builder-head{
  position:static !important;z-index:auto !important;flex:none !important;
  min-height:0 !important;padding-right:0 !important;
  margin:0 0 14px !important;
}
#productModal .product-builder .builder-layout{
  display:block !important;flex:none !important;grid-template-columns:minmax(0,1fr) !important;
  height:auto !important;min-height:0 !important;max-height:none !important;
  overflow:visible !important;
}
#productModal .product-builder .offer-form{
  display:block !important;flex:none !important;
  height:auto !important;min-height:0 !important;max-height:none !important;
  overflow:visible !important;overscroll-behavior:auto !important;
  padding-right:0 !important;scrollbar-gutter:auto !important;
}
#productModal .product-builder .commercial-preview{
  height:auto !important;min-height:0 !important;max-height:none !important;
  overflow:visible !important;scrollbar-gutter:auto !important;
}
#productModal .product-builder .builder-footer{
  position:static !important;inset:auto !important;flex:none !important;
  margin-top:18px !important;min-height:0 !important;
  background:#fff !important;box-shadow:none !important;
}
/* Correction guidance is a compact part of the same window, not a floating screen. */
#productModal .changes-requested-guidance{
  position:static !important;min-height:0 !important;max-height:none !important;
  margin:0 0 14px !important;overflow:hidden !important;
}
#productModal .changes-requested-guidance .change-guidance-head{
  display:flex !important;flex-flow:row wrap !important;
  align-items:center !important;justify-content:space-between !important;
  gap:10px 16px !important;padding:12px 15px !important;
  text-align:left !important;
}
#productModal .changes-requested-guidance .change-guidance-title{
  flex:1 1 280px !important;min-width:0 !important;text-align:left !important;
}
#productModal .changes-requested-guidance .change-guidance-title strong{
  font-size:17px !important;line-height:1.25 !important;
}
#productModal .changes-requested-guidance .change-guidance-title p{
  font-size:12px !important;line-height:1.4 !important;margin:3px 0 0 !important;
}
#productModal .changes-requested-guidance .change-guidance-actions{
  display:flex !important;flex:0 0 auto !important;max-width:100% !important;
  align-items:center !important;justify-content:flex-end !important;
  width:auto !important;gap:8px !important;flex-wrap:wrap !important;
}
#productModal .changes-requested-guidance .change-request-list{
  display:grid !important;gap:8px !important;padding:10px 12px !important;
}
#productModal .changes-requested-guidance .change-request-list[hidden]{display:none !important;}
#productModal .changes-requested-guidance .change-request-item{
  margin:0 !important;min-height:64px !important;max-height:none !important;
  padding:10px 12px !important;text-align:left !important;
}
/* Product options follows the same collapsed-by-default pattern in editable mode. */
#productModal .product-builder:not(.review-mode) #productOptionsSection.is-edit-folded > :not(.section-title){display:none !important;}
#productModal .product-builder:not(.review-mode) #productOptionsSection > .section-title{
  position:relative;cursor:pointer;padding-right:44px !important;
}
#productModal .product-builder:not(.review-mode) #productOptionsSection .editable-options-toggle{
  position:absolute;right:10px;top:50%;transform:translateY(-50%);
  width:34px;height:34px;border:1px solid #dfe8e3;border-radius:50%;
  background:#fff;color:#17324a;font-size:19px;font-weight:800;
  display:grid;place-items:center;cursor:pointer;
}
#productModal #productOptionsSection .editable-options-toggle[hidden]{display:none !important;}
#productModal .product-builder:not(.review-mode) #productOptionsSection.is-edit-folded .editable-options-toggle::after{content:'+';}
#productModal .product-builder:not(.review-mode) #productOptionsSection:not(.is-edit-folded) .editable-options-toggle::after{content:'−';}
#productModal .product-builder .review-window-controls button:focus-visible,
#productModal #productOptionsSection > .section-title:focus-visible,
#productModal .changes-requested-guidance button:focus-visible{
  outline:3px solid #398ccc !important;outline-offset:2px !important;
}
@media(max-width:700px){
  #productModal:not(.hidden){padding:0 !important;}
  #productModal:not(.hidden) > .product-builder{
    width:100vw !important;max-width:100vw !important;
    height:100dvh !important;max-height:100dvh !important;
    border-radius:0 !important;
    padding:calc(12px + env(safe-area-inset-top)) 12px calc(18px + env(safe-area-inset-bottom)) !important;
  }
  #productModal .changes-requested-guidance .change-guidance-actions{width:100% !important;justify-content:space-between !important;}
  #productModal .changes-requested-guidance .change-guidance-title{flex-basis:100% !important;}
  #productModal .product-builder .builder-footer{display:flex !important;flex-wrap:wrap !important;gap:10px !important;}
  #productModal .product-builder .supplier-footer-actions{flex-wrap:wrap !important;min-width:0 !important;}
}
