/* Host wrapper for LeanConfigurator. The configurator's own styles are in
   lib/lean-configurator/lean-configurator.css, linked by the interop script. */
.ln-host { position: relative; width: 100%; min-height: 420px; border-radius: 10px; overflow: hidden; background: #dfe3e2; border: 1px solid #E5E2DA; }
.ln-host-canvas { position: absolute; inset: 0; }
.ln-host-loading, .ln-host-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; color: #6e7a79; font-size: 13px; font-weight: 600; pointer-events: none; }
.ln-host-error { color: #b91c1c; background: #fef2f2; }

/* Builder demo around the configurator. */
.lnd { display: flex; flex-direction: column; gap: 14px; font-size: 13px; color: #111; }
.lnd *, .lnd *::before, .lnd *::after { box-sizing: border-box; }
.lnd-host { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border: 1px solid #E5E2DA; border-radius: 10px; background: #fff; }
.lnd-host-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lnd-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #6b6760; }
.lnd-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.lnd-buttons button { min-height: 32px; padding: 0 12px; border: 1px solid #E5E2DA; border-radius: 8px; background: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.lnd-buttons button:hover:not(:disabled) { border-color: #207d70; color: #207d70; }
.lnd-buttons button:disabled { opacity: .45; cursor: default; }
.lnd-buttons button:focus-visible { outline: 3px solid rgb(32 125 112 / 35%); outline-offset: 2px; }
.lnd-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.lnd-figures dt { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #6b6760; }
.lnd-figures dd { margin: 3px 0 0; font-family: 'DM Mono', ui-monospace, monospace; font-size: 13px; font-variant-numeric: tabular-nums; }
.lnd-message { margin: 0; color: #207d70; }
.lnd-saved summary { cursor: pointer; color: #6b6760; font-weight: 600; }
.lnd-saved pre { max-height: 220px; overflow: auto; margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; background: #f7f6f2; font-size: 11.5px; }

/* Inside a catalog card the preview scaler fixes the box; fill it. */
.pb-preview-scaler > .ln-host { height: 100% !important; border: 0; border-radius: 0; }
