/**
 * BuddyPress Member Blog Pro - Co-authors Styles
 *
 * @package Buddypress_Member_Blog_Pro
 * @since 2.0.0
 */

/*--------------------------------------------------------------
# CSS Variables (Design System)
--------------------------------------------------------------*/
:root {
    /* Primary Colors */
    --bpmb-primary: #2468c6;
    --bpmb-primary-hover: #1b4f9e;
    --bpmb-primary-light: #e8f0fb;

    /* Secondary Colors */
    --bpmb-secondary: #6c757d;
    --bpmb-secondary-hover: #545b62;
    --bpmb-secondary-light: #f8f9fa;

    /* State Colors */
    --bpmb-success: #28a745;
    --bpmb-success-light: #ebf9eb;
    --bpmb-danger: #dc3545;
    --bpmb-danger-light: #fce8ea;
    --bpmb-warning: #ffc107;
    --bpmb-warning-light: #fff8e1;
    --bpmb-info: #17a2b8;
    --bpmb-info-light: #e7f6f8;

    /* Text Colors */
    --bpmb-text-primary: #303030;
    --bpmb-text-secondary: #6c757d;
    --bpmb-text-muted: #999;
    --bpmb-text-light: #fff;

    /* Background Colors */
    --bpmb-bg-primary: #fff;
    --bpmb-bg-secondary: #f8f9fa;
    --bpmb-bg-tertiary: #f2f2f2;
    --bpmb-bg-hover: rgba(0, 0, 0, 0.05);

    /* Border Colors */
    --bpmb-border-color: #eee;
    --bpmb-border-color-dark: #ccc;
    --bpmb-border-color-light: rgba(0, 0, 0, 0.1);

    /* Spacing */
    --bpmb-space-xs: 4px;
    --bpmb-space-sm: 8px;
    --bpmb-space-md: 16px;
    --bpmb-space-lg: 24px;
    --bpmb-space-xl: 32px;
    --bpmb-space-2xl: 48px;

    /* Border Radius */
    --bpmb-radius-sm: 4px;
    --bpmb-radius-md: 6px;
    --bpmb-radius-lg: 10px;
    --bpmb-radius-xl: 16px;
    --bpmb-radius-full: 100px;

    /* Typography */
    --bpmb-font-size-xs: 12px;
    --bpmb-font-size-sm: 13px;
    --bpmb-font-size-md: 14px;
    --bpmb-font-size-base: 15px;
    --bpmb-font-size-lg: 16px;
    --bpmb-font-size-xl: 18px;
    --bpmb-font-size-2xl: 20px;
    --bpmb-font-size-3xl: 22px;

    /* Font Weights */
    --bpmb-font-weight-normal: 400;
    --bpmb-font-weight-medium: 500;
    --bpmb-font-weight-semibold: 600;
    --bpmb-font-weight-bold: 700;

    /* Line Heights */
    --bpmb-line-height-tight: 1.2;
    --bpmb-line-height-base: 1.5;
    --bpmb-line-height-relaxed: 1.7;

    /* Shadows */
    --bpmb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --bpmb-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --bpmb-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --bpmb-shadow-focus: 0 0 0 3px rgba(36, 104, 198, 0.25);

    /* Transitions */
    --bpmb-transition-fast: 150ms ease;
    --bpmb-transition-base: 200ms ease;
    --bpmb-transition-slow: 300ms ease;

    /* Z-index Layers */
    --bpmb-z-dropdown: 100;
    --bpmb-z-modal: 1000;
    --bpmb-z-tooltip: 1100;
}

/*
 * Dark mode support - Only applied when theme adds .dark-mode or .dark-scheme class
 * This ensures the plugin remains theme-neutral and doesn't interfere with theme colors
 */
.dark-mode .bpmb-coauthors-list-wrapper,
.dark-scheme .bpmb-coauthors-list-wrapper {
    --bpmb-bg-primary: #1a1a1a;
    --bpmb-bg-secondary: #2d2d2d;
    --bpmb-bg-tertiary: #3a3a3a;
    --bpmb-text-primary: #e0e0e0;
    --bpmb-text-secondary: #a0a0a0;
    --bpmb-border-color: #404040;
    --bpmb-border-color-dark: #555;
}

