/* More DartConnect product hub widget */

/* Shared bottom-right bar: scroll-to-top (left) + More DartConnect FAB (right) */
.dc-bottom-actions {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
}

@media (min-width: 640px) {
	.dc-bottom-actions {
		right: 1.5rem;
		bottom: 1.5rem;
		gap: 0.875rem;
	}
}

.dc-bottom-actions #scroll-top-link {
	position: static !important;
	right: auto !important;
	bottom: auto !important;
	flex-shrink: 0;
	margin: 0 !important;
	opacity: 0;
	visibility: hidden;
}

.dc-bottom-actions #scroll-top-link.avia_pop_class {
	opacity: 0.7 !important;
	visibility: visible !important;
}

.dc-bottom-actions #scroll-top-link:not(.avia_pop_class) {
	width: 0 !important;
	height: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	border: none !important;
}

.dc-bottom-actions #scroll-top-link.avia_pop_class {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 50px !important;
	height: 50px !important;
}

@media only screen and (max-width: 767px) {
	.dc-bottom-actions #scroll-top-link:not(.avia_pop_class) {
		display: none !important;
	}
}

.product-hub-fab-anchor {
	position: static;
	flex-shrink: 0;
}

.product-hub-fab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	box-sizing: border-box;
	width: auto !important;
	max-width: none;
	height: auto !important;
	line-height: 1.2;
	padding: 0.625rem !important;
	border: none;
	border-radius: 9999px !important;
	background: rgba(255, 255, 255, 0.95);
	color: #16273a;
	font-size: inherit !important;
	outline: none;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(35, 67, 96, 0.2);
}

.product-hub-fab:hover {
	transform: translateY(-2px);
	background: #ffffff;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(35, 67, 96, 0.2);
}

.product-hub-fab:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #facc15;
}

.product-hub-fab__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 9999px;
	background: rgba(22, 39, 58, 0.1);
	color: #16273a;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.product-hub-fab:hover .product-hub-fab__icon {
	background: #ad1f23;
	color: #ffffff;
}

.product-hub-fab__label {
	display: none;
	flex-shrink: 0;
	white-space: nowrap;
	overflow: visible;
	line-height: 1.2;
	font-family: 'Montserrat', sans-serif;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

@media (min-width: 640px) {
	.product-hub-fab {
		gap: 0.625rem;
		padding: 0.75rem 1.125rem 0.75rem 0.75rem;
	}

	.product-hub-fab__icon {
		width: 2rem;
		height: 2rem;
		flex-shrink: 0;
	}

	.product-hub-fab__icon svg {
		width: 18px;
		height: 18px;
	}

	.product-hub-fab__label {
		display: block;
		font-size: 11px;
		letter-spacing: 0.12em;
	}
}

@media (min-width: 768px) {
	.product-hub-fab {
		padding: 0.75rem 1.25rem 0.75rem 0.75rem;
	}

	.product-hub-fab__label {
		font-size: 12px;
		letter-spacing: 0.14em;
	}
}

/* Modal overlay */
.product-hub-modal {
	position: fixed;
	inset: 0;
	z-index: 10001;
	display: flex;
	align-items: stretch;
	justify-content: center;
}

.product-hub-modal[hidden] {
	display: none !important;
}

/* Reset global theme button styles on backdrop (style.css sets width:150px on all buttons) */
#top .product-hub-modal__backdrop {
	width: 100% !important;
	height: 100% !important;
	min-width: 0;
	min-height: 0;
	max-width: none;
	margin: 0;
	padding: 0 !important;
	border-radius: 0 !important;
	font-size: inherit !important;
	line-height: inherit;
	-webkit-appearance: none;
	appearance: none;
}

.product-hub-modal__backdrop {
	position: absolute;
	inset: 0;
	display: none;
	border: none;
	background: rgba(11, 26, 42, 0.4);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	cursor: pointer;
}

@media (min-width: 640px) {
	.product-hub-modal {
		align-items: center;
		padding: 2.5rem 1.5rem;
	}

	.product-hub-modal__backdrop {
		display: block;
	}
}

.product-hub-modal__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100dvh;
	max-height: 100dvh;
	min-height: 0;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
}

@media (min-width: 640px) {
	.product-hub-modal__panel {
		height: auto;
		max-height: 88vh;
		max-width: 48rem;
		border-radius: 0.75rem;
		box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.05);
	}
}

.product-hub-modal__header {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	background: #16273a;
	color: #ffffff;
}

@media (min-width: 640px) {
	.product-hub-modal__header {
		gap: 1rem;
		padding: 1rem 1.25rem;
	}
}

.product-hub-modal__header-text {
	min-width: 0;
}

.product-hub-modal__title {
	margin: 0;
	font-family: 'Montserrat', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
}

@media (min-width: 640px) {
	.product-hub-modal__title {
		font-size: 1.125rem;
	}
}

.product-hub-modal__subtitle {
	margin: 0.125rem 0 0;
	font-family: 'Montserrat', sans-serif;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 640px) {
	.product-hub-modal__subtitle {
		font-size: 12px;
		letter-spacing: 0.14em;
	}
}

