/**
 * WP Gen AI - Rao's single recipe styles.
 *
 * Loaded on single recipe pages only (see enqueue_styles() in
 * class-wp-gen-ai-public-raos-helper.php). Styles the plugin's AI box,
 * its popups and the AI generated recipe rendered by
 * js/wp-gen-ai-raos-single-recipe.js.
 *
 * @package RaosUS
 */

.loader-spn {
	background: url("../../../../plugins/wp-gen-ai/public/img/preloader.gif");
	background-repeat: no-repeat;
	background-position: right;
	background-size: 15px;
	margin: 0px;
}

.new-ai-ing {
	background: url("../../../../plugins/wp-gen-ai/public/img/newImg.gif");
	background-repeat: no-repeat;
	background-position: right;
	background-size: 50px;
	padding-right: 50px !important;
	font-weight: bold;
}

.loader-img {
	background: url("../../../../plugins/wp-gen-ai/public/img/loader.gif");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 30px;
	margin: 0px;
	width: 10%;
	display: none;
}

.loader-img-ques {
	background: url("../../../../plugins/wp-gen-ai/public/img/loader.gif");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 15px;
	margin: 0px;
}

.search-icon-res {
	background: url("../../../../plugins/wp-gen-ai/public/img/search.png");
	background-repeat: no-repeat;
	background-position-y: 4px;
	background-position-x: 25px;
	background-size: 25px;
}

.promptfield:focus,
.close-button:focus,
.accept-button:focus,
.create:focus,
.decline-button:focus {
	outline: none !important;
}

.mainai {
	margin-top: 3.5%;
	margin-bottom: 2%;
	background-color: white;
	border-radius: 16px;
}

.receipetop {
	display: flex;
	flex-direction: column;
	text-align: justify;
}

.recipeTitle2 {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	padding: 3% 3%;
}

.headerprodsecthead11 {
	display: flex;
	flex: 0 0 70%;
	justify-content: flex-start;
	gap: 7%;
	flex-direction: row;
}

.aititle {
	color: black;
	text-decoration: underline;
	text-decoration-color: var(--raosRed);
	text-decoration-thickness: 3px;
	text-underline-offset: 10px;
	font-size: 35px;
	font-weight: bold;
	font-family: var(--dinCondensedDemiBold);
	margin-top: 0px;
	float: left;
}

.aigendiv {
	background: url("../img/red-star.png");
	background-repeat: no-repeat;
	background-position-x: 5px;
	background-position-y: 0px !important;
	background-size: 15px;
	display: flex;
	flex-direction: row;
	margin: 0;
}

.aitext {
	color: #3c3c3c;
	font-size: 14px;
	align-items: center;
	padding-left: 20px;
	margin-top: 27px;
	float: left;
	margin-left: 35px;
	font-family: var(--utopiaStdRegular);
}

.aigenedesc {
	padding: 0% 3% 1% 3%;
	font-size: 14px;
	font-family: var(--utopiaStdRegular);
	margin-top: 0px;
}

.disclaimertext {
	padding: 0% 3% 3% 3%;
	font-size: 16px;
	color: var(--raosRed);
	font-style: italic;
	text-decoration: underline;
	cursor: pointer;
	text-underline-offset: 2px;
	text-decoration-color: var(--raosRed);
	font-family: var(--utopiaStdItalic);
}

.button-container {
	display: flex;
	margin-bottom: 15px;
	align-items: center;
	margin: 20px auto;
}

.accept-button,
.decline-button {
	padding: 5px 10px;
	border: none;
	cursor: pointer;
	text-transform: uppercase;
	font-family: var(--utopiaStdRegular);
}

.accept-button {
	border: 2px solid var(--raosRed);
	background-color: white;
	color: var(--raosRed);
	padding: 5px 10px;
	font-size: 10px;
	font-weight: bold;
	border-radius: 1px;
	text-transform: uppercase;
	font-family: var(--utopiaStdRegular);
	width: 100px;
	margin-left: 30px;
}

.decline-button {
	border: 2px solid var(--raosRed);
	background-color: white;
	color: var(--raosRed);
	padding: 5px 10px;
	font-size: 10px;
	font-weight: bold;
	border-radius: 1px;
	width: 100px;
}

.accept-button:hover {
	background-color: var(--raosRed);
	color: white;
}

.decline-button:hover {
	background-color: var(--raosRed);
	color: white;
}

.yours {
	background-color: white;
	box-shadow: 0 0px 25px 0 rgba(130, 15, 15, 1);
}

