@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

.second-part {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
}

body {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

header {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: red;
	padding: 10px;

	h1 {
		color: white;
		font-size: 24px;
	}

	img {
		width: 25px;
		height: 25px;
		font-size: 14px;
	}
}

section.container {
	display: flex;
	width: 100%;
	max-width: 620px;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	padding: 20px;
	gap: 10px;

	h1 {
		line-height: 1.2;
		text-align: start;
		font-size: 24px;

		span {
			color: red;
		}
	}

	h2 {
		font-weight: 400;
		color: black;
		font-size: 14px;
		text-align: start;
	}

	img {
		max-width: 500px;
		width: 100%;
	}
}

.video-expire-notice {
	width: 100%;
	max-width: 600px;
	margin: 28px auto 64px;
	padding: 0 10px;
	color: #111;
	font-size: clamp(26px, 5vw, 42px);
	font-weight: 800;
	line-height: 1.16;
	text-align: center;
}

.video-expire-notice span {
	color: red;
	white-space: nowrap;
}

.none {
	display: none !important;
}

/* NOTE: These legacy form styles are for the "second-part" template form only.
   Exclude embedded landing form (.order_form), otherwise it breaks layout/colors. */
.second-part form:not(.order_form) {
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	height: auto;
	gap: 20px;
	padding: 20px;
	max-width: 500px;
	background-color: beige;
	border: 2px solid red;
	border-radius: 20px;

	h1 {
		text-align: center;
		font-weight: 600;
		font-size: 22px;
	}

	h2 {
		text-align: center !important;
		font-weight: bold !important;
		font-size: 22px !important;
	}

	small {
		margin-top: -10px;
		margin-bottom: -10px;
		text-align: center;
		font-size: 16px;
		font-weight: 500;
	}

	h3 {
		color: red;
		font-weight: 400;
		font-size: 16px !important;

		span {
			font-weight: 900;
		}
	}

	h6 {
		border-radius: 10px;
		color: #00af6b;
		font-weight: bold;
		font-size: 24px;

		span {
			font-weight: lighter;
			color: red;
			text-decoration: line-through;
		}
	}

	p {
		text-align: center;
	}

	div {
		display: flex;
		justify-content: flex-start;
		align-items: flex-start;
		flex-direction: column;
		width: 100%;
		gap: 10px;

		label {
			font-weight: 600;
			font-size: 16px;
		}

		input {
			outline: none;
			border: 2px solid;
			display: flex;
			justify-content: center;
			align-items: center;
			padding: 20px;
			border-radius: 10px;
			width: 100%;
		}
	}

	button {
		display: flex;
		justify-content: center;
		align-items: center;
		text-align: center;
		padding: 20px;
		width: 100%;
		border-radius: 10px;
		color: white;
		font-size: 20px;
		font-weight: 600;
		background-color: red;
		outline: none;
		border: none;
		cursor: pointer;
		margin-top: 10px;
	}
}

section.comments-container {
	margin-top: -40px !important;
	max-width: 600px;
	margin: 0 auto;
	font-family: Arial, sans-serif;

	.comment {
		display: flex;
		padding: 10px;
		gap: 10px;
		border-bottom: 1px solid #ccc;

		.avatar {
			width: 40px;
			height: 40px;

			border-radius: 50%;
			margin-right: 10px;

			img {
				border-radius: 50%;
				border: 3px solid #fff;
				box-shadow: 0 0 0 1px #d8d8d8;
				object-fit: cover;
				height: 50px;
				width: 50px;
			}
		}
	}

	.comment-content {
		flex: 1;
		min-width: 0;

		div.elements {
			display: flex;
			justify-content: flex-start;
			align-items: center;
			flex-wrap: wrap;
			gap: 10px;
		}

		h4 {
			font-size: 16px;
			color: #3b5998;
		}

		p {
			font-size: 14px;
			line-height: 1.35;
			overflow-wrap: anywhere;
		}

		.comment-photo {
			display: block;
			width: min(100%, 360px);
			height: auto;
			margin: 10px auto 6px;
			border-radius: 14px;
			pointer-events: none;
			user-select: none;
		}

		.comment-photo--portrait {
			width: min(100%, 240px);
		}

		.date {
			font-size: 12px;
			color: #999;
		}

		.likes {
			display: flex;
			justify-content: center;
			align-items: center;
			gap: 5px;
			font-size: 12px;
			color: #3b5998;

			img {
				width: 12px;
				height: 12px;
			}
		}
	}

	h6 {
		font-size: 16px;
		padding: 10px;
		text-align: center;
	}
}

.watch-exercise-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(92vw, 520px);
	min-height: 64px;
	margin: 14px auto 32px;
	padding: 18px 28px;
	border: 0;
	border-radius: 999px;
	background: #e60000;
	color: #fff;
	font-size: clamp(20px, 5vw, 28px);
	font-weight: 800;
	line-height: 1.1;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(230, 0, 0, 0.28);
}

