﻿.awpposts-frontend-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	background: #e2e8f0;
	color: #475569;
	border: 1px solid #cbd5e1;
}
.awpposts-frontend-btn.is-active {
	background: #10b981;
	color: #fff;
	border-color: #059669;
}
.awpposts-frontend-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.awpposts-location-btn {
	background: #3b82f6;
	color: #fff;
	border-color: #2563eb;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.awpposts-location-btn:hover {
	background: #2563eb;
}
.awpposts-location-btn.is-loading {
	opacity: 0.8;
	cursor: wait;
}
.awpposts-location-btn.has-location {
	background: #10b981;
}
.awpposts-radius-slider-wrap {
	margin-top: 15px;
	padding: 15px;
	background: #f8fafc;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 300px;
}
.awpposts-radius-slider-wrap label {
	font-weight: 600;
	color: #334155;
	font-size: 14px;
	display: flex;
	justify-content: space-between;
}
.awpposts-radius-slider-wrap input[type=range] {
	width: 100%;
	cursor: pointer;
}

/* Location Radius Widget Styles */
.awpposts-widget-outer-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 15px;
	width: 100%;
	box-sizing: border-box;
}
.awpposts-autocomplete-container {
	position: relative;
	width: 100%;
	max-width: 320px;
}
.awpposts-addr-input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #1e293b;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05);
	outline: none;
	font-size: 14px;
	transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
	box-sizing: border-box;
}
.awpposts-addr-input.has-icon-left {
	padding-left: 36px;
}
.awpposts-addr-input.has-icon-right {
	padding-right: 36px;
}
.awpposts-addr-icon {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
}
.awpposts-addr-icon svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}
.awpposts-addr-icon i {
	font-size: 14px;
}
.awpposts-addr-icon.awpposts-icon-left {
	left: 14px;
}
.awpposts-addr-icon.awpposts-icon-right {
	right: 14px;
}
.awpposts-addr-input:focus {
	border-color: #3b82f6;
}
.awpposts-addr-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
	z-index: 1000;
	max-height: 220px;
	overflow-y: auto;
	margin-top: 4px;
	box-sizing: border-box;
}
.awpposts-addr-results.hidden {
	display: none !important;
}
.awpposts-addr-item {
	padding: 10px 12px;
	cursor: pointer;
	font-size: 13px;
	color: #334155;
	border-bottom: 1px solid #f1f5f9;
	text-align: left;
}
.awpposts-addr-item:last-child {
	border-bottom: none;
}
.awpposts-addr-item:hover {
	background: #f8fafc;
	color: #0f172a;
}
.awpposts-location-widget-btn {
	background: #3b82f6;
	color: #ffffff;
	border: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 20px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s, opacity 0.2s, transform 0.1s;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	font-size: 14px;
	box-sizing: border-box;
}
.awpposts-location-widget-btn:hover {
	background: #2563eb;
}
.awpposts-location-widget-btn:active {
	transform: scale(0.98);
}
.awpposts-location-widget-btn.is-loading {
	opacity: 0.8;
	cursor: wait;
}
.awpposts-location-widget-btn.has-location {
	background: #10b981;
}
.awpposts-location-widget-btn.has-location:hover {
	background: #059669;
}
.awpposts-btn-icon {
	margin-right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.awpposts-btn-icon svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}
.awpposts-btn-icon i {
	font-size: 14px;
}
.awpposts-radius-slider-wrap {
	padding: 16px;
	background: #f8fafc;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	max-width: 320px;
	box-sizing: border-box;
}
.awpposts-radius-label-row {
	font-weight: 600;
	color: #334155;
	font-size: 13.5px;
	display: flex;
	justify-content: space-between;
}
.awpposts-radius-slider {
	width: 100%;
	display: block;
	cursor: pointer;
	accent-color: #3b82f6;
}
.awpposts-slider-tooltip {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	background: #1e293b;
	color: #fff;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 11px;
	margin-bottom: 8px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s;
}
.awpposts-slider-inner-wrap:hover .awpposts-slider-tooltip {
	opacity: 1;
}
.awpposts-slider-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-width: 4px;
	border-style: solid;
	border-color: #1e293b transparent transparent transparent;
}
.awpposts-autocomplete-container .awpposts-clear-input-btn {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #94a3b8;
	cursor: pointer;
	font-size: 16px;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.awpposts-autocomplete-container .awpposts-clear-input-btn:hover {
	color: #ef4444;
}

/* Toast Notification */
.awpposts-toast {
	position: fixed;
	bottom: -50px;
	left: 50%;
	transform: translateX(-50%);
	background: #334155;
	color: #fff;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	z-index: 99999;
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	pointer-events: none;
}
.awpposts-toast.show {
	bottom: 30px;
	opacity: 1;
}
.awpposts-toast-error {
	background: #ef4444;
}

/* Popover Radius Mode */
.awpposts-radius-popover-trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 14px;
	color: #334155;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.awpposts-radius-popover-trigger:hover {
	border-color: #94a3b8;
	background: #f8fafc;
}
.awpposts-radius-popover {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	width: 320px;
	box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
	z-index: 1000;
	transition: opacity 0.2s, transform 0.2s;
}
.awpposts-radius-popover.hidden {
	display: none;
}

/* Inline Layout Styles */
.awpposts-layout-inline .awpposts-autocomplete-container {
	max-width: 100%;
}
.awpposts-inline-container {
	display: flex;
	align-items: center;
	position: relative;
}
.awpposts-inline-container .awpposts-addr-input {
	padding-right: 48px; /* space for inline button */
}
.awpposts-inline-loc-btn {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	background: #f1f5f9;
	border: 1px solid transparent;
	border-radius: 6px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #64748b;
	transition: all 0.2s;
	padding: 0;
}
.awpposts-inline-loc-btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}
.awpposts-inline-loc-btn.has-location {
	background: #10b981;
	color: #fff;
	border-color: #059669;
}
.awpposts-inline-loc-btn.is-loading {
	animation: awpPssPulse 1.5s infinite;
}
.awpposts-inline-container .awpposts-clear-input-btn {
	right: 46px; /* Move clear button to the left of locate button */
}
@keyframes awpPssPulse {
	0% { opacity: 1; }
	50% { opacity: .5; }
	100% { opacity: 1; }
}

