/* "Written request" add-to-cart dialog (wpkmedipim).
   A single dimmed overlay that contains the centered dialog box. Visibility is
   controlled by JS (.wpk-wr-visible) so it does not depend on the Bootstrap JS API;
   the box reuses the theme's Bootstrap .modal-content/.btn styles for its look. */

.wpk-wr-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, .5);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.wpk-wr-overlay.wpk-wr-visible {
    display: flex;
}

.wpk-wr-dialog {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: .5rem;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .3);
    overflow: hidden;
}

.wpk-wr-dialog .wpk-wr-body {
    overflow-y: auto;
}

.wpk-wr-loading {
    text-align: center;
    opacity: .7;
}

body.wpk-wr-open {
    overflow: hidden;
}
