/**
 * Khu tài khoản khách ( [nova_tour_account] ). Chỉ nạp ở trang có khu tài khoản.
 *
 * Màu lấy từ biến của theme Nova ( skin travel-2 ) kèm giá trị dự phòng khi dùng theme khác.
 * Chữ kế thừa font của theme.
 */

.nt-acc {
	--nt-acc-primary: var(--nova-color-primary, #0046c1);
	--nt-acc-primary-dark: #00368f;
	--nt-acc-primary-soft: #eaf1fd;
	--nt-acc-red: var(--nova-color-accent, #ed1d24);
	--nt-acc-text: var(--nova-color-text, #191919);
	--nt-acc-muted: var(--nova-color-text-muted, #4d4d4d);
	--nt-acc-page: var(--nova-color-bg-alt, #f6f7f9);
	--nt-acc-line: var(--nova-color-border, #e2e6ef);
	--nt-acc-field: #f5f5f5;
	--nt-acc-radius: 16px;
	--nt-acc-shadow: 0 4px 24px rgba(16, 38, 84, .08);

	box-sizing: border-box;
	min-width: 0;
	padding: 24px;
	border-radius: 20px;
	background: var(--nt-acc-page);
	color: var(--nt-acc-text);
	line-height: 1.5;
}

.nt-acc *,
.nt-acc *::before,
.nt-acc *::after {
	box-sizing: border-box;
}

.nt-acc [hidden] {
	display: none !important;
}

.nt-acc a {
	color: var(--nt-acc-primary);
}

.nt-acc :focus-visible {
	outline: 2px solid var(--nt-acc-primary);
	outline-offset: 2px;
}

.nt-acc__icon {
	flex: none;
}

/* Theme không có lớp này thì nhãn chỉ dành cho trình đọc màn hình vẫn ẩn đúng. */
.nt-acc .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Bố cục: thẻ trái + thẻ phải ---------- */

.nt-acc__layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.nt-acc__side,
.nt-acc__card {
	min-width: 0;
	border-radius: var(--nt-acc-radius);
	background: #fff;
	box-shadow: var(--nt-acc-shadow);
}

.nt-acc__side {
	overflow: hidden;
	padding-bottom: 16px;
}

.nt-acc__card {
	padding: 28px 32px;
}

.nt-acc__hello {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 20px;
	background: var(--nt-acc-primary);
	color: #fff;
}

.nt-acc__hello div {
	display: grid;
	min-width: 0;
}

.nt-acc__hello strong {
	overflow: hidden;
	font-size: 17px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nt-acc__hello span:not(.nt-acc__avatar) {
	overflow: hidden;
	font-size: 13px;
	opacity: .85;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nt-acc__avatar {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .2);
	font-size: 18px;
	font-weight: 700;
}

/* ---------- Menu trái ---------- */

.nt-acc__menu {
	display: grid;
	gap: 2px;
	padding: 12px;
}

.nt-acc__group {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 8px 0 2px;
	padding: 8px 12px;
	font-weight: 700;
}

.nt-acc__sub {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nt-acc__sub li {
	margin: 0;
	padding: 0;
}

.nt-acc__link {
	display: flex;
	gap: 10px;
	align-items: center;
	min-height: 40px;
	padding: 8px 12px 8px 42px;
	border-radius: 10px;
	color: var(--nt-acc-text) !important;
	text-decoration: none !important;
}

.nt-acc__link.nt-acc__group {
	margin: 4px 0 0;
	padding-left: 12px;
}

.nt-acc__link:hover {
	background: var(--nt-acc-page);
}

.nt-acc__link[aria-current="page"] {
	background: var(--nt-acc-primary-soft);
	color: var(--nt-acc-primary) !important;
	font-weight: 700;
}

.nt-acc__logout {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 4px 24px 0;
	border: 1.5px solid var(--nt-acc-red);
	border-radius: 999px;
	color: var(--nt-acc-red) !important;
	font-weight: 700;
	text-decoration: none !important;
}

.nt-acc__logout:hover {
	background: #fff1f1;
}

/* ---------- Tiêu đề mục ---------- */

.nt-acc__head {
	margin-bottom: 20px;
}

.nt-acc__head--row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	justify-content: space-between;
}

.nt-acc__title {
	margin: 0 0 4px;
	color: var(--nova-color-heading, #000e1a);
	font-size: 22px;
	line-height: 1.3;
}

.nt-acc__lead {
	margin: 0;
	color: var(--nt-acc-muted);
	font-size: 14px;
}

.nt-acc__subtitle {
	margin: 24px 0 10px;
	font-size: 16px;
}

/* ---------- Form ---------- */

.nt-acc__form {
	margin: 0;
}

.nt-acc__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 24px;
}

.nt-acc__stack {
	display: grid;
	gap: 16px;
	max-width: 480px;
}

.nt-acc__field {
	display: grid;
	gap: 6px;
	align-content: start;
	min-width: 0;
}

.nt-acc__auth .nt-acc__field {
	margin-bottom: 14px;
}

.nt-acc__field--full {
	grid-column: 1 / -1;
}

.nt-acc__field > label {
	font-size: 14px;
	font-weight: 600;
}

.nt-acc__req {
	color: var(--nt-acc-red);
}

.nt-acc input[type="text"],
.nt-acc input[type="email"],
.nt-acc input[type="tel"],
.nt-acc input[type="password"],
.nt-acc input[type="date"],
.nt-acc input[type="search"],
.nt-acc select,
.nt-acc textarea {
	width: 100%;
	min-width: 0;
	min-height: 48px;
	margin: 0;
	padding: 10px 16px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: var(--nt-acc-field);
	box-shadow: none;
	color: var(--nt-acc-text);
	font: inherit;
	font-size: 15px;
}

.nt-acc textarea {
	min-height: 120px;
	resize: vertical;
}

.nt-acc input:focus,
.nt-acc select:focus,
.nt-acc textarea:focus {
	border-color: var(--nt-acc-primary);
	background: #fff;
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 70, 193, .15);
}

.nt-acc [aria-invalid="true"] {
	border-color: var(--nt-acc-red) !important;
	background: #fff6f6;
}

.nt-acc__hint,
.nt-acc__error {
	margin: 0;
	font-size: 13px;
}

.nt-acc__hint {
	color: var(--nt-acc-muted);
}

.nt-acc__error {
	color: #c4161c;
}

.nt-acc__pass {
	position: relative;
	display: block;
}

.nt-acc__pass input {
	padding-right: 48px !important;
}

.nt-acc__eye {
	position: absolute;
	top: 50%;
	right: 6px;
	display: none;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--nt-acc-muted);
	cursor: pointer;
	transform: translateY(-50%);
}

.nt-acc.is-js .nt-acc__eye {
	display: grid;
}

.nt-acc__eye[aria-pressed="true"] {
	color: var(--nt-acc-primary);
}

.nt-acc__check {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 14px;
	cursor: pointer;
}

.nt-acc__check input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--nt-acc-primary);
}

.nt-acc__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 18px;
	font-size: 14px;
}

.nt-acc__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.nt-acc__actions {
	margin: 24px 0 0;
}

.nt-acc__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--nt-acc-primary);
	color: #fff !important;
	font: inherit;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
}

