/* ClosePDF Word form v1.0.8 — pixel-consistent with Edit PDF theme.
   Scoped ONLY to the idle PDF-to-Word upload card. The converter engine,
   preview, results and cloud integrations are intentionally left alone. */
#closepdf-word-tool:not(.has-file):not(.has-result) .form-card{
  max-width:1100px!important;width:100%;margin-inline:auto!important;
  padding:clamp(18px,3.2vw,36px)!important;border:1px solid #e7ebf3!important;
  border-radius:22px!important;box-shadow:0 14px 40px #17294e12!important;
  background:#fff!important;box-sizing:border-box!important;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template{
  --cpw-edit-blue:#205a9c;--cpw-edit-navy:#16294e;
  display:grid!important;grid-template-columns:minmax(0,1.7fr) minmax(265px,1fr)!important;
  grid-template-areas:"heading heading" "badge badge" "zone cloud" "startup startup" "hint hint" "values values"!important;
  gap:16px 20px!important;margin:0!important;min-width:0;align-items:stretch;
  color:var(--cpw-edit-navy);text-align:left;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template>.tool-heading{
  grid-area:heading!important;justify-content:center!important;align-items:center!important;
  margin:0!important;text-align:center!important;min-width:0;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template .title{
  font-family:inherit!important;font-size:clamp(30px,3.3vw,42px)!important;
  letter-spacing:-.035em!important;font-weight:750!important;
  color:var(--cpw-edit-navy)!important;line-height:1.15!important;
  text-align:center!important;margin:0 0 8px!important;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template .subtitle{
  font-family:inherit!important;font-size:clamp(14px,1.5vw,17px)!important;
  line-height:1.6!important;text-align:center!important;color:#53627c!important;margin:0!important;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template>.card-header-badge{
  grid-area:badge!important;display:flex!important;align-items:center!important;justify-content:center!important;
  justify-self:center!important;margin:-5px 0 2px!important;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template .badge{
  display:inline-flex!important;align-items:center!important;gap:4px!important;
  font-family:inherit!important;font-size:10px!important;font-weight:750!important;letter-spacing:.07em!important;
  line-height:1.5!important;border-radius:999px!important;padding:5px 11px!important;
  color:#136973!important;background:#edf8f8!important;border:1px solid #d1e8e9!important;
  box-shadow:none!important;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template>.upload-zone{
  grid-area:zone!important;display:flex!important;justify-content:center!important;align-items:center!important;
  box-sizing:border-box!important;width:100%;min-width:0;min-height:260px!important;
  padding:28px 20px!important;text-align:center!important;
  border:2px dashed #bdcfed!important;border-radius:18px!important;
  background:linear-gradient(145deg,#f7faff,#edf4ff)!important;box-shadow:none!important;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template>.upload-zone:is(:hover,.dragover){
  background:#edf5ff!important;border-color:#779ed0!important;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template .upload-content-wrapper{
  width:100%;display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;gap:12px!important;text-align:center!important;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template .upload-icon-small{
  display:block!important;width:44px!important;height:44px!important;flex:none!important;
  fill:none!important;stroke:#2863a0!important;color:#2863a0!important;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template .upload-text,
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template .upload-text strong{
  margin:0!important;font-size:15px!important;line-height:1.5!important;
  color:#16294e!important;font-weight:500!important;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template #word-browse{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;
  width:auto!important;min-width:205px!important;max-width:100%!important;
  padding:15px 34px!important;font-family:inherit!important;font-weight:700!important;
  font-size:17px!important;line-height:1.35!important;
  color:#fff!important;background:linear-gradient(135deg,#2869ad,#174b89)!important;
  border:1px solid #195491!important;border-radius:12px!important;
  box-shadow:0 7px 16px #174b8928!important;cursor:pointer;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template #word-browse:hover:not(:disabled){
  background:linear-gradient(135deg,#3477be,#215b9b)!important;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template #word-browse svg{
  flex:none;width:16px!important;height:16px!important;fill:none!important;
  stroke:currentColor!important;stroke-width:2!important;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template #word-browse:focus-visible,
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template .cloud-provider-btn:focus-visible{
  outline:3px solid #89b8f0;outline-offset:3px;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template>.cpw-cloud-panel{
  grid-area:cloud!important;display:flex!important;flex-direction:column!important;justify-content:center!important;
  gap:12px!important;min-width:0!important;padding:18px 16px!important;
  border:1px solid #dce5f2!important;border-radius:18px!important;
  background:#fff!important;box-shadow:none!important;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template>.cpw-cloud-panel[hidden]{display:none!important}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template .cloud-panel-title{
  display:flex!important;gap:8px!important;align-items:center!important;
  color:#16294e!important;font-size:15px!important;font-weight:700!important;
  line-height:1.4!important;margin:0 0 8px!important;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template .cloud-provider-btn{
  min-height:48px!important;padding:10px 12px!important;width:100%!important;
  background:#fff!important;border:1px solid #d2dae7!important;border-radius:10px!important;
  box-shadow:none!important;display:flex!important;align-items:center!important;gap:10px!important;
  text-align:left!important;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template .cloud-provider-btn span{
  font-size:13px!important;font-weight:650!important;color:#16294e!important;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template .cloud-provider-btn:hover:not(:disabled){
  background:#f0f6ff!important;border-color:#8caddc!important;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template .cloud-privacy{
  display:flex!important;gap:8px!important;align-items:flex-start!important;
  margin-top:2px!important;padding:10px 9px!important;
  background:#effbf4!important;border:1px solid #bbebcd!important;
  border-left:4px solid #22c55e!important;border-radius:10px!important;
  color:#166534!important;font-size:12px!important;line-height:1.45!important;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template>.cpw-startup{
  grid-area:startup!important;justify-self:center!important;margin:0!important;
  font-size:13px!important;color:#60718a!important;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template>.upload-local-hint{
  grid-area:hint!important;justify-self:stretch!important;text-align:center!important;
  font-size:13px!important;line-height:1.5!important;color:#60718a!important;margin:7px 0 0!important;
}
/* Keep the existing uploader input and its event listeners; never expose duplicate Clear buttons. */
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template .form-actions{
  display:contents!important;
}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template #word-clear-upload{display:none!important}
#closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template>.cp-brand-values{
  grid-area:values!important;max-width:100%!important;margin:0!important;
  padding:14px 0 0!important;align-self:stretch!important;
}
@media(max-width:850px){
  #closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"heading" "badge" "zone" "cloud" "startup" "hint" "values"!important;
    gap:12px!important;
  }
  #closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template .title{font-size:clamp(27px,6vw,36px)!important}
  #closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template>.upload-zone{min-height:220px!important;padding:20px 10px!important}
  #closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template>.cpw-cloud-panel{padding:14px!important}
  #closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template #word-browse{min-width:180px!important;padding:13px 24px!important}
}
@media(max-width:540px){#closepdf-word-tool:not(.has-file):not(.has-result) .form-card{padding:18px 14px!important}}

/* ClosePDF Word v1.0.9 — approved Rotate arrangement: title/subtitle left, badge on right.
   The cloud, uploader, workspace, results, engines and CMS remain unchanged. */
@media(min-width:851px){
  #closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template {
    grid-template-areas:"heading badge" "zone cloud" "startup startup" "hint hint" "values values" !important;
    grid-template-rows:auto auto auto auto auto !important;
    gap:16px 20px !important;
  }
  #closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template>.tool-heading {
    grid-area:heading !important; display:flex !important; justify-content:flex-start !important;
    align-items:center !important; justify-self:stretch !important;
    width:100% !important; min-width:0 !important; margin:0 !important; text-align:left !important;
  }
  #closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template>.tool-heading>div {
    width:100% !important; min-width:0 !important; text-align:left !important;
  }
  #closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template .title,
  #closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template .subtitle {
    text-align:left !important;
  }
  #closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template>.card-header-badge {
    grid-area:badge !important; display:flex !important; align-items:center !important;
    justify-content:center !important; justify-self:center !important; align-self:center !important;
    min-width:0 !important; margin:0 !important;
  }
  #closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template>.card-header-badge .badge {
    white-space:nowrap !important;
  }
}
@media(max-width:850px){
  #closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template{
    grid-template-areas:"heading" "badge" "zone" "cloud" "startup" "hint" "values" !important;
  }
  #closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template>.tool-heading,
  #closepdf-word-tool:not(.has-file):not(.has-result) .tool-layout.cpw-edit-template>.tool-heading>div{
    text-align:center!important;
  }
}

/* CPW-MOBILE-GRID-101 */
@media(max-width:768px){
  html body #closepdf-word-tool:not(.has-file):not(.has-result)
  .tool-layout.cpw-edit-template{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  html body #closepdf-word-tool:not(.has-file):not(.has-result)
  .tool-layout.cpw-edit-template > :is(
    .tool-heading,
    .card-header-badge,
    .upload-zone,
    .cloud-panel,
    .cpw-startup,
    .upload-local-hint,
    .cp-brand-values
  ){
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    align-self:stretch!important;
  }

  #closepdf-word-tool .cpw-startup{
    text-align:center!important;
  }
}
