.hcap-onb-panel {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 100000;
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	max-width: 320px;
	width: calc(100vw - 32px);
}

.hcap-onb-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-bottom: 1px solid #e2e4e7;
	font-weight: 600;
}

/* Header title with icon */
.hcap-onb-title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.hcap-onb-icon {
	width: 18px;
	height: 18px;
	display: inline-block;
}

/* Close button */
.hcap-onb-close {
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
	margin: 0 0 0 8px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #646970;
}

/* Ensure it sits nicely inside flex header */
.hcap-onb-close.notice-dismiss {
	position: static;
}

.hcap-onb-close:before {
	content: "\f153"; /* dashicons-dismiss */
	/*noinspection CssNoGenericFontName*/
	font-family: dashicons, 'Dashicons';
	font-size: 20px;
	line-height: 1;
	speak: never;
}

.hcap-onb-close:hover,
.hcap-onb-close:active {
	color: #1d2327;
}

.hcap-onb-close:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.hcap-onb-list {
	margin: 0;
	padding: 8px 16px 12px 28px;
	max-height: 220px;
	overflow: auto;
	background: #f0f2f5;
}

.hcap-onb-list li {
	color: #3c434a;
	cursor: pointer;
}

.hcap-onb-list li.current {
	font-weight: 700;
}

.hcap-onb-list li.other-page {
	opacity: .6;
}

.hcap-onb-tip {
	position: absolute;
	z-index: 100001;
	max-width: 340px;
	background: #5c6f8a;
	color: #fff;
	border-radius: 6px;
	padding: 12px 12px;
	box-shadow: 0 10px 30px rgba(92, 111, 138, .25);
}

/* Arrow */
.hcap-onb-tip:after {
	content: "";
	position: absolute;
	top: 50%;
	margin-top: -8px;
	width: 0;
	height: 0;
	border: 8px solid transparent;
}

.hcap-onb-tip.side-right:after {
	left: -16px;
	border-right-color: #5c6f8a;
}

.hcap-onb-tip.side-left:after {
	right: -16px;
	border-left-color: #5c6f8a;
}

.hcap-onb-tip .hcap-onb-tip-text {
	margin-bottom: 8px;
}

.hcap-onb-tip .hcap-onb-done {
	margin-top: 4px;
	background: #4de1d2;
	border-color: #4de1d2;
}

/* Highlight of targeted element */
.hcap-onb-highlight {
	outline: 3px solid rgba(114, 174, 230, .8);
	box-shadow: 0 0 0 4px rgba(114, 174, 230, .5);
	transition: box-shadow .2s ease, outline-color .2s ease;
}

table.hcap-onb-highlight::before {
	display: none;
}

@media (max-width: 600px) {
	.hcap-onb-tip {
		max-width: 280px;
	}
}

/* Welcome modal (What's New-like) */
.hcap-onb-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(30, 30, 35, 0.6);
	z-index: 100002;
}

.hcap-onb-modal {
	position: fixed;
	z-index: 100003;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 50px 40px;
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
	max-width: 550px;
	width: calc(100vw - 48px);
	text-align: center;
}

.hcap-onb-modal-head {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 10px;
}

.hcap-onb-modal-title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: #3c434a;
}

.hcap-onb-modal-body {
	color: #2c3338;
	margin: 10px 0 16px;
}

.hcap-onb-modal-body p {
	font-size: 18px;
	color: #5c6f8a;
	margin: 20px 0 20px;
}

.hcap-onb-modal-actions {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.hcap-onb-modal-actions .button {
	font-size: 16px;
	font-weight: 600;
}

.hcap-onb-modal-close {
	position: absolute;
	top: 8px;
	right: 10px;
	border: 0;
	background: transparent;
	font-size: 20px;
	cursor: pointer;
	line-height: 1;
}

/* Video modal variant (16:9 area) */
.hcap-onb-modal.video {
    max-width: 960px;
    width: calc(100vw - 48px);
    padding: 50px 40px;
}

.hcap-onb-modal.video .hcap-onb-modal-body {
    margin: 10px 0;
}

.hcap-onb-video-wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
}

.hcap-onb-video-wrap::before {
    content: "";
    display: block;
    padding-bottom: 62.5%; /* 16:10 */
}

.hcap-onb-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hcap-onb-video-link {
	color: #ffffff;
}

.hcap-onb-video-link:hover {
	color: #f0f2f5;
}
