/**
 * Aivah Support — front-end styles
 */

.aivah-support-wrap {
	max-width: 860px;
	margin: 1.5rem 0;
}

.aivah-archive-banner {
	background: #f4f6f8;
	border-left: 4px solid #1e73be;
	padding: 1rem 1.25rem;
	margin: 0 0 1.25rem;
	width: 100%;
	box-sizing: border-box;
	clear: both;
}

/* If banner ever lands inside the BBPS flex toolbar, force full-width wrap. */
.bbps-forum-options-head {
	flex-wrap: wrap;
}

.bbps-forum-options-head > .aivah-archive-banner {
	flex: 0 0 100%;
	order: -1;
	margin-bottom: 1rem;
}

.aivah-archive-banner p {
	margin: 0 0 0.5rem;
}

.aivah-btn {
	display: inline-block;
	background: #1e73be;
	color: #fff !important;
	padding: 0.55rem 1.1rem;
	border-radius: 3px;
	text-decoration: none !important;
	border: none;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.4;
}

.aivah-btn:hover {
	background: #155a96;
	color: #fff !important;
}

.aivah-btn-secondary {
	background: #555;
	margin-left: 0.5rem;
}

.aivah-form .aivah-input,
.aivah-form input[type="text"],
.aivah-form input[type="email"],
.aivah-form select,
.aivah-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.5rem 0.65rem;
	border: 1px solid #ccd0d4;
	border-radius: 3px;
	box-sizing: border-box;
}

.aivah-source-tabs {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.aivah-source-option {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 0.85rem;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	cursor: pointer;
	background: #fff;
}

.aivah-source-option:has(input:checked),
.aivah-source-option.is-selected {
	border-color: #1e73be;
	background: #eef5fb;
}

.aivah-tickets-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1rem;
}

.aivah-tickets-table th,
.aivah-tickets-table td {
	text-align: left;
	padding: 0.65rem 0.5rem;
	border-bottom: 1px solid #e2e4e7;
}

.aivah-status {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border-radius: 3px;
	font-size: 12px;
	background: #eef5fb;
	color: #1e73be;
}

.aivah-status-resolved,
.aivah-status-closed {
	background: #e6f4ea;
	color: #137333;
}

.aivah-status-pending_staff,
.aivah-status-pending_customer {
	background: #fef7e0;
	color: #8a6d00;
}

.aivah-ticket-message {
	border: 1px solid #e2e4e7;
	border-radius: 4px;
	padding: 1rem;
	margin: 1rem 0;
	background: #fff;
}

.aivah-ticket-message.is-staff {
	border-left: 3px solid #1e73be;
	background: #f8fbfe;
}

.aivah-ticket-meta {
	margin-bottom: 0.5rem;
	display: flex;
	gap: 0.5rem;
	align-items: center;
	flex-wrap: wrap;
}

.aivah-badge {
	font-size: 11px;
	background: #1e73be;
	color: #fff;
	padding: 0.1rem 0.4rem;
	border-radius: 2px;
}

.aivah-muted {
	color: #666;
	font-size: 0.9em;
}

.aivah-notice {
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	border-left: 4px solid #1e73be;
	background: #f0f6fc;
}

.aivah-notice-error {
	border-left-color: #d63638;
	background: #fcf0f1;
}

.aivah-notice-success {
	border-left-color: #00a32a;
	background: #edfaef;
}

.aivah-actions {
	margin-bottom: 1rem;
}

.aivah-license-list {
	list-style: disc;
	padding-left: 1.25rem;
}

/* Reply author support badges (Pixelart-compatible classes) */
.bbp-author-badges .badge-supported,
.badge-supported {
	display: inline-block;
	margin-top: 0.35rem;
	padding: 0.15rem 0.45rem;
	border-radius: 2px;
	font-size: 11px;
	color: #fff;
	background: #27ae60;
}

.bbp-author-badges .badge-unsupported,
.badge-unsupported {
	display: inline-block;
	margin-top: 0.35rem;
	padding: 0.15rem 0.45rem;
	border-radius: 2px;
	font-size: 11px;
	color: #fff;
	background: #7f8c8d;
}

.bbp-author-badges .badge-blocked,
.badge-blocked {
	display: inline-block;
	margin-top: 0.35rem;
	padding: 0.15rem 0.45rem;
	border-radius: 2px;
	font-size: 11px;
	color: #fff;
	background: #e74c3c;
}

.bbp-author-badges .badge-unknown,
.bbp-author-badges .badge-unknowen,
.badge-unknown,
.badge-unknowen {
	display: inline-block;
	margin-top: 0.35rem;
	padding: 0.15rem 0.45rem;
	border-radius: 2px;
	font-size: 11px;
	color: #fff;
	background: #e67e22;
}
