/**
 * Aloeyou Mirror - Checkout styles
 */

/* Province/City selects - match checkout field styling */
.aloeyou-province-select,
.aloeyou-city-select {
	width: 100%;
}

/* Custom searchable dropdown (replaces Select2) */
.aloeyou-searchable-backdrop {
	position: fixed;
	inset: 0;
	z-index: 9990;
	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.aloeyou-searchable-backdrop.aloeyou-searchable-backdrop--visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.aloeyou-searchable-wrap {
	position: relative;
	width: 100%;
}

.aloeyou-searchable-wrap.aloeyou-searchable-open {
	z-index: 10000;
}

.aloeyou-searchable-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1em;
	background: #fff;
	cursor: pointer;
	box-sizing: border-box;
	transition: border-color 0.15s ease, border-radius 0.15s ease, box-shadow 0.15s ease;
}

.aloeyou-searchable-wrap.aloeyou-searchable-open .aloeyou-searchable-input {
	border-color: #2c7c7c;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	box-shadow: 0 0 0 1px rgba(44, 124, 124, 0.35);
}

.aloeyou-searchable-input:focus {
	outline: none;
	border-color: #2c7c7c;
}

.aloeyou-searchable-input::placeholder {
	color: #999;
}

/* One visual block: field + panel (not a second unrelated box) */
.aloeyou-searchable-dropdown {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	margin-top: -1px;
	padding: 0;
	background: #f8fafb;
	border: 1px solid #2c7c7c;
	border-top: none;
	border-radius: 0 0 6px 6px;
	box-shadow: 0 12px 32px rgba(15, 34, 58, 0.18);
	overflow: hidden;
	z-index: 1;
}

.aloeyou-searchable-wrap.aloeyou-searchable-open .aloeyou-searchable-dropdown {
	display: block;
}

.aloeyou-searchable-hint {
	margin: 0;
	padding: 8px 12px 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #637381;
	background: #eef2f5;
	border-bottom: 1px solid #dbe0e6;
	pointer-events: none;
	line-height: 1.3;
}

.aloeyou-searchable-wrap[data-field="city"] .aloeyou-searchable-hint::before {
	content: 'Επιλογές πόλης';
}

.aloeyou-searchable-wrap[data-field="province"] .aloeyou-searchable-hint::before {
	content: 'Επιλογές νομού';
}

.aloeyou-searchable-list {
	margin: 0;
	padding: 4px 0;
	list-style: none;
	max-height: 240px;
	overflow-y: auto;
	background: #fff;
}

.aloeyou-searchable-item {
	padding: 11px 12px 11px 14px;
	cursor: pointer;
	border-bottom: 1px solid #eef1f4;
	border-left: 3px solid transparent;
	font-size: 0.95em;
	line-height: 1.35;
	color: #212b36;
	background: #fff;
	transition: background 0.12s ease, border-left-color 0.12s ease;
}

.aloeyou-searchable-item:last-child {
	border-bottom: none;
}

.aloeyou-searchable-item:hover,
.aloeyou-searchable-item:focus {
	background: #f0f7f7;
	border-left-color: #2c7c7c;
}

.aloeyou-searchable-item:active {
	background: #e2f0f0;
}

/* Popup content */
.aloeyou-mirror-popup-content {
	padding: 40px 30px;
	text-align: center;
	max-width: 400px;
	margin: 0 auto;
}

.aloeyou-mirror-popup-inner {
	position: relative;
}

.aloeyou-mirror-message {
	font-size: 16px;
	line-height: 1.5;
	margin: 20px 0 0;
	color: #333;
}

/* Loader - simple CSS spinner */
.aloeyou-mirror-loader {
	width: 48px;
	height: 48px;
	margin: 0 auto;
	border: 4px solid #f0f0f0;
	border-top-color: #2c7c7c;
	border-radius: 50%;
	transition: opacity 0.2s;
}

.aloeyou-mirror-loader.loading {
	animation: aloeyou-mirror-spin 0.8s linear infinite;
}

@keyframes aloeyou-mirror-spin {
	to { transform: rotate(360deg); }
}

.aloeyou-mirror-popup-actions {
	margin-top: 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	align-items: center;
}

.aloeyou-mirror-retry-btn {
	margin: 0;
	cursor: pointer;
}

.aloeyou-mirror-timeout-banner {
	color: #b32d2e;
	margin: 16px 0 0;
	font-weight: 600;
}

.aloeyou-mirror-error {
	color: #b32d2e;
	margin-top: 15px;
	padding: 10px;
	background: #fcf0f1;
	border-radius: 4px;
}

.aloeyou-mirror-close {
	margin-top: 15px;
	padding: 10px 20px;
	cursor: pointer;
}

/* Backdrop for fallback popup */
.aloeyou-mirror-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.5);
	z-index: 999998;
}

/* Inline fallback when Magnific not available */
.aloeyou-mirror-popup-content.aloeyou-mirror-popup-visible {
	position: fixed;
	max-width: 500px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	z-index: 999999;
	box-shadow: 0 4px 20px rgba(0,0,0,0.15);
	border-radius: 8px;
}

.aloeyou-mirror-debug {
	margin-top: 20px;
	padding: 15px;
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-align: left;
	font-size: 12px;
	max-height: 200px;
	overflow: auto;
}

.aloeyou-mirror-debug pre {
	margin: 0 0 10px;
	white-space: pre-wrap;
	word-break: break-all;
}

.aloeyou-mirror-popup-content {
	display: none;
}

.aloeyou-mirror-popup-content.aloeyou-mirror-popup-visible {
	display: block;
}

/* Hidden fields - ensure they're not visible */
.aloeyou-province-hidden,
.aloeyou-city-hidden {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
.mfp-container.mfp-inline-holder {
    background: #000000a3;
    position: fixed;
    top: 0;
    border: 0;
    left: 0;
    right: 0;
    z-index: 9;
    height: 100%;
}
.aloeyou-mirror-popup-inner pre {
	text-align: center;
    overflow: auto;
    margin-bottom: 20px;
    padding: 20px;
    background: #399860;
    color: white;
    font-family: 'Montserrat';
    font-size: 20px;
    font-weight: 700;
    padding: 10px;
}
.aloeyou-mirror-popup-inner, .aloeyou-mirror-message {
    font-size: 20px;
}
@media(max-width: 768px) {
	.aloeyou-mirror-popup-content.aloeyou-mirror-popup-visible {
		left: .5em;
		right: .5em;
		top: 0;
		transform: translate(0, 5em);
	}
	.aloeyou-mirror-popup-content{
		padding: 30px 10px;
	}
	.aloeyou-mirror-message {
		font-size: 18px;
	}
	.aloeyou-searchable-input {
		font-size: 16px !important;
	}
}