/* ============================================================
	VIP / Stammgast table selection — booking details step
	Revealed by public.js when the entered email/phone belongs
	to a VIP guest group. Uses the portal theme CSS variables.
	============================================================ */

#pl_vip_tables_section {
	display: none;
	margin-top: 22px;
}

#pl_vip_tables_section.pr-vip-visible {
	display: block;
	animation: prVipReveal .45s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes prVipReveal {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

.pr-vip-checking {
	font-size: 13px;
	color: var(--pr-text-color, #2b1632);
	opacity: .7;
	padding: 10px 2px;
	animation: prVipPulse 1.2s ease-in-out infinite;
}

@keyframes prVipPulse {
	0%, 100% { opacity: .45; }
	50%      { opacity: .85; }
}

/* ---- Card wrapper ---- */
.pr-vip-tables-card {
	border: 1px solid rgba(var(--pr-primary-color-rgb, 118, 0, 118), .25);
	border-radius: var(--pr-border-radius, 12px);
	background:
		linear-gradient(135deg,
			rgba(var(--pr-primary-color-rgb, 118, 0, 118), .06) 0%,
			rgba(var(--pr-secondary-color-rgb, 156, 28, 116), .04) 55%,
			rgba(255, 255, 255, 0) 100%);
	padding: 20px 18px 18px;
	position: relative;
	overflow: hidden;
}

.pr-vip-tables-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg,
		var(--pr-primary-color, #760076),
		var(--pr-secondary-color, #9c1c74),
		var(--pr-primary-color, #760076));
	background-size: 200% 100%;
	animation: prVipShimmer 4s linear infinite;
}

@keyframes prVipShimmer {
	from { background-position: 0 0; }
	to   { background-position: 200% 0; }
}

/* ---- Header ---- */
.pr-vip-tables-header {
	margin-bottom: 16px;
}

.pr-vip-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(120deg,
		var(--pr-primary-color, #760076),
		var(--pr-secondary-color, #9c1c74));
	padding: 5px 12px;
	border-radius: 999px !important;
	box-shadow: 0 2px 8px rgba(var(--pr-primary-color-rgb, 118, 0, 118), .35);
	margin-bottom: 10px;
}

.pr-vip-title {
	margin: 4px 0 4px !important;
	font-size: 19px;
}

.pr-vip-subtitle {
	margin: 0 !important;
	font-size: 13px;
	color: var(--pr-text-color, #2b1632);
	opacity: .75;
	line-height: 1.5;
}

.pr-vip-none {
	margin: 0 !important;
	font-size: 13px;
	padding: 10px 14px;
	background: #fff7ed;
	border: 1px solid #f59e0b;
	border-radius: 6px !important;
	color: #92400e;
}

/* ---- Table cards grid ---- */
.pr-vip-tables-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}

.pr-vip-table-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 12px 12px;
	background: #fff;
	border: 2px solid rgba(var(--pr-primary-color-rgb, 118, 0, 118), .15);
	border-radius: calc(var(--pr-border-radius, 12px) * .75);
	cursor: pointer;
	user-select: none;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
	animation: prVipCardIn .35s ease both;
}

.pr-vip-tables-grid .pr-vip-table-card:nth-child(2)  { animation-delay: .04s; }
.pr-vip-tables-grid .pr-vip-table-card:nth-child(3)  { animation-delay: .08s; }
.pr-vip-tables-grid .pr-vip-table-card:nth-child(4)  { animation-delay: .12s; }
.pr-vip-tables-grid .pr-vip-table-card:nth-child(5)  { animation-delay: .16s; }
.pr-vip-tables-grid .pr-vip-table-card:nth-child(6)  { animation-delay: .20s; }
.pr-vip-tables-grid .pr-vip-table-card:nth-child(n+7){ animation-delay: .24s; }

@keyframes prVipCardIn {
	from { opacity: 0; transform: translateY(8px) scale(.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pr-vip-table-card:hover,
.pr-vip-table-card:focus-visible {
	transform: translateY(-3px);
	border-color: rgba(var(--pr-primary-color-rgb, 118, 0, 118), .45);
	box-shadow: 0 8px 20px rgba(var(--pr-primary-color-rgb, 118, 0, 118), .16);
	outline: none;
}

.pr-vip-table-card.pr-vip-selected {
	border-color: var(--pr-primary-color, #760076);
	background: linear-gradient(160deg,
		rgba(var(--pr-primary-color-rgb, 118, 0, 118), .08),
		rgba(var(--pr-secondary-color-rgb, 156, 28, 116), .04));
	box-shadow: 0 6px 18px rgba(var(--pr-primary-color-rgb, 118, 0, 118), .22);
}

/* ---- Card content ---- */
.pr-vip-table-icon::before {
	content: '🍽️';
	font-size: 20px;
	line-height: 1;
}

.pr-vip-icon-auto::before {
	content: '✨';
}

.pr-vip-table-name {
	font-weight: 700;
	font-size: 14px;
	color: var(--pr-text-color, #2b1632);
	word-break: break-word;
}

.pr-vip-table-area {
	align-self: flex-start;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 999px !important;
}

.pr-vip-area-indoor {
	background: rgba(var(--pr-primary-color-rgb, 118, 0, 118), .12);
	color: var(--pr-primary-color, #760076);
}

.pr-vip-area-garden {
	background: #ecfdf5;
	color: #047857;
}

.pr-vip-table-meta {
	font-size: 12px;
	color: var(--pr-text-color, #2b1632);
	opacity: .65;
	line-height: 1.4;
}

/* ---- Selected checkmark ---- */
.pr-vip-check {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(120deg,
		var(--pr-primary-color, #760076),
		var(--pr-secondary-color, #9c1c74));
	border-radius: 50% !important;
	opacity: 0;
	transform: scale(.4);
	transition: opacity .18s ease, transform .22s cubic-bezier(.34, 1.56, .64, 1);
}

.pr-vip-table-card.pr-vip-selected .pr-vip-check {
	opacity: 1;
	transform: scale(1);
}

/* ---- Small screens ---- */
@media (max-width: 480px) {
	.pr-vip-tables-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.pr-vip-tables-card {
		padding: 16px 12px 12px;
	}
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
	#pl_vip_tables_section.pr-vip-visible,
	.pr-vip-table-card,
	.pr-vip-tables-card::before,
	.pr-vip-checking {
		animation: none !important;
	}

	.pr-vip-table-card,
	.pr-vip-check {
		transition: none !important;
	}
}
