/* C45: the document stays whole; zoom uses a scrollable full-resolution image. */
.c14-trust .c14-letter-dialog {
  box-sizing:border-box; width:min(1000px,calc(100vw - 48px));
  height:calc(100dvh - 48px); max-height:calc(100dvh - 48px);
  padding:0; margin:auto; overflow:hidden; background:#edf2f7;
}
.c14-trust .c14-letter-dialog[open] {display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:0}
.c14-trust .c14-dialog-top {display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px;padding:12px 20px;background:#fff}
.c14-trust .c14-dialog-top > p {min-width:0;margin:0;font-size:16px;line-height:1.35;color:#102e53;word-break:normal;overflow-wrap:normal;hyphens:auto}
.c14-trust .c14-dialog-top button {box-sizing:border-box;display:grid;place-items:center;min-width:44px;min-height:44px;width:44px;height:44px;border:1px solid #bac9dc;border-radius:8px;background:#fff;color:#102e53;font-family:inherit;font-size:28px;line-height:1;cursor:pointer;padding:0}
.c14-trust .c14-dialog-top button:focus-visible {outline:3px solid #bb2440;outline-offset:2px}
.c14-trust .c14-dialog-view {display:block;min-width:0;min-height:0;padding:12px;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;box-sizing:border-box}
.c14-trust .c14-dialog-view img {display:block;width:var(--c45-width,100%)!important;height:var(--c45-height,100%)!important;max-width:none!important;max-height:none!important;min-width:0;min-height:0;object-fit:contain;object-position:center;margin:var(--c45-margin,0px) auto;background:#fff;box-shadow:0 2px 12px #102e5320;cursor:zoom-in}
.c14-trust .c14-dialog-view[data-c45-zoom="true"] img {cursor:zoom-out}
.c14-trust .c14-dialog-bottom {display:grid;grid-template-columns:auto auto auto 1fr;gap:12px;padding:10px 20px calc(10px + env(safe-area-inset-bottom,0px));background:#fff;align-items:center}
.c14-trust .c14-dialog-bottom > button {min-height:44px;min-width:88px;font-size:16px}
.c14-trust .c14-dialog-bottom > span {min-width:56px;font-size:16px;color:#425873;white-space:nowrap}
.c14-trust .c14-dialog-bottom > a {display:flex;justify-content:flex-end;align-items:center;width:auto;margin:0;min-height:44px;font-size:16px;line-height:1.3;text-decoration:underline;text-underline-offset:3px}
.gsg-letter-detail-scan,.gsg-letter-card__image {overflow:visible}
.gsg-letter-detail-scan img,.gsg-letter-card__image img {object-fit:contain!important;object-position:center;aspect-ratio:var(--c45-aspect);height:auto!important;max-height:none!important}
@media(max-width:600px) {
 .c14-trust .c14-letter-dialog {width:calc(100vw - 24px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);border-radius:10px}
 .c14-trust .c14-dialog-top {padding:10px 16px}
 .c14-trust .c14-dialog-bottom {grid-template-columns:1fr auto 1fr;gap:8px;padding:8px 16px calc(8px + env(safe-area-inset-bottom,0px))}
 .c14-trust .c14-dialog-bottom > button {min-width:0;width:100%;font-size:16px}
 .c14-trust .c14-dialog-bottom > a {grid-column:1/-1;justify-content:center;min-height:44px;width:100%;font-size:16px;padding:0}
 .c14-trust .c14-dialog-view {padding:8px}
}
