.kima-pdf-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 18px 0;
}

.kima-pdf-button {
    appearance: none;
    border: 0;
    border-radius: 8px;
    background: #bd4a2b;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    padding: 12px 16px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.kima-pdf-button:hover,
.kima-pdf-button:focus {
    background: #a83f24;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0,0,0,.16);
    outline: none;
}

.kima-pdf-viewer {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    background: rgba(18, 18, 18, .96);
    color: #fff;
}

.kima-pdf-viewer[hidden] {
    display: none !important;
}

body.kima-pdf-viewer-open {
    overflow: hidden !important;
}

.kima-pdf-viewer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 10px 16px;
    background: #161616;
    border-bottom: 1px solid rgba(255,255,255,.16);
    box-sizing: border-box;
}

.kima-pdf-viewer__title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
}

.kima-pdf-viewer__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.kima-pdf-viewer__newtab,
.kima-pdf-viewer__close {
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 7px;
    background: #bd4a2b;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
}

.kima-pdf-viewer__newtab:hover,
.kima-pdf-viewer__close:hover {
    background: #a83f24;
}

.kima-pdf-viewer__body {
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #2b2b2b;
}

.kima-pdf-viewer__frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: 0;
    background: #fff;
}

@media (max-width: 720px) {
    .kima-pdf-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .kima-pdf-button {
        width: 100%;
    }

    .kima-pdf-viewer__bar {
        align-items: stretch;
        flex-direction: column;
    }

    .kima-pdf-viewer__actions {
        justify-content: space-between;
    }
}
