:root {
	--uap-automatorplugin-section-padding: 80px;
}

/* 
 ======================================
 Main section
 ======================================
*/
.template-library-heading {
	text-align: center;
	padding-bottom: calc(var(--uap-automatorplugin-section-padding) / 2);
}

.template-library-heading h2 {
	font-size: 35px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 10px;
}

.template-library-heading p {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;

	padding-left: 10%;
	padding-right: 10%;
}

a.template-library-heading-button {
	background-color: #6bc45a;
	padding: 15px 30px;

	border-radius: 150px;
	display: inline-block;
	font-size: 18px;
	font-weight: 700;
	line-height: 23px;
}

a.template-library-heading-button:hover {
	background-color: #579f4a;
}

/* 
 ======================================
 Section: #recipe-template
 ======================================
*/

#recipe-template {
	/* Allow the container to adjust its height dynamically without a scrollbar */
	--uap-template-body-overflow-y: visible;
	--uap-template-min-height: none; /* Remove any minimum height constraints */
	--uap-template-max-height: none; /* Remove any maximum height constraints */

	/* Hide the sidebar header completely */
	--uap-template-sidebar-header-display: none;

	/* Eliminate the sidebar divider to prevent overlapping borders */
	--uap-template-sidebar-divider-width: 0; /* Set divider width to zero */
	--uap-template-sidebar-divider-border-left: none; /* Remove left border of the divider */

	/* Since we are not adding a border and are enclosing this inside a box, we can remove the left padding. Apply the same adjustment to the header and the action sections, as these sections define the top and bottom padding of the body section. */
	--uap-template-body-padding-left: 0; /* No padding on the left side of the body */
	--uap-template-header-padding-top: 0; /* No padding at the top of the header */
	--uap-template-actions-padding-bottom: 0; /* No padding at the bottom of the actions section */

	/* Change the max width of the sidebar */
	--uap-template-sidebar-min-width: 250px;
	--uap-template-sidebar-max-width: 350px;

	/* Apply consistent padding around the entire section */
	padding: calc(var(--uap-automatorplugin-section-padding) / 2) 0px var(--uap-automatorplugin-section-padding) 0px;
}

/* 
 ======================================
 Section: #similar-recipes
 ======================================
*/

#similar-recipes {
	background-color: #f4f5fe;

	/* Apply consistent padding around the entire section */
	padding: var(--uap-automatorplugin-section-padding) 0px;

	/* Position the section relative to the parent container, so the curve added to the pseudo-element renders correctly */
	position: relative;
}

#similar-recipes::before {
	/* Hide the pseudo-element by default. Change this to block if you want to add the curve */
	display: none;

	/* Pseudo-element to add curve at the top of the section */
	content: ''; /* Ensures the curve is generated */
	
	/* Maintain aspect ratio of the pseudo-element */
	width: 100%;
	aspect-ratio: 1000 / 47.52; /* Matches the original SVG viewBox ratio */

	/* Background styling */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 47.52'%3E%3Cpath fill='%23ffffff' d='M0,47.52C157.12,17.17,325.24.73,500,.73s342.88,16.44,500,46.79h0V0H0Z'/%3E%3C/svg%3E");

	/* Inline SVG encoded as a URL-encoded string */
	background-repeat: no-repeat;
	background-position: top center; 
	background-size: cover;

	/* Positioning */
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}

/* 
 ======================================
 Section: #call-to-action
 ======================================
*/

#call-to-action {
	/* Background gradient */
	background: #0088ff;
	background: linear-gradient(225.32deg, #0088ff, #0071ff);
	text-align: center;

	/* Apply consistent padding around the entire section */
	padding: var(--uap-automatorplugin-section-padding) 0px;
}

#call-to-action .template-library-heading {
	padding-bottom: 0;
}

#call-to-action .template-library-heading h2,
#call-to-action .template-library-heading p {
	color: #fff;
}

@media (width > 1024px) {
	#call-to-action .template-library-heading p {
		padding-left: 20%;
		padding-right: 20%;
	}
}