.dark-mode .bpmb-coauthor-item,
.dark-scheme .bpmb-coauthor-item,
.dark-mode .bpmb-invitation-item,
.dark-scheme .bpmb-invitation-item {
    --bpmb-bg-primary: #1a1a1a;
    --bpmb-border-color: #404040;
}

.dark-mode .bpmb-coauthors-readonly .bpmb-coauthors-list-readonly,
.dark-scheme .bpmb-coauthors-readonly .bpmb-coauthors-list-readonly {
    --bpmb-bg-primary: #1a1a1a;
    --bpmb-border-color: #404040;
}

.dark-mode .bpmb-author-item,
.dark-scheme .bpmb-author-item {
    --bpmb-bg-primary: #1a1a1a;
    --bpmb-border-color: #404040;
}

.dark-mode .bpmb-search-results,
.dark-scheme .bpmb-search-results {
    --bpmb-bg-primary: #1a1a1a;
    --bpmb-border-color: #404040;
}

/* ==========================================================================
   Co-author Selector (Post Form)
   ========================================================================== */

.bpmb-coauthors-field {
	margin-bottom: 20px;
}

.bpmb-coauthors-field > label > span {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: var(--bpmb-text-primary, #1e293b);
}

/* Co-authors List */
.bpmb-coauthors-list-wrapper {
	background: var(--bpmb-bg-secondary, #f8fafc);
	border: 1px solid var(--bpmb-border-color, #e2e8f0);
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 12px;
}

.bpmb-coauthors-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bpmb-coauthor-item,
.bpmb-invitation-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	background: var(--bpmb-bg-primary, #fff);
	border: 1px solid var(--bpmb-border-color, #e2e8f0);
	border-radius: 6px;
	margin-bottom: 8px;
	transition: box-shadow 150ms ease, border-color 150ms ease;
}

.bpmb-coauthor-item:last-child,
.bpmb-invitation-item:last-child {
	margin-bottom: 0;
}

.bpmb-coauthor-item:hover {
	border-color: #cbd5e1;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bpmb-coauthor-item.ui-sortable-helper {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bpmb-coauthor-item.ui-sortable-placeholder {
	background: #f1f5f9;
	border: 2px dashed #cbd5e1;
	visibility: visible !important;
}

/* Drag Handle */
.bpmb-coauthor-drag-handle {
	cursor: grab;
	color: #94a3b8;
	flex-shrink: 0;
}

.bpmb-coauthor-drag-handle:hover {
	color: #64748b;
}

.bpmb-coauthor-drag-handle:active {
	cursor: grabbing;
}

/* Avatar */
.bpmb-coauthor-avatar {
	flex-shrink: 0;
}

.bpmb-coauthor-avatar img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

/* Info */
.bpmb-coauthor-info {
	flex: 1;
	min-width: 0;
}

.bpmb-coauthor-name {
	display: block;
	font-weight: 500;
	color: var(--bpmb-text-primary, #1e293b);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bpmb-coauthor-username {
	display: block;
	font-size: 12px;
	color: #64748b;
}

/* Badges */
.bpmb-coauthor-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 500;
	border-radius: 4px;
	white-space: nowrap;
}

.bpmb-badge-coauthor {
	background: #dbeafe;
	color: #1d4ed8;
}

.bpmb-badge-pending {
	background: #fef3c7;
	color: #d97706;
}

/* Remove Button */
.bpmb-coauthor-remove,
.bpmb-invitation-cancel {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0 !important;
	border: none;
	background: transparent;
	color: #94a3b8;
	cursor: pointer;
	border-radius: 4px;
	transition: all 150ms ease;
	flex-shrink: 0;
}

.bpmb-coauthor-remove:hover,
.bpmb-invitation-cancel:hover {
	background: #fee2e2;
	color: #dc2626;
	border: none;
}

/* Pending Invitations */
.bpmb-pending-invitations {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--bpmb-border-color);
}

.bpmb-pending-title {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 8px 0;
}

.bpmb-invitations-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Empty State */
.bpmb-coauthors-empty {
	text-align: center;
	padding: 20px;
	color: #64748b;
}

.bpmb-coauthors-empty p {
	margin: 0;
	font-size: 14px;
}

/* ==========================================================================
   Search Section
   ========================================================================== */

.bpmb-add-coauthor-section {
	margin-top: 12px;
}

.bpmb-coauthor-search-wrapper {
	position: relative;
}

.bpmb-search-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.bpmb-search-icon {
	position: absolute;
	left: 12px;
	color: #94a3b8;
	pointer-events: none;
}

.bpmb-coauthor-search {
	width: 100%;
	padding: 10px 40px 10px 40px !important;
	border: 1px solid var(--bpmb-border-color, #e2e8f0);
	border-radius: 8px;
	font-size: 14px;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.bpmb-coauthor-search:focus {
	outline: none;
	border-color: var(--bpmb-primary, #2468c6);
	box-shadow: 0 0 0 3px rgba(36, 104, 198, 0.12);
}

.bpmb-search-spinner {
	position: absolute;
	right: 12px;
}

.bpmb-spinner-icon {
	animation: bpmb-spin 1s linear infinite;
	color: #64748b;
}

@keyframes bpmb-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* Search Results Dropdown */
.bpmb-search-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 4px;
	background: var(--bpmb-bg-primary, #fff);
	border: 1px solid var(--bpmb-border-color, #e2e8f0);
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	max-height: 280px;
	overflow-y: auto;
	z-index: 100;
}

.bpmb-search-result-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	cursor: pointer;
	transition: background 150ms ease;
}

.bpmb-search-result-item:hover {
	background: var(--bpmb-bg-secondary, #f8fafc);
}

.bpmb-search-result-item img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

.bpmb-search-result-info {
	flex: 1;
}

.bpmb-search-result-name {
	display: block;
	font-weight: 500;
	color: var(--bpmb-text-primary, #1e293b);
}

.bpmb-search-result-username {
	display: block;
	font-size: 12px;
	color: #64748b;
}

.bpmb-search-no-results,
.bpmb-search-error {
	padding: 16px;
	text-align: center;
	color: #64748b;
}

.bpmb-search-error {
	color: #dc2626;
}

/* Limit Info */
.bpmb-coauthor-limit-info {
	font-size: 12px;
	color: #64748b;
	margin-top: 8px;
	margin-bottom: 0;
}

.bpmb-coauthor-limit-warning {
	font-size: 12px;
	color: #d97706;
	margin: 0;
	padding: 8px 12px;
	background: #fef3c7;
	border-radius: 6px;
}

/* ==========================================================================
   Read-only Co-authors List
   ========================================================================== */

.bpmb-coauthors-readonly .bpmb-coauthors-list-readonly {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px;
}

.bpmb-author-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	margin-bottom: 6px;
}

.bpmb-author-item:last-child {
	margin-bottom: 0;
}

.bpmb-author-item img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
}

.bpmb-author-name {
	flex: 1;
	font-weight: 500;
	color: #1e293b;
}

.bpmb-author-badge {
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 500;
}

.bpmb-main-author .bpmb-author-badge {
	background: #dbeafe;
	color: #1d4ed8;
}

.bpmb-coauthor .bpmb-author-badge {
	background: #f1f5f9;
	color: #64748b;
}

.bpmb-you-badge {
	font-size: 11px;
	color: #64748b;
	font-style: italic;
}

/* ==========================================================================
   Invitations Widget (Shortcode)
   ========================================================================== */

.bpmb-invitations-widget {
	max-width: 600px;
}

.bpmb-invitations-title {
	font-size: 18px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 16px 0;
}

.bpmb-invitations-count {
	font-weight: 400;
	color: #64748b;
}

.bpmb-invitations-widget .bpmb-invitations-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bpmb-invitation-card {
	display: flex;
	flex-direction: column;
	padding: 16px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	margin-bottom: 12px;
	transition: box-shadow 150ms ease;
}

.bpmb-invitation-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bpmb-invitation-card:last-child {
	margin-bottom: 0;
}

.bpmb-invitation-content {
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
}

.bpmb-invitation-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 10px;
	color: #fff;
	flex-shrink: 0;
}

.bpmb-invitation-details {
	flex: 1;
	min-width: 0;
}

.bpmb-invitation-post-title {
	margin: 0 0 4px 0;
	font-size: 15px;
	font-weight: 600;
}

.bpmb-invitation-post-title a {
	color: #1e293b;
	text-decoration: none;
}

.bpmb-invitation-post-title a:hover {
	color: #2468c6;
}

.bpmb-invitation-meta {
	margin: 0;
	font-size: 13px;
	color: #64748b;
}

.bpmb-invitation-expiry {
	margin: 4px 0 0 0;
	font-size: 12px;
	color: #94a3b8;
}

.bpmb-invitation-expiry.bpmb-expiring-soon {
	color: #dc2626;
}

.bpmb-invitation-actions {
	display: flex;
	gap: 8px;
	padding-top: 12px;
	border-top: 1px solid #f1f5f9;
}

.bpmb-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 150ms ease;
}

.bpmb-btn-accept {
	background: #10b981;
	color: #fff;
}

.bpmb-btn-accept:hover {
	background: #059669;
}

.bpmb-btn-decline {
	background: #f1f5f9;
	color: #64748b;
}

.bpmb-btn-decline:hover {
	background: #e2e8f0;
	color: #475569;
}

.bpmb-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ==========================================================================
   Byline Display (Frontend)
   ========================================================================== */

.bpmb-byline {
	display: inline;
}

.bpmb-author-link {
	color: inherit;
	text-decoration: none;
}

.bpmb-author-link:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Co-authored Posts List
   ========================================================================== */

.bpmb-coauthored-posts-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bpmb-coauthored-post-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #f1f5f9;
}

.bpmb-coauthored-post-item:last-child {
	border-bottom: none;
}

.bpmb-coauthored-post-item a {
	color: #1e293b;
	text-decoration: none;
	font-weight: 500;
}

.bpmb-coauthored-post-item a:hover {
	color: #2468c6;
}

.bpmb-post-date {
	font-size: 12px;
	color: #94a3b8;
}

/* ==========================================================================
   Post Lock Notice
   ========================================================================== */

.bpmb-lock-notice {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	margin-bottom: 20px;
	background: #fef3c7;
	border: 1px solid #fbbf24;
	border-radius: 8px;
	color: #92400e;
}

.bpmb-lock-notice--locked {
	background: #fee2e2;
	border-color: #f87171;
	color: #991b1b;
}

.bpmb-lock-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

.bpmb-lock-icon::before {
	content: '';
	display: block;
	width: 20px;
	height: 20px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23991b1b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z'%3E%3C/path%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}

.bpmb-lock-message {
	flex: 1;
	font-size: 14px;
	line-height: 1.4;
}

.bpmb-lock-message-title {
	display: block;
	font-weight: 600;
}

.bpmb-lock-message-note {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	opacity: 0.9;
}

.bpmb-lock-message-note.bpmb-lock-message-note--error {
	font-weight: 600;
	opacity: 1;
}

.bpmb-lock-message strong {
	font-weight: 600;
}

.bpmb-lock-takeover {
	flex-shrink: 0;
	padding: 8px 16px;
	background: #fff;
	border: 1px solid #dc2626;
	border-radius: 6px;
	color: #dc2626;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 150ms ease;
}

.bpmb-lock-takeover:hover {
	background: #dc2626;
	color: #fff;
}

.bpmb-lock-takeover:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* ==========================================================================
   Editorial Workflow - Feedback Notice
   ========================================================================== */

.bpmb-workflow-feedback {
	margin-bottom: 20px;
	padding: 16px;
	border-radius: 8px;
	border-left: 4px solid;
}

.bpmb-workflow-feedback--rejected {
	background: #fef2f2;
	border-color: #ef4444;
}

.bpmb-workflow-feedback h4 {
	margin: 0 0 8px 0;
	font-size: 15px;
	font-weight: 600;
	color: #991b1b;
	display: flex;
	align-items: center;
	gap: 8px;
}

.bpmb-workflow-feedback h4::before {
	content: '';
	display: inline-block;
	width: 18px;
	height: 18px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23991b1b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z'%3E%3C/path%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	flex-shrink: 0;
}

.bpmb-workflow-feedback p {
	margin: 0 0 12px 0;
	font-size: 14px;
	color: #7f1d1d;
}

.bpmb-workflow-feedback blockquote {
	margin: 0;
	padding: 12px 16px;
	background: #fff;
	border-radius: 6px;
	border: 1px solid #fecaca;
	font-size: 14px;
	color: #374151;
	line-height: 1.6;
}

.bpmb-workflow-feedback .bpmb-workflow-meta {
	margin-top: 12px;
	font-size: 12px;
	color: #9ca3af;
}

/* ==========================================================================
   Editorial Workflow - Actions
   ========================================================================== */

.bpmb-workflow-actions {
	margin-top: 20px;
	padding: 16px;
	background: #f0fdf4;
	border: 1px solid #86efac;
	border-radius: 8px;
}

.bpmb-workflow-status {
	margin: 0 0 12px 0;
	font-size: 14px;
	font-weight: 500;
	color: #166534;
	display: flex;
	align-items: center;
	gap: 8px;
}

.bpmb-workflow-status::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	background: #22c55e;
	border-radius: 50%;
	flex-shrink: 0;
}

.bpmb-workflow-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.bpmb-btn-approve {
	background: #16a34a;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 150ms ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.bpmb-btn-approve:hover {
	background: #15803d;
}

.bpmb-btn-approve:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.bpmb-btn-reject {
	background: #fff;
	color: #dc2626;
	border: 1px solid #fca5a5;
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 150ms ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.bpmb-btn-reject:hover {
	background: #fef2f2;
	border-color: #f87171;
}

/* ==========================================================================
   Editorial Workflow - Rejection Modal
   ========================================================================== */

.bpmb-reject-modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100000;
	justify-content: center;
	align-items: center;
	padding: 20px;
}

.bpmb-reject-modal-overlay[style*="block"] {
	display: flex !important;
}

.bpmb-reject-modal-content {
	width: 100%;
	max-width: 500px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	animation: bpmb-modal-appear 200ms ease;
}

@keyframes bpmb-modal-appear {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.bpmb-reject-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.bpmb-reject-modal-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #1e293b;
}

.bpmb-modal-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	font-size: 24px;
	color: #94a3b8;
	cursor: pointer;
	border-radius: 6px;
	transition: all 150ms ease;
}

.bpmb-modal-close:hover {
	background: #e2e8f0;
	color: #64748b;
}

.bpmb-reject-modal-body {
	padding: 20px;
}

.bpmb-reject-modal-body p {
	margin: 0 0 12px 0;
	font-size: 14px;
	color: #64748b;
}

.bpmb-reject-feedback {
	width: 100%;
	padding: 12px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
	min-height: 100px;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.bpmb-reject-feedback:focus {
	outline: none;
	border-color: #2468c6;
	box-shadow: 0 0 0 3px rgba(36, 104, 198, 0.12);
}

.bpmb-reject-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 20px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
}

.bpmb-btn-cancel-reject {
	background: #f1f5f9;
	color: #64748b;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 150ms ease;
}

.bpmb-btn-cancel-reject:hover {
	background: #e2e8f0;
	color: #475569;
}

.bpmb-btn-submit-reject {
	background: #dc2626;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 150ms ease;
}

.bpmb-btn-submit-reject:hover {
	background: #b91c1c;
}

.bpmb-btn-submit-reject:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.bpmb-notice {
	position: fixed;
	bottom: 20px;
	right: 20px;
	padding: 14px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	z-index: 100001;
	transform: translateY(100px);
	opacity: 0;
	transition: all 300ms ease;
}

.bpmb-notice--visible {
	transform: translateY(0);
	opacity: 1;
}

.bpmb-notice--success {
	background: #10b981;
	color: #fff;
}

.bpmb-notice--error {
	background: #ef4444;
	color: #fff;
}

.bpmb-notice--info {
	background: #3b82f6;
	color: #fff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {
	.bpmb-coauthor-item,
	.bpmb-invitation-item {
		flex-wrap: wrap;
	}

	.bpmb-coauthor-info {
		flex: 0 0 calc(100% - 100px);
	}

	.bpmb-coauthor-badge {
		order: 5;
		margin-top: 8px;
		margin-left: 44px;
	}

	.bpmb-invitation-card {
		padding: 12px;
	}

	.bpmb-invitation-actions {
		flex-direction: column;
	}

	.bpmb-btn {
		justify-content: center;
	}

	.bpmb-lock-notice {
		flex-wrap: wrap;
	}

	.bpmb-lock-message {
		flex: 0 0 calc(100% - 40px);
		order: 1;
	}

	.bpmb-lock-takeover {
		order: 2;
		margin-top: 8px;
		margin-left: 32px;
	}
}

/* ==========================================================================
   Dashboard Role Badges
   ========================================================================== */

.bpmb-role-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 4px;
	margin-right: 6px;
	vertical-align: middle;
}

.bpmb-role-author {
	background: #dbeafe;
	color: #1d4ed8;
}

.bpmb-role-coauthor {
	background: #f3e8ff;
	color: #7c3aed;
}
