.qprb-panel {
    clear: both;
    margin: 28px 0 10px;
    padding: 20px;
    background: #f7f7f7;
    border: 1px solid #d8d8d8;
}

.qprb-heading {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.25;
}

.qprb-intro {
    margin: 0 0 14px;
}

.qprb-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}

.qprb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    min-height: 44px;
    border: 1px solid #1264ab;
    border-radius: 2px;
    background: #1e73be;
    color: #ffffff !important;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: background-color .15s ease, color .15s ease;
}

.qprb-button:hover,
.qprb-button:focus {
    background: #1766aa;
    color: #c0c0c0 !important;
    text-decoration: none !important;
}

/* Hide ColorMag/category badges only when the post-level option is enabled. */
.qprb-hide-top-badges .cm-entry-categories,
.qprb-hide-top-badges .cm-post-categories,
.qprb-hide-top-badges .entry-category,
.qprb-hide-top-badges .entry-categories,
.qprb-hide-top-badges .cat-links,
.qprb-hide-top-badges .post-categories {
    display: none !important;
}

@media (max-width: 900px) {
    .qprb-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .qprb-button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .qprb-panel {
        padding: 16px 12px;
    }

    .qprb-buttons {
        grid-template-columns: 1fr;
    }
}

/* Additional ColorMag selectors used by different theme versions. */
.qprb-hide-top-badges .cm-entry-header .cm-entry-categories,
.qprb-hide-top-badges .cm-entry-header .cm-post-categories,
.qprb-hide-top-badges .cm-entry-header .entry-categories,
.qprb-hide-top-badges .cm-entry-header .cat-links,
.qprb-hide-top-badges .cm-entry-header .post-categories,
.qprb-hide-top-badges .cm-entry-header [class*="categor"] {
    display: none !important;
}
