.stoxello-helpdesk {
	color: #0f172a;
	margin: 0 0 32px;
	max-width: 1040px;
}

.stoxello-helpdesk,
.stoxello-helpdesk * {
	box-sizing: border-box;
}

.shd-form {
	background: #fff;
	border: 1px solid #d8dee6;
	border-radius: 12px;
	display: grid;
	gap: 16px;
	padding: 20px;
}

.shd-form p {
	margin: 0;
}

.shd-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.shd-form input,
.shd-form textarea,
.shd-form button {
	width: 100%;
}

.shd-form input,
.shd-form textarea {
	border: 1px solid #b8c1cc;
	border-radius: 8px;
	padding: 11px 12px;
}

.shd-form button {
	background: #14532d;
	border: 0;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	font-weight: 800;
	padding: 12px 16px;
}

.shd-button {
	align-items: center;
	border-radius: 8px;
	display: inline-flex;
	font-weight: 800;
	min-height: 44px;
	padding: 11px 18px;
	text-decoration: none !important;
}

.shd-button-primary {
	background: #14532d;
	color: #fff !important;
}

.shd-button:hover,
.shd-button:focus {
	color: #fff;
}

.shd-portal-hero {
	align-items: center;
	background: linear-gradient(135deg, #f8fafc 0%, #ecfdf5 100%);
	border: 1px solid #d8dee6;
	border-radius: 12px;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	margin: 0 0 20px;
	padding: 24px;
}

.shd-eyebrow {
	color: #15803d;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	margin: 0 0 6px;
	text-transform: uppercase;
}

.shd-portal-hero h2 {
	font-size: 28px;
	line-height: 1.15;
	margin: 0 0 8px;
}

.shd-portal-hero p:last-child {
	color: #475569;
	margin: 0;
}

.shd-portal-stat {
	background: #fff;
	border: 1px solid #d8dee6;
	border-radius: 10px;
	min-width: 112px;
	padding: 16px;
	text-align: center;
}

.shd-portal-stat strong {
	display: block;
	font-size: 34px;
	line-height: 1;
}

.shd-portal-stat span {
	color: #64748b;
	font-weight: 700;
}

.shd-portal-toolbar {
	align-items: center;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	margin-bottom: 22px;
}

.shd-search-form {
	align-items: center;
	background: #fff;
	border: 1px solid #d8dee6;
	border-radius: 10px;
	display: flex;
	flex: 1;
	gap: 8px;
	justify-content: flex-end;
	max-width: 560px;
	padding: 8px;
}

.shd-search-form input {
	border: 0 !important;
	box-shadow: none !important;
	flex: 1;
	min-height: 38px;
	min-width: 180px;
	padding: 8px 10px;
	width: 100%;
}

.shd-search-form button {
	background: #0f172a;
	border: 0;
	border-radius: 7px;
	color: #fff;
	cursor: pointer;
	font-weight: 800;
	min-height: 38px;
	padding: 8px 14px;
}

.shd-clear-search {
	color: #334155;
	font-weight: 700;
	padding: 8px;
	text-decoration: none;
}

.shd-notice {
	border-radius: 6px;
	margin-bottom: 18px;
	padding: 12px 14px;
}

.shd-notice-success {
	background: #ecfdf3;
	border: 1px solid #86efac;
	color: #14532d;
}

.shd-notice-error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	color: #7f1d1d;
}

.shd-ticket-header {
	align-items: flex-start;
	border-bottom: 1px solid #d8dee6;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 16px;
}

.shd-ticket-header h2 {
	margin: 0;
}

.shd-ticket-id {
	color: #526071;
	font-size: 14px;
	margin: 0 0 4px;
}

.shd-status {
	border-radius: 999px;
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	padding: 5px 10px;
	white-space: nowrap;
}

.shd-status-open,
.shd-status-customer-reply {
	background: #fef9c3;
	color: #713f12;
}

.shd-status-waiting-customer {
	background: #dbeafe;
	color: #1e3a8a;
}

.shd-status-closed {
	background: #e5e7eb;
	color: #374151;
}

.shd-thread {
	display: grid;
	gap: 14px;
	margin-bottom: 22px;
}

.shd-message {
	border: 1px solid #d8dee6;
	border-radius: 8px;
	padding: 14px;
}

.shd-message header {
	align-items: baseline;
	display: flex;
	gap: 10px;
	justify-content: space-between;
	margin-bottom: 8px;
}

.shd-message time {
	color: #526071;
	font-size: 13px;
}

.shd-message-support {
	background: #f8fafc;
}

.shd-ticket-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.shd-ticket-row {
	align-items: center;
	background: #fff;
	border: 1px solid #d8dee6;
	border-radius: 10px;
	color: inherit !important;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: 16px;
	text-decoration: none !important;
}

.shd-ticket-row:hover,
.shd-ticket-row:focus {
	border-color: #14532d;
	box-shadow: 0 0 0 2px rgba(20, 83, 45, .14);
	color: inherit;
}

.shd-ticket-row strong,
.shd-ticket-row small {
	display: block;
}

.shd-ticket-row small,
.shd-ticket-meta time {
	color: #526071;
	margin-top: 4px;
}

.shd-ticket-meta {
	align-items: flex-end;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: right;
}

.shd-empty-state {
	background: #fff;
	border: 1px solid #d8dee6;
	border-radius: 12px;
	padding: 28px;
	text-align: center;
}

.shd-empty-state h2 {
	font-size: 24px;
	margin: 0 0 8px;
}

.shd-empty-state p {
	color: #475569;
	margin: 0 auto;
	max-width: 560px;
}

@media (max-width: 640px) {
	.shd-portal-hero,
	.shd-ticket-header,
	.shd-message header,
	.shd-ticket-row,
	.shd-portal-toolbar,
	.shd-search-form {
		display: block;
	}

	.shd-portal-stat {
		margin-top: 16px;
	}

	.shd-search-form input,
	.shd-search-form button,
	.shd-button {
		margin-top: 10px;
		max-width: none;
		width: 100%;
	}

	.shd-ticket-meta {
		align-items: flex-start;
		margin-top: 10px;
		text-align: left;
	}

	.shd-status {
		margin-top: 10px;
	}
}
