/* Catalogue framing and optional setup logo. The template's own CSS is untouched. */
.wgh103-preview-stage.wgh122-preview{display:flex;flex-direction:column;height:calc(100dvh - var(--preview-tools-height,112px));min-height:460px;padding:18px 24px 0;background:#e8eef7;overflow:visible;gap:0}
.wgh122-frame-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:17px 22px;border:1px solid #153355;border-radius:14px 14px 0 0;background:#153355;color:#fff}
.wgh122-frame-heading .wgh122-boundary-label{display:block;margin-bottom:5px;color:#b5d0ff;font-size:12px;font-weight:700;line-height:1.4;letter-spacing:.08em;text-transform:uppercase}
.wgh122-frame-heading strong{display:block;font-size:19px;line-height:1.35;color:#fff}
.wgh122-frame-heading strong span{font-weight:400;color:#dce8fa}
.wgh122-frame-heading p{max-width:300px;margin:0;color:#e4edfb;font-size:14px;line-height:1.5}
.wgh122-frame-canvas{flex:1;min-height:260px;padding:0 14px;overflow:hidden;border-inline:1px solid #9aafca;background:#cbd7e8}
.wgh103-preview-stage.wgh122-preview iframe{height:100%;min-height:0;border:0;border-radius:0;box-shadow:0 0 0 1px #a0b2cc;background:#fff}
.wgh122-frame-end{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px;margin-bottom:24px;border:1px solid #9aafca;border-radius:0 0 14px 14px;background:#f8faff;color:#153355;font-size:14px;line-height:1.5}
.wgh122-frame-end strong{color:#153355;font-weight:700}
.wgh122-frame-end a{color:#174eaf;text-decoration:underline;text-underline-offset:4px}
.wgh122-frame-end a:hover{color:#102c50}
.wgh122-frame-end a:focus-visible{outline:3px solid #2768dc;outline-offset:5px}
.wgh103-detail #template-about-title{scroll-margin-top:calc(var(--preview-tools-height,112px) + 24px)}
.wgh103-setup .wgh122-logo-field{padding:18px;border:1px solid #c5d4e9;border-radius:12px;background:#f4f7fc;min-width:0}
.wgh103-setup .wgh122-logo-field label{margin:0}
.wgh103-setup .wgh122-logo-field p{font-size:14px;line-height:1.5;margin:6px 0 12px;color:#405777}
.wgh103-setup .wgh122-logo-field input[type=file]{width:100%;max-width:100%;padding:10px;border:1px solid #acbfdc;border-radius:8px;background:#fff;color:#153355;font-size:14px;box-sizing:border-box}
.wgh103-setup .wgh122-logo-field input::file-selector-button{margin-right:12px;border:0;border-radius:5px;padding:10px 12px;background:#153355;color:#fff;font:inherit;font-weight:600;cursor:pointer}
.wgh103-setup .wgh122-logo-preview{display:flex;align-items:center;gap:14px;min-width:0;margin-top:14px}
.wgh103-setup .wgh122-logo-preview img{flex:0 0 96px;width:96px;height:72px;max-height:72px;object-fit:contain;border:1px solid #c5d4e9;border-radius:7px;background:#fff}
.wgh103-setup .wgh122-logo-preview span{min-width:0;overflow-wrap:anywhere;font-size:14px;color:#153355}
.wgh103-setup .wgh122-logo-preview button{flex-shrink:0;margin-left:auto;border:1px solid #acbfdc;border-radius:6px;padding:10px 12px;background:#fff;color:#153355;font-size:14px;font-weight:600;cursor:pointer}
.wgh103-setup .wgh122-logo-field .wgh122-logo-error{color:#a51c30;font-weight:600}
.wgh103-setup .wgh122-logo-field [hidden]{display:none!important}
@media(max-width:600px){
 .wgh103-preview-stage.wgh122-preview{padding:10px 8px 0;min-height:480px}
 .wgh122-frame-heading{padding:13px 14px;gap:8px;align-items:flex-start;flex-direction:column}
 .wgh122-frame-heading strong{font-size:17px}
 .wgh122-frame-heading p{max-width:none;font-size:13px}
 .wgh122-frame-canvas{padding:0 5px}
 .wgh122-frame-end{align-items:flex-start;flex-direction:column;gap:4px;padding:12px 14px;margin-bottom:16px;font-size:13px}
 .wgh103-setup .wgh122-logo-preview{flex-wrap:wrap}
 .wgh103-setup .wgh122-logo-preview span{flex:1}
 .wgh103-setup .wgh122-logo-preview button{margin-left:0}
}
@media(max-width:600px){
 .wgh103-setup .wgh122-logo-preview{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px 12px}
 .wgh103-setup .wgh122-logo-preview img{width:72px;height:64px;grid-row:1 / 3}
 .wgh103-setup .wgh122-logo-preview span{grid-column:2;line-height:1.5}
 .wgh103-setup .wgh122-logo-preview button{grid-column:2;justify-self:start;padding:8px 10px}
}
