/**
 * Customer Portal base styles.
 */

.gls-portal {
	background: #fff;
	padding: 1.5rem;
	margin: 1rem 0;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
}

.gls-portal-form label,
.gls-field-block {
	display: block;
	margin-bottom: 1rem;
}

.gls-field-row {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.gls-field-row label {
	flex: 1;
	min-width: 200px;
}

.gls-portal-form input[type="text"],
.gls-portal-form input[type="email"],
.gls-portal-form input[type="password"],
.gls-portal-form input[type="number"],
.gls-portal-form select,
.gls-portal-form textarea {
	width: 100%;
	padding: 0.5rem;
	border: 1px solid #cbd5f5;
	border-radius: 4px;
}

.gls-portal-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1rem;
}

.gls-portal-table th,
.gls-portal-table td {
	border: 1px solid #e5e7eb;
	padding: 0.5rem;
	text-align: left;
}

.gls-portal-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.gls-portal-comments {
	list-style: none;
	padding: 0;
	margin: 0;
}

.gls-portal-comments li {
	border-bottom: 1px solid #e5e7eb;
	padding: 0.75rem 0;
}

.gls-portal-comments li:last-child {
	border-bottom: 0;
}

.gls-portal--support .gls-support-search {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
}

.gls-support-search label {
	flex: 1;
	min-width: 200px;
}

