.sjoege-notification-widget,
.sjoege-notification-widget * {
	box-sizing: border-box;
}

.sjoege-notification-widget {
	--sen-mobile-bottom-offset: 0px;
	position: relative;
	display: inline-flex;
	line-height: 1;
}

.sjoege-notification-panel[hidden],
.sjoege-notification-backdrop[hidden],
.sjoege-notification-detail[hidden] {
	display: none !important;
}

.sjoege-notification-toggle {
	appearance: none;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #111;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.sjoege-notification-toggle:hover,
.sjoege-notification-toggle:focus,
.sjoege-notification-toggle:focus-visible,
.sjoege-notification-toggle:active {
	background: transparent;
	color: currentColor;
	outline: none;
	box-shadow: none;
}

.sjoege-notification-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.sjoege-notification-icon,
.sjoege-notification-icon svg {
	display: block;
}

.sjoege-notification-badge {
	position: absolute;
	top: 2px;
	right: 1px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font: 700 10px/16px Arial, sans-serif;
	text-align: center;
}

.sjoege-notification-badge.is-hidden {
	display: none !important;
}

.sjoege-notification-backdrop {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(0, 0, 0, .32);
}

.sjoege-notification-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	width: 390px;
	max-width: 92vw;
	height: 100vh;
	height: 100dvh;
	border-left: 1px solid rgba(0, 0, 0, .08);
	background: #fff;
	color: #111;
	overflow: hidden;
	box-shadow: -18px 0 42px rgba(0, 0, 0, .12);
}

.sjoege-notification-panel-header {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 58px;
	padding: 0 18px 0 20px;
	border-bottom: 1px solid #e7e2dd;
	color: #111;
}

.sjoege-notification-panel-header h3 {
	margin: 0;
	font: 700 18px/1.2 Arial, sans-serif;
	letter-spacing: 0;
	text-transform: uppercase;
}

.sjoege-notification-close,
.sjoege-notification-back {
	appearance: none;
	border: 0 !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	cursor: pointer;
	text-decoration: none;
}

.sjoege-notification-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0 !important;
	background: transparent !important;
	color: inherit !important;
	font: 300 34px/1 Arial, sans-serif;
}

.sjoege-notification-close:hover,
.sjoege-notification-close:focus,
.sjoege-notification-close:active {
	background: transparent !important;
	color: inherit !important;
	outline: none;
}

.sjoege-notification-list {
	position: relative;
	display: grid;
	align-content: start;
	align-items: start;
	flex: 1 1 auto;
	gap: 0;
	padding: 0;
	overflow: auto;
	background: #fff;
	-webkit-overflow-scrolling: touch;
}

.sjoege-notification-list.is-detail-open > .sjoege-notification-item,
.sjoege-notification-list.is-detail-open > .sjoege-notification-empty {
	display: none;
}

.sjoege-notification-item {
	appearance: none;
	display: grid;
	grid-template-columns: 12px 72px minmax(0, 1fr) 18px;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 104px;
	padding: 16px 14px;
	border: 0;
	border-bottom: 1px solid #111;
	background: transparent;
	color: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.sjoege-notification-item:hover,
.sjoege-notification-item:focus,
.sjoege-notification-item:active {
	background: transparent;
	color: inherit;
	text-decoration: none;
	outline: none;
}

.sjoege-notification-item:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -4px;
}

.sjoege-notification-dot {
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: #111;
	justify-self: center;
}

.sjoege-notification-item:not(.is-unread) .sjoege-notification-dot {
	opacity: 0;
	visibility: hidden;
}

.sjoege-notification-image-wrap,
.sjoege-notification-image {
	display: block;
	width: 72px !important;
	height: 72px !important;
}

.sjoege-notification-image {
	object-fit: cover;
	background: #f4f1ee;
	border-radius: 2px;
}

.sjoege-notification-copy {
	display: grid;
	align-content: center;
	gap: 5px;
	min-width: 0;
}

