/* Hostelworld Reviews widget */

.hwr-widget {
	--hwr-bg: #f4f4f4;
	--hwr-text: #000;
	--hwr-muted: #6b7280;
	--hwr-radius: 14px;
	--hwr-star: #f5a623;
	--hwr-star-bg: #d9d9d9;
	--hwr-verified: #1a73e8;
	--hwr-brand: #f57d20;
	--hwr-card-max: 583px;
	font-family: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--hwr-text);
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	justify-content: center;
	align-items: center;
}

.hwr-widget *,
.hwr-widget *::before,
.hwr-widget *::after {
	box-sizing: border-box;
}

/* Header pill */
.hwr-widget .hwr-header {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 30px 28px;
	background: var(--hwr-bg);
	border-radius: var(--hwr-radius);
	margin: 0 auto 24px !important;
	max-width: 100%;
	vertical-align: top;
	text-align: center;
	justify-content: center;
}

.hwr-widget .hwr-header__logo {
	height: 16px;
	width: auto;
	display: block;
	flex-shrink: 0;
	justify-content: center;

}

.hwr-widget .hwr-header__stars {
	display: inline-flex;
	gap: 0px;
	flex-shrink: 0;
}

.hwr-widget .hwr-header__score {
	font-weight: 600;
	font-size: 17px;
	white-space: nowrap;
	flex-shrink: 0;
	line-height: 1;
}

/* Stars */
.hwr-widget .hwr-star {
	position: relative;
	display: inline-block;
	width: 24px;
	height: 24px;
	background: var(--hwr-star-bg);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14l-5-4.87 6.91-1.01z'/></svg>") center/contain no-repeat;
	        mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14l-5-4.87 6.91-1.01z'/></svg>") center/contain no-repeat;
}

.hwr-widget .hwr-star__fill {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	background: var(--hwr-star);
}

/* Carousel (full-width container, arrows on edges) */
.hwr-widget .hwr-carousel {
	position: relative;
	width: 100%;
}

.hwr-widget .hwr-track {
	width: 92%;
	max-width: var(--hwr-card-max);
	margin: 0 auto;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	display: flex;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

@media(max-width: 1024px){
	.hwr-widget .hwr-track {
		width: 100% o !important;
		max-width: 100% !important
}
}

.hwr-widget .hwr-track::-webkit-scrollbar {
	display: none;
}

/* Card */
.hwr-widget .hwr-card {
	flex: 0 0 100%;
	scroll-snap-align: center;
	background: var(--hwr-bg);
	border-radius: var(--hwr-radius);
	padding: 42px 26px 20px;
	margin-top: 34px;
	position: relative;
	text-align: center;
}

/* Avatar (positioning frame) + inner crop + H badge */
.hwr-widget .hwr-card__avatar {
	position: absolute;
	top: -34px;
	left: 50%;
	transform: translateX(-50%);
	width: 67px;
	height: 67px;
}

.hwr-widget .hwr-card__avatar-inner {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	background: #d9d9d9;
	border: 3px solid #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	align-items: center;
}

.hwr-widget .hwr-card__avatar-inner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hwr-widget .hwr-card__avatar-fallback {
	font-weight: 600;
	font-size: 28px;
	color: #fff;
	background: #b3b3b3;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hwr-widget .hwr-card__avatar-badge {
	position: absolute;
	bottom: -2px;
	right: -2px;
	width: 24px;
	height: 24px;
	border-radius: 5px;
	background: var(--hwr-brand);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	box-shadow: 0 0 0 2px #fff;
}

.hwr-widget .hwr-card__avatar-badge svg {
	width: 100%;
	height: 100%;
	display: block;
}

.hwr-widget .hwr-card__name {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

.hwr-widget .hwr-card__date {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: #868686;
}

.hwr-widget .hwr-card__rating {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.hwr-widget .hwr-card__stars {
	display: inline-flex;
	gap: 2px;
}

.hwr-widget .hwr-card__verified svg {
	width: 17px;
	height: 17px;
	display: block;
}

.hwr-widget .hwr-card__notes {
	margin: 0 0 4px;
	font-size: 16px;
	line-height: 1.34;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hwr-widget .hwr-card.is-expanded .hwr-card__notes {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}

/* Read more / less button (defeat theme button styles) */
.hwr-widget .hwr-card__more,
.hwr-widget .hwr-card__more:hover,
.hwr-widget .hwr-card__more:focus,
.hwr-widget .hwr-card__more:active {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	font-size: 13px;
	font-family: inherit;
	font-weight: 400;
	color: #868686 !important;
	padding: 0 !important;
	margin: 0;
	text-decoration: underline;
	text-underline-offset: 1px;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.1;
	min-height: 0;
	width: auto;
	height: auto;
	display: none !important;
}

.hwr-widget .hwr-card[data-truncated="true"] .hwr-card__more {
	display: inline-block !important;
}

/* Nav buttons — absolute, on the container edges */
.hwr-widget .hwr-nav,
.hwr-widget .hwr-nav:hover,
.hwr-widget .hwr-nav:focus,
.hwr-widget .hwr-nav:active {
	position: absolute;
	top: 55%;
	transform: translateY(-50%);
	width: 34px !important;
	height: 34px !important;
	min-height: 0;
	border-radius: 50% !important;
	border: 2px solid #f4f4f4 !important;
	background: #fffff !important;
	background-color: #ffffff !important;
	background-image: none !important;
	color: var(--hwr-text) !important;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	margin: 0;
	box-shadow: none !important;
	font-size: 0;
	z-index: 3;
	transition: background-color .15s ease, opacity .15s ease;
}

.hwr-widget .hwr-nav--prev,
.hwr-widget .hwr-nav--prev:hover,
.hwr-widget .hwr-nav--prev:focus,
.hwr-widget .hwr-nav--prev:active {
	left: 8px;
	right: auto;
}

.hwr-widget .hwr-nav--next,
.hwr-widget .hwr-nav--next:hover,
.hwr-widget .hwr-nav--next:focus,
.hwr-widget .hwr-nav--next:active {
	right: 8px;
	left: auto;
}

.hwr-widget .hwr-nav:hover:not(:disabled) {
	background-color: rgba(0, 0, 0, .06) !important;
}

.hwr-widget .hwr-nav:disabled {
	opacity: .25;
	cursor: default;
}

.hwr-widget .hwr-nav svg {
	width: 18px;
	height: 18px;
	display: block;
}

@media (max-width: 600px) {
	.hwr-widget .hwr-card {
		padding: 56px 20px 24px;
	}
	.hwr-widget .hwr-nav,
	.hwr-widget .hwr-nav:hover,
	.hwr-widget .hwr-nav:focus,
	.hwr-widget .hwr-nav:active {
		width: 28px !important;
		height: 28px !important;
	}
}
