/* The actual button and colors are owned by sdb-btn--primary (Design System). */
.sdbpc-pdf-meta-row {
    position: relative;
    box-sizing: border-box;
    /* Geometry only: lines below are drawn independently from the theme. */
    inline-size: 100%;
    max-inline-size: 100%;
    min-block-size: 52px;
    padding-inline-end: 154px;
}
.sdbpc-pdf-meta-row > .sdbpc-pdf-action {
    position: absolute;
    inset-inline-end: 0;
    inset-block-start: 50%;
    transform: translateY(-50%);
    z-index: 1;
    margin: 0;
}
.sdbpc-pdf-meta-row--stacked {
    padding-inline-end: 0;
}
.sdbpc-pdf-meta-row--stacked > .sdbpc-pdf-action {
    position: static;
    transform: none;
    margin-block-start: 12px;
}
@media (max-width: 700px) {
    .sdbpc-pdf-meta-row { padding-inline-end: 0; }
    .sdbpc-pdf-meta-row > .sdbpc-pdf-action {
        position: static;
        transform: none;
        margin-block-start: 12px;
    }
}

/* The theme can draw its separators on a narrower inner element. These two
   independent rules cover the entire metadata band without changing its
   layout or the Design System button. */
.sdbpc-pdf-meta-row > .sdbpc-pdf-meta-separator {
    position: absolute;
    inset-inline: 0;
    block-size: 1px;
    background-color: var(--sdb-color-outline-variant, var(--sdb-color-border, #dce5ee));
    pointer-events: none;
    z-index: 2;
}
.sdbpc-pdf-meta-row > .sdbpc-pdf-meta-separator--top { inset-block-start: 0; }
.sdbpc-pdf-meta-row > .sdbpc-pdf-meta-separator--bottom { inset-block-end: 0; }
