/* Top utility bar — sits above main header when Porto fires porto_before_header */
.tvps-wrap {
	position: relative;
	z-index: 10050;
}

/* Drawer-only footer shell (menu / shortcode opens the panel) */
.tvps-wrap--drawer-only {
	display: block;
	margin: 0;
	padding: 0;
}

/* Menu item (Appearance → Menus, class tvps-pickup-trigger): match inline utility links */
a.tvps-menu-trigger {
	text-decoration: none;
	cursor: pointer;
}

.tvps-top-bar {
	background: #1d1d1f;
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.3;
}

.tvps-top-bar__inner {
	max-width: 100%;
	margin: 0 auto;
	padding: 0.55rem 1.25rem;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.tvps-top-bar__trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	padding: 0.25rem 0;
	text-align: left;
	font: inherit;
}

.tvps-top-bar__trigger:hover,
.tvps-top-bar__trigger:focus-visible {
	opacity: 0.92;
	outline: 2px solid rgba(255, 255, 255, 0.35);
	outline-offset: 2px;
}

.tvps-top-bar__trigger-icon {
	display: flex;
	opacity: 0.95;
}

.tvps-top-bar__trigger-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.1rem;
}

.tvps-top-bar__label {
	font-size: 11px;
	font-weight: 400;
	opacity: 0.85;
	letter-spacing: 0.02em;
}

.tvps-top-bar__value {
	font-size: 15px;
	font-weight: 700;
}

.tvps-top-bar__chevron {
	font-size: 1.1rem;
	font-weight: 300;
	margin-left: 0.15rem;
	opacity: 0.9;
}

/* Drawer */
.tvps-drawer[hidden] {
	display: none !important;
}

.tvps-drawer:not([hidden]) {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.tvps-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.tvps-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(420px, 100vw);
	max-width: 100%;
	background: #f5f5f7;
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	outline: none;
}

.tvps-drawer__head {
	background: #000;
	color: #fff;
	padding: 1rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-shrink: 0;
}

.tvps-drawer__title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
}

.tvps-drawer__close {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 0.25rem;
	opacity: 0.9;
}

.tvps-drawer__close:hover {
	opacity: 1;
}

.tvps-drawer__info {
	margin: 0;
	padding: 1rem 1.25rem;
	background: #000;
	color: rgba(255, 255, 255, 0.88);
	font-size: 12px;
	line-height: 1.45;
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
}

.tvps-drawer__info-icon {
	flex-shrink: 0;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.5);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 700;
	font-style: italic;
}

.tvps-drawer__body {
	flex: 1;
	overflow: auto;
	padding: 1rem 1rem 1.25rem;
	-webkit-overflow-scrolling: touch;
}

.tvps-locations {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.tvps-location__card {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	margin: 0;
	padding: 0.9rem 1rem;
	background: #fff;
	border: 1px solid #d2d2d7;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tvps-location__card:hover {
	border-color: #b0b0b5;
}

.tvps-location__card.is-selected {
	border-color: #0071e3;
	box-shadow: 0 0 0 1px #0071e3;
}

.tvps-location__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.tvps-location__radio {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border: 2px solid #86868b;
	border-radius: 50%;
	margin-top: 2px;
	position: relative;
}

.tvps-location__card.is-selected .tvps-location__radio {
	border-color: #0071e3;
}

.tvps-location__card.is-selected .tvps-location__radio::after {
	content: "";
	position: absolute;
	inset: 4px;
	background: #0071e3;
	border-radius: 50%;
}

.tvps-location__main {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.tvps-location__name {
	font-weight: 700;
	font-size: 15px;
	color: #1d1d1f;
}

.tvps-location__address {
	font-size: 13px;
	color: #515154;
	line-height: 1.4;
}

.tvps-location__note {
	margin-top: 0.35rem;
	font-size: 12px;
	color: #1b7f3a;
	background: rgba(27, 127, 58, 0.1);
	padding: 0.4rem 0.55rem;
	border-radius: 4px;
}

.tvps-drawer__foot {
	padding: 1rem 1.25rem 1.5rem;
	background: #f5f5f7;
	flex-shrink: 0;
}

.tvps-drawer__confirm {
	width: 100%;
	padding: 0.95rem 1rem;
	font-size: 16px;
	font-weight: 600;
	border: 0;
	border-radius: 10px;
	background: #0071e3;
	color: #fff;
	cursor: pointer;
}

.tvps-drawer__confirm:hover:not(:disabled) {
	background: #0077ed;
}

.tvps-drawer__confirm:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* Compact link + icon (shortcode / menus) */
.tvps-wrap--trigger-only {
	display: inline-flex;
	vertical-align: middle;
	z-index: 1;
}

.tvps-link-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: transparent;
	border: 0;
	padding: 0.2rem 0;
	cursor: pointer;
	font: inherit;
	color: inherit;
	text-align: left;
	max-width: 100%;
}

.tvps-link-trigger:hover,
.tvps-link-trigger:focus-visible {
	opacity: 0.88;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tvps-link-trigger:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.tvps-link-trigger__icon {
	display: flex;
	flex-shrink: 0;
	opacity: 0.92;
}

.tvps-link-trigger__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.05rem;
	min-width: 0;
}

.tvps-link-trigger__label {
	font-size: 0.7rem;
	font-weight: 500;
	opacity: 0.8;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0.01em;
}

.tvps-link-trigger__value {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 14rem;
}

.tvps-link-trigger__chevron {
	font-size: 1rem;
	opacity: 0.7;
	flex-shrink: 0;
}

html.tvps-drawer-open,
html.tvps-drawer-open body {
	overflow: hidden;
}

@media (max-width: 480px) {
	.tvps-top-bar__inner {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}
