/* IC Support — customer portal. All rules scoped under .ic-support-portal
   so the active theme controls typography, link colours, etc.
   Mobile-first; one breakpoint at 600px. */

.ic-support-portal {
	max-width: 720px;
	margin: 0 auto;
}

.ic-support-portal *,
.ic-support-portal *::before,
.ic-support-portal *::after {
	box-sizing: border-box;
}

.ic-support-portal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.ic-support-portal__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 16px 0;
}

.ic-support-portal__form label {
	display: flex;
	flex-direction: column;
	font-weight: 500;
	gap: 4px;
}

.ic-support-portal__form input[type="text"],
.ic-support-portal__form input[type="email"],
.ic-support-portal__form textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	font: inherit;
	background: #fff;
}

.ic-support-portal__form input:focus,
.ic-support-portal__form textarea:focus {
	outline: 2px solid #2271b1;
	outline-offset: -1px;
	border-color: transparent;
}

.ic-support-portal__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.ic-support-portal__btn {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	font: inherit;
	cursor: pointer;
}

.ic-support-portal__btn:hover { background: #f8fafc; }

.ic-support-portal__btn--primary {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.ic-support-portal__btn--primary:hover { background: #135e96; }
.ic-support-portal__btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.ic-support-portal__notice {
	padding: 10px 14px;
	border-radius: 4px;
	margin: 12px 0;
}

.ic-support-portal__notice--error   { background: #fee2e2; color: #991b1b; }
.ic-support-portal__notice--success { background: #dcfce7; color: #166534; }

.ic-support-portal__table {
	width: 100%;
	border-collapse: collapse;
}

.ic-support-portal__table th,
.ic-support-portal__table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
	font-size: 14px;
}

.ic-support-portal__table th {
	background: #f8fafc;
	font-weight: 600;
}

.ic-support-portal__table tr:hover td {
	background: #f8fafc;
}

.ic-support-portal__message {
	margin: 16px 0;
	padding: 12px 16px;
	border-left: 3px solid #2271b1;
	background: #f8fafc;
	border-radius: 0 4px 4px 0;
}

.ic-support-portal__message-meta {
	font-size: 12px;
	color: #475569;
	margin-bottom: 6px;
}

.ic-support-portal__meta {
	font-size: 13px;
	color: #475569;
	margin-bottom: 16px;
}

.ic-support-portal__badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: #f1f5f9;
	color: #1e293b;
}

.ic-support-portal__badge--status-open      { background: #dbeafe; color: #1e40af; }
.ic-support-portal__badge--status-pending   { background: #fef3c7; color: #92400e; }
.ic-support-portal__badge--status-resolved  { background: #dcfce7; color: #166534; }
.ic-support-portal__badge--status-closed    { background: #e5e7eb; color: #374151; }

.ic-support-portal__badge--priority-low     { background: #f3f4f6; color: #4b5563; }
.ic-support-portal__badge--priority-medium  { background: #e0e7ff; color: #3730a3; }
.ic-support-portal__badge--priority-high    { background: #fed7aa; color: #9a3412; }
.ic-support-portal__badge--priority-urgent  { background: #fecaca; color: #991b1b; }

@media (max-width: 600px) {
	.ic-support-portal__header {
		flex-direction: column;
		align-items: stretch;
	}
	.ic-support-portal__table th,
	.ic-support-portal__table td {
		padding: 8px;
		font-size: 13px;
	}
}
