/* Feedback masonry and detail modal. */
.hanoi26-feedback-card__hero {
	height: auto;
	min-height: 0;
}

.hanoi26-feedback-card__hero .feedback-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

.feedback-card {
	height: auto;
}

.hanoi26-reviews-grid {
	column-count: 2;
	column-gap: 0.75rem;
}

.hanoi26-reviews-grid .feedback-card {
	display: inline-flex;
	width: 100%;
	margin: 0 0 0.75rem;
	break-inside: avoid;
}

@media (min-width: 640px) {
	.hanoi26-reviews-grid {
		column-count: 3;
		column-gap: 1rem;
	}

	.hanoi26-reviews-grid .feedback-card {
		margin-bottom: 1rem;
	}
}

@media (min-width: 1024px) {
	.hanoi26-reviews-grid {
		column-count: 4;
		column-gap: 1.25rem;
	}

	.hanoi26-reviews-grid .feedback-card {
		margin-bottom: 1.25rem;
	}
}

@media (min-width: 1440px) {
	.hanoi26-reviews-grid {
		column-count: 5;
		column-gap: 1.5rem;
	}

	.hanoi26-reviews-grid .feedback-card {
		margin-bottom: 1.5rem;
	}
}

.hanoi26-feedback-card__tag-list,
.hanoi26-feedback-modal__tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.hanoi26-feedback-card__tag,
.hanoi26-feedback-modal__tag {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.5rem;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #f9fafb;
	color: #374151;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.3;
	font-style: normal;
}

@media (max-width: 639px) {
	.hanoi26-reviews-grid {
		column-gap: 0.5rem;
	}

	.hanoi26-reviews-grid .feedback-card {
		margin-bottom: 0.5rem;
		border-radius: 1.125rem;
	}

	.hanoi26-reviews-grid .hanoi26-feedback-card__tag-list {
		display: none;
	}

	.hanoi26-reviews-grid .feedback-card__header {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 0.35rem;
	}

	.hanoi26-reviews-grid .feedback-card--media .feedback-card__header {
		padding: 0.75rem;
	}

	.hanoi26-reviews-grid .feedback-card--text-only {
		padding: 0.875rem;
	}

	.hanoi26-reviews-grid .feedback-card__user {
		display: flex;
		align-items: center;
		width: 100%;
		min-width: 0;
		gap: 0.5rem;
	}

	.hanoi26-reviews-grid .feedback-card__user-meta {
		flex: 1 1 auto;
		min-width: 0;
	}

	.hanoi26-reviews-grid .user-avatar {
		width: 2rem;
		height: 2rem;
		flex: 0 0 2rem;
		font-size: 0.875rem;
	}

	.hanoi26-reviews-grid .user-name {
		display: -webkit-box;
		overflow: hidden;
		font-size: 0.75rem;
		line-height: 1.2;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.hanoi26-reviews-grid .user-rating {
		flex-wrap: nowrap;
		font-size: 0.5625rem;
		line-height: 1;
	}

	.hanoi26-reviews-grid .review-time {
		display: block;
		width: calc(100% - 2.5rem);
		margin-left: 2.5rem;
		font-size: 0.5rem;
		line-height: 1.25;
		letter-spacing: 0.025em;
		white-space: normal;
	}

	.hanoi26-reviews-grid .feedback-card--media .review-content {
		padding: 0.75rem;
	}

	.hanoi26-reviews-grid .review-comment-text {
		margin-bottom: 0.75rem;
		font-size: 0.8125rem;
		line-height: 1.55;
	}

	.hanoi26-reviews-grid .product-info {
		gap: 0.4rem;
		padding: 0.375rem 0.5rem;
	}
}

.hanoi26-feedback-modal__tag-list {
	gap: 0.55rem;
}

.hanoi26-feedback-modal__tag {
	padding: 0.35rem 0.65rem;
	background: #f3f4f6;
	font-size: 0.8125rem;
	font-weight: 700;
}

.hanoi26-feedback-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.hanoi26-feedback-modal.flex {
	display: flex;
}

.hanoi26-feedback-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
	backdrop-filter: blur(4px);
	cursor: pointer;
}