.gls-support-results {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.gls-support-result {
	border: 1px solid #e5e7eb;
	padding: 1rem;
	border-radius: 6px;
	background: #fff;
}

.gls-support-result__title {
	margin: 0 0 0.35rem;
	font-size: 1.1rem;
}

.gls-support-result__meta {
	list-style: none;
	margin: 0 0 0.5rem;
	padding: 0;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	font-size: 0.85rem;
	color: #64748b;
}

.gls-support-result__meta li::before {
	content: '#';
	margin-right: 2px;
	color: #94a3b8;
}

.gls-support-pagination {
	margin-top: 1.25rem;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.gls-support-pagination a,
.gls-support-pagination span {
	padding: 0.35rem 0.65rem;
	border: 1px solid #dbeafe;
	border-radius: 4px;
	text-decoration: none;
	color: #0f172a;
}

.gls-support-pagination .current {
	background: #1d4ed8;
	color: #fff;
	border-color: #1d4ed8;
}

.gls-portal-errors {
	border: 1px solid #f87171;
	background: #fee2e2;
	color: #7f1d1d;
	padding: 0.75rem;
	border-radius: 4px;
	list-style: disc;
	margin-left: 1.5rem;
}

.gls-portal-notice {
	padding: 0.75rem;
	border-radius: 4px;
	margin-bottom: 1rem;
	position: relative;
}

.gls-portal-notice--success {
	background: #ecfdf5;
	border: 1px solid #34d399;
	color: #065f46;
}

.gls-portal-notice--error {
	background: #fee2e2;
	border: 1px solid #f87171;
	color: #7f1d1d;
}

.gls-portal-card {
	margin-top: 1.5rem;
}

.gls-portal-hero {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e5e7eb;
}

.gls-portal-eyebrow {
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	color: #6b7280;
	margin: 0;
}

.gls-portal-hero__copy h2 {
	margin: 0.25rem 0;
}

.gls-portal-hero__meta {
	color: #6b7280;
	margin: 0;
}

.gls-portal-hero__summary {
	margin: 0;
	color: #4b5563;
}

.gls-portal-quick-actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.gls-portal-quick-actions__item {
	border: 1px solid #dbeafe;
	border-radius: 8px;
	padding: 0.85rem 1rem;
	text-decoration: none;
	background: #f0f9ff;
	display: block;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gls-portal-quick-actions__item:hover,
.gls-portal-quick-actions__item:focus {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.gls-portal-quick-actions__label {
	font-weight: 600;
	display: block;
	margin-bottom: 0.25rem;
	color: #0f172a;
}

.gls-portal-quick-actions__desc {
	color: #475569;
	font-size: 0.9rem;
	display: block;
}

.gls-portal-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem;
	margin-top: 1.5rem;
}

.gls-portal-stat-card {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 1rem;
	background: #f9fafb;
}

.gls-portal-stat-card__label {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #6b7280;
}

.gls-portal-stat-card__value {
	display: block;
	font-size: 1.75rem;
	margin: 0.35rem 0;
	color: #0f172a;
}

.gls-portal-stat-card__desc {
	font-size: 0.9rem;
	color: #6b7280;
}

.gls-portal-activity {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.gls-portal-activity__item {
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 0.85rem 1rem;
	background: #fff;
}

.gls-portal-activity__meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: #6b7280;
	margin-bottom: 0.25rem;
}

.gls-portal-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.1rem 0.65rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	background: #e0f2fe;
	color: #0369a1;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.gls-portal-pill--ticket {
	background: #dcfce7;
	color: #15803d;
}

.gls-portal-pill--quiz {
	background: #ede9fe;
	color: #5b21b6;
}

.gls-portal-activity__title {
	margin: 0;
	font-weight: 600;
	color: #0f172a;
}

.gls-portal-activity__desc,
.gls-portal-activity__subtext {
	margin: 0.15rem 0;
	color: #4b5563;
	font-size: 0.95rem;
}

.gls-portal-score {
	font-size: 1.25rem;
	font-weight: 600;
}

.gls-comment-meta {
	font-size: 0.875rem;
	color: #6b7280;
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.25rem;
}

.gls-portal-toast {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 9999;
	min-width: 220px;
	background: #111827;
	color: #fff;
	padding: 0.75rem 1rem;
	border-radius: 4px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
	display: none;
}

.gls-portal-toast--visible {
	display: block;
	animation: glsFadeIn 0.3s ease-out;
}

.gls-portal-toast--error {
	background: #b91c1c;
}

@keyframes glsFadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.gls-dropzone {
	border: 2px dashed #93c5fd;
	padding: 1rem;
	text-align: center;
	border-radius: 6px;
	margin-bottom: 1rem;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}

.gls-dropzone--active {
	border-color: #3b82f6;
	background: #eff6ff;
}

.gls-dropzone input[type="file"] {
	display: none;
}

.gls-dropzone__meta {
	display: block;
	font-size: 0.75rem;
	color: #6b7280;
}

.gls-dropzone__error {
	margin-top: 0.5rem;
	color: #b91c1c;
	font-size: 0.875rem;
}
.gls-support-live-results {
	border: 1px solid #e2e8f0;
	padding: 0.75rem;
	border-radius: 6px;
	margin-top: 0.75rem;
	background: #fff;
}

.gls-support-live-results__heading {
	margin: 0 0 0.5rem;
	font-size: 0.9rem;
	color: #475569;
}

.gls-support-live-results ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.gls-support-live-results li {
	margin: 0;
}

.gls-support-live-results__link {
	font-weight: 600;
	color: #1d4ed8;
	text-decoration: none;
}

.gls-support-live-results__link:hover,
.gls-support-live-results__link:focus {
	text-decoration: underline;
}

.gls-ticket-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1rem 0;
	align-items: flex-end;
}

.gls-ticket-filters label {
	flex: 1;
	min-width: 180px;
}

.gls-ticket-filters__actions {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.gls-ticket-filters .button-link {
	background: transparent;
	border: none;
	color: #1d4ed8;
	text-decoration: underline;
	padding: 0.35rem 0.5rem;
}

.gls-portal-attachment-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.gls-portal-attachment-list a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #0f172a;
	text-decoration: none;
}

.gls-portal-attachment-list a:hover,
.gls-portal-attachment-list a:focus {
	text-decoration: underline;
}

.gls-ticket-status-actions form {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-right: 0.75rem;
	margin-top: 0.5rem;
}

.gls-ticket-form__field {
	margin-bottom: 1rem;
}

.gls-ticket-suggestions {
	border: 1px solid #dbeafe;
	background: #f0f9ff;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	margin-top: 0.5rem;
}

.gls-ticket-suggestions__title {
	margin: 0 0 0.4rem;
	font-size: 0.9rem;
	color: #0369a1;
	font-weight: 600;
}

.gls-ticket-suggestions ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.gls-ticket-suggestions li a {
	color: #0f172a;
	font-weight: 600;
	text-decoration: none;
}

.gls-ticket-suggestions li a:hover,
.gls-ticket-suggestions li a:focus {
	text-decoration: underline;
}

.gls-ticket-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	border-bottom: 1px solid #e5e7eb;
	padding-bottom: 1rem;
	margin-bottom: 1.25rem;
}

