/* Wedding Expo Exhibitors.
   Colors come from Изложители → Настройки (printed as inline CSS variables after this file);
   the values below are only fallbacks. The widget's Style tab can still override per widget. */

.wee-tabs,
.wee-empty {
	--wee-accent: #6f8ec8;
	--wee-text: #000;
	--wee-on-accent: #fff;
}

.wee-tabs {
	font-family: Montserrat, sans-serif;
	/* Montserrat switches to Bulgarian (cursive-like) letterforms under lang="bg". */
	font-feature-settings: "locl" 0;
}

/* Tabs */
.wee-tabs .wee-tablist {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 36px;
}

.wee-tabs .wee-tab {
	appearance: none;
	margin: 0;
	padding: 10px 20px;
	border: 1px solid var(--wee-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--wee-text);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}

.wee-tabs .wee-tab:hover {
	background: color-mix(in srgb, var(--wee-accent) 12%, transparent);
	color: var(--wee-text);
}

.wee-tabs .wee-tab[aria-selected="true"] {
	background: var(--wee-accent);
	color: var(--wee-on-accent);
}

.wee-tabs .wee-tab:focus-visible {
	outline: 2px solid var(--wee-accent);
	outline-offset: 3px;
}

/* Grid */
.wee-tabs .wee-panel[hidden] {
	display: none;
}

.wee-tabs .wee-panel:not([hidden]) {
	animation: wee-fade .3s ease;
}

@keyframes wee-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.wee-tabs .wee-panel:not([hidden]) { animation: none; }
}

.wee-tabs .wee-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Card */
.wee-tabs .wee-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	text-align: center;
}

.wee-tabs .wee-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: color-mix(in srgb, var(--wee-accent) 15%, #fff);
}

/* Fixed 1:1 frame, always filled. Which part of the photo is shown (focus point
   + zoom) is set per exhibitor in the admin and comes in as inline style. */
.wee-tabs .wee-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.wee-tabs .wee-card__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wee-accent);
	font-size: clamp(32px, 6vw, 64px);
	font-weight: 600;
}

.wee-tabs .wee-card__name {
	margin: 14px 0 0;
	color: var(--wee-text);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

/* Contacts */
.wee-tabs .wee-contacts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.wee-tabs .wee-contacts--list {
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.wee-tabs .wee-contact {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--wee-accent);
	text-decoration: none;
	transition: color .2s;
}

.wee-tabs .wee-contacts--icons .wee-contact {
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid currentColor;
	border-radius: 50%;
}

.wee-tabs .wee-contact:hover,
.wee-tabs .wee-contact:focus-visible {
	color: var(--wee-text);
}

.wee-tabs .wee-icon {
	flex: none;
	width: 16px;
	height: 16px;
}

.wee-tabs .wee-contact__text {
	font-size: 13px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.wee-tabs .wee-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.wee-empty {
	padding: 20px;
	border: 1px dashed var(--wee-accent);
	text-align: center;
}

@media (max-width: 1024px) {
	.wee-tabs .wee-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
}

@media (max-width: 767px) {
	/* One swipeable row instead of 4–5 wrapped rows; the fade shows there is more.
	   justify-content must stay flex-start: the widget's Alignment control
	   (centre) would push the start of the overflowing row off-screen to the left. */
	.wee-tabs .wee-tablist {
		position: relative;
		flex-wrap: nowrap;
		justify-content: flex-start !important;
		gap: 8px;
		margin-left: 0;
		margin-right: 0;
		padding: 2px 0 6px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent 100%);
		mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent 100%);
	}
	.wee-tabs .wee-tablist::-webkit-scrollbar { display: none; }
	.wee-tabs .wee-tab {
		flex: none;
		padding: 9px 16px;
		font-size: 12px;
		white-space: nowrap;
		scroll-snap-align: start;
	}
	.wee-tabs .wee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.wee-tabs .wee-card__name { font-size: 14px; }
}

/* Popup (only cards with a description). Theme/kit button styles are reset
   with !important because Hello/Elementor style every <button> on hover/focus. */
.wee-tabs .wee-card--has-info {
	cursor: pointer;
}

.wee-tabs .wee-card__more,
.wee-tabs .wee-card__more:hover,
.wee-tabs .wee-card__more:focus,
.wee-tabs .wee-card__more:active {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 6px 0 0;
	padding: 2px 0;
	border: 0 !important;
	border-radius: 0;
	background: none !important;
	box-shadow: none !important;
	color: var(--wee-accent) !important;
	font-family: inherit;
	font-feature-settings: inherit; /* buttons don't inherit it by default */
	font-size: 13px;
	font-weight: 500;
	letter-spacing: normal;
	line-height: 1.4;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
}

