/* The form scrolls below a persistent, named close header. */
.single-prayer .x-modal[data-samye-prayer-dialog] .x-modal_container {
    /* BricksExtras forces inline-block with !important on this container. */
    display: inline-flex !important;
    flex-direction: column;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
}
.single-prayer .x-modal[data-samye-prayer-dialog] .samye-prayer-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 0 0 auto;
    padding: 12px 16px;
    background: #fff;
    color: #111;
    border-bottom: 1px solid #ddd;
}
.single-prayer .samye-prayer-dialog__header h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}
.single-prayer .x-modal[data-samye-prayer-dialog] .x-modal_close {
    position: static;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 8px;
    /* The retained Bricks template sets white using its element ID. */
    color: #111 !important;
    background: #f2f2f2;
    border: 1px solid #777;
    border-radius: 4px;
    transform: none;
    opacity: 1;
}
.single-prayer .x-modal[data-samye-prayer-dialog] .x-modal_close:focus-visible {
    outline: 3px solid #111;
    outline-offset: 2px;
}
.single-prayer .x-modal[data-samye-prayer-dialog] .x-modal_content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}
