/* Custom Trigger and Close Buttons */
.tt-pdf-trigger-btn {
    all: unset;
}
.tt-dialog-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: .25rem .75rem;
}
.tt-dialog-header__title {
    color: #584575;
    flex-grow: 1;
    margin: 0;
    font-size: 1rem;
}
.tt-dialog-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    margin-left: auto;
}

/* Native Dialog Element Styling */
.tt-pdf-dialog {
    border: none;
    border-radius: 8px;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Modern Backdrop Styling */
.tt-pdf-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.tt-dialog-inner {
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.tt-pdf-viewer-container {
    width: 100%;
    height: 100%;
}

.tt-pdf-iframe {
    width: 100%;
    height: calc(100% - 45px);
    display: block;
}

.tt-pdf-error {
    color: #bc0b0b;
    padding: 10px;
    border: 1px solid #bc0b0b;
    background-color: #fff8f8;
}