.hanoi26-feedback-modal__panel {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: auto;
	max-width: min(96vw, 80rem);
	height: auto;
	max-height: 92vh;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 1.5rem;
	background: #fff;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
	opacity: 0;
	transform: scale(0.94) translateY(12px);
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.hanoi26-feedback-modal__panel.is-open {
	opacity: 1;
	transform: scale(1) translateY(0);
}

.hanoi26-feedback-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	color: #111827;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.hanoi26-feedback-modal__close:hover {
	background: #fee2e2;
	color: #dc2626;
}

.hanoi26-feedback-modal__media {
	display: flex;
	flex: 0 0 auto;
	align-items: stretch;
	justify-content: center;
	width: 100%;
	height: auto;
	padding: 0;
	overflow: hidden;
	background: #f3f4f6;
	line-height: 0;
}

.hanoi26-feedback-modal__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 52vh;
	object-fit: contain;
}

.hanoi26-feedback-modal__detail {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	padding: 1.5rem 1.75rem 1.75rem;
	overflow-y: auto;
}

.hanoi26-feedback-modal__user {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1.25rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid #f3f4f6;
}

.hanoi26-feedback-modal__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 999px;
	font-size: 1.25rem;
	font-weight: 800;
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

.hanoi26-feedback-modal__name {
	margin: 0;
	color: #111827;
	font-size: 1.25rem;
	font-weight: 900;
	line-height: 1.2;
}

.hanoi26-feedback-modal__rating {
	display: flex;
	gap: 0.2rem;
	margin-top: 0.35rem;
	color: #f59e0b;
	font-size: 1rem;
}

