/**
 * MonoEdge Frontend Styles
 *
 * @package Monoedge\BookingOrdering
 * @since 1.0.0
 */

/* Color Palette - Frontend */
:root {
	/* Brand Colors */
	--monoedge-primary: #141b4d;
	--monoedge-accent: #00a3e0;
	--monoedge-neutral: #d1d3d4;
	--monoedge-warning: #fdac07;
	--monoedge-background: #fcfcfc;

	/* Shadows */
	--monoedge-shadow: rgba(20, 27, 77, 0.1);
	--monoedge-shadow-strong: rgba(20, 27, 77, 0.15);
}

.monoedge-booking-button,
.monoedge-order-button {
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 500;
	display: inline-block;
}

.monoedge-booking-button:hover,
.monoedge-order-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px var(--monoedge-shadow-strong);
}

.monoedge-booking-button:active,
.monoedge-order-button:active {
	transform: translateY(0);
}

/* iFrame Modal - Dialog Style */
.monoedge-iframe-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.monoedge-iframe-overlay.monoedge-active {
	opacity: 1;
	visibility: visible;
}

.monoedge-iframe-container {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.monoedge-iframe-wrapper {
	position: relative;
	width: min(96vw, 1400px);
	height: calc(var(--vh, 1vh) * 96);
	transform: scale(0.9);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.monoedge-iframe-overlay.monoedge-active .monoedge-iframe-wrapper {
	transform: scale(1);
	opacity: 1;
}

.monoedge-iframe-dialog {
	width: 100%;
	height: 100%;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

.monoedge-iframe-close {
	position: absolute;
	top: -22px;
	right: -22px;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.98);
	border: 2px solid rgba(0, 0, 0, 0.1);
	border-radius: 50%;
	color: #333;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	transition: all 0.2s ease;
}

.monoedge-iframe-close:hover {
	background: rgba(255, 255, 255, 1);
	border-color: rgba(0, 0, 0, 0.2);
	transform: rotate(90deg) scale(1.1);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.monoedge-iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
	border-radius: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.monoedge-iframe-wrapper {
		width: 98vw;
		height: calc(var(--vh, 1vh) * 98);
	}

	.monoedge-iframe-dialog {
		border-radius: 8px;
	}

	.monoedge-iframe {
		border-radius: 8px;
	}

	.monoedge-iframe-close {
		top: -18px;
		right: -18px;
		width: 40px;
		height: 40px;
		font-size: 24px;
	}
}

@media (max-width: 480px) {
	.monoedge-iframe-wrapper {
		width: 100vw;
		height: calc(var(--vh, 1vh) * 100);
	}

	.monoedge-iframe-dialog {
		border-radius: 0;
	}

	.monoedge-iframe {
		border-radius: 0;
	}

	.monoedge-iframe-close {
		top: 12px;
		right: 12px;
		width: 36px;
		height: 36px;
		font-size: 22px;
		border-width: 1px;
	}
}