.watch-exercise-button:hover {
	background: #d00000;
}

.watch-exercise-button:active {
	transform: translateY(1px);
	background: #bf0000;
}

/* Product website button styles */
.product-website-button {
	display: none !important;
	max-width: 600px;
	width: 100%;
	margin: 20px auto;
	padding: 15px 30px;
	font-size: 18px;
	font-weight: 600;
	color: white;
	background-color: #ff6100;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	text-align: center;
	transition: background-color 0.3s ease;
}

.product-website-button:hover {
	background-color: #e55500;
}

.product-website-button:active {
	background-color: #cc4a00;
}

.product-website-button.show {
	display: block !important;
}

/* Embedded order form (from back/landing.php) */
.section-form {
	width: 100%;
	justify-content: center;
	padding: 20px 10px;
}

.section-form:not(.none) {
	display: flex;
}

/* Layout wrapper (product image + card) */
.section-form .landing-form-embed{
	width: 100%;
	max-width: 360px;
	margin: 0 auto;
}

.section-form .landing-form-embed__product{
	width: 100%;
	max-width: 315px;
	margin: 0 auto 12px;
	display: block;
	height: auto;
}

/* Card styles (scoped copy of back/content/css/styles.min.css form part) */
.section-form .main-banner-form{
	position: relative;
	width: 100%;
	max-width: 290px;
	margin: 10px auto;
	background: rgba(0, 125, 198, .7);
	padding: 25px;
	border-radius: 10px;
	min-height: 455px;
	height: auto;
	font-family: Roboto, Arial, sans-serif;
	box-sizing: border-box;
}

.section-form .main-banner-form label{
	width: 100%;
	display: block;
}

.section-form .main-banner-form input{
	display: block;
	width: 240px;
	height: 36px;
	font-size: 16px;
	padding-left: 10px;
	margin: 12px auto;
	border-radius: 20px;
	border: 0;
	color: #000;
}

.section-form .main-banner-form select{
	color: #000;
	display: block;
	width: 240px;
	height: 36px;
	font-size: 16px;
	padding-left: 10px;
	margin: 10px auto;
	border-radius: 20px;
	border: 0;
	background: #fff;
}

.section-form .main-banner-form-title{
	color: #fff;
	font-size: 24px;
	text-align: center;
	font-weight: 400;
	line-height: 1;
	margin-bottom: 10px;
	display: flex;
	align-items: flex-start;
	z-index: 2;
	/* keep the "pink corner" and text inside the header area on any width */
	position: relative;
	min-height: 110px;
	justify-content: space-between;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}

.section-form .main-banner-form-title:after{
	content: '';
	width: 150px;
	height: 110px;
	background: #d133e4;
	position: absolute;
	display: block;
	z-index: 1;
	top: 0;
	right: 0;
	border-top-right-radius: 10px;
}

.section-form .corner-z{
	font-size: 23px;
	font-weight: 700;
	line-height: 1;
	background: transparent;
	border-radius: 5px;
	position: relative;
	z-index: 3;
	padding-top: 15px;
	padding-left: 30px;
	padding-right: 10px;
	max-width: 100%;
	box-sizing: border-box;
	flex: 0 1 auto;
	min-width: 150px;
	text-align: left;
	overflow-wrap: anywhere;
}

