/* Diwan Canada – Menu Tips */

/* Box at the top of an open section panel (Shelf Help, Beyond the Page) */
.dwmt-intro {
	display: block;
	margin: 0 0 22px;
	padding: 12px 18px;
	background: #FFF8EF;
	color: #2D2926;
	border-inline-start: 4px solid #C63D32;
	font-family: var(--dwf-font, "Plus Jakarta Sans", sans-serif);
	font-size: 16px;
	font-style: italic;
	font-weight: 500;
	line-height: 1.45;
	text-align: start;
}

/* Small box under a menu link that has no panel (Explore) */
.dwmt-has-tip {
	position: relative;
}

.dwmt-tip {
	position: absolute;
	top: calc(100% - 6px);
	inset-inline-start: 0;
	z-index: 30;
	display: block;
	padding: 10px 16px;
	background: #FFF8EF;
	color: #2D2926;
	border: 1px solid rgba(45, 41, 38, 0.14);
	border-inline-start: 4px solid #C63D32;
	box-shadow: 0 12px 18px rgba(0, 0, 0, 0.08);
	font-family: var(--dwf-font, "Plus Jakarta Sans", sans-serif);
	font-size: 15px;
	font-style: italic;
	font-weight: 500;
	line-height: 1.4;
	text-transform: none;
	letter-spacing: normal;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	pointer-events: none;
}

.dwmt-has-tip:hover > .dwmt-tip,
.dwmt-has-tip:focus-within > .dwmt-tip {
	opacity: 1;
	visibility: visible;
	transform: none;
}

/* The line inside an opened section of the phone menu */
.dwmt-intro-item {
	list-style: none;
	margin: 6px 0 10px;
	padding: 10px 14px;
	background: #FFF8EF;
	color: #2D2926;
	border-inline-start: 3px solid #C63D32;
	font-size: 14px;
	font-style: italic;
	font-weight: 500;
	line-height: 1.45;
	text-align: start;
}

.dwmt-intro-item::before,
.dwmt-intro-item::marker {
	content: none;
}

/* Arabic is never slanted */
:lang(ar) .dwmt-intro,
:lang(ar) .dwmt-tip,
:lang(ar) .dwmt-intro-item {
	font-style: normal;
	font-family: inherit;
}

/* No hover on phones and tablets: the Explore box is desktop only */
@media (max-width: 991px) {
	.dwmt-tip {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dwmt-tip {
		transition: none;
	}
}
