/* EZD Image Protect v1.1.0 */
#ezd-read .ezd-pg {
	position: relative;
	width: 100%;
	aspect-ratio: 1000 / 1414;
	background: #1d1c1c;
	line-height: 0;
	overflow: hidden;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
	-webkit-user-drag: none;
}
#ezd-read .ezd-pg canvas {
	display: block;
	width: 100%;
	height: 100%;
	pointer-events: none;
	-webkit-user-select: none;
	user-select: none;
}
/* แผ่นใสทับรูป: คลิกขวา/กดค้างโดนแผ่นนี้ ไม่โดนรูป */
#ezd-read .ezd-pg::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: transparent;
	-webkit-touch-callout: none;
}
#ezd-read .ezd-pg-err {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #aaa;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}
#ezd-read {
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}
@media print {
	#ezd-read { display: none !important; }
}
html.ezdp-blocked #ezd-read .ezd-pg { visibility: hidden; }
.ezdp-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 10, 10, .96);
	color: #fff;
	text-align: center;
	padding: 20px;
}
.ezdp-box b { display: block; font-size: 22px; margin-bottom: 10px; color: #FF5722; }
.ezdp-box p { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.6; color: #fff; }

/* ---------- ตรวจว่าเป็นคน ---------- */
@keyframes ezdp-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes ezdp-pop { from { opacity: 0; transform: scale(.96) translateY(6px) } to { opacity: 1; transform: none } }
@keyframes ezdp-spin { to { transform: rotate(360deg) } }
@keyframes ezdp-bar { 0% { transform: translateX(-100%) } 100% { transform: translateX(250%) } }
@keyframes ezdp-draw { to { stroke-dashoffset: 0 } }
@keyframes ezdp-shake { 0%,100% { transform: none } 25% { transform: translateX(-6px) } 75% { transform: translateX(6px) } }
.ezdp-gv {
	position: fixed; inset: 0; z-index: 2147483646;
	display: grid; place-items: center;
	background: rgba(12, 12, 14, .78);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	animation: ezdp-fade .16s ease-out;
	transition: opacity .3s ease;
	font-family: inherit;
}
.ezdp-gv.ezdp-gv-out { opacity: 0; pointer-events: none; }
.ezdp-gv-card {
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	min-width: 260px; max-width: 88vw;
	padding: 28px 32px 24px;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, .08);
	background: rgba(30, 30, 33, .96);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
	color: #f2f2f2; text-align: center;
	animation: ezdp-pop .2s ease-out;
}
.ezdp-gv-icon {
	position: relative; display: grid; place-items: center;
	width: 56px; height: 56px; border-radius: 50%;
	background: rgba(255, 87, 34, .14); color: #FF5722;
}
.ezdp-gv-shield { width: 26px; height: 26px; }
.ezdp-gv-tick { stroke-dasharray: 12; stroke-dashoffset: 12; }
.ezdp-gv-ring {
	position: absolute; inset: -4px; width: 64px; height: 64px;
	color: rgba(255, 87, 34, .45);
	animation: ezdp-spin .9s linear infinite;
}
.ezdp-gv-t { margin: 6px 0 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.ezdp-gv-d { margin: 0; max-width: 16rem; font-size: 12.5px; line-height: 1.5; color: #a9a9ad; }
.ezdp-gv-bar { position: relative; width: 160px; height: 3px; margin-top: 6px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.ezdp-gv-bar i { position: absolute; inset: 0; width: 40%; border-radius: 3px; background: #FF5722; animation: ezdp-bar 1.1s ease-in-out infinite; }
.ezdp-gv-ts:empty { display: none; }
.ezdp-gv-retry {
	margin-top: 8px; padding: 8px 18px; border: 0; border-radius: 8px;
	background: #FF5722; color: #fff; font-weight: 600; cursor: pointer;
}
.ezdp-gv-retry[hidden] { display: none; }
/* สำเร็จ */
.ezdp-gv-ok .ezdp-gv-icon { background: rgba(46, 204, 113, .16); color: #2ecc71; transition: background .2s, color .2s; }
.ezdp-gv-ok .ezdp-gv-ring { animation: none; opacity: 0; transition: opacity .2s; }
.ezdp-gv-ok .ezdp-gv-tick { animation: ezdp-draw .3s ease-out forwards; }
.ezdp-gv-ok .ezdp-gv-bar { opacity: 0; transition: opacity .2s; }
/* ไม่สำเร็จ */
.ezdp-gv-fail .ezdp-gv-card { animation: ezdp-shake .3s ease; }
.ezdp-gv-fail .ezdp-gv-icon { background: rgba(214, 54, 56, .16); color: #e5484d; }
.ezdp-gv-fail .ezdp-gv-ring, .ezdp-gv-fail .ezdp-gv-bar { display: none; }
@media (prefers-reduced-motion: reduce) {
	.ezdp-gv, .ezdp-gv-card, .ezdp-gv-ring, .ezdp-gv-bar i { animation: none !important; }
}
