/* Final layout of the isolated postcard document. Content and artwork are unchanged. */
body.mc-postcard-frame{--pc-top-space:0px;--pc-bottom-space:0px;margin:0;padding:0;overflow:hidden;height:100dvh}
body.mc-postcard-frame.mc-service{--pc-top-space:34px;--pc-bottom-space:24px}
body.mc-postcard-frame .mc-service-notice{box-sizing:border-box;min-height:34px;padding:6px 14px;font:12px/1.5 Arial,sans-serif}
body.mc-postcard-frame .mc-studio-promo{box-sizing:border-box;height:24px;padding:4px 10px;font:11px/15px Arial,sans-serif}
body.mc-postcard-frame #sil-postcards{position:static;inset:auto;transform:none;max-width:none;--pc-ui-accent:#885436;--pc-ui-line:#ded5c9;--pc-preview-min:360px}
body.mc-postcard-frame.mc-service #sil-postcards{--pc-ui-accent:#1c62b1;--pc-ui-line:#dce5ed}
body.mc-postcard-frame #sil-postcards .pc-modal{inset:var(--pc-top-space) 0 auto;margin:0;padding:0!important;border:0;border-radius:0;width:100%;max-width:none;height:calc(var(--pc-vh,100dvh) - var(--pc-top-space) - var(--pc-bottom-space));max-height:none;overflow:hidden;box-shadow:none}
body.mc-postcard-frame #sil-postcards .pc-modal::backdrop{background:transparent;backdrop-filter:none}
body.mc-postcard-frame #sil-postcards .pc-panel{display:flex;flex-direction:column;width:100%;height:100%;max-width:none;max-height:none!important;min-height:0;margin:0;border:0;border-radius:0;overflow:auto;background:#fff;box-shadow:none}
body.mc-postcard-frame #sil-postcards .pc-toolbar{position:relative;flex:0 0 auto;min-height:44px;padding:5px 12px;gap:12px;border-color:var(--pc-ui-line);background:#fff}
body.mc-postcard-frame #sil-postcards .pc-toolbar-brand{gap:7px}
body.mc-postcard-frame #sil-postcards .pc-toolbar-brand img{width:22px;height:26px}
body.mc-postcard-frame #sil-postcards .pc-toolbar-brand strong{font-size:21px}
body.mc-postcard-frame #sil-postcards #pc-dialog-title{font-size:9px;margin-top:1px}
body.mc-postcard-frame #sil-postcards .pc-toolbar-actions{gap:6px;min-width:0}
body.mc-postcard-frame #sil-postcards .pc-toolbar-actions a,body.mc-postcard-frame #sil-postcards .pc-toolbar .pc-clear-draft{min-height:32px;padding:5px 8px;font-size:11px}
body.mc-postcard-frame #sil-postcards .pc-toolbar .pc-close{width:32px;height:32px;min-width:32px;min-height:32px}
body.mc-postcard-frame #sil-postcards .pc-toolbar-actions .pc-home-link{max-width:32px;width:32px;padding:5px}
body.mc-postcard-frame #sil-postcards .pc-home-link span,body.mc-postcard-frame #sil-postcards .pc-toolbar-help{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
body.mc-postcard-frame #sil-postcards .pc-routebar{flex:0 0 auto;padding:5px 12px!important;gap:8px;min-height:40px;background:#fff}
body.mc-postcard-frame #sil-postcards .pc-channel-tabs button{min-height:30px;padding:4px 12px;font-size:12px}
body.mc-postcard-frame #sil-postcards .pc-channel-note{font-size:11px;line-height:1.4;margin:0}
body.mc-postcard-frame #sil-postcards .pc-occasion-field{font-size:11px;gap:7px;min-width:0}
body.mc-postcard-frame #sil-postcards .pc-occasion-field select{box-sizing:border-box;min-height:32px;height:32px;min-width:155px;padding:4px 8px;font-size:12px}
body.mc-postcard-partner #sil-postcards .pc-toolbar-brand,body.mc-postcard-partner.mc-postcard-has-notice #sil-postcards .pc-trial-notice,body.mc-postcard-partner.mc-postcard-has-promo #sil-postcards .pc-maker{display:none}
body.mc-postcard-partner #sil-postcards .pc-toolbar-context{display:flex;align-items:center;gap:12px;min-width:0}
body.mc-postcard-partner #sil-postcards .pc-toolbar{justify-content:space-between}
body.mc-postcard-frame #sil-postcards .pc-layout{display:grid;grid-template-columns:200px minmax(0,1fr) 280px;grid-template-rows:minmax(0,1fr);align-items:stretch;flex:1 0 0;min-height:var(--pc-preview-min);overflow:hidden;gap:0}
body.mc-postcard-frame #sil-postcards .pc-gallery,body.mc-postcard-frame #sil-postcards .pc-compose{position:relative;inset:auto;align-self:stretch;width:auto;height:100%;max-height:none;min-height:0;overflow:auto;padding:12px;border-radius:0;scrollbar-width:thin}
body.mc-postcard-frame #sil-postcards .pc-gallery{display:flex;flex-direction:column;gap:7px;background:#f6f8fb;border-color:var(--pc-ui-line)}
body.mc-postcard-frame #sil-postcards .pc-compose{background:#fff;border-color:var(--pc-ui-line)}
body.mc-postcard-frame #sil-postcards .pc-preview{position:relative;grid-column:auto;grid-row:auto;display:flex;flex-direction:column;gap:7px;height:100%;min-height:0;min-width:0;padding:12px;overflow:auto;background:#edf2f7}
body.mc-postcard-frame #sil-postcards .pc-side-tabs{flex:none;align-self:center;margin:0;gap:6px}
body.mc-postcard-frame #sil-postcards .pc-side-tabs button{min-height:30px;padding:4px 16px;font-size:12px}
body.mc-postcard-frame #sil-postcards .pc-preview-canvas{display:flex;flex:1 1 0;align-items:center;justify-content:center;min-height:220px;min-width:0;width:100%;height:auto;overflow:hidden;border-radius:12px;background:radial-gradient(ellipse at center,#dfe7ef,#f1f5f9 85%)}
body.mc-postcard-frame #sil-postcards .pc-preview-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;flex:none;min-width:0;padding:6px;border:1px solid var(--pc-ui-line);border-radius:10px;background:#fff}
body.mc-postcard-frame #sil-postcards .pc-zoom-tools{box-sizing:border-box;flex:1 1 270px;min-width:0;min-height:30px;gap:6px;padding:0;margin:0;flex-wrap:wrap;border:0;background:transparent;font-size:11px}
body.mc-postcard-frame #sil-postcards .pc-zoom-tools label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.mc-postcard-frame #sil-postcards .pc-zoom-tools input{width:clamp(65px,9vw,120px)}
body.mc-postcard-frame #sil-postcards .pc-zoom-tools button{padding:4px 7px;min-height:27px;font-size:11px}
body.mc-postcard-frame #sil-postcards .pc-edges{gap:4px;justify-content:center;flex-wrap:wrap;margin:0;font-size:10px}
body.mc-postcard-frame #sil-postcards .pc-edges button{min-height:25px;padding:3px 6px;font-size:10px}
body.mc-postcard-frame #sil-postcards .pc-preview .pc-caption{display:none}
body.mc-postcard-frame #sil-postcards .pc-selection-summary{padding:9px;margin-bottom:12px;border-color:var(--pc-ui-line);background:#f5f8fb}
body.mc-postcard-frame #sil-postcards .pc-selection-summary h3{font-size:18px;color:var(--pc-ink)}
body.mc-postcard-frame #sil-postcards .pc-selection-summary button{min-height:31px;padding:3px 0}
body.mc-postcard-frame #sil-postcards .pc-compose h2{font-size:22px}
body.mc-postcard-frame #sil-postcards .pc-collection-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
body.mc-postcard-frame #sil-postcards .pc-collection-tabs button{min-height:31px;font-size:10px;padding:4px 2px}
body.mc-postcard-frame #sil-postcards .pc-thumbnails{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
body.mc-postcard-frame #sil-postcards .pc-thumbnails img{height:75px;aspect-ratio:auto;object-fit:cover}
body.mc-postcard-frame #sil-postcards .pc-asset-grid,body.mc-postcard-frame #sil-postcards .pc-premium-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
body.mc-postcard-frame #sil-postcards .pc-asset-choice img,body.mc-postcard-frame #sil-postcards .pc-premium-choice img{height:72px}
body.mc-postcard-frame #sil-postcards .pc-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:14px;row-gap:2px;flex:none;padding:7px 12px;margin:0;background:#fff;border-color:var(--pc-ui-line)}
body.mc-postcard-frame #sil-postcards .pc-footer>.pc-host-site{grid-column:1;grid-row:1;font-size:11px;line-height:1.4}
body.mc-postcard-frame #sil-postcards .pc-email-unavailable{grid-column:1;grid-row:2;margin:0;padding:0;font-size:11px;line-height:1.4}
body.mc-postcard-frame #sil-postcards .pc-status{grid-column:1;grid-row:3;margin:0;padding:0;border:0;min-height:0;max-height:42px;overflow:auto;font-size:11px;line-height:1.4}
body.mc-postcard-frame #sil-postcards .pc-footer-actions{grid-column:2;grid-row:1 / span 4;align-self:center;gap:8px;margin:0;max-width:260px}
body.mc-postcard-frame #sil-postcards .pc-footer-actions .pc-primary{min-width:170px;min-height:40px;padding:8px 14px;font-size:12px!important}
body.mc-postcard-frame #sil-postcards .pc-draft-row{grid-column:1;grid-row:4;min-height:0;margin:0;padding:0;border:0;font-size:10px;line-height:1.4}
body.mc-postcard-frame #sil-postcards .pc-maker{flex:none;padding:4px 12px;font-size:10px;line-height:1.4;background:#fff}
body.mc-postcard-frame.mc-service #sil-postcards .pc-collection-tabs button[aria-selected=true],body.mc-postcard-frame.mc-service #sil-postcards .pc-channel-tabs button[aria-pressed=true],body.mc-postcard-frame.mc-service #sil-postcards .pc-footer-actions .pc-primary{background:#1c62b1;border-color:#1c62b1;color:#fff}
body.mc-postcard-frame.mc-service #sil-postcards .pc-side-tabs button[aria-pressed=true],body.mc-postcard-frame.mc-service #sil-postcards .pc-asset-choice[aria-pressed=true]{border-color:#1c62b1;color:#174c84;background:#fff}
body.mc-postcard-frame #sil-postcards.pc-confirming .pc-layout{display:block;flex:1 1 auto;min-height:0;overflow:auto}
body.mc-postcard-frame #sil-postcards.pc-confirming .pc-preview{height:340px;min-height:340px}
body.mc-postcard-frame #sil-postcards.pc-confirming .pc-compose{height:auto;overflow:visible;max-height:none}
@media(min-width:981px) and (max-width:1150px){body.mc-postcard-frame #sil-postcards .pc-layout{grid-template-columns:180px minmax(0,1fr) 260px}}
@media(max-width:980px){
 body.mc-postcard-frame #sil-postcards .pc-layout{display:flex;flex-direction:column;min-height:0;overflow:auto;flex:1 1 auto}
 body.mc-postcard-frame #sil-postcards .pc-preview{order:0;flex:none;width:100%;height:clamp(370px,58dvh,540px);min-height:var(--pc-preview-min)}
 body.mc-postcard-frame #sil-postcards .pc-gallery{order:1;flex:none;width:100%;height:410px;max-height:410px}
 body.mc-postcard-frame #sil-postcards .pc-compose{order:2;flex:none;width:100%;height:auto;min-height:300px;max-height:620px}
 body.mc-postcard-frame #sil-postcards .pc-thumbnails{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.mc-postcard-frame #sil-postcards .pc-asset-grid,body.mc-postcard-frame #sil-postcards .pc-premium-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:640px){
 body.mc-postcard-frame .mc-service-notice{font-size:11px;padding:5px 10px;line-height:1.45}
 body.mc-postcard-frame #sil-postcards .pc-toolbar{flex-wrap:wrap;gap:5px;padding:5px 8px}
 body.mc-postcard-partner #sil-postcards .pc-toolbar-context{justify-content:space-between;width:100%;gap:7px}
 body.mc-postcard-frame #sil-postcards .pc-toolbar-actions{display:flex;width:100%;justify-content:flex-end;gap:5px}
 body.mc-postcard-frame #sil-postcards .pc-toolbar-actions a,body.mc-postcard-frame #sil-postcards .pc-toolbar .pc-clear-draft{font-size:10px;min-height:30px}
 body.mc-postcard-frame #sil-postcards .pc-toolbar-brand{width:auto}
 body.mc-postcard-frame #sil-postcards .pc-preview{padding:8px;gap:6px}
 body.mc-postcard-frame #sil-postcards .pc-preview-canvas{min-height:220px}
 body.mc-postcard-frame #sil-postcards .pc-zoom-tools label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.mc-postcard-frame #sil-postcards .pc-zoom-tools input{width:70px}
 body.mc-postcard-frame #sil-postcards .pc-zoom-tools button{padding:3px 5px;font-size:10px}
 body.mc-postcard-frame #sil-postcards .pc-edges>span{display:none}
 body.mc-postcard-frame #sil-postcards .pc-edges button{font-size:9px;padding:3px 5px;min-height:25px}
 body.mc-postcard-frame #sil-postcards .pc-footer{padding:6px 8px;gap:2px 8px}
 body.mc-postcard-frame #sil-postcards .pc-footer-actions{max-width:150px}
 body.mc-postcard-frame #sil-postcards .pc-footer-actions .pc-primary{min-width:0;min-height:40px;padding:7px 10px;font-size:11px!important}
}

body.mc-postcard-frame #sil-postcards .pc-edge-menu{position:relative;flex:none;margin:0}
body.mc-postcard-frame #sil-postcards .pc-edge-menu summary{min-height:29px;display:list-item;list-style-position:inside;padding:5px 8px;border:1px solid var(--pc-ui-line);border-radius:6px;font:11px/1.5 system-ui,sans-serif;cursor:pointer;color:var(--pc-ink);background:#fff}
body.mc-postcard-frame #sil-postcards .pc-edge-menu summary:focus-visible{outline:3px solid var(--pc-ui-accent);outline-offset:2px}
body.mc-postcard-frame #sil-postcards .pc-edge-menu>.pc-edges{position:absolute;right:0;bottom:calc(100% + 8px);z-index:80;width:300px;max-width:calc(100vw - 40px);padding:10px;gap:6px;border:1px solid var(--pc-ui-line);border-radius:9px;background:#fff;box-shadow:0 8px 28px #17335022}
body.mc-postcard-frame #sil-postcards .pc-edge-menu:not([open])>.pc-edges{display:none}
body.mc-postcard-frame #sil-postcards .pc-edge-menu>.pc-edges>span{width:100%;text-align:left;font-weight:600}

body.mc-postcard-frame.mc-service #sil-postcards .pc-toolbar-actions a,body.mc-postcard-frame.mc-service #sil-postcards .pc-toolbar .pc-clear-draft{background:#fff;border-color:var(--pc-ui-line);color:#173350}
body.mc-postcard-frame.mc-service #sil-postcards .pc-compose>h2{color:#173350}
body.mc-postcard-frame.mc-service #sil-postcards .pc-footer>.pc-host-site{color:#1c62b1}
body.mc-postcard-frame.mc-service #sil-postcards .pc-composition-tools{background:#f5f8fb;border-color:var(--pc-ui-line)}

.mc-addon-panel{padding:14px;border:1px solid #d9c8b7;border-radius:12px;background:#fffaf3;margin:0 0 20px;color:#23364a}.mc-addon-panel h3{font:23px Georgia,serif;margin:0 0 8px}.mc-addon-panel p{font-size:12px;line-height:1.6;margin:6px 0 12px}.mc-addon-row{display:grid;grid-template-columns:52px minmax(0,1fr);gap:8px 10px;padding:12px 0;border-top:1px solid #e5d9cd;align-items:center}.mc-addon-row img{width:52px;height:58px;object-fit:contain;grid-row:span 2}.mc-addon-row strong{font-size:12px;overflow-wrap:anywhere}.mc-addon-row label{font-size:11px;display:block;margin:0}.mc-addon-row select{display:block;width:100%;max-width:100%;font:12px Arial,sans-serif;padding:7px;margin-top:4px}.mc-addon-row button{grid-column:1/-1;width:100%;font:12px Arial,sans-serif;padding:8px;border:1px solid #cfb79e;border-radius:7px;background:#fff;color:#774731;text-align:left;cursor:pointer}.mc-addon-row button:disabled{opacity:.5;cursor:wait}.mc-addon-row [hidden]{display:none!important}.mc-confirmed-addons{font-size:12px;line-height:1.7;padding:12px;background:#f3eade;border-radius:8px}

.mc-dispatch{margin:8px 0;padding:0;border:0;border-top:1px solid #e5ddd2;border-radius:0;background:transparent;color:#536473;font:12px/1.45 Arial,sans-serif}.mc-dispatch>summary{padding:8px 0;cursor:pointer;font:12px/1.45 Arial,sans-serif;color:#536473}.mc-dispatch-fields{padding:0 0 8px;display:flex;flex-wrap:wrap;align-items:end;gap:6px}.mc-dispatch label{display:grid;gap:3px;flex:1;min-width:120px;font:11px Arial,sans-serif}.mc-dispatch input{box-sizing:border-box;width:100%;min-height:30px;padding:5px 7px;border:1px solid #d8d0c5;border-radius:4px;font:12px Arial,sans-serif}.mc-dispatch button{padding:5px 8px;min-height:30px;border:1px solid #d8d0c5;border-radius:4px;background:#fff;font:11px Arial,sans-serif;cursor:pointer}.mc-dispatch p{flex-basis:100%;margin:2px 0;font:10px/1.4 Arial,sans-serif}.mc-dispatch p:empty{display:none}.mc-dispatch[hidden]{display:none!important}

.mc-stamp-diagnostics{margin:16px 0;padding:12px;background:#fff6e9;border:1px solid #ddc6a7;border-radius:8px;font:12px/1.5 Arial,sans-serif}.mc-stamp-diagnostics summary{cursor:pointer;font-weight:600}.mc-stamp-diagnostics>div{padding:12px 0;border-top:1px solid #ddc6a7}.mc-stamp-diagnostics p{margin:5px 0}.mc-stamp-diagnostics a{color:#70442c}.mc-stamp-diagnostics [hidden]{display:none!important}

#sil-postcards.pc-adaptive .pc-card,#sil-postcards.pc-adaptive .pc-front,#sil-postcards.pc-adaptive .pc-back{width:var(--pc-card-width,600px)!important;height:var(--pc-card-height,400px)!important}
#sil-postcards.pc-adaptive .pc-front .pc-photo{inset:0!important;left:0!important;top:0!important;width:100%!important;height:100%!important;border:0!important}
#sil-postcards.pc-adaptive .pc-photo-title,#sil-postcards.pc-adaptive .pc-front-brand{display:none!important}
#sil-postcards.pc-adaptive .pc-card-heading,#sil-postcards.pc-adaptive .pc-divider,#sil-postcards.pc-adaptive .pc-signature,#sil-postcards.pc-adaptive .pc-address,#sil-postcards.pc-adaptive .pc-card-footer,#sil-postcards.pc-adaptive .pc-letter{visibility:hidden!important}
#sil-postcards.pc-adaptive .pc-adaptive-ink{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.pc-format-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:end;padding:10px;border:1px solid #ded2c2;border-radius:8px;background:#fffdf8}.pc-format-controls label{display:grid;gap:4px;font-size:12px}.pc-format-controls select{padding:7px;border:1px solid #d4c4b0;border-radius:6px;background:white;font:12px Arial}.pc-format-controls p{flex-basis:100%;margin:0;font:11px/1.4 Arial;color:#6b797d}

#sil-postcards.pc-adaptive .pc-front>.mc-type-art,#sil-postcards.pc-adaptive .pc-back>.mc-type-art{width:var(--pc-card-width)!important;height:var(--pc-card-height)!important;max-width:none!important;max-height:none!important}
#sil-postcards.pc-adaptive .pc-postmark img,#sil-postcards .pc-thumbnails img,#sil-postcards .pc-asset-choice img,#sil-postcards .pc-premium-choice img,#sil-postcards .pc-collection-scroll img{object-fit:contain!important;object-position:center!important}
#sil-postcards.pc-adaptive .pc-photo.pc-full-image{inset:6px!important;left:6px!important;top:6px!important;width:calc(100% - 12px)!important;height:calc(100% - 12px)!important}

/* The illustration sets the front; the writing side is always landscape. */
#sil-postcards.pc-adaptive .pc-front{width:var(--pc-front-width,600px)!important;height:var(--pc-front-height,400px)!important}
#sil-postcards.pc-adaptive .pc-back{width:600px!important;height:400px!important}
#sil-postcards.pc-adaptive .pc-front>.mc-type-art,#sil-postcards.pc-adaptive .pc-back>.mc-type-art{width:100%!important;height:100%!important}
