.lbpc-banner,
.lbpc-modal {
    box-sizing: border-box;
    color: #222;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.lbpc-banner[hidden],
.lbpc-modal[hidden] {
    display: none !important;
}

.lbpc-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 999998;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.lbpc-banner h2,
.lbpc-modal h2 {
    margin: 0 0 8px;
    color: #111;
    font-size: 20px;
}

.lbpc-banner p,
.lbpc-modal p {
    margin: 0 0 12px;
}

.lbpc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.lbpc-button,
.lbpc-open-preferences {
    padding: 9px 14px;
    border: 1px solid #444;
    border-radius: 3px;
    background: #fff;
    color: #222;
    cursor: pointer;
    font: inherit;
}

.lbpc-button--primary {
    border-color: #222;
    background: #222;
    color: #fff;
}

.lbpc-button:focus,
.lbpc-open-preferences:focus {
    outline: 3px solid #7aa7d9;
    outline-offset: 2px;
}

.lbpc-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.58);
}

.lbpc-modal__panel {
    width: min(620px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 24px;
    border-radius: 4px;
    background: #fff;
}

.lbpc-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid #ddd;
}

.lbpc-category strong,
.lbpc-category span {
    display: block;
}

.lbpc-category span {
    color: #555;
    font-size: 14px;
}

.lbpc-open-preferences {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 999997;
    padding: 7px 10px;
    background: #fff;
    font-size: 12px;
}

.lbpc-media-placeholder {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    aspect-ratio: 16 / 9;
    padding: 24px;
    border: 1px solid #ccc;
    background: #f4f4f4;
    color: #222;
    text-align: center;
}

.lbpc-media-placeholder p {
    margin: 0 0 12px;
}

@media (max-width: 600px) {
    .lbpc-category {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .lbpc-actions .lbpc-button {
        width: 100%;
    }
}