.hanoi26-feedback-modal__time {
	color: #9ca3af;
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.hanoi26-feedback-modal__badge {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 1.25rem;
	color: #e53e3e;
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hanoi26-feedback-modal__quote-wrap {
	flex: 1;
	margin-bottom: 1.5rem;
}

.hanoi26-feedback-modal__quote-icon {
	display: block;
	margin-bottom: 0.75rem;
	color: #f3f4f6;
	font-size: 2.5rem;
}

.hanoi26-feedback-modal__comment {
	margin: 0;
	color: #374151;
	font-size: 1.0625rem;
	font-style: italic;
	line-height: 1.7;
}

.hanoi26-feedback-modal__product {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: auto;
	padding: 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 1rem;
	background: #f9fafb;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hanoi26-feedback-modal__product:hover {
	border-color: #e53e3e;
	background: #fff;
	box-shadow: 0 8px 24px rgba(229, 62, 62, 0.12);
	transform: translateY(-1px);
}

.hanoi26-feedback-modal__product-thumb {
	flex-shrink: 0;
	width: 4.5rem;
	height: 4.5rem;
	padding: 0.25rem;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	border-radius: 0.875rem;
	background: #fff;
}

.hanoi26-feedback-modal__product-thumb img {
	width: 100%;
	height: 100%;
	border-radius: 0.625rem;
	object-fit: cover;
}

.hanoi26-feedback-modal__product-label {
	margin: 0 0 0.25rem;
	color: #6b7280;
	font-size: 0.625rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hanoi26-feedback-modal__product-name {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: #111827;
	font-size: 0.9375rem;
	font-weight: 900;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	transition: color 0.2s ease;
}

.hanoi26-feedback-modal__product-arrow {
	flex-shrink: 0;
	color: #9ca3af;
	font-size: 0.875rem;
	transition: color 0.2s ease, transform 0.2s ease;
}

.hanoi26-feedback-modal__product:hover .hanoi26-feedback-modal__product-name,
.hanoi26-feedback-modal__product:hover .hanoi26-feedback-modal__product-arrow {
	color: #e53e3e;
}

.hanoi26-feedback-modal__product:hover .hanoi26-feedback-modal__product-arrow {
	transform: translateX(3px);
}

.hanoi26-feedback-modal__panel--text-only .hanoi26-feedback-modal__media {
	display: none;
}

.hanoi26-feedback-modal__panel--text-only .hanoi26-feedback-modal__detail {
	width: 100%;
}

@media (max-width: 639px) {
	.hanoi26-feedback-modal {
		padding: 0.5rem;
	}

	.hanoi26-feedback-modal__panel {
		width: calc(100vw - 1rem);
		max-width: 26rem;
		max-height: calc(100dvh - 1rem);
		border-radius: 1.25rem;
	}

	.hanoi26-feedback-modal__close {
		top: 0.65rem;
		right: 0.65rem;
		width: 2.5rem;
		height: 2.5rem;
	}

	.hanoi26-feedback-modal__img {
		max-height: 40dvh;
	}

	.hanoi26-feedback-modal__detail {
		padding: 1rem;
	}

	.hanoi26-feedback-modal__user {
		gap: 0.625rem;
		padding-bottom: 0.75rem;
		margin-bottom: 0.75rem;
	}

	.hanoi26-feedback-modal__user > div {
		gap: 0.625rem;
	}

	.hanoi26-feedback-modal__avatar {
		width: 2.75rem;
		height: 2.75rem;
		font-size: 1rem;
	}

	.hanoi26-feedback-modal__name {
		font-size: 1rem;
		line-height: 1.15;
	}

	.hanoi26-feedback-modal__rating {
		gap: 0.12rem;
		margin-top: 0.25rem;
		font-size: 0.875rem;
	}

	.hanoi26-feedback-modal__time {
		font-size: 0.5625rem;
		letter-spacing: 0.035em;
	}

	.hanoi26-feedback-modal__badge {
		gap: 0.4rem;
		margin-bottom: 0.75rem;
		font-size: 0.6875rem;
		letter-spacing: 0.035em;
	}

	.hanoi26-feedback-modal__badge i {
		font-size: 0.875rem;
	}

	.hanoi26-feedback-modal__quote-wrap {
		margin-bottom: 0.875rem;
	}

	.hanoi26-feedback-modal__quote-icon {
		margin-bottom: 0.35rem;
		font-size: 1.75rem;
	}

	.hanoi26-feedback-modal__comment {
		font-size: 0.9375rem;
		line-height: 1.55;
	}

	.hanoi26-feedback-modal__tag-list {
		gap: 0.25rem;
	}

	.hanoi26-feedback-modal__tag {
		padding: 0.18rem 0.4rem;
		font-size: 0.625rem;
		font-weight: 650;
		line-height: 1.2;
	}

	.hanoi26-feedback-modal__product {
		gap: 0.625rem;
		padding: 0.625rem;
		border-radius: 0.875rem;
	}

	.hanoi26-feedback-modal__product-thumb {
		width: 3.5rem;
		height: 3.5rem;
		padding: 0.18rem;
		border-radius: 0.7rem;
	}

	.hanoi26-feedback-modal__product-label {
		margin-bottom: 0.15rem;
		font-size: 0.5625rem;
		letter-spacing: 0.07em;
	}

	.hanoi26-feedback-modal__product-name {
		font-size: 0.8125rem;
		line-height: 1.3;
	}

	.hanoi26-feedback-modal__product-arrow {
		font-size: 0.75rem;
	}
}

@media (min-width: 768px) {
	.hanoi26-feedback-modal {
		padding: 1.5rem;
	}

	.hanoi26-feedback-modal__panel {
		flex-direction: row;
		width: auto;
		max-width: min(96vw, 80rem);
		height: min(90vh, 52rem);
		max-height: min(90vh, 52rem);
	}

	.hanoi26-feedback-modal__media {
		flex: 0 0 auto;
		width: auto;
		max-width: min(68vw, 46rem);
		height: 100%;
		min-height: 0;
	}

	.hanoi26-feedback-modal__img {
		width: auto;
		height: 100%;
		max-width: min(68vw, 46rem);
		max-height: min(90vh, 52rem);
		object-fit: contain;
	}

	.hanoi26-feedback-modal__detail {
		flex: 1 1 22rem;
		width: min(28rem, 34vw);
		min-width: 18rem;
		max-width: 32rem;
		padding: 2rem 2.25rem;
	}

	.hanoi26-feedback-modal__name {
		font-size: 1.375rem;
	}

	.hanoi26-feedback-modal__comment {
		font-size: 1.125rem;
	}

	.hanoi26-feedback-modal__product-thumb {
		width: 5rem;
		height: 5rem;
	}
}