.yourstitle {
	display: flex;
	flex-direction: row;
}

.topquad {
	background-color: var(--raosRed);
	margin-left: 5%;
	width: 50px;
	margin-bottom: -2px;
	clip-path: polygon(0% 80%, 100% 40%, 100% 100%, 0% 100%);
}

.topquad .topquad-text {
	color: var(--raosRed);
}

.blueimg {
	background: url("../../../../plugins/wp-gen-ai/public/img/ai-box-star.gif");
	background-repeat: no-repeat;
	background-position-y: 5px;
	background-size: 30px;
	clip-path: polygon(0% 0%, 100% 1%, 100% 85%, 50% 100%, 0% 85%);
	gap: 5px;
	display: flex;
	flex-direction: row;
	background-color: var(--raosRed);
	margin-left: 5%;
	height: max-content;
	padding: 0px 0px 20px 25px;
	width: 50px;
}

.gifstar {
	width: 30px;
	height: 30px;
}

.aitexttitle {
	font-size: 12px;
	color: white;
	margin: 5px 5px 5px 6px;
	text-align: right;
	font-family: var(--utopiaStdRegular);
}

.titletext {
	margin-left: 15px;
	padding-top: 15px;
	font-family: var(--dinCondensedDemiBold);
}

.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 2222;
}

.popup-content {
	background: white;
	border-radius: 5px;
	position: relative;
	width: 60%;
	display: flex;
	flex-direction: column;
}

.close-button {
	background: none;
	border: none;
	padding: 1% 2% 0px 0px;
	cursor: pointer;
	font-size: 15px;
	align-self: flex-end;
}

.cancelicon {
	width: 10px;
	height: 10px;
}

.warning-text {
	padding: 0px 30px 20px 30px;
	color: red;
	font-weight: bold;
	text-align: left;
	font-size: 20px;
	font-family: var(--dinCondensedDemiBold);
}

.disctext {
	font-size: 12px;
	padding: 0px 30px;
	text-align: left;
	font-family: var(--utopiaStdRegular);
}

.promptmaincont {
	margin: 5% 0 3% 0;
	padding: 5% 0px 3% 0px;
	background-color: white;
}

.promptfieldrow {
	padding: 5% 5% 5% 5%;
	text-align: center;
}

.user-limit {
	text-align: center;
	color: red;
	font-size: 12px;
	font-family: var(--utopiaStdRegular);
	margin-top: 10px;
}

.promptfieldcol {
	padding: 3% 0%;
	background-color: white;
	height: 60px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: row;
	border-radius: 5px;
	border: 1px solid #dddddd;
	position: relative;
}

/* Was a global "p" reset in the plugin CSS; scoped to the AI box and AI recipe. */
#main-ai-box-html p,
.raos-ai-generated-box p,
.popup-overlay p {
	margin-bottom: 0 !important;
}

.promptfield {
	flex: 0 0 60%;
	font-size: 12px;
	font-weight: 500;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	margin-left: 10px;
	outline: none;
	border: none;
	resize: none;
	overflow: hidden;
	padding: 15px 0px !important;
	height: 45px !important;
	font-family: var(--utopiaStdRegular);
	border: none !important;
}

.aiimage {
	padding-bottom: 2%;
	margin-left: 2%;
	height: 35px;
	width: 30px;
}

.create {
	background: url("../img/red-star.png");
	background-repeat: no-repeat;
	background-position: 10px;
	background-size: 15px;
	flex: 0 0 30%;
	position: absolute;
	border: 2px solid var(--raosRed);
	background-color: white;
	color: var(--raosRed);
	padding: 10px 10px 10px 30px;
	font-size: 12px;
	font-weight: bold;
	border-radius: 0px;
	z-index: 10;
	right: 10px;
	top: 18%;
	font-family: var(--utopiaStdRegular);
}

.create:hover {
	color: white;
	background-color: var(--raosRed);
	background-image: url("../../../../plugins/wp-gen-ai/public/img/white-star.png");
	background-repeat: no-repeat;
	background-position: 10px;
	background-size: 15px;
	cursor: pointer;
}

.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999;
}

.spinnermain {
	display: flex;
	flex-direction: row;
	justify-content: center;
}

.spinner {
	width: 50px;
	height: 50px;
	align-items: center;
	margin-bottom: 5%;
	margin-top: 5%;
}

.create-btn-err {
	border: 2px solid red;
	box-shadow: 0 4px 8px 0 rgb(224 14 14 / 20%);
}

.ai-prompt-op {
	opacity: 0.3;
}

