/* ==========================================================================
   B2B Portfolio – Editorial info modal (Image Select intercept)
   ========================================================================== */

.b2bp-editorial-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.b2bp-editorial-modal-overlay.b2bp-editorial-modal-open {
    display: flex;
}

.b2bp-editorial-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow: hidden;
}

/* Header */
.b2bp-editorial-modal-header {
    padding: 20px 24px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.b2bp-editorial-modal-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    display: block;
}

/* Body */
.b2bp-editorial-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    font-size: 14px;
    color: #334155;
    line-height: 1.7;
}

.b2bp-editorial-modal-body p {
    margin: 0;
}

.b2bp-editorial-modal-body .b2bp-empty-field {
    color: #94a3b8;
    font-style: italic;
}

/* Footer */
.b2bp-editorial-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.b2bp-editorial-modal-confirm {
    background-color: #6366f1;
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.15s;
}

.b2bp-editorial-modal-confirm:hover {
    background-color: #4f46e5;
}

.b2bp-editorial-modal-cancel {
    background-color: #f1f5f9;
    color: #475569;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.15s;
}

.b2bp-editorial-modal-cancel:hover {
    background-color: #e2e8f0;
}

/* Mobile */
@media (max-width: 480px) {
    .b2bp-editorial-modal-footer {
        flex-direction: column-reverse;
    }
    .b2bp-editorial-modal-confirm,
    .b2bp-editorial-modal-cancel {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
