.thedoot-pdf-container {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.thedoot-pdf-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    margin: 1rem 0;
}

.thedoot-pdf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.thedoot-pdf-filename {
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
    word-break: break-word;
}

.thedoot-pdf-download {
    padding: 8px 16px;
    background: #2271b1;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.thedoot-pdf-download:hover {
    color: #ffffff;
    background: #135e96;
}

.thedoot-pdf-embed-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    max-height: 70vh;
}

.thedoot-pdf-embed-wrapper iframe,
.thedoot-pdf-embed-wrapper embed,
.thedoot-pdf-embed-wrapper object {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

details.thedoot-accordion-item {
    transition: all 0.2s ease-in-out;
}
details.thedoot-accordion-item[open] summary.thedoot-accordion-header {
    border-bottom: 1px solid #dcdcde;
    background: #eaeaea;
}
summary.thedoot-accordion-header::-webkit-details-marker {
    color: #2271b1;
}

.thedoot-pdf-canvas-wrapper {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    background: #525659;
    text-align: center;
}

.thedoot-pdf-canvas {
    display: block;
    margin: 10px auto;
    max-width: 95% !important;
    height: auto !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    touch-action: pan-y !important;
}

/* Flatten double-nested borders when a PDF card sits inside an accordion body. */
.thedoot-accordion-item .thedoot-pdf-card {
    border: none;
    border-radius: 0;
    margin: 0;
}

@media (max-width: 600px) {
    .thedoot-pdf-canvas-wrapper object,
    .thedoot-pdf-canvas-wrapper iframe {
        min-height: 400px;
    }
}
