/* Saved posts popup styles. Enqueued only when the feature is enabled. */

html.diiho-saved-posts-open,
body.diiho-saved-posts-open{
	overflow: hidden;
}

.diiho-saved-posts-popup[hidden]{
	display: none !important;
}

.diiho-saved-posts-popup{
	--diiho-saved-posts-popup-background: #111827;
	--diiho-saved-posts-popup-border: rgba(148, 163, 184, 0.22);
	--diiho-saved-posts-popup-color: #fff;
	--diiho-saved-posts-popup-muted: #cbd5e1;
	--diiho-saved-posts-popup-surface: #111;

	color: var(--diiho-saved-posts-popup-color);
	inset: 0;
	position: fixed;
	z-index: 999998;
}

html[data-theme=light] .diiho-saved-posts-popup,
body.diiho-light-mode .diiho-saved-posts-popup{
	--diiho-saved-posts-popup-background: #f8fafc;
	--diiho-saved-posts-popup-border: #e5e7eb;
	--diiho-saved-posts-popup-color: #0f172a;
	--diiho-saved-posts-popup-muted: #64748b;
	--diiho-saved-posts-popup-surface: #f8fafc;
}

.diiho-saved-posts-popup__backdrop{
	background: rgba(0, 0, 0, 0.86);
	inset: 0;
	position: absolute;
}

.diiho-saved-posts-popup__dialog{
	background: var(--diiho-saved-posts-popup-surface);
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	position: relative;
	width: 100%;
	z-index: 1;
}

.diiho-saved-posts-popup__header{
	align-items: center;
	border-bottom: 1px solid var(--diiho-saved-posts-popup-border);
	display: flex;
	flex: 0 0 auto;
	gap: 16px;
	justify-content: space-between;
	padding: 15px;
}

.diiho-saved-posts-popup__header h2{
	color: var(--diiho-saved-posts-popup-color);
	font-size: 18px;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0;
}

.diiho-saved-posts-popup__close{
	align-items: center;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid var(--diiho-saved-posts-popup-border);
	border-radius: 999px;
	color: var(--diiho-saved-posts-popup-color);
	cursor: pointer;
	display: inline-flex;
	font-size: 16px;
	height: 38px;
	justify-content: center;
	margin: 0;
	padding: 0;
	width: 38px;
}

.diiho-saved-posts-popup__close:hover,
.diiho-saved-posts-popup__close:focus-visible{
	background: var(--diiho-accent) !important;
	color: #fff;
	outline: none;
}

html[data-theme=light] .diiho-saved-posts-popup__close,
body.diiho-light-mode .diiho-saved-posts-popup__close{
	background: #fff;
}

.diiho-saved-posts-popup__body{
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: clamp(18px, 3vw, 38px) 0 54px;
}

.diiho-saved-posts-popup__content{
	margin: 0 auto;
	max-width: none;
	width: 100%;
}

.diiho-saved-posts-popup .diiho-saved-posts-popup__site-content{
	margin: 0 auto;
	max-width: var(--diiho-content-max, 1280px);
	width: 100%;
}

.diiho-saved-posts-popup .diiho-saved-posts-popup__content-area{
	width: 100%;
}

.diiho-saved-posts-popup .site-main{
	width: 100%;
}

.diiho-saved-posts-popup .diiho-post-block>.diiho-post-block__item{
	padding: .5rem;
}

.diiho-saved-posts-popup .card .entry-header{
	margin-bottom: 0;
	text-align: left;
}

.diiho-saved-posts-popup .entry-title.card__title{
	font-size: 18px;
	margin: 0 0 8px;
	padding: 0;
	text-align: inherit;
}

.diiho-saved-posts-popup .diiho-post-layout-story-list .entry-title.card__title{
	font-size: 22px;
	line-height: 1.25;
}

.diiho-saved-posts-popup .diiho-post-layout-media-list .entry-title.card__title{
	font-size: 20px;
	line-height: 1.35;
	margin: 0 0 8px;
}

.diiho-saved-posts-popup .diiho-post-layout-compact-grid .entry-title.card__title{
	font-size: 18px;
	line-height: 1.35;
}

.diiho-saved-posts-popup .diiho-post-layout-social-feed .entry-title.card__title{
	font-size: 20px;
	line-height: 1.3;
	margin-bottom: 0;
	min-height: 52px;
}

.diiho-saved-posts-popup .card__content.entry-content{
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

.diiho-saved-posts-popup .diiho-post-layout-social-feed .card__content.entry-content{
	padding-left: 18px;
	padding-right: 18px;
}

.diiho-saved-posts-popup .card__content.entry-content>p:first-child{
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
}

@media (max-width: 767px){
	.diiho-saved-posts-popup .diiho-post-layout-media-list .entry-title.card__title{
		font-size: 16px;
		line-height: 1.35;
		margin-bottom: 20px;
	}
}

@media (min-width: 768px){
	.diiho-saved-posts-popup .diiho-post-block>.diiho-post-block__item{
		padding: 1.5rem;
	}
}

.diiho-saved-posts-popup__status{
	align-items: center;
	color: var(--diiho-saved-posts-popup-muted);
	display: flex;
	font-size: 16px;
	font-weight: bold;
	gap: 10px;
	justify-content: center;
	min-height: 180px;
	padding: 24px;
	text-align: center;
}

.diiho-saved-posts-popup__status[hidden]{
	display: none !important;
}

.diiho-saved-posts-popup__status.is-loading::before{
	animation: diiho-post-popup-spin 0.85s linear infinite;
	border: 3px solid rgba(255, 255, 255, 0.22);
	border-radius: 50%;
	border-top-color: var(--diiho-accent);
	content: "";
	height: 24px;
	width: 24px;
}

html[data-theme=light] .diiho-saved-posts-popup__status.is-loading::before,
body.diiho-light-mode .diiho-saved-posts-popup__status.is-loading::before{
	border-color: rgba(15, 23, 42, 0.16);
	border-top-color: var(--diiho-accent);
}

.diiho-saved-posts-popup__status.is-error{
	color: #fecaca;
}

html[data-theme=light] .diiho-saved-posts-popup__status.is-error,
body.diiho-light-mode .diiho-saved-posts-popup__status.is-error{
	color: #b91c1c;
}

.diiho-saved-posts-popup__status.is-empty{
	color: var(--diiho-saved-posts-popup-muted);
}

@media (max-width: 700px){
	.diiho-saved-posts-popup__body{
		padding-bottom: 30px;
	}
}
