/* fxplugins.codecogs.com's own rules, on top of fxEditor's documentation styles (/assets/css -
   copied from fxEditorServer, see PLUGINS-SITE.md). Only what those do not already cover: the
   live examples, the code listings, the customiser's preview and download, and the logos. */

/* ---- Logos, in the overview table and beside each page's title ---- */

td img.fxp-logo,
.fxp-logo {
  display: inline-block;
  float: none;
  padding: 0;
  margin: 0;
  background: none;
  height: 26px;
  width: 78px;
  object-fit: contain;
  object-position: left center;
  vertical-align: middle;
}

.fxp-title-logo {
  height: 32px;
  width: auto;
  max-width: 160px;
  margin-right: 12px;
  vertical-align: -4px;
}

/* ---- A live example ---- */

.fxp-frame {
  display: block;
  width: 100%;
  border: 1px solid #d9dee5;
  border-radius: 6px;
  background: #fff;
}

.fxp-demo { margin: 18px 0 8px; }
.fxp-demo-links { margin: 6px 0 0; font-size: 14px; }

/* ---- Code listings with a file name above them ---- */

.fxp-code { margin: 18px 0 0; }

.fxp-code-name {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #52606d;
  margin: 0 0 4px;
  word-break: break-all;
}

.fxp-code pre { max-height: 640px; overflow: auto; }

/* ---- The customiser ---- */

.fxp-customise .dt-main { min-width: 0; }

.fxp-preview { margin-top: 14px; }

.fxp-preview-bar {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #52606d;
  margin-bottom: 4px;
}

.fxp-colour-pick {
  position: relative;
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: conic-gradient(#e11d48, #f59e0b, #16a34a, #0891b2, #4f46e5, #c026d3, #e11d48);
  cursor: pointer;
}

.fxp-colour-pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.fxp-reset {
  margin-top: 12px;
  font-size: 13px;
  background: none;
  border: 0;
  padding: 0;
  color: #003794;
  text-decoration: underline;
  cursor: pointer;
}

.fxp-download {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin: 22px 0 8px;
  padding: 18px 20px;
  background: #f4f7fb;
  border: 1px solid #d9dee5;
  border-radius: 6px;
}

.fxp-licence {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 280px;
  font-size: 14px;
  font-weight: 600;
}

.fxp-licence input {
  font: 14px/1.4 "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  padding: 8px 10px;
  border: 1px solid #c4ccd6;
  border-radius: 4px;
}

.fxp-download .button { white-space: nowrap; }

.fxp-download-note {
  flex: 1 1 100%;
  margin: 0;
  font-size: 13px;
  color: #52606d;
}

/* The size sliders, in groups across the page rather than down the narrow controls column. */
.fxp-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  margin: 14px 0 0;
  padding: 14px 18px 6px;
  background: #f8fafc;
  border: 1px solid #e1e6ee;
  border-radius: 6px;
}

.fxp-sizes fieldset {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0 18px;
  margin: 0;
}

.fxp-sizes legend { width: 100%; }

.fxp-sizes .dt-slider { width: 150px; max-width: none; }

/* The designer's dependent controls (the predictor's "Suggestions show") hide with [hidden], which
   the .dt-select display rule would otherwise override. */
.fxp-customise [hidden] { display: none !important; }