.ai-prompt-op .create {
	cursor: default;
}

.create-btn-err .create:hover {
	border: 2px solid var(--raosRed);
	background-color: white;
	color: var(--raosRed);
	background: url("../img/red-star.png");
	background-repeat: no-repeat;
	background-position: 10px;
	background-size: 15px;
	cursor: default;
}

#ai-popup-box .loader-img {
	height: 50px;
	background-size: 50px;
}

.ai-questions {
	border: 1px solid #dddddd;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
	border-radius: 5px;
	position: absolute;
	background-color: #f5f5f5;
	z-index: 111;
	width: 300px;
	margin-top: 10px;
}

.ai-questions ul {
	list-style: none;
	padding: 0px !important;
	margin: 0px !important;
	font-size: 12px;
	font-family: var(--utopiaStdRegular);
	max-height: 200px;
	overflow-y: auto;
	text-align: left;
}

.ai-questions ul li::before {
	display: none;
}

.ai-questions ul li {
	padding: 5px 10px;
	margin: 0px !important;
	border-bottom: 1px solid #c4c4c4;
}

.ai-questions ul li:hover {
	cursor: pointer;
	background-color: #ddd;
}

.ai-questions ul li:last-child {
	border-bottom: none;
}

#ai-error-popup-box .disctext {
	font-size: 15px;
	color: red;
	text-align: center !important;
}

.aibox-margin-top {
	margin-top: 180px !important;
}

.user_limit_msg {
	color: #584e4e;
	font-weight: 600;
	font-size: 14px;
	font-family: var(--utopiaStdRegular);
}

.user-limit center {
	display: none;
}

.user-limit .user_limit_msg {
	color: red;
	font-size: 8px;
	font-weight: normal;
}

.user-limit .user_limit_msg a {
	color: red;
}

#main-ai-box-html {
	margin-bottom: 30px;
}

/* Rounded corners to match the "Made With" box. */
#main-ai-box-html,
#main-ai-box-html #sub-main-ai-box,
#main-ai-box-html #main-ai-box {
	border-radius: 16px;
}

/* Round the Create button to match the input field. */
#main-ai-box-html #main-ai-box button {
	border-radius: 5px;
}

.home_button button {
	background-color: var(--raosRed);
	color: #fff;
	border-radius: 6.25rem;
	font-size: 1rem;
	padding: 10px 20px;
	font-weight: bold;
	border: none;
	font-family: var(--utopiaStdRegular);
}

.home_button a {
	text-decoration: none !important;
}

.home_button button:hover {
	cursor: pointer;
}

.arrow-back {
	border: solid #fff;
	border-width: 0 3px 3px 0;
	display: inline-block;
	padding: 4px;
	margin: 0px 5px;
}

.left-back {
	transform: rotate(135deg);
	-webkit-transform: rotate(135deg);
}

@media (max-width: 912px) {
	.ai-questions {
		width: 83%;
	}

	.popup-content {
		width: 90% !important;
	}

	.aibox-margin-top {
		margin-top: 90px !important;
	}
}

@media (max-width: 540px) {
	.aititle {
		font-size: 20px;
		text-decoration-thickness: 3px;
		font-family: var(--dinCondensedDemiBold);
	}

	.headerprodsecthead11 {
		flex: 0 0 60%;
	}

	.aigendiv {
		background-position-y: 17px;
	}

	.aitext {
		margin-top: 10px;
		font-family: var(--utopiaStdRegular);
		margin-left: 0px;
	}

	.recipeTitle2 {
		padding: 3% 5%;
	}

	.aigenedesc {
		padding: 3%;
	}

	.disclaimertext {
		padding: 0% 3% 3% 5%;
	}

	.home_button button {
		margin-top: 10px;
		padding: 10px;
		font-size: 10px;
	}

	.arrow-back {
		border: solid #fff;
		border-width: 0 2px 2px 0;
		display: inline-block;
		padding: 2px;
		margin: 0px 2px;
	}
}

@media only screen and (min-width: 431px) and (max-width: 1023px) {
	.promptfieldcol {
		padding: 1% 0%;
	}
}

@media all and (max-width: 670px) and (orientation: landscape) {
	.aititle {
		font-size: 25px;
	}

	.aitext {
		margin-top: 15px;
	}

	.aigendiv {
		background-position-y: 20px;
	}
}

#ai-error-popup-box #error-headline {
	text-align: center;
	font-size: 24px !important;
	color: red;
	margin: 15px !important;
	font-family: var(--dinCondensedDemiBold);
}