.nt-acc__btn:hover {
	background: var(--nt-acc-primary-dark);
}

/* Vệt sáng lướt qua khi rê chuột ( như .nt-shine của travel.css ). */
.nt-acc__btn {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.nt-acc__btn::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	width: 45%;
	background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .38) 50%, transparent 100%);
	transform: translateX(-160%) skewX(-20deg);
	pointer-events: none;
}

.nt-acc__btn:not(:disabled):not([aria-busy="true"]):hover::after {
	animation: nt-shine .6s ease-out;
}

@keyframes nt-shine {
	to {
		transform: translateX(330%) skewX(-20deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nt-acc__btn::after {
		display: none;
	}
}

.nt-acc__btn:disabled,
.nt-acc__btn[aria-busy="true"] {
	background: #b8c4d9;
	cursor: not-allowed;
}

.nt-acc__btn--block {
	width: 100%;
}

.nt-acc__btn--small {
	min-height: 36px;
	padding: 6px 16px;
	font-size: 14px;
}

.nt-acc.is-js .nt-acc__nojs {
	display: none;
}

.nt-acc__msg {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 14px;
}

.nt-acc__msg.is-error {
	background: #fff1f1;
	color: #a1141a;
}

.nt-acc__msg.is-ok {
	background: #ebf8ef;
	color: #146c34;
}

.nt-acc__notice {
	margin: 0 0 16px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #fff8e6;
	color: #6b4a00;
	font-size: 14px;
}

.nt-acc__notice p {
	margin: 4px 0 0;
}

/* ---------- Đăng nhập / đăng ký ---------- */

.nt-acc--guest {
	display: grid;
	justify-items: center;
}

.nt-acc__auth {
	width: 100%;
	max-width: 480px;
	padding: 28px;
}

.nt-acc__switch {
	display: grid;
	grid-auto-columns: 1fr;
	grid-auto-flow: column;
	gap: 4px;
	margin-bottom: 24px;
	padding: 4px;
	border-radius: 999px;
	background: var(--nt-acc-page);
}

.nt-acc__switch a {
	display: grid;
	place-items: center;
	min-height: 40px;
	padding: 6px 8px;
	border-radius: 999px;
	color: var(--nt-acc-muted) !important;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
}

.nt-acc__switch a[aria-current="page"] {
	background: #fff;
	color: var(--nt-acc-primary) !important;
	box-shadow: 0 1px 6px rgba(16, 38, 84, .12);
}

.nt-acc__auth .nt-acc__title {
	margin-bottom: 16px;
}

.nt-acc__auth .nt-acc__lead {
	margin: -8px 0 16px;
}

/* ---------- Đơn đặt chỗ ---------- */

.nt-acc__search {
	position: relative;
	display: flex;
	flex: 1 1 260px;
	gap: 8px;
	align-items: center;
	max-width: 360px;
}

.nt-acc__search .nt-acc__icon {
	position: absolute;
	left: 14px;
	color: var(--nt-acc-muted);
	pointer-events: none;
}

.nt-acc .nt-acc__search input[type="search"] {
	min-height: 44px;
	padding-left: 44px;
	border-radius: 999px;
}

.nt-acc__tabs {
	display: flex;
	gap: 24px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--nt-acc-line);
}

.nt-acc__tabs a {
	margin-bottom: -1px;
	padding: 10px 2px;
	border-bottom: 3px solid transparent;
	color: var(--nt-acc-muted) !important;
	font-weight: 600;
	text-decoration: none !important;
}

.nt-acc__tabs a[aria-current="page"] {
	border-bottom-color: var(--nt-acc-primary);
	color: var(--nt-acc-primary) !important;
}

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

.nt-acc__count {
	margin: 0;
	font-size: 14px;
}

.nt-acc__status {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 14px;
}

.nt-acc .nt-acc__status select {
	width: auto;
	min-width: 170px;
	min-height: 40px;
	padding: 6px 14px;
}

.nt-acc__orders {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nt-acc__order {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 12px;
	border: 1px solid var(--nt-acc-line);
	border-radius: 14px;
	color: var(--nt-acc-text) !important;
	text-decoration: none !important;
	transition: border-color .15s, box-shadow .15s;
}

.nt-acc__order:hover {
	border-color: var(--nt-acc-primary);
	box-shadow: var(--nt-acc-shadow);
}

.nt-acc__thumb {
	display: block;
	overflow: hidden;
	width: 120px;
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	background: var(--nt-acc-primary-soft);
}

.nt-acc__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nt-acc__order-main {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.nt-acc__code,
.nt-acc__meta {
	color: var(--nt-acc-muted);
	font-size: 13px;
}

.nt-acc__code b {
	color: var(--nt-acc-text);
}

.nt-acc__order-title {
	overflow-wrap: anywhere;
	font-size: 16px;
}

.nt-acc__order-side {
	display: grid;
	gap: 8px;
	justify-items: end;
}

.nt-acc__price {
	color: var(--nt-acc-red);
	font-size: 17px;
	white-space: nowrap;
}

.nt-acc__pill {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.nt-acc__pill--held {
	background: #fff4dc;
	color: #8a5a00;
}

.nt-acc__pill--confirmed {
	background: #e6f6ea;
	color: #146c34;
}

.nt-acc__pill--cancelled {
	background: #fde8e8;
	color: #a1141a;
}

.nt-acc__pill--expired {
	background: #eef0f4;
	color: #4d4d4d;
}

.nt-acc__pages {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-top: 20px;
}

.nt-acc__pages a {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--nt-acc-page);
	color: var(--nt-acc-text) !important;
	text-decoration: none !important;
}

.nt-acc__pages a[aria-current="page"] {
	background: var(--nt-acc-primary);
	color: #fff !important;
}

.nt-acc__empty {
	display: grid;
	gap: 12px;
	justify-items: center;
	padding: 40px 16px;
	color: var(--nt-acc-muted);
	text-align: center;
}

.nt-acc__empty .nt-acc__icon {
	width: 56px;
	height: 56px;
	color: var(--nt-acc-primary);
	opacity: .6;
}

.nt-acc__empty p {
	max-width: 360px;
	margin: 0;
}

/* ---------- Chi tiết đơn ---------- */

.nt-acc__detail:focus {
	outline: none;
}

.nt-acc__back {
	display: inline-block;
	margin-bottom: 16px;
	font-weight: 600;
	text-decoration: none !important;
}

.nt-acc__detail-head {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.nt-acc__detail-head h3 {
	margin: 0;
	font-size: 20px;
	overflow-wrap: anywhere;
}

.nt-acc__service {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
}

.nt-acc__service div {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.nt-acc__table-wrap {
	overflow-x: auto;
}

.nt-acc__lines {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.nt-acc__lines th,
.nt-acc__lines td {
	padding: 10px 8px;
	border-bottom: 1px solid var(--nt-acc-line);
	text-align: left;
	vertical-align: top;
}

.nt-acc__lines th:last-child,
.nt-acc__lines td:last-child {
	text-align: right;
	white-space: nowrap;
}

.nt-acc__lines .nt-acc__meta {
	display: block;
}

.nt-acc__totals,
.nt-acc__facts {
	display: grid;
	gap: 6px;
	margin: 12px 0 0;
}

.nt-acc__totals div,
.nt-acc__facts div {
	display: flex;
	gap: 16px;
	justify-content: space-between;
}

.nt-acc__totals dt,
.nt-acc__facts dt {
	color: var(--nt-acc-muted);
}

.nt-acc__totals dd,
.nt-acc__facts dd {
	margin: 0;
	text-align: right;
	overflow-wrap: anywhere;
}

.nt-acc__total {
	padding-top: 8px;
	border-top: 1px solid var(--nt-acc-line);
	font-weight: 700;
}

.nt-acc__total dd {
	color: var(--nt-acc-red);
	font-size: 18px;
}

.nt-acc__pax {
	display: grid;
	gap: 8px;
	margin: 0;
	padding-left: 20px;
}

.nt-acc__pax li span {
	display: block;
}

/* ---------- Máy tính bảng / điện thoại ---------- */

@media (max-width: 900px) {
	.nt-acc {
		padding: 12px;
		border-radius: 0;
	}

	.nt-acc__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.nt-acc__side {
		padding-bottom: 0;
	}

	.nt-acc__hello {
		padding: 14px 16px;
	}

	/* Menu trái thành một hàng cuộn ngang. */
	.nt-acc__menu {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		padding: 10px 12px;
		scrollbar-width: none;
	}

	.nt-acc__menu::-webkit-scrollbar {
		display: none;
	}

	.nt-acc__menu > p.nt-acc__group {
		display: none;
	}

	.nt-acc__sub,
	.nt-acc__sub li {
		display: contents;
	}

	.nt-acc__link,
	.nt-acc__link.nt-acc__group {
		flex: none;
		min-height: 38px;
		margin: 0;
		padding: 6px 14px;
		border: 1px solid var(--nt-acc-line);
		border-radius: 999px;
		font-size: 14px;
		font-weight: 600;
		white-space: nowrap;
	}

	.nt-acc__link .nt-acc__icon {
		display: none;
	}

	.nt-acc__logout {
		min-height: 38px;
		margin: 0 12px 12px;
		font-size: 14px;
	}

	.nt-acc__card {
		padding: 20px 16px;
	}
}

@media (max-width: 640px) {
	.nt-acc__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.nt-acc__auth {
		padding: 20px 16px;
	}

	.nt-acc__title {
		font-size: 20px;
	}

	.nt-acc__search {
		max-width: none;
	}

	.nt-acc__order {
		grid-template-columns: 88px minmax(0, 1fr);
		gap: 12px;
	}

	.nt-acc__order .nt-acc__thumb,
	.nt-acc__service .nt-acc__thumb {
		width: 88px;
	}

	.nt-acc__order-side {
		display: flex;
		grid-column: 1 / -1;
		align-items: center;
		justify-content: space-between;
	}

	.nt-acc__service {
		grid-template-columns: 88px minmax(0, 1fr);
	}

	.nt-acc__status {
		flex: 1 1 100%;
	}

	.nt-acc .nt-acc__status select {
		flex: 1;
		min-width: 0;
	}
}

/* 0.13 — thanh toán và huỷ đơn trong chi tiết đơn. */
.nt-acc__pill--pay-unpaid {
	background: #fff4dc;
	color: #8a5a00;
}

.nt-acc__pill--pay-deposit {
	background: #e6efff;
	color: #1d4ea3;
}

.nt-acc__pill--pay-paid {
	background: #e6f6ea;
	color: #146c34;
}

.nt-acc__pill--pay-refund_pending {
	background: #fde8e8;
	color: #a1141a;
}

.nt-acc__pill--pay-refunded {
	background: #eef0f4;
	color: #4d4d4d;
}

.nt-acc__cancel {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #e6e8ec;
}

.nt-acc__cancel .nt-acc__actions {
	margin-top: 12px;
}

.nt-acc__btn--danger {
	background: #c62828;
}

.nt-acc__btn--danger:hover {
	background: #a31f1f;
}

.nt-acc__detail > .nt-acc__msg {
	margin-bottom: 12px;
}

/* 0.14 — đa tiền tệ: "≈ $…" theo tỉ giá lúc đặt cạnh tổng VND. */
.nt-acc__approx { display: block; font-size: 12px; font-weight: 500; color: #64748b; }
