/**
 * Aqlano Popups & Cookies – Frontend
 * Uses theme default styles (Blocksy vars) where available.
 */

/* Overlay & backdrop */
.aqlano-pc-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	align-items: center;
	justify-content: center;
	display: flex;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.aqlano-pc-overlay.aqlano-pc-visible {
	opacity: 1;
	visibility: visible;
}

.aqlano-pc-overlay.aqlano-pc-closed {
	opacity: 0;
	visibility: hidden;
}

.aqlano-pc-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
}

/* Box – theme-aligned, centered content */
.aqlano-pc-box {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow: auto;
	background: var(--theme-palette-color-8, #fff);
	color: var(--theme-palette-color-3, #333);
	border-radius: var(--theme-button-border-radius, 12px);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
	padding: 32px 36px 36px;
	text-align: center;
}

/* Logo (branded layout) */
.aqlano-pc-logo-wrap {
	margin-bottom: 20px;
}

.aqlano-pc-logo {
	max-width: 180px;
	height: auto;
	display: block;
	margin: 0 auto;
	vertical-align: middle;
}

/* Title / heading – prominent, optional uppercase style */
.aqlano-pc-title {
	margin: 0 0 14px 0;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--theme-link-initial-color, var(--theme-palette-color-1, #2563eb));
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* Message */
.aqlano-pc-message-wrap {
	margin-bottom: 16px;
}

.aqlano-pc-message,
.aqlano-pc-disagree-msg {
	margin: 0 0 10px 0;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--theme-text-color, var(--theme-palette-color-3, #475569));
}

.aqlano-pc-disagree-msg {
	color: var(--theme-palette-color-2, #c2410c);
	font-weight: 500;
}

/* Terms of Service line */
.aqlano-pc-terms {
	margin: 0 0 20px 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--theme-text-color, var(--theme-palette-color-3, #334155));
	line-height: 1.5;
}

.aqlano-pc-terms a {
	color: inherit;
	text-decoration: underline;
}

.aqlano-pc-terms a:hover {
	color: var(--theme-link-hover-color, var(--theme-palette-color-2, #1d4ed8));
}

/* Disclaimer / legal – below buttons */
.aqlano-pc-disclaimer-wrap {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.08));
	text-align: center;
}

.aqlano-pc-disclaimer {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--theme-palette-color-3, #64748b);
	font-weight: 600;
}

/* Elementor template wrapper – no extra padding, content controls layout */
.aqlano-pc-elementor-wrap {
	margin: 0 -36px 0 -36px;
	padding: 0 36px 20px;
}

.aqlano-pc-elementor-wrap .elementor-section {
	--content-width: 100%;
}

/* Buttons – theme buttons */
.aqlano-pc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: center;
	margin-top: 8px;
}

.aqlano-pc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--theme-button-min-height, 44px);
	padding: var(--theme-button-padding, 10px 24px);
	font-size: 0.95rem;
	font-weight: 600;
	border: none;
	border-radius: var(--theme-button-border-radius, 8px);
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.aqlano-pc-btn:hover {
	opacity: 0.92;
}

.aqlano-pc-btn:active {
	transform: scale(0.98);
}

/* Agree = primary */
.aqlano-pc-btn-agree {
	background: var(--theme-button-background-initial-color, var(--theme-palette-color-1, #2563eb));
	color: var(--theme-button-text-initial-color, #fff);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.aqlano-pc-btn-agree:hover {
	background: var(--theme-button-background-hover-color, var(--theme-palette-color-2, #1d4ed8));
	color: var(--theme-button-text-hover-color, #fff);
}

/* Disagree = secondary */
.aqlano-pc-btn-disagree {
	background: transparent;
	color: var(--theme-text-color, var(--theme-palette-color-3, #64748b));
	border: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.1));
}

.aqlano-pc-btn-disagree:hover {
	border-color: var(--theme-palette-color-5, #cbd5e1);
	background: var(--theme-palette-color-8, rgba(0, 0, 0, 0.03));
}

.aqlano-pc-btn-disagree.aqlano-pc-btn-disabled {
	opacity: 0.6;
	cursor: default;
}
