/* ==========================================================
   Chutio
   Restaurant Community Edit
========================================================== */


/* ==========================================================
   Base
========================================================== */

.chutio-community-edit {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 0 40px;

	color: #263238;
	box-sizing: border-box;
}

.chutio-community-edit *,
.chutio-community-edit *::before,
.chutio-community-edit *::after {
	box-sizing: border-box;
}


/* ==========================================================
   Header
========================================================== */

.chutio-community-edit-header {
	display: flex;
	align-items: center;
	gap: 18px;

	margin-bottom: 18px;
}

.chutio-community-edit-number {
	display: flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 46px;

	width: 46px;
	height: 46px;

	border-radius: 50%;

	background: #fbeae5;
	color: #e57a5e;

	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.chutio-community-edit-header h1 {
	margin: 0;

	color: #24313a;

	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
}

.chutio-community-edit-header p {
	margin: 5px 0 0;

	color: #7b858a;

	font-size: 14px;
	line-height: 1.5;
}


/* ==========================================================
   Restaurant
========================================================== */

.chutio-community-edit-restaurant {
	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 20px;

	margin-bottom: 18px;
	padding: 16px 18px;

	border: 1px solid #e5e9e7;
	border-radius: 12px;

	background: #fafcfb;
}

.chutio-community-edit-restaurant span {
	color: #7b858a;

	font-size: 12px;
	font-weight: 600;
}

.chutio-community-edit-restaurant strong {
	color: #34424a;

	font-size: 15px;
	font-weight: 700;
}


/* ==========================================================
   Notice
========================================================== */

.chutio-community-edit-notice {
	margin-bottom: 24px;
	padding: 18px 20px;

	border: 1px solid #e8e0dc;
	border-radius: 12px;

	background: #fffaf7;
}

.chutio-community-edit-notice strong {
	display: block;

	margin-bottom: 8px;

	color: #34424a;

	font-size: 14px;
	font-weight: 700;
}

.chutio-community-edit-notice p {
	margin: 5px 0;

	color: #6f797d;

	font-size: 13px;
	line-height: 1.6;
}


/* ==========================================================
   Sections
========================================================== */

.chutio-community-edit-section {
	margin-bottom: 18px;
	padding: 28px;

	border: 1px solid #e4e8e6;
	border-radius: 16px;

	background: #ffffff;
}

.chutio-community-edit-section-heading {
	display: flex;
	align-items: center;

	gap: 14px;

	margin-bottom: 25px;
}

.chutio-community-edit-section-heading > span {
	display: flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 40px;

	width: 40px;
	height: 40px;

	border-radius: 50%;

	background: #f1f3f4;
	color: #5d6f63;

	font-size: 12px;
	font-weight: 700;
}

.chutio-community-edit-section-heading h2 {
	margin: 0;

	color: #24313a;

	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.chutio-community-edit-section-heading p {
	margin: 4px 0 0;

	color: #7b858a;

	font-size: 13px;
	line-height: 1.5;
}


/* ==========================================================
   ACF
========================================================== */

.chutio-community-edit-form .acf-fields {
	padding: 0;
	border: 0;
}

.chutio-community-edit-form .acf-field {
	padding: 0;
	margin: 0 0 20px;

	border: 0;
}

.chutio-community-edit-form .acf-field:last-child {
	margin-bottom: 0;
}

.chutio-community-edit-form .acf-label {
	margin-bottom: 7px;
}

.chutio-community-edit-form .acf-label label {
	color: #34424a;

	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.chutio-community-edit-form .acf-input input[type="text"],
.chutio-community-edit-form .acf-input input[type="email"],
.chutio-community-edit-form .acf-input input[type="tel"],
.chutio-community-edit-form .acf-input input[type="url"],
.chutio-community-edit-form .acf-input input[type="number"],
.chutio-community-edit-form .acf-input textarea,
.chutio-community-edit-form .acf-input select {
	width: 100%;
	min-height: 48px;

	padding: 0 14px;

	border: 1px solid #d8dddf;
	border-radius: 9px;

	background: #ffffff;
	color: #34424a;

	font-size: 14px;

	outline: none;

	box-shadow: none;

	transition:
		border-color .2s ease,
		box-shadow .2s ease;
}

.chutio-community-edit-form .acf-input textarea {
	min-height: 110px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.chutio-community-edit-form .acf-input input:focus,
.chutio-community-edit-form .acf-input textarea:focus,
.chutio-community-edit-form .acf-input select:focus {
	border-color: #5d6f63;

	box-shadow:
		0 0 0 3px rgba(93, 111, 99, .10);
}

.chutio-community-edit-form .acf-input p.description {
	margin-top: 6px;

	color: #8a9397;

	font-size: 12px;
	line-height: 1.5;
}


/* ==========================================================
   Location Picker
========================================================== */

.chutio-community-location-picker {
	margin-bottom: 24px;
	padding: 22px;

	border: 1px solid #e1e7e3;
	border-radius: 14px;

	background: #fafcfb;
}

.chutio-community-location-heading {
	margin-bottom: 18px;
}

.chutio-community-location-heading strong {
	display: block;

	margin-bottom: 5px;

	color: #24313a;

	font-size: 16px;
	font-weight: 700;
}

.chutio-community-location-heading p {
	margin: 0;

	color: #718078;

	font-size: 13px;
	line-height: 1.55;
}


/* Current location */

.chutio-community-location-current {
	margin-bottom: 20px;
	padding: 14px 16px;

	border: 1px solid #dfe6e2;
	border-radius: 10px;

	background: #ffffff;
}

.chutio-community-location-current span {
	display: block;

	margin-bottom: 5px;

	color: #8a9397;

	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;

	text-transform: uppercase;
	letter-spacing: .04em;
}

.chutio-community-location-current strong {
	display: block;

	color: #34424a;

	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}


/* Search */

.chutio-community-location-search label {
	display: block;

	margin-bottom: 7px;

	color: #34424a;

	font-size: 14px;
	font-weight: 600;
}

.chutio-community-location-control {
	display: flex;
	align-items: center;

	min-height: 50px;

	border: 1px solid #d8dddf;
	border-radius: 10px;

	background: #ffffff;

	overflow: hidden;

	transition:
		border-color .2s ease,
		box-shadow .2s ease;
}

.chutio-community-location-control:focus-within {
	border-color: #5d6f63;

	box-shadow:
		0 0 0 3px rgba(93, 111, 99, .10);
}

.chutio-community-location-icon {
	flex: 0 0 auto;

	padding-left: 14px;

	color: #7b858a;

	font-size: 20px;
	line-height: 1;
}

.chutio-community-location-control input {
	flex: 1 1 auto;

	width: 100%;
	min-width: 0;
	height: 50px;

	padding: 0 12px;

	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;

	background: transparent !important;

	color: #34424a;

	font-size: 14px;
}

.chutio-community-location-control button {
	flex: 0 0 auto;

	height: 38px;

	margin-right: 6px;
	padding: 0 17px;

	border: 0 !important;
	border-radius: 8px;

	background: #e57a5e !important;
	color: #ffffff !important;

	font-size: 13px;
	font-weight: 600;

	cursor: pointer;

	transition:
		background-color .2s ease,
		opacity .2s ease;
}

.chutio-community-location-control button:hover {
	background: #d86f54 !important;
}

.chutio-community-location-control button:disabled {
	opacity: .6;

	cursor: wait;
}


/* Status */

.chutio-community-location-status {
	margin-top: 8px;

	color: #7b858a;

	font-size: 12px;
	line-height: 1.5;
}

.chutio-community-location-status.is-selected {
	color: #4f7d62;
	font-weight: 600;
}

.chutio-community-location-status.is-error {
	color: #a34f3e;
	font-weight: 600;
}


/* Results */

.chutio-community-location-results {
	display: flex;
	flex-direction: column;

	gap: 8px;

	margin-top: 14px;
}

.chutio-community-location-result {
	display: flex;
	align-items: flex-start;

	width: 100%;

	padding: 14px;

	border: 1px solid #dfe6e2 !important;
	border-radius: 10px;

	background: #ffffff !important;
	color: #34424a !important;

	text-align: left;

	cursor: pointer;

	transition:
		border-color .2s ease,
		background-color .2s ease,
		transform .2s ease;
}

.chutio-community-location-result:hover {
	border-color: #e57a5e !important;

	background: #fffaf7 !important;

	transform: translateY(-1px);
}

.chutio-community-location-result-radio {
	flex: 0 0 18px;

	width: 18px;
	height: 18px;

	margin-top: 2px;
	margin-right: 11px;

	border: 1px solid #b9c5be;
	border-radius: 50%;

	background: #ffffff;
}

.chutio-community-location-result-content {
	display: flex;
	flex-direction: column;

	gap: 4px;

	min-width: 0;
}

.chutio-community-location-result-content strong {
	color: #34424a;

	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
}

.chutio-community-location-result-content small {
	color: #8a9397;

	font-size: 11px;
	line-height: 1.4;
}


/* ==========================================================
   Submit
========================================================== */

.chutio-community-edit-submit {
	padding: 8px 0 0;
}

.chutio-community-edit-submit .chutio-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 48px;

	padding: 0 22px;

	border: 0;
	border-radius: 11px;

	background: #e57a5e;
	color: #ffffff;

	font-size: 14px;
	font-weight: 600;

	text-decoration: none;

	cursor: pointer;

	transition:
		background-color .2s ease,
		transform .2s ease;
}

.chutio-community-edit-submit .chutio-button:hover {
	background: #d86f54;
	color: #ffffff;

	transform: translateY(-1px);
}

.chutio-community-edit-submit p {
	margin: 10px 0 0;

	color: #8a9397;

	font-size: 11px;
	line-height: 1.5;
}


/* ==========================================================
   Pending proposal
========================================================== */

.chutio-community-edit-blocked {
	display: flex;
	align-items: flex-start;

	gap: 18px;

	width: 100%;

	padding: 26px;

	border: 1px solid #e4e8e6;
	border-radius: 16px;

	background: #ffffff;
}

.chutio-community-edit-blocked-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 46px;

	width: 46px;
	height: 46px;

	border-radius: 50%;

	background: #eef4f0;
	color: #5d8069;

	font-size: 18px;
	font-weight: 700;
}

.chutio-community-edit-blocked-content {
	min-width: 0;
}

.chutio-community-edit-blocked-content h2 {
	margin: 0 0 8px;

	color: #24313a;

	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.chutio-community-edit-blocked-content p {
	margin: 5px 0;

	color: #718078;

	font-size: 14px;
	line-height: 1.6;
}

.chutio-community-edit-secondary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 42px;

	margin-top: 15px;
	padding: 0 17px;

	border-radius: 9px;

	background: #f1f3f4;
	color: #4f5f54;

	font-size: 13px;
	font-weight: 600;

	text-decoration: none;

	transition:
		background-color .2s ease,
		color .2s ease;
}

.chutio-community-edit-secondary-button:hover {
	background: #e7ebe9;
	color: #34424a;
}


/* ==========================================================
   Generic message
========================================================== */

.chutio-community-edit-message {
	padding: 24px;

	border: 1px solid #e3e7e8;
	border-radius: 14px;

	background: #ffffff;
	color: #566268;

	font-size: 14px;
	line-height: 1.6;
}


/* ==========================================================
   Success
========================================================== */

.chutio-community-edit-success {
	padding: 34px;

	border: 1px solid #e0e8e3;
	border-radius: 16px;

	background: #ffffff;

	text-align: center;
}

.chutio-community-edit-success-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 54px;
	height: 54px;

	margin: 0 auto 16px;

	border-radius: 50%;

	background: #eef4f0;
	color: #5d8069;

	font-size: 22px;
	font-weight: 700;
}

.chutio-community-edit-success h2 {
	margin: 0 0 10px;

	color: #24313a;

	font-size: 23px;
	font-weight: 700;
}

.chutio-community-edit-success p {
	max-width: 560px;

	margin: 6px auto;

	color: #718078;

	font-size: 14px;
	line-height: 1.6;
}

.chutio-community-edit-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 46px;

	margin-top: 18px;
	padding: 0 20px;

	border-radius: 10px;

	background: #e57a5e;
	color: #ffffff;

	font-size: 14px;
	font-weight: 600;

	text-decoration: none;
}

