/*
 * HospediaPro Domains - support ticket list + thread.
 * Reuses .hpdg-* (page/title/message) base styles already shared
 * across the other account pages - these rules only cover what's
 * unique to tickets, plus the .hpdt-* form fields this page needs.
 */

.hpdh-section-heading {
	font-size: 15px;
	font-weight: 700;
	color: #14142B;
	margin: 28px 0 14px;
}

.hpsup-new-ticket-form {
	background: #ffffff;
	border: 1px solid #E1E1EC;
	border-radius: 16px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hpdt-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hpdt-field label {
	font-size: 13px;
	font-weight: 600;
	color: #3D3D52;
}

.hpdt-field input,
.hpdt-field select,
.hpdt-field textarea {
	height: 44px;
	border: 1.5px solid #E1E1EC;
	border-radius: 10px;
	padding: 0 14px;
	font-size: 14px;
	color: #14142B;
	background: #FAFAFD;
	box-sizing: border-box;
	font-family: inherit;
}

.hpdt-field textarea {
	height: auto;
	padding: 10px 14px;
	resize: vertical;
}

.hpdt-button {
	align-self: flex-start;
	height: 44px;
	padding: 0 22px;
	background: #2F6FED;
	color: #ffffff;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.hpdt-button:hover {
	background: #2559C9;
}

.hpsup-ticket-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hpsup-ticket-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #ffffff;
	border: 1px solid #E1E1EC;
	border-radius: 12px;
	padding: 14px 18px;
	text-decoration: none;
}

.hpsup-ticket-row:hover {
	border-color: #2F6FED;
}

.hpsup-ticket-row__subject {
	font-size: 14px;
	font-weight: 600;
	color: #14142B;
	margin: 0;
}

.hpsup-ticket-row__meta {
	font-size: 12px;
	color: #A0A0B0;
	margin: 2px 0 0;
}

.hpsup-ticket-row__status {
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.hpsup-ticket-row__status--blue { background: #EAF0FE; color: #2F6FED; }
.hpsup-ticket-row__status--orange { background: #FFF6E5; color: #B3401F; }
.hpsup-ticket-row__status--green { background: #EAF3DE; color: #3B6D11; }
.hpsup-ticket-row__status--gray { background: #F1EFE8; color: #5F5E5A; }

.hpsup-thread-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.hpsup-thread {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 20px;
}

.hpsup-row {
	display: flex;
	gap: 10px;
	align-items: flex-end;
}

.hpsup-row--customer {
	justify-content: flex-end;
}

.hpsup-avatar {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	object-fit: cover;
	flex-shrink: 0;
}

.hpsup-avatar--placeholder {
	background: #F1EFE8;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #A0A0B0;
	font-size: 14px;
}

.hpsup-bubble-wrap {
	max-width: 75%;
	display: flex;
	flex-direction: column;
}

.hpsup-row--customer .hpsup-bubble-wrap {
	align-items: flex-end;
}

.hpsup-message__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
}

.hpsup-message__sender {
	font-size: 12px;
	font-weight: 600;
	color: #14142B;
}

.hpsup-message__time {
	font-size: 11px;
	color: #A0A0B0;
}

.hpsup-staff-badge {
	font-size: 10px;
	font-weight: 600;
	background: #F1EFE8;
	color: #5A5A72;
	padding: 2px 8px;
	border-radius: 999px;
}

.hpsup-message {
	border-radius: 16px;
	padding: 12px 16px;
	font-size: 14px;
	line-height: 1.5;
}

.hpsup-message--customer {
	background: #2F6FED;
	color: #ffffff;
	border-radius: 16px 16px 4px 16px;
}

.hpsup-message--staff {
	background: #FAFAFD;
	border: 1px solid #E1E1EC;
	color: #14142B;
	border-radius: 16px 16px 16px 4px;
}

.hpsup-reply-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hpsup-reply-form textarea {
	border: 1.5px solid #E1E1EC;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
}

.hpsup-reply-form__attach {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hpsup-reply-form__attach label {
	font-size: 12px;
	font-weight: 600;
	color: #3D3D52;
}

.hpsup-reply-form__attach input[type="file"],
.hpdt-field input[type="file"] {
	font-size: 13px;
	color: #5A5A72;
}

.hpsup-attachment {
	display: block;
	margin-top: 8px;
}

.hpsup-attachment img {
	max-width: 220px;
	max-height: 220px;
	border-radius: 10px;
	border: 1px solid #E1E1EC;
	display: block;
}

@media (max-width: 560px) {
	.hpsup-bubble-wrap {
		max-width: 100%;
	}
}