.section-form .corner-z span{
	font-weight: 400;
	line-height: 1;
}

.section-form .left-z{
	padding-top: 8px;
	text-align: left;
	font-size: 28px;
	position: relative;
	z-index: 3;
	max-width: 100%;
	box-sizing: border-box;
	flex: 1 1 auto;
	min-width: 0; /* allow wrapping instead of pushing the right block */
}

@media (max-width: 420px){
	/* prevent header text from colliding at narrow widths */
	.section-form .corner-z{
		padding-left: 16px;
		font-size: 22px;
	}
}

.section-form .timer{
	background: #fff;
	border-radius: 7px;
	padding: 10px;
	width: 100%;
	box-sizing: border-box;
}

.section-form .count-block{
	text-align: center;
}

.section-form .count-block .countdown{
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 13px;
}

.section-form .count-block .countdown>div{
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #fff;
	border: 2px solid #007dc6;
	font-size: 24px;
	font-weight: 900;
	font-family: Roboto, Arial, sans-serif;
	padding-left: 5px;
	padding-right: 5px;
	margin-right: 0;
	color: #d133e4;
	min-width: 40px;
	line-height: 1;
}

.section-form .count-block .countdown>div:last-child{
	margin-right: 0;
}

.section-form .main-banner-price{
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	padding: 2px 0;
	flex-wrap: nowrap;
	white-space: nowrap;
}

.section-form .price_old{
	margin-right: 10px;
	font-size: 21px;
	font-weight: 900;
	text-decoration: line-through;
	white-space: nowrap;
}

.section-form .price_main{
	font-size: 21px;
	font-weight: 900;
	white-space: nowrap;
}

.section-form .main-form-button{
	background: url(../back/content/images/btn.png) no-repeat;
	background-position: center;
	background-size: 238px 41px;
	width: 238px;
	height: 41px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	font-size: 18px;
	font-weight: 900;
	color: #fff;
	margin: 5px auto 0;
	box-shadow: 0 0 29px -9px #7a26e2;
	transition: all ease .3s;
	border-radius: 20px;
	text-transform: uppercase;
	cursor: pointer;
	/* validation.js sets inline opacity=0.5 until input is filled; keep button vivid like the reference */
	opacity: 1 !important;
}

.section-form .main-form-button:hover{
	box-shadow: 0 0 25px 2px #7a26e2;
	transition: all ease .3s;
}

.section-form .b-note{
	font-size: 16px;
	margin: 10px 0 0;
	text-align: center;
	color: #fff;
}

/* Validation errors (override injected validation.js styles; keep compact and non-breaking) */
.section-form .main-banner-form{
	/* allow note + errors to fully show (no clipping) */
	overflow: visible;
}

.section-form .main-banner-form label{
	position: static;
}

.section-form div.container-element-input-error{
	/* Flow layout (no overlay) so user can keep typing */
	position: static !important;
	left: auto !important;
	transform: none !important;
	top: auto !important;
	width: 240px !important;
	max-width: 240px !important;
	margin: -6px auto 10px !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	z-index: auto !important;
}

.section-form p.element-input-error{
	margin: 0 !important;
	padding: 8px 10px !important;
	border-radius: 10px !important;
	background: rgba(255, 223, 224, 0.95) !important;
	color: #930000 !important;
	font-size: 16px !important;
	line-height: 1.15 !important;
	text-align: center !important;
}

.section-form p.element-input-error::after{
	display: none !important;
	content: none !important;
}

@media (max-width: 360px){
	.section-form .main-banner-form{
		max-width: 100%;
		padding: 18px;
	}
	.section-form .main-banner-form input,
	.section-form .main-banner-form select,
	.section-form .main-form-button{
		width: 100%;
	}
	.section-form .main-form-button{
		background-size: cover;
	}
}

@media (max-width: 767px){
	.section-form .landing-form-embed__product{
		max-width: 260px;
	}
}