.chutio-community-edit-button:hover {
	background: #d86f54;
	color: #ffffff;
}


/* ==========================================================
   Mobile
========================================================== */

@media (max-width: 767px) {

	.chutio-community-edit {
		padding-bottom: 24px;
	}


	.chutio-community-edit-header {
		gap: 13px;
	}


	.chutio-community-edit-number {
		flex-basis: 40px;

		width: 40px;
		height: 40px;

		font-size: 12px;
	}


	.chutio-community-edit-header h1 {
		font-size: 22px;
	}


	.chutio-community-edit-header p {
		font-size: 13px;
	}


	.chutio-community-edit-restaurant {
		align-items: flex-start;
		flex-direction: column;

		gap: 4px;
	}


	.chutio-community-edit-section {
		padding: 20px 18px;

		border-radius: 14px;
	}


	.chutio-community-edit-section-heading {
		gap: 12px;

		margin-bottom: 20px;
	}


	.chutio-community-edit-section-heading > span {
		flex-basis: 36px;

		width: 36px;
		height: 36px;
	}


	.chutio-community-edit-section-heading h2 {
		font-size: 18px;
	}


	.chutio-community-edit-section-heading p {
		font-size: 12px;
	}


	.chutio-community-location-picker {
		padding: 16px;
	}


	.chutio-community-location-control {
		min-height: 48px;
	}


	.chutio-community-location-control input {
		height: 48px;

		padding-left: 8px;

		font-size: 13px;
	}


	.chutio-community-location-control button {
		height: 36px;

		padding: 0 12px;

		font-size: 12px;
	}


	.chutio-community-location-result {
		padding: 12px;
	}


	.chutio-community-edit-submit .chutio-button {
		width: 100%;
	}


	.chutio-community-edit-blocked {
		padding: 20px;

		gap: 13px;
	}


	.chutio-community-edit-blocked-icon {
		flex-basis: 40px;

		width: 40px;
		height: 40px;
	}


	.chutio-community-edit-blocked-content h2 {
		font-size: 18px;
	}


	.chutio-community-edit-blocked-content p {
		font-size: 13px;
	}


	.chutio-community-edit-success {
		padding: 26px 18px;
	}

}