.sdoa-overlay {
    box-sizing: border-box;
    padding: 2.75rem .5rem max(.5rem, env(safe-area-inset-bottom));
    border: 0;
    background: #fff;
    color: #171717;
    box-shadow: 0 4px 24px #0005;
    border-radius: .5rem;
}

.sdoa-overlay a,
.sdoa-overlay img {
    display: block;
}

.sdoa-overlay .sdoa-close {
    position: absolute;
    top: .25rem;
    right: .25rem;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    border: 1px solid #ccd0d4;
    border-radius: .25rem;
    background: #fff;
    color: #171717;
    font: 1.5rem/1 sans-serif;
    cursor: pointer;
}

.sdoa-sticky {
    position: fixed;
    z-index: 9998;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 1rem);
}

.sdoa-popup {
    position: fixed;
    inset: 0;
    margin: auto;
    width: max-content;
    max-width: calc(100% - 2rem);
    max-height: calc(100% - 2rem);
    overflow: auto;
}

.sdoa-popup::backdrop {
    background: #0009;
}

.sdoa-popup img {
    max-height: min(70vh, calc(100vh - 6rem));
    object-fit: contain;
}

.sdoa-sticky img {
    max-height: min(22vh, 160px);
    object-fit: contain;
}
