.corner-popup-box {
	position: fixed;
	max-width: 90%;
	z-index: 999999;
	opacity: 0;
	transition: all 0.4s ease;
}

.corner-popup-box.corner-popup-v-bottom {
	transform: translateY(120%);
}

.corner-popup-box.corner-popup-v-bottom.corner-popup-visible {
	transform: translateY(0);
	opacity: 1;
}

.corner-popup-box.corner-popup-v-top {
	transform: translateY(-120%);
}

.corner-popup-box.corner-popup-v-top.corner-popup-visible {
	transform: translateY(0);
	opacity: 1;
}

.corner-popup-box.corner-popup-v-center {
	transform: translateY(calc(-50% + 80px));
}

.corner-popup-box.corner-popup-v-center.corner-popup-visible {
	transform: translateY(-50%);
	opacity: 1;
}

.corner-popup-box img {
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.corner-popup-close {
	position: absolute;
	top: -10px;
	right: -10px;
	background: red;
	color: #fff;
	width: 26px;
	height: 26px;
	padding: 0;
	border: none;
	text-align: center;
	line-height: 26px;
	border-radius: 50%;
	font-size: 16px;
	cursor: pointer;
	z-index: 2;
	min-height: unset;
	max-height: unset;
	margin: 0;
}

.corner-popup-close:hover {
	background: #c00;
}

/* Start Popup — overlay khi vào trang */
body.corner-start-popup-open {
	overflow: hidden;
}

.corner-start-popup {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.35s ease;
}

.corner-start-popup[hidden] {
	display: none !important;
}

.corner-start-popup.corner-start-popup-visible {
	opacity: 1;
}

.corner-start-popup-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	cursor: pointer;
}

.corner-start-popup-content {
	position: relative;
	z-index: 1;
	max-width: min(90vw, 520px);
	max-height: 90vh;
	transform: scale(0.92);
	transition: transform 0.35s ease;
}

.corner-start-popup.corner-start-popup-visible .corner-start-popup-content {
	transform: scale(1);
}

.corner-start-popup-inner img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 10px;
}

.corner-start-popup-close {
	position: absolute;
	top: -12px;
	right: -12px;
	background: red;
	color: #fff;
	width: 30px;
	height: 30px;
	padding: 0;
	border: none;
	text-align: center;
	line-height: 30px;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	z-index: 2;
	min-height: unset;
	max-height: unset;
	margin: 0;
}

.corner-start-popup-close:hover {
	background: #c00;
}
