/**
 * Location Detector Button Styles
 * 
 * Styles for "Detect Location" buttons in booking forms
 *
 * @package Garage_At_Home
 */

/* Book Service Form - Detect Location Button */
.gh-book-detect-location-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: 0.75rem;
	padding: 0.375rem 0.75rem;
	background: linear-gradient(135deg, var(--gh-accent) 0%, var(--gh-accent-2) 100%);
	border: none;
	border-radius: 6px;
	color: var(--gh-text);
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(198, 40, 40, 0.2);
	vertical-align: middle;
}

.gh-book-detect-location-btn:hover {
	background: linear-gradient(135deg, var(--gh-accent-2) 0%, var(--gh-accent) 100%);
	box-shadow: 0 4px 8px rgba(198, 40, 40, 0.3);
	transform: translateY(-1px);
}

.gh-book-detect-location-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(198, 40, 40, 0.2);
}

.gh-book-detect-location-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.gh-book-detect-location-btn svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.gh-book-detect-location-btn span {
	white-space: nowrap;
}

/* Ranchi Washing Form - Detect Location Button */
.gh-ranchi-wash-detect-location-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: 0.75rem;
	padding: 0.375rem 0.75rem;
	background: linear-gradient(135deg, var(--gh-accent) 0%, var(--gh-accent-2) 100%);
	border: none;
	border-radius: 6px;
	color: var(--gh-text);
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(198, 40, 40, 0.2);
	vertical-align: middle;
}

.gh-ranchi-wash-detect-location-btn:hover {
	background: linear-gradient(135deg, var(--gh-accent-2) 0%, var(--gh-accent) 100%);
	box-shadow: 0 4px 8px rgba(198, 40, 40, 0.3);
	transform: translateY(-1px);
}

.gh-ranchi-wash-detect-location-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(198, 40, 40, 0.2);
}

.gh-ranchi-wash-detect-location-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.gh-ranchi-wash-detect-location-btn svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.gh-ranchi-wash-detect-location-btn span {
	white-space: nowrap;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
	.gh-book-detect-location-btn,
	.gh-ranchi-wash-detect-location-btn {
		margin-left: 0.5rem;
		padding: 0.3125rem 0.625rem;
		font-size: 0.8125rem;
	}
	
	.gh-book-detect-location-btn span,
	.gh-ranchi-wash-detect-location-btn span {
		display: none; /* Hide text on mobile, show only icon */
	}
	
	.gh-book-detect-location-btn svg,
	.gh-ranchi-wash-detect-location-btn svg {
		width: 18px;
		height: 18px;
	}
}

/* Label adjustments to accommodate button */
.gh-book-form-label,
.gh-ranchi-wash-form-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

/* Help text below address field */
.gh-location-help-text {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	color: var(--gh-muted);
	line-height: 1.5;
	font-style: italic;
}

/* Error message below address field */
.gh-location-error-message {
	margin-top: 0.5rem;
	padding: 0.625rem 0.875rem;
	background-color: rgba(198, 40, 40, 0.1);
	border: 1px solid rgba(198, 40, 40, 0.3);
	border-radius: 6px;
	color: var(--gh-accent);
	font-size: 0.875rem;
	line-height: 1.5;
	opacity: 1;
	transition: opacity 0.3s ease;
}

.gh-location-error-message::before {
	content: '⚠ ';
	margin-right: 0.25rem;
}

@media (max-width: 480px) {
	.gh-book-form-label,
	.gh-ranchi-wash-form-label {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
	
	.gh-book-detect-location-btn,
	.gh-ranchi-wash-detect-location-btn {
		margin-left: 0;
		align-self: flex-start;
	}
}

