/*-----------------
Backend related CSS
-----------------*/

/* Reset and base styles */
*,
p,
h2,
h5,
h4,
h3 {
	margin: 0px;
	padding: 0px;
}

/* Flex utilities */
.flex-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.flex-col {
	display: flex;
	flex-direction: column;
	row-gap: 7px;
}
.items-start {
	align-items: start;
}

/* Logo and badge */
.reqme-logo {
	background-color: #edff8b;
	padding: 19px 7px 22px 16px;
	border-radius: 20px;
}
.badge {
	border-radius: 4px;
	font-size: 16px;
	padding: 8px 64px;
}
#active {
	color: black;
	background-color: #edff8b;
}
#unactive {
	color: #dbc0c0;
	background-color: #383c3e;
}

/* Typography */
.heading-lg {
	font-size: 20px;
	font-weight: 400;
}
.heading-xl {
	font-size: 24px;
	font-weight: 400;
}
.font-bold {
	font-weight: 700;
}

/* Layout and spacing */
#overview-header {
	margin-bottom: 24px;
}
.mb-6 {
	margin-bottom: 24px;
}
.w-full {
	width: 100%;
}

/* Overview and section styles */
.reqme_overview .description {
	border-radius: 20px;
	padding: 9px 87px 12px 23px;
	background-color: #edff8b;
	color: black;
}
.overview-sections {
	list-style: none;
	margin-top: 60px;
	row-gap: 44px;
}
.overview-sections > li {
	background-color: white;
	border-top-right-radius: 10px;
	border-top-left-radius: 10px;
	border: 1px solid #bbbbbb;
}
.overview-sections > li .section .header * {
	margin-bottom: 4px;
}
.overview-sections > li .section .header {
	padding: 22px;
}
.overview-sections > li .section .body {
	padding: 30px;
}

/* Accordion and utility classes */
.section-active {
	background-color: #f3f4f6;
}
.cursor-pointer {
	cursor: pointer;
}
.relative {
	position: relative;
}
.border-gray {
	border: 1px solid #bbbbbb;
}
.padding-body {
	padding: 30px;
	list-style: disc;
}
.border-b-0 {
	border-bottom: 0px;
}

.accordion-body a {
	text-decoration: none;
	border-bottom: 1px solid #edff8b;
	color: black;
}

/* SVG and icon styles */
svg#arrows {
	position: absolute;
	top: 20%;
	right: 4%;
}

/* Benefit point styles */
.benefit-point-container {
	padding: 0.5rem;
	background-color: #f3f4f6;
	text-align: start;
	border-radius: 1.5rem;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 20px;
}
@media (min-width: 1024px) {
	.benefit-point-container {
	border-radius: 9999px;
	flex-direction: row;
	}
}
.benefit-point-title span {
	border-bottom: 4px solid #e5f9a6;
}
.benefit-point-title {
	width: 100%;
	display: flex;
	align-items: center;
	border-radius: 9999px;
	padding: 0.5rem 1rem;
	font-size: 1rem;
	font-weight: 600;
}
@media (min-width: 1024px) {
	.benefit-point-title {
	font-size: 1.5rem;
	}
}
.benefit-point-content {
	width: 100%;
	border-radius: 9999px;
	padding: 0.5rem 1rem;
	font-weight: 300;
	font-size: 1rem;
}

/* Settings form and input styles */
.grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr); /* Default to 1 column */
	gap: 1rem; /* Adjust spacing between grid items */
}

@media (min-width: 640px) {
	/* sm */
	.grid {
	grid-template-columns: repeat(2, 1fr); /* 2 columns on small screens */
	}
}

@media (min-width: 1024px) {
	/* lg */
	.grid {
	grid-template-columns: repeat(3, 1fr); /* 3 columns on medium screens */
	}
}

@media (min-width: 1024px) {
	/* xl */
	.grid {
	grid-template-columns: repeat(4, 1fr); /* 4 columns on large screens */
	}
}

#password_input {
	display: flex;
	align-items: center;
	border-radius: 6px;
	justify-content: center;
	border: 1px solid #bdbdbd;
}

#password_input:focus-within {
	border: 1px solid #2271b1;
}

#password_input input {
	width: 100%;
	height: auto;
	padding: 8px 16px;
	outline: none !important;
	border: none !important;
	box-shadow: none !important;
}

#password_input input:focus {
	border: none !important;
}

#password_input label {
	font-size: 8px;
	position: absolute;
	top: -8px;
	left: 11px;
	background: white;
}

#password_input #trigger svg {
	width: 20px;
	height: 20px;
}
#password_input #trigger {
	padding-right: 8px;
	padding-left: 8px;
	height: 20px;
	cursor: pointer;
}

.input_error {
	color: red;
	font-size: 12px;
	margin: 0;
	margin-top: -2px;
}