.sjoege-notification-item-title {
	display: block;
	overflow: hidden;
	color: #111;
	font: 700 14px/1.15 Arial, sans-serif;
	letter-spacing: 0;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.sjoege-notification-item-text {
	display: -webkit-box;
	overflow: hidden;
	color: #5e5e5e;
	font: 400 12px/1.3 Arial, sans-serif;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.sjoege-notification-chevron {
	justify-self: end;
	color: #8d8d8d;
	font-size: 24px;
	line-height: 1;
}

.sjoege-notification-empty {
	margin: 0;
	padding: 18px;
	font: 400 14px/1.4 Arial, sans-serif;
}

.sjoege-notification-detail {
	position: absolute;
	inset: 58px 0 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: inherit;
}

.sjoege-notification-detail-media {
	position: relative;
	flex: 0 0 auto;
	background: #eee;
}

.sjoege-notification-detail-image {
	display: block;
	width: 100% !important;
	height: 320px;
	object-fit: cover;
	object-position: center;
}

.sjoege-notification-back {
	position: absolute;
	top: 18px;
	left: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0 !important;
	background: #fff !important;
	color: #111 !important;
	font: 300 34px/40px Arial, sans-serif !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12) !important;
}

.sjoege-notification-back:hover,
.sjoege-notification-back:focus,
.sjoege-notification-back:active {
	background: #fff !important;
	color: #111 !important;
	outline: none;
}

.sjoege-notification-detail-body {
	flex: 1 1 auto;
	padding: 20px 18px 28px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.sjoege-notification-detail-body h4 {
	margin: 0 0 16px;
	color: #111;
	font: 700 20px/1.2 Arial, sans-serif;
	text-transform: uppercase;
}

.sjoege-notification-detail-text {
	color: #333;
	font: 400 14px/1.55 Arial, sans-serif;
}

.sjoege-notification-detail-text p {
	margin: 0 0 16px;
}

.sjoege-notification-detail-footer {
	flex: 0 0 auto;
	padding: 14px 16px 18px;
	background: inherit;
}

.sjoege-notification-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 18px;
	background: #000;
	color: #fff !important;
	font: 700 13px/1.2 Arial, sans-serif;
	letter-spacing: .04em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.sjoege-notification-cta:hover,
.sjoege-notification-cta:focus,
.sjoege-notification-cta:active {
	color: #fff !important;
	text-decoration: none;
}

body.sjoege-notification-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.sjoege-notification-panel {
		top: 0 !important;
		right: 0;
		bottom: var(--sen-mobile-bottom-offset, 0px) !important;
		left: 0;
		width: 100vw !important;
		max-width: 100vw;
		height: auto;
		max-height: calc(100dvh - var(--sen-mobile-bottom-offset, 0px));
		border-left: 0;
		border-radius: 0;
		transform: none;
	}

	.sjoege-notification-backdrop {
		bottom: var(--sen-mobile-bottom-offset, 0px);
	}

	.sjoege-notification-panel-header {
		min-height: 70px;
		padding-left: 20px;
	}

	.sjoege-notification-panel-header h3 {
		font-family: Georgia, serif;
		font-size: 17px;
		font-weight: 400;
	}

	.sjoege-notification-list {
		padding: 12px;
	}

	.sjoege-notification-item {
		grid-template-columns: 12px 78px minmax(0, 1fr) 14px;
		gap: 12px;
		min-height: 104px;
		padding: 14px 10px;
		border-bottom: 0;
	}

	.sjoege-notification-image-wrap,
	.sjoege-notification-image {
		width: 78px !important;
		height: 78px !important;
	}

	.sjoege-notification-item-title {
		display: -webkit-box;
		font-size: 13px;
		white-space: normal;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.sjoege-notification-item-text {
		display: block;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.sjoege-notification-detail {
		inset: 70px 0 0;
	}

	.sjoege-notification-detail-image {
		height: 38vh;
		min-height: 260px;
	}

	.sjoege-notification-detail-footer {
		position: sticky;
		bottom: 0;
		z-index: 5;
		padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
		box-shadow: 0 -10px 24px rgba(255, 255, 255, .9);
	}
}