.wee-tabs .wee-card__more span[aria-hidden] {
	transition: transform .2s;
}

.wee-tabs .wee-card--has-info:hover .wee-card__more span[aria-hidden] {
	transform: translateX(4px);
}

.wee-tabs .wee-card__more:focus-visible {
	outline: 2px solid var(--wee-accent);
	outline-offset: 3px;
}

html.wee-modal-open {
	overflow: hidden;
}

.wee-tabs .wee-modal {
	width: min(980px, calc(100vw - 48px));
	max-width: none;
	height: min(600px, calc(100dvh - 48px));
	max-height: none;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: var(--wee-text);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
	overflow: hidden;
}

.wee-tabs .wee-modal[open] {
	display: flex;
}

.wee-tabs .wee-modal::backdrop {
	background: rgba(20, 20, 30, .65);
}

.wee-tabs .wee-modal__close,
.wee-tabs .wee-modal__close:hover,
.wee-tabs .wee-modal__close:focus,
.wee-tabs .wee-modal__close:active {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 50%;
	background: none !important;
	box-shadow: none !important;
	color: var(--wee-text) !important;
	cursor: pointer;
	outline: none;
}

.wee-tabs .wee-modal__close svg {
	transition: transform .2s;
}

.wee-tabs .wee-modal__close:hover svg {
	transform: rotate(90deg);
}

.wee-tabs .wee-modal__close:focus-visible {
	outline: 2px solid var(--wee-accent);
}

.wee-tabs .wee-modal__body:focus {
	outline: none;
}

.wee-tabs .wee-modal__body,
.wee-tabs .wee-popup {
	display: flex;
	flex: 1;
	min-width: 0;
	min-height: 0;
}

.wee-tabs .wee-popup__media {
	flex: 0 0 46%;
	min-height: 0;
	background: color-mix(in srgb, var(--wee-accent) 15%, #fff);
}

.wee-tabs .wee-popup__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.wee-tabs .wee-popup__content {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	min-height: 0;
	padding: 48px 44px 32px;
	text-align: left;
}

.wee-tabs .wee-popup--no-photo .wee-popup__content {
	padding-inline: 56px;
}

.wee-tabs .wee-popup__name {
	flex: none;
	margin: 0 32px 22px 0;
	color: var(--wee-text);
	font-family: inherit;
	font-size: 26px;
	font-weight: 600;
	letter-spacing: .01em;
	line-height: 1.25;
}

.wee-tabs .wee-popup__name::after {
	content: "";
	display: block;
	width: 44px;
	height: 2px;
	margin-top: 16px;
	background: var(--wee-accent);
}

.wee-tabs .wee-popup__info {
	flex: 1;
	min-height: 0;
	margin-right: -14px;
	padding-right: 14px;
	overflow-y: auto;
	overscroll-behavior: contain;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.7;
	color: #333;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--wee-accent) 50%, transparent) transparent;
}

.wee-tabs .wee-popup__info p {
	margin: 0 0 14px;
}

.wee-tabs .wee-popup__info p:last-child {
	margin-bottom: 0;
}

.wee-tabs .wee-popup__info strong {
	color: var(--wee-text);
	font-weight: 600;
}

.wee-tabs .wee-popup__contacts {
	flex: none;
	justify-content: flex-start;
	margin: 0;
	padding: 22px 0 0;
	border-top: 1px solid color-mix(in srgb, var(--wee-accent) 25%, transparent);
	margin-top: 22px;
}

@media (max-width: 767px) {
	.wee-tabs .wee-modal {
		width: calc(100vw - 24px);
		height: auto;
		max-height: calc(100dvh - 24px);
	}

	.wee-tabs .wee-modal__body {
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.wee-tabs .wee-popup {
		flex-direction: column;
		min-height: min-content;
	}

	.wee-tabs .wee-popup__media {
		flex: none;
		height: 44vh;
	}

	.wee-tabs .wee-modal__close,
	.wee-tabs .wee-modal__close:hover,
	.wee-tabs .wee-modal__close:focus {
		top: 10px;
		right: 10px;
		background: rgba(255, 255, 255, .9) !important;
	}

	.wee-tabs .wee-popup__content,
	.wee-tabs .wee-popup--no-photo .wee-popup__content {
		padding: 26px 22px 24px;
	}

	.wee-tabs .wee-popup--no-photo .wee-popup__name {
		margin-right: 40px;
	}

	.wee-tabs .wee-popup__name {
		font-size: 21px;
	}

	.wee-tabs .wee-popup__content {
		min-height: auto;
	}

	.wee-tabs .wee-popup__info {
		flex: none;
		overflow: visible;
		margin-right: 0;
		padding-right: 0;
	}
}