.product-hub-modal__close {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2.25rem !important;
	height: 2.25rem !important;
	margin-right: -0.25rem;
	padding: 0 !important;
	border: none;
	border-radius: 0.375rem !important;
	background: transparent;
	color: rgba(255, 255, 255, 0.75);
	font-size: inherit !important;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.product-hub-modal__close:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
}

.product-hub-modal__close:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.product-hub-modal__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
	background: #ffffff;
}

@media (min-width: 640px) {
	.product-hub-modal__body {
		background: #f7f9fc;
		padding: 1.5rem 1.25rem;
	}
}

.product-hub-modal__scroll {
	flex: 1;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior-y: contain;
	scrollbar-gutter: stable;
}

.product-hub-list {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	margin: 0;
	padding: 0 0.75rem 1rem;
	list-style: none;
}

@media (min-width: 640px) {
	.product-hub-list {
		gap: 0.75rem;
		padding: 0;
	}
}

.product-hub-list__item {
	overflow: hidden;
	border-radius: 0.5rem;
	border: 1px solid rgba(35, 67, 96, 0.1);
	background: #ffffff;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.product-hub-card {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1.25rem 0.75rem;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.15s ease;
}

#top a.product-hub-card,
#top a.product-hub-card:hover,
#top a.product-hub-card:focus,
#top a.product-hub-card:visited,
#top a.product-hub-card:hover *,
#top a.product-hub-card:focus * {
	text-decoration: none;
}

@media (min-width: 640px) {
	.product-hub-card {
		gap: 1.25rem;
		padding: 1.5rem 1.25rem;
	}
}

.product-hub-card:hover {
	background: rgba(22, 39, 58, 0.03);
}

.product-hub-card--current {
	background: #f4f7fb;
}

.product-hub-card--current:hover {
	background: #eef2f7;
}

.product-hub-card__mark {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin-top: 0.125rem;
	border-radius: 0.5rem;
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: -0.025em;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	outline: 1px solid rgba(0, 0, 0, 0.05);
	transition: transform 0.15s ease;
}

@media (min-width: 640px) {
	.product-hub-card__mark {
		width: 3.5rem;
		height: 3.5rem;
		border-radius: 0.75rem;
		font-size: 14px;
	}
}

.product-hub-card:hover .product-hub-card__mark {
	transform: scale(1.04);
}

.product-hub-card__mark--current {
	background: rgba(173, 31, 35, 0.9) !important;
	color: #ffffff !important;
	outline: 2px solid rgba(173, 31, 35, 0.4);
	outline-offset: 1px;
}

.product-hub-card__content {
	flex: 1;
	min-width: 0;
}

.product-hub-card__heading {
	padding-bottom: 0.625rem;
	border-bottom: 1px solid rgba(35, 67, 96, 0.1);
}

.product-hub-card__name {
	margin: 0;
	font-family: 'Montserrat', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.375;
	color: #12283a;
}

@media (min-width: 640px) {
	.product-hub-card__name {
		font-size: 1.25rem;
		line-height: 1.25;
	}
}

.product-hub-card__tagline {
	display: block;
	margin-top: 0.375rem;
	font-family: 'Montserrat', sans-serif;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.375;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #761a22;
}

@media (min-width: 640px) {
	.product-hub-card__tagline {
		font-size: 12px;
	}
}

.product-hub-card__tagline--current {
	color: #3d5a73;
}

.product-hub-card__description {
	margin: 0.75rem 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: #2c4d66;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (min-width: 640px) {
	.product-hub-card__description {
		font-size: 14px;
		line-height: 1.625;
		display: block;
		-webkit-line-clamp: unset;
		overflow: visible;
	}
}

.product-hub-card__domain {
	display: none;
	margin: 0.625rem 0 0;
	font-family: ui-monospace, 'Roboto Mono', monospace;
	font-size: 11px;
	line-height: 1;
	color: #4a6682;
}

@media (min-width: 640px) {
	.product-hub-card__domain {
		display: block;
		font-size: 12px;
	}
}

.product-hub-card__chevron {
	display: none;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	align-self: center;
	width: 2.25rem;
	height: 2.25rem;
	margin-top: 0.25rem;
	border-radius: 9999px;
	border: 1px solid rgba(35, 67, 96, 0.15);
	color: #234360;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

@media (min-width: 640px) {
	.product-hub-card__chevron {
		display: inline-flex;
		margin-top: 0;
	}
}

.product-hub-card:hover .product-hub-card__chevron {
	border-color: transparent;
	background: #ad1f23;
	color: #ffffff;
}

.product-hub-card:hover .product-hub-card__chevron svg {
	transform: translateX(2px);
}

.product-hub-card__chevron svg {
	transition: transform 0.15s ease;
}

.product-hub-card__badge {
	display: flex;
	flex-shrink: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.125rem;
	align-self: center;
	min-height: 2.75rem;
	width: 4.5rem;
	margin-top: 0.25rem;
	padding: 0.375rem;
	border-radius: 0.5rem;
	border: 1px solid rgba(35, 67, 96, 0.15);
	background: #ffffff;
	text-align: center;
}

@media (min-width: 640px) {
	.product-hub-card__badge {
		margin-top: 0;
	}
}

.product-hub-card__badge svg {
	color: #16273a;
}

.product-hub-card__badge-text {
	font-family: 'Montserrat', sans-serif;
	font-size: 8px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(35, 67, 96, 0.8);
}
