/*
 * chel studio Renewal Page - one screen layout
 * - Fits the main panel + X button inside one viewport
 * - Uses 100svh so mobile browser UI is accounted for
 */

html,
body.chel-renewal {
	margin: 0;
	min-height: 100%;
}

body.chel-renewal {
	background: #f8f1df;
	overflow-x: hidden;
}

.chel-renewal .renewal-page {
	--soft-yellow: #f8f1df;
	--blue-accent: #1a40ad;

	width: 100%;
	min-height: 100svh;
	height: 100svh;
	display: flex;
	flex-direction: column;
	overflow: hidden;

	background:
		linear-gradient(
			270deg,
			rgba(245, 93, 207, 0.308) 0%,
			rgba(186, 85, 198, 0.371) 15.385%,
			rgba(103, 74, 185, 0.458) 34.615%,
			rgba(26, 64, 173, 0.539) 67.308%
		),
		var(--soft-yellow);
}

.chel-renewal .renewal-hero {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	background: transparent;
	display: grid;
	place-items: center;
	padding: clamp(28px, 5vh, 56px) 24px 16px;
}

.chel-renewal .renewal-panel {
	position: relative;
	left: auto;
	top: auto;
	transform: none;

	width: min(794px, calc(100vw - 80px));
	height: min(410px, 58vh);
	min-height: 300px;

	border: 2px solid var(--soft-yellow);
	display: grid;
	place-items: center;
	z-index: 2;
}

.chel-renewal .renewal-copy {
	width: min(522px, calc(100% - 40px));
	text-align: center;
}

.chel-renewal .renewal-title {
	margin: 0;
	color: var(--blue-accent);
	font-family: "Comfortaa", sans-serif;
	font-size: clamp(30px, 2.7vw, 38px);
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0.08em;
}

.chel-renewal .renewal-title span {
	display: block;
}

.chel-renewal .renewal-message {
	margin: clamp(14px, 2.2vh, 22px) 0 0;
	color: var(--soft-yellow);
	font-family: "Inter", "Noto Sans JP", sans-serif;
	font-size: clamp(12px, 1vw, 14px);
	font-weight: 400;
	line-height: 1.95;
	letter-spacing: 0.02em;
}

.chel-renewal .renewal-wave {
	display: none;
}

.chel-renewal .renewal-bottom {
	flex: 0 0 auto;
	min-height: 0;
	background: transparent;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 10px 20px clamp(28px, 4vh, 48px);
}

.chel-renewal .renewal-x {
	width: min(348px, 72vw);
	height: 58px;
	display: grid;
	place-items: center;
	border: 2px solid var(--soft-yellow);
	border-radius: 999px;
	background: transparent;
	color: var(--soft-yellow);
	font-family: "Comfortaa", sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
	transition:
		transform .2s ease,
		background-color .2s ease,
		color .2s ease;
}

.chel-renewal .renewal-x:hover,
.chel-renewal .renewal-x:focus-visible {
	transform: translateY(-2px);
	background: rgba(248, 241, 223, 0.14);
	color: var(--soft-yellow);
	outline: none;
}

/* Short laptop screens */
@media (max-height: 760px) and (min-width: 701px) {
	.chel-renewal .renewal-hero {
		padding-top: 22px;
		padding-bottom: 10px;
	}

	.chel-renewal .renewal-panel {
		height: min(360px, 55vh);
		min-height: 260px;
	}

	.chel-renewal .renewal-title {
		font-size: 32px;
	}

	.chel-renewal .renewal-message {
		margin-top: 14px;
		font-size: 12px;
		line-height: 1.8;
	}

	.chel-renewal .renewal-bottom {
		padding-bottom: 22px;
	}

	.chel-renewal .renewal-x {
		height: 52px;
		font-size: 18px;
	}
}

@media (max-width: 700px) {
	.chel-renewal .renewal-page {
		min-height: 100svh;
		height: 100svh;
	}

	.chel-renewal .renewal-hero {
		padding: 24px 16px 12px;
	}

	.chel-renewal .renewal-panel {
		width: calc(100vw - 32px);
		height: min(360px, 58svh);
		min-height: 270px;
		padding: 22px 16px;
		border-width: 1.5px;
	}

	.chel-renewal .renewal-copy {
		width: 100%;
	}

	.chel-renewal .renewal-title {
		font-size: clamp(24px, 7vw, 30px);
		line-height: 1.4;
	}

	.chel-renewal .renewal-message {
		font-size: 12px;
		line-height: 1.85;
	}

	.chel-renewal .renewal-bottom {
		padding: 8px 16px max(22px, env(safe-area-inset-bottom));
	}

	.chel-renewal .renewal-x {
		width: min(320px, 78vw);
		height: 54px;
		border-width: 1.5px;
		font-size: 18px;
	}
}

/* Very short mobile screens */
@media (max-width: 700px) and (max-height: 680px) {
	.chel-renewal .renewal-panel {
		height: 52svh;
		min-height: 245px;
	}

	.chel-renewal .renewal-title {
		font-size: 22px;
	}

	.chel-renewal .renewal-message {
		font-size: 11px;
		line-height: 1.7;
		margin-top: 10px;
	}

	.chel-renewal .renewal-x {
		height: 48px;
		font-size: 16px;
	}
}
