/**
 * Header Location — visual styles.
 *
 * @package PasionGift_App
 */

.pg-header-location {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--pg-space-xs);
	width: var(--pg-header-action-size, 2.5rem);
	height: var(--pg-header-action-size, 2.5rem);
	min-width: var(--pg-header-action-size, 2.5rem);
	min-height: var(--pg-header-action-size, 2.5rem);
	padding: 0;
	border: 0;
	border-radius: var(--pg-radius-full);
	background-color: transparent;
	color: var(--pg-color-brand-black, var(--pg-color-text-muted));
	cursor: pointer;
	transition:
		background-color 0.15s ease,
		color 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.pg-header-location:hover {
	background-color: rgba(var(--pg-color-brand-wine-rgb, 139, 30, 63), 0.06);
	color: var(--pg-color-brand-wine);
}

.pg-header-location:focus-visible {
	outline: 2px solid var(--pg-color-brand-wine);
	outline-offset: 2px;
}

.pg-header-location:active .pg-header-location__icon {
	transform: scale(0.96);
}

.pg-header-location__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.1875rem;
	height: 1.1875rem;
	color: inherit;
	transition: transform 0.1s ease;
}

.pg-header-location__icon svg {
	width: 100%;
	height: 100%;
}

.pg-header-location__label {
	display: none;
	max-width: 5.5rem;
	overflow: hidden;
	font-family: var(--pg-font-family);
	font-size: var(--pg-font-size-xs);
	font-weight: var(--pg-font-weight-medium);
	line-height: var(--pg-line-height-tight);
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--pg-color-text);
}

@media (max-width: 359px) {
	.pg-header-location__icon {
		width: 1.0625rem;
		height: 1.0625rem;
	}
}

@media (min-width: 768px) {
	.pg-header-location__icon {
		width: 1.25rem;
		height: 1.25rem;
	}
}

@media (min-width: 1024px) {
	.pg-header-location__label {
		display: inline;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pg-header-location:active .pg-header-location__icon {
		transform: none;
	}
}
