.ads-document-dialog {
    width: min(56rem, calc(100% - 1.5rem)); max-width: none; max-height: none;
    margin: auto; padding: 0; border: 0; border-radius: .7rem; color: #263b32;
    background: #fcfbf7; box-shadow: 0 1.25rem 4rem #17282150;
}
.ads-document-dialog::backdrop { background: #172821bb; }
.ads-document-panel { display: grid; grid-template-rows: auto minmax(0,1fr) auto; height: min(49rem, 92dvh); }
.ads-document-header, .ads-document-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 1rem; }
.ads-document-header h2 { margin: 0; font: 650 1.05rem/1.3 "Segoe UI", sans-serif; letter-spacing: 0; }
.ads-document-close {
    min-width: 2.5rem; min-height: 2.5rem; border: 0; border-radius: 50%; background: #e8ebe3;
    color: #263b32; font: 1.5rem/1 sans-serif; cursor: pointer;
}
.ads-document-panel iframe { display: block; width: 100%; height: 100%; border: 0; background: #f0efe8; }
.ads-document-footer { justify-content: flex-end; }
.ads-document-footer a { color: #284936; font-size: .88rem; font-weight: 650; }

.ads-certificate-thumb { width: 104px; height: 147px; }
.ads-certificate-thumb img, .ads-certificate-thumb iframe {
    display: block; width: 100%; height: 100%; object-fit: contain; border: 0; pointer-events: none;
}

.ads-document-panel [hidden] { display: none !important; }
.ads-document-image { overflow: auto; padding: .7rem; background: #e8ebe3; }
.ads-document-image img { display: block; width: auto; max-width: 100%; height: auto; margin: auto; box-shadow: 0 .5rem 1.3rem #263b3229; }
