/* 조인뉴스 광고 상세 모달 */
.jads-joyn-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(15, 23, 42, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.jads-joyn-modal-overlay[hidden] {
	display: none !important;
}

.jads-joyn-modal-panel {
	background: #fff;
	border-radius: 12px;
	max-width: 560px;
	width: 100%;
	max-height: min(86vh, 720px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

.jads-joyn-modal-panel__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	border-bottom: 1px solid #e2e8f0;
	background: #f8fafc;
}

.jads-joyn-modal-panel__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	color: #0f172a;
}

.jads-joyn-modal-panel__close {
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
	padding: 0 4px;
}

.jads-joyn-modal-panel__close:hover {
	color: #0f172a;
}

.jads-joyn-modal-panel__body {
	padding: 18px 20px;
	overflow-y: auto;
	font-size: 0.95rem;
	line-height: 1.65;
	color: #334155;
}

.jads-joyn-modal-panel__body .jads-joyn-modal-body-inner > *:first-child {
	margin-top: 0;
}

.jads-joyn-modal-panel__foot {
	padding: 0 20px 18px;
}

.jads-joyn-modal-panel__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	background: #0d47a1;
	color: #fff !important;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.9rem;
}

.jads-joyn-modal-panel__cta:hover {
	filter: brightness(1.06);
}

.jads-joyn-modal-loading,
.jads-joyn-modal-error {
	margin: 0;
	color: #64748b;
}

.jads-joyn-modal-bar {
	margin: 8px 0 0;
	text-align: right;
}

.jads-joyn-modal-bar .jads-joyn-modal-trigger {
	cursor: pointer;
	font-size: 0.85rem;
	text-decoration: underline;
	background: none;
	border: 0;
	color: #0d47a1;
	padding: 4px 0;
}

.jads-video-joyn-wrap .jads-video-wrapper {
	margin-bottom: 0;
}

/* 신청자 전용 통계 */
.jads-joyn-modal-html {
	margin-bottom: 0;
}

.jads-joyn-modal-advertiser {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #e2e8f0;
}

.jads-joyn-modal-stats-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 10px 14px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #0d47a1;
	background: #e3f2fd;
	border: 1px solid #90caf9;
	border-radius: 8px;
	cursor: pointer;
}

.jads-joyn-modal-stats-btn:hover {
	background: #bbdefb;
}

.jads-joyn-modal-stats-panel {
	margin-top: 12px;
	padding: 12px 14px;
	background: #f8fafc;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}

.jads-joyn-modal-stats-dl {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 14px;
	font-size: 0.88rem;
}

.jads-joyn-modal-stats-dl dt {
	margin: 0;
	color: #64748b;
	font-weight: 500;
}

.jads-joyn-modal-stats-dl dd {
	margin: 0;
	color: #0f172a;
	font-weight: 600;
}
