.overflow-y-hidden {
    overflow-y: hidden !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
}

.popup-overlay {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  z-index: 9999999999;
  padding: 30px 15px;
  height: 100vh;
  background-color: #FFF;
}

.hidden {
    display: none;
}

.popup-content {
    position: relative;
    max-height: 100%;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #222222;
}

.spinner {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid #888888;
    border-top: 8px solid #ffffff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    z-index: 10;
}
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.pdf-popup-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 55px;
    width: 100%;
    max-width: 1200px;
}

.pdf-popup-widget {
    display: block;
    position: relative;
}

.pdf-popup-btn {
    display: inline-block;
    margin-top: 25px;
}
.pdf-popup-btn:hover {
    background-color: #f2f2f2 !important;
}

.close-btn {
    color: white;
    background-color: #222222;
    font-size: 30px;
    border-radius: 50%;
    cursor: pointer;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    transition: background-color .2s;
    margin-bottom: 25px;
    outline: none;
    box-shadow: none;
    border: none;
}
.close-btn:hover {
    background-color: #444444;
}

.pdf-canvas-container {
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.pdf-canvas-container canvas {
    width: 100%;
    height: auto;
}
.pdf-canvas-container canvas:not(:last-child) {
    border-bottom: 1px solid #222222;
}

@media screen and (min-width: 992px) {
    .pdf-popup-widget {
        position: sticky;
        top: 20px;
    }
}

@media screen and (max-width: 991px) {
    .pdf-popup-wrapper {
        flex-direction: column;
        gap: 25px;
    }
}