.ytb-place-wrap {
	position: relative;
}

.ytb-place-modes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 0.5rem;
}

.ytb-place-mode {
	flex: 1 1 22%;
	min-width: 5.2rem;
	min-height: 2.75rem;
	padding: 0.55rem 0.4rem;
	border: 1px solid #c8c8c8;
	border-radius: 6px;
	background: #f7f7f7;
	cursor: pointer;
	font-size: 0.9rem;
	line-height: 1.25;
	text-align: center;
	-webkit-tap-highlight-color: transparent;
}

.ytb-place-mode:hover,
.ytb-place-mode:focus {
	background: #eef3fa;
	border-color: #9ab;
	outline: none;
}

.ytb-place-mode.is-active {
	background: #1a5f2a;
	border-color: #1a5f2a;
	color: #fff;
	font-weight: 700;
}

.ytb-place-row {
	display: flex;
	align-items: stretch;
	gap: 0.4rem;
}

.ytb-place-row input,
.ytb-place-row textarea {
	flex: 1 1 auto;
	min-width: 0;
}

.ytb-place-mic {
	flex: 0 0 auto;
	width: 2.75rem;
	min-height: 2.75rem;
	padding: 0;
	border: 1px solid #c8c8c8;
	border-radius: 4px;
	background: #f7f7f7;
	cursor: pointer;
	line-height: 1;
}

.ytb-place-mic:hover,
.ytb-place-mic:focus {
	background: #eef3fa;
	border-color: #9ab;
	outline: none;
}

.ytb-place-mic.is-listening {
	background: #ffe8e8;
	border-color: #d66;
}

.ytb-place-mic__icon {
	display: inline-block;
	width: 0.85rem;
	height: 1.15rem;
	border: 2px solid #444;
	border-radius: 0.55rem;
	position: relative;
	vertical-align: middle;
}

.ytb-place-mic__icon::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -0.35rem;
	width: 0.7rem;
	height: 0.35rem;
	margin-left: -0.35rem;
	border: 2px solid #444;
	border-top: 0;
	border-radius: 0 0 0.4rem 0.4rem;
	box-sizing: border-box;
}

.ytb-place-mic.is-listening .ytb-place-mic__icon,
.ytb-place-mic.is-listening .ytb-place-mic__icon::after {
	border-color: #b33;
}

.ytb-place-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.45rem;
}

.ytb-place-fetch,
.ytb-place-confirm,
.ytb-place-change,
.ytb-place-yes,
.ytb-place-adjust,
.ytb-place-no,
.ytb-place-pin-confirm,
.ytb-place-map-link {
	flex: 1 1 auto;
	min-height: 2.75rem;
	padding: 0.55rem 0.85rem;
	border: 1px solid #c8c8c8;
	border-radius: 4px;
	background: #f7f7f7;
	cursor: pointer;
	font-size: 0.95rem;
	line-height: 1.3;
	text-align: center;
	-webkit-tap-highlight-color: transparent;
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ytb-place-fetch,
.ytb-place-confirm,
.ytb-place-yes,
.ytb-place-pin-confirm {
	background: #1a5f2a;
	border-color: #1a5f2a;
	color: #fff;
	font-weight: 700;
}

.ytb-place-fetch:hover,
.ytb-place-fetch:focus,
.ytb-place-confirm:hover,
.ytb-place-confirm:focus,
.ytb-place-yes:hover,
.ytb-place-yes:focus,
.ytb-place-pin-confirm:hover,
.ytb-place-pin-confirm:focus {
	background: #154d22;
	outline: none;
}

.ytb-place-change:hover,
.ytb-place-change:focus,
.ytb-place-adjust:hover,
.ytb-place-adjust:focus,
.ytb-place-no:hover,
.ytb-place-no:focus,
.ytb-place-map-link:hover,
.ytb-place-map-link:focus {
	background: #eef3fa;
	border-color: #9ab;
	outline: none;
}

.ytb-place-fetch:disabled,
.ytb-place-confirm:disabled {
	opacity: 0.7;
	cursor: wait;
}

.ytb-place-fetch[hidden],
.ytb-place-confirm[hidden],
.ytb-place-mic[hidden],
button.ytb-place-fetch[hidden],
button.ytb-place-confirm[hidden],
button.ytb-place-mic[hidden] {
	display: none !important;
}

.ytb-place-wrap.is-error .ytb-place-confirm,
.ytb-place-wrap.is-resolving .ytb-place-confirm,
.ytb-place-wrap.is-map-review .ytb-place-confirm,
.ytb-place-wrap.is-adjusting .ytb-place-confirm,
.ytb-place-wrap.is-confirmed .ytb-place-confirm {
	display: none !important;
}

.ytb-place-status {
	margin: 0.3rem 0 0;
	font-size: 0.8rem;
	line-height: 1.35;
	color: #a33;
}

.ytb-place-status.is-info {
	color: #456;
}

.ytb-place-wrap .wpcf7-not-valid-tip {
	display: block;
	margin: 0.4rem 0 0;
	color: #dc3232;
	font-size: 1em;
	line-height: 1.4;
}

.ytb-place-wrap input.wpcf7-not-valid,
.ytb-place-wrap textarea.wpcf7-not-valid {
	border-color: #dc3232;
}

.ytb-place-map-panel {
	display: none;
	margin: 0.55rem 0 0;
}

.ytb-place-map {
	width: 100%;
	height: 360px;
	max-width: 100%;
	border: 1px solid #c8c8c8;
	border-radius: 6px;
	background: #e8eee8;
	position: relative;
	overflow: hidden;
	z-index: 0;
}

.ytb-place-map .leaflet-container,
.ytb-place-map .gm-style {
	width: 100%;
	height: 100%;
	font-size: 0.75rem;
}

.ytb-place-map .leaflet-control-attribution {
	font-size: 0.65rem;
	line-height: 1.25;
	max-width: 100%;
}

.ytb-place-map--mock {
	cursor: crosshair;
	background:
		linear-gradient(#d7e3d7 1px, transparent 1px),
		linear-gradient(90deg, #d7e3d7 1px, transparent 1px),
		#eef5ee;
	background-size: 24px 24px, 24px 24px, auto;
}

.ytb-place-map__pin {
	position: absolute;
	width: 22px;
	height: 22px;
	margin: -22px 0 0 -11px;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	background: #c0392b;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	z-index: 2;
	touch-action: none;
}

.ytb-place-map__coords {
	position: absolute;
	left: 0.5rem;
	bottom: 0.5rem;
	margin: 0;
	padding: 0.2rem 0.45rem;
	font-size: 0.75rem;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 4px;
	z-index: 3;
}

.ytb-place-review-q,
.ytb-place-adjust-hint {
	margin: 0.55rem 0 0.4rem;
	font-size: 0.95rem;
	line-height: 1.4;
	font-weight: 700;
}

.ytb-place-review-actions,
.ytb-place-adjust-actions,
.ytb-place-confirmed__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.ytb-place-confirmed {
	display: none;
	margin: 0;
	padding: 0.75rem 0.85rem;
	border: 1px solid #c5d6c8;
	border-radius: 6px;
	background: #f3f8f4;
}

.ytb-place-confirmed__title {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: #1a5f2a;
}

.ytb-place-confirmed__addr {
	margin: 0 0 0.65rem;
	font-size: 0.95rem;
	line-height: 1.4;
	color: #222;
	word-break: break-word;
}

.ytb-place-wrap.is-map-review .ytb-place-map-panel,
.ytb-place-wrap.is-adjusting .ytb-place-map-panel {
	display: block;
}

.ytb-place-wrap.is-map-review .ytb-place-modes,
.ytb-place-wrap.is-adjusting .ytb-place-modes,
.ytb-place-wrap.is-confirmed .ytb-place-modes,
.ytb-place-wrap.is-map-review .ytb-place-actions,
.ytb-place-wrap.is-adjusting .ytb-place-actions,
.ytb-place-wrap.is-confirmed .ytb-place-actions,
.ytb-place-wrap.is-map-review .ytb-place-address,
.ytb-place-wrap.is-adjusting .ytb-place-address,
.ytb-place-wrap.is-confirmed .ytb-place-address {
	display: none;
}

.ytb-place-wrap.is-map-review .ytb-place-adjust-hint,
.ytb-place-wrap.is-map-review .ytb-place-adjust-actions {
	display: none;
}

.ytb-place-wrap.is-adjusting .ytb-place-review-q,
.ytb-place-wrap.is-adjusting .ytb-place-review-actions {
	display: none;
}

.ytb-place-wrap.is-confirmed .ytb-place-row,
.ytb-place-wrap.is-confirmed .ytb-place-map-panel,
.ytb-place-wrap.is-confirmed .ytb-place-attribution {
	display: none;
}

.ytb-place-wrap.is-confirmed .ytb-place-confirmed {
	display: block;
}

.ytb-place-wrap.is-map-review .ytb-place-row input,
.ytb-place-wrap.is-adjusting .ytb-place-row input,
.ytb-place-wrap.is-map-review .ytb-place-row textarea,
.ytb-place-wrap.is-adjusting .ytb-place-row textarea {
	pointer-events: none;
	background: #f4f4f4;
}

.ytb-place-suggest {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	z-index: 20;
	margin: 0;
	padding: 0.2rem 0;
	list-style: none;
	background: #fff;
	border: 1px solid #c8c8c8;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	max-height: 14rem;
	overflow-y: auto;
}

.ytb-place-suggest:not([hidden]) {
	display: block;
}

.ytb-place-wrap.is-mode-address .ytb-place-suggest,
.ytb-place-wrap.is-mode-geo .ytb-place-suggest {
	display: none !important;
}

.ytb-place-suggest__item {
	margin: 0;
	padding: 0;
}

.ytb-place-suggest__btn {
	display: block;
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 0;
	background: transparent;
	text-align: left;
	font-size: 0.95rem;
	line-height: 1.35;
	cursor: pointer;
}

.ytb-place-suggest__btn:hover,
.ytb-place-suggest__btn:focus {
	background: #eef3fa;
	outline: none;
}

.ytb-place-suggest__name {
	display: block;
	font-weight: 700;
}

.ytb-place-suggest__addr {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.85em;
	font-weight: 400;
	color: #555;
}

.ytb-place-address {
	display: grid;
	gap: 0.45rem;
	margin: 0 0 0.5rem;
}

.ytb-place-address[hidden] {
	display: none !important;
}

.ytb-place-address__lab,
.ytb-place-address__field label {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	color: #444;
}

.ytb-place-address__field select,
.ytb-place-address__field input,
.ytb-place-zip {
	width: 100%;
	margin-top: 0.2rem;
	min-height: 2.5rem;
	box-sizing: border-box;
}

.ytb-place-address__zip-row {
	display: flex;
	gap: 0.4rem;
	align-items: stretch;
}

.ytb-place-zip-btn {
	flex: 0 0 auto;
	min-height: 2.5rem;
	padding: 0.4rem 0.7rem;
	border: 1px solid #1a5f2a;
	border-radius: 4px;
	background: #1a5f2a;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.ytb-place-composed {
	margin: 0.15rem 0 0;
	font-size: 0.9rem;
	line-height: 1.4;
	color: #1a5f2a;
	word-break: break-word;
}

.ytb-place-row[hidden] {
	display: none !important;
}

.ytb-place-attribution {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
	line-height: 1.3;
	color: #667;
}

@media (max-width: 480px) {
	.ytb-place-mode,
	.ytb-place-fetch,
	.ytb-place-confirm,
	.ytb-place-change,
	.ytb-place-yes,
	.ytb-place-adjust,
	.ytb-place-no,
	.ytb-place-pin-confirm,
	.ytb-place-map-link {
		min-height: 3rem;
		font-size: 1rem;
		padding: 0.65rem 0.7rem;
	}

	.ytb-place-mic {
		width: 3rem;
		min-height: 3rem;
	}

	.ytb-place-map {
		height: 320px;
	}
}