.gls-ticket-header__eyebrow {
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	margin: 0;
	color: #94a3b8;
}

.gls-ticket-meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.gls-ticket-meta-card {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 0.9rem 1rem;
	background: #f8fafc;
}

.gls-ticket-meta-card h5 {
	margin: 0 0 0.25rem;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #64748b;
}

.gls-ticket-meta-card p {
	margin: 0;
	font-weight: 600;
	color: #0f172a;
}

.gls-ticket-panel {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.25rem;
	background: #fff;
	box-shadow: 0 5px 20px rgba(15,23,42,0.04);
	margin-bottom: 1.25rem;
}

.gls-ticket-panel h4 {
	margin-top: 0;
}

.gls-ticket-content {
	color: #0f172a;
	line-height: 1.6;
}

.gls-ticket-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.gls-ticket-timeline::before {
	content: '';
	position: absolute;
	left: 22px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: #e2e8f0;
}

.gls-ticket-timeline-item {
	position: relative;
	padding-left: 60px;
	margin-bottom: 1.25rem;
}

.gls-ticket-timeline-item:last-child {
	margin-bottom: 0;
}

.gls-ticket-timeline-avatar {
	position: absolute;
	left: 0;
	top: 0;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: #1d4ed8;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	box-shadow: 0 6px 14px rgba(37,99,235,0.25);
}

.gls-ticket-timeline-item--customer .gls-ticket-timeline-avatar {
	background: #059669;
	box-shadow: 0 6px 14px rgba(5,150,105,0.25);
}

.gls-ticket-timeline-meta {
	font-size: 0.85rem;
	color: #475569;
	margin-bottom: 0.25rem;
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.gls-ticket-comment-content {
	background: #f8fafc;
	border-radius: 10px;
	padding: 0.85rem 1rem;
	color: #0f172a;
	line-height: 1.55;
}

.gls-ticket-comment-resources,
.gls-ticket-article-links {
	margin-top: 0.75rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 0.85rem 1rem;
	box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}

.gls-ticket-comment-resources ul,
.gls-ticket-article-links ul {
	margin: 0.5rem 0 0;
	padding-left: 1rem;
}

.gls-ticket-comment-resources li,
.gls-ticket-article-links li {
	margin-bottom: 0.25rem;
	color: #0f172a;
}

.gls-ticket-comment-resources li:last-child,
.gls-ticket-article-links li:last-child {
	margin-bottom: 0;
}

.gls-ticket-status-actions__buttons {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.gls-ticket-reply-form textarea {
	border-radius: 10px;
	border: 1px solid #cbd5f5;
	padding: 0.8rem;
}

.gls-portal-table--tickets tbody tr:hover {
	background: #f8fafc;
}

.gls-status-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: #e2e8f0;
	color: #0f172a;
}

.gls-status-badge--open,
.gls-status-badge--in-progress {
	background: #dbeafe;
	color: #1d4ed8;
}

.gls-status-badge--resolved,
.gls-status-badge--closed {
	background: #dcfce7;
	color: #15803d;
}

.gls-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	background: #1d4ed8;
	color: #fff;
	transition: background 0.2s ease, color 0.2s ease;
}

.gls-button:hover,
.gls-button:focus {
	background: #1e40af;
	color: #fff;
}

.gls-button--ghost {
	background: transparent;
	color: #1d4ed8;
	border-color: #bfdbfe;
}

.gls-button--ghost:hover,
.gls-button--ghost:focus {
	background: #eff6ff;
	color: #1e3a8a;
}
.gls-attachment-preview {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.gls-attachment-preview li {
	background: #f1f5f9;
	padding: 0.4rem 0.6rem;
	border-radius: 6px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.85rem;
	color: #0f172a;
}

.gls-attachment-remove {
	background: transparent;
	border: none;
	color: #dc2626;
	font-size: 1rem;
	cursor: pointer;
	line-height: 1;
	padding: 0.2rem;
}

.gls-attachment-remove:hover,
.gls-attachment-remove:focus {
	color: #b91c1c;
}