*:disabled {
	cursor: not-allowed;
}
.settings-form p.submit {
	width: fit-content;
	float: inline-end;
	margin-right: 20px;
}
.settings-tab {
	margin-bottom: 20px;
}
.settings-tab .accordion-title {
	padding: 30px 20px;
}
.settings-tab .accordion-body {
	list-style: none;
}
.settings-tab .accordion-body li > * {
	width: 100%;
}
.settings-tab .accordion-body li input {
	padding: 4px 8px;
}
.settings-tab .accordion-body li input[type="checkbox"] {
	width: fit-content;
}
.settings-tab svg#arrows {
	top: 40%;
	right: 2%;
}

/* Button and widget style lists */
.button-styles {
	grid-template-columns: repeat(5, 1fr);
}
.widget-styles,
.button-styles {
	gap: 16px;
}
.widget-styles li,
.button-styles li {
	width: 100%;
}
.widget-styles li label,
.button-styles li label {
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.widget-styles li img,
.button-styles li img {
	max-width: 30vw;
}

/* Responsive adjustments */
@media (max-width: 1520px) {
	.button-styles {
	grid-template-columns: repeat(4, 1fr);
	}
}
@media (max-width: 1280px) {
	.button-styles {
	grid-template-columns: repeat(3, 1fr);
	}
	.widget-styles li img,
	.button-styles li img {
	max-width: 80vw;
	}
}

input[type="radio"] {
	width: 16px !important;
	height: 16px !important;
}

input[type="radio"]:checked::before {
	width: 8px !important;
	height: 8px !important;
	margin: 3px !important;
}

img.reqme-style-img {
	border: 5px solid transparent; /* WordPress blue, or any color you like */
}
/* The image is a sibling of the input, so we need to adjust the markup or use JS.
		If you wrap the image and input in a container, you can use :has() in modern browsers: */
label:has(input[type="radio"]:checked) img.reqme-style-img {
	border: 5px solid #e5ff58; /* WordPress blue, or any color you like */
	box-shadow: 0 0 0 4px #cbe7fa;
}

.version-badge {
	font-size: 18px;
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	position: absolute;
	top: 0px;
	left: 50%;
	right: 50%;
	padding: 8px 25px;
	border-radius: 0 0 6px 6px;
	transform: translateX(-50%);
	background: #e5ff58;
}

.widget-styles {
	grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1080px) {
	#overview-header {
	position: relative;
	}

	.reqme_overview .flex-between {
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 16px;
	}

	.reqme_overview .badge {
	align-self: flex-end;
	margin-top: 8px;
	}

	.footer-grid {
	grid-template-columns: repeat(2, 1fr) !important;
	}

	.footer-grid h4 {
	grid-column-start: 1;
	grid-column-end: 3;
	}
}

@media (max-width: 768px) {
	.version-badge {
	font-size: 14px;
	padding: 4px 13px;
	}

	.button-styles {
	grid-template-columns: repeat(2, 1fr);
	}
	.widget-styles {
	grid-template-columns: repeat(1, 1fr);
	}

	.benefit-point-content {
	width: 95%;
	}

	.description {
	padding-right: 25px !important;
	}

	.reqme_overview .flex-col {
	row-gap: 8px !important;
	}

	.benefit-point-title,
	.benefit-point-content {
	font-size: 0.95rem !important;
	padding: 0.5rem 0.5rem !important;
	}

	.reqme-logo img {
	max-width: 120px !important;
	height: auto !important;
	}

	#accordion-questions {
	flex-wrap: wrap;
	gap: 0px !important;
	}

	#overview-header.flex-between {
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 16px;
	}

	#overview-header .flex-col {
	row-gap: 8px !important;
	}

	.badge {
	align-self: flex-end;
	font-size: 14px !important;
	padding: 6px 18px !important;
	}

	.overview-sections > li {
	margin-bottom: 12px;
	}

	.heading-xl {
	font-size: 1.1rem !important;
	}

	.heading-lg {
	font-size: 1rem !important;
	}

	.w-full {
	width: 100% !important;
	}

	form#apiKey_form {
	width: 100% !important;
	}

	form#apiKey_form button {
	font-size: 1rem !important;
	}

	#form-design {
	flex-wrap: wrap;
	}

	#overview-header .badge {
	position: absolute;
	top: -8px;
	}
}

@media (max-width: 480px) {
	.heading-xl {
	font-size: 1rem !important;
	}

	.benefit-point-title,
	.benefit-point-content {
	font-size: 0.85rem !important;
	}

	.badge {
	font-size: 12px !important;
	padding: 6px 12px !important;
	}

	.heading-lg {
	font-size: 0.95rem !important;
	}

	form#apiKey_form button {
	font-size: 0.95rem !important;
	}
}
