/* Woo Tile Manager — Showroom button + popup. No theme dependency. Prefix: .wgtm- */

.wgtm-showroom-wrap {
	position: relative;
	margin-top: 1em;
}

/* Overlay for modal backdrop */
.wgtm-showroom-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9998;
}

/* Trigger button */
.wgtm-showroom-trigger.wgtm-showroom-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.5em 1em;
	font: inherit;
	font-size: 1em;
	font-weight: 600;
	color: #fff;
	background: #333;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s ease;
	text-decoration: none;
}

.wgtm-showroom-trigger.wgtm-showroom-btn:hover,
.wgtm-showroom-trigger.wgtm-showroom-btn:focus-visible {
	background: #555;
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Action-btn trigger (Woodmart wishlist style) */
.wgtm-showroom-action-btn button.wgtm-showroom-trigger {
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	color: inherit;
}

/* Popup modal */
.wgtm-showroom-popup {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 9999;
	width: min(360px, calc(100vw - 2rem));
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.wgtm-showroom-popup-inner {
	position: relative;
	padding: 1.5rem;
}

.wgtm-showroom-popup-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #999;
	padding: 0.1em 0.3em;
}

.wgtm-showroom-popup-close:hover {
	color: #333;
}

.wgtm-showroom-popup-title {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	padding-right: 1.5rem;
}

.wgtm-showroom-popup-description {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.4;
	opacity: 0.9;
}

.wgtm-showroom-popup-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.wgtm-showroom-app-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.6em 1.2em;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	transition: opacity 0.2s ease;
}

.wgtm-showroom-app-btn:hover,
.wgtm-showroom-app-btn:focus {
	opacity: 0.85;
	color: #fff;
	text-decoration: none;
}

.wgtm-showroom-app-btn-icon {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.wgtm-showroom-app-btn-icon-img {
	width: 1.25em;
	height: 1.25em;
	display: block;
	filter: brightness(0) invert(1);
}

.wgtm-showroom-waze   { background: #33ccff; color: #fff; }
.wgtm-showroom-google { background: #4285f4; color: #fff; }
.wgtm-showroom-apple  { background: #000;    color: #fff; }

@media (max-width: 480px) {
	.wgtm-showroom-popup-buttons {
		flex-direction: column;
	}
}
