/* plg_system_gdprcookies v1.1.0
 * Τα χρώματα έρχονται ως CSS μεταβλητές από το style="" του στοιχείου (ρυθμίσεις plugin)
 * και εφαρμόζονται με !important ώστε να μην τα αλλάζει το template.
 */

/* ---------- Βάση ---------- */
#gdpr-cookie-bar,
#gdpr-cookie-bar * {
	box-sizing: border-box !important;
}

/* Προστασία από γενικούς κανόνες του template (π.χ. div { background }) */
#gdpr-cookie-bar div,
#gdpr-cookie-bar span {
	background: transparent !important;
	border: 0;
	box-shadow: none;
	float: none !important;
}

#gdpr-cookie-bar {
	width: 100%;
	margin: 0 !important;
	padding: 0;
	font-family: inherit;
	font-size: var(--gdpr-fs, 14px) !important;
	line-height: 1.55 !important;
	text-align: left !important;
	color: var(--gdpr-text) !important;
	z-index: 99990;
	animation: gdpr-fade .35s ease both;
}

#gdpr-cookie-bar .gdpr-cookie-inner {
	display: flex;
	align-items: center;
	gap: 14px 22px;
	margin: 0 auto;
	color: var(--gdpr-text) !important;
}

#gdpr-cookie-bar .gdpr-cookie-badge {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	color: var(--gdpr-link) !important;
	background: rgba(255, 255, 255, .08) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
}

#gdpr-cookie-bar .gdpr-cookie-badge svg {
	display: block;
}

#gdpr-cookie-bar .gdpr-cookie-content {
	flex: 1 1 auto;
	min-width: 0;
}

#gdpr-cookie-bar .gdpr-cookie-title {
	margin: 0 0 2px !important;
	font-size: 1.15em !important;
	font-weight: 700 !important;
	letter-spacing: .01em;
	color: var(--gdpr-text) !important;
}

#gdpr-cookie-bar .gdpr-cookie-text,
#gdpr-cookie-bar .gdpr-cookie-text p {
	margin: 0 !important;
	color: var(--gdpr-text) !important;
	opacity: .92;
}

#gdpr-cookie-bar .gdpr-cookie-links {
	margin-top: 6px;
	font-size: .93em;
}

#gdpr-cookie-bar a,
#gdpr-cookie-bar a:visited {
	color: var(--gdpr-link) !important;
	text-decoration: none !important;
	font-weight: 600 !important;
	border-bottom: 1px solid currentColor;
	padding-bottom: 1px;
	background: none !important;
}

#gdpr-cookie-bar a:hover,
#gdpr-cookie-bar a:focus {
	color: var(--gdpr-link) !important;
	border-bottom-color: transparent;
}

#gdpr-cookie-bar .gdpr-sep {
	margin: 0 9px;
	opacity: .45;
}

/* ---------- Κουμπιά ---------- */
#gdpr-cookie-bar .gdpr-cookie-buttons {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 10px;
}

#gdpr-cookie-bar .gdpr-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 120px;
	margin: 0 !important;
	padding: 10px 22px !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-family: inherit !important;
	font-size: 1em !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	text-shadow: none !important;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18) !important;
	background-image: none !important;
	transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

#gdpr-cookie-bar.gdpr-btn-rounded .gdpr-btn { border-radius: 6px !important; }
#gdpr-cookie-bar.gdpr-btn-square .gdpr-btn { border-radius: 0 !important; }

#gdpr-cookie-bar .gdpr-btn-accept,
#gdpr-cookie-bar .gdpr-btn-accept:hover,
#gdpr-cookie-bar .gdpr-btn-accept:focus {
	background-color: var(--gdpr-accept-bg) !important;
	color: var(--gdpr-accept-text) !important;
}

#gdpr-cookie-bar .gdpr-btn-decline,
#gdpr-cookie-bar .gdpr-btn-decline:hover,
#gdpr-cookie-bar .gdpr-btn-decline:focus {
	background-color: var(--gdpr-decline-bg) !important;
	color: var(--gdpr-decline-text) !important;
}

#gdpr-cookie-bar .gdpr-btn:hover {
	transform: translateY(-1px);
	filter: brightness(1.08);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25) !important;
}

#gdpr-cookie-bar .gdpr-btn:active {
	transform: translateY(0);
}

#gdpr-cookie-bar .gdpr-btn:focus-visible {
	outline: 2px solid var(--gdpr-link) !important;
	outline-offset: 2px;
}

/* ---------- Μπάρες πλήρους πλάτους ---------- */
#gdpr-cookie-bar.gdpr-pos-top,
#gdpr-cookie-bar.gdpr-pos-top-fixed,
#gdpr-cookie-bar.gdpr-pos-bottom-fixed {
	background: var(--gdpr-bg) !important;
	padding: 16px 20px !important;
}

#gdpr-cookie-bar.gdpr-pos-top .gdpr-cookie-inner,
#gdpr-cookie-bar.gdpr-pos-top-fixed .gdpr-cookie-inner,
#gdpr-cookie-bar.gdpr-pos-bottom-fixed .gdpr-cookie-inner {
	max-width: 1200px;
}

/* Πάνω, σπρώχνει το περιεχόμενο */
#gdpr-cookie-bar.gdpr-pos-top {
	position: relative;
	border-bottom: 1px solid rgba(0, 0, 0, .15);
	animation-name: gdpr-slide-down;
}

/* Πάνω, σταθερή */
#gdpr-cookie-bar.gdpr-pos-top-fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
	animation-name: gdpr-slide-down;
}

/* Κάτω, σταθερή */
#gdpr-cookie-bar.gdpr-pos-bottom-fixed {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, .25);
	animation-name: gdpr-slide-up;
}

/* ---------- Πλαίσια (κάρτες) ---------- */
#gdpr-cookie-bar.gdpr-pos-box-left,
#gdpr-cookie-bar.gdpr-pos-box-right {
	position: fixed;
	bottom: 20px;
	width: 390px;
	max-width: calc(100% - 40px);
	animation-name: gdpr-slide-up;
}

#gdpr-cookie-bar.gdpr-pos-box-left { left: 20px; }
#gdpr-cookie-bar.gdpr-pos-box-right { right: 20px; }

#gdpr-cookie-bar.gdpr-pos-box-left .gdpr-cookie-inner,
#gdpr-cookie-bar.gdpr-pos-box-right .gdpr-cookie-inner,
#gdpr-cookie-bar.gdpr-pos-center .gdpr-cookie-inner {
	flex-direction: column;
	align-items: stretch;
	padding: 24px !important;
	background: var(--gdpr-bg) !important;
	border-radius: var(--gdpr-radius, 12px) !important;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .30), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}

#gdpr-cookie-bar.gdpr-pos-box-left .gdpr-cookie-badge,
#gdpr-cookie-bar.gdpr-pos-box-right .gdpr-cookie-badge,
#gdpr-cookie-bar.gdpr-pos-center .gdpr-cookie-badge {
	width: 52px;
	height: 52px;
}

#gdpr-cookie-bar.gdpr-pos-box-left .gdpr-cookie-buttons,
#gdpr-cookie-bar.gdpr-pos-box-right .gdpr-cookie-buttons,
#gdpr-cookie-bar.gdpr-pos-center .gdpr-cookie-buttons {
	margin-top: 4px;
}

#gdpr-cookie-bar.gdpr-pos-box-left .gdpr-btn,
#gdpr-cookie-bar.gdpr-pos-box-right .gdpr-btn,
#gdpr-cookie-bar.gdpr-pos-center .gdpr-btn {
	flex: 1 1 0;
	min-width: 0;
}

/* ---------- Κέντρο (αναδυόμενο) ---------- */
#gdpr-cookie-bar.gdpr-pos-center {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px !important;
	background: rgba(10, 12, 18, .55) !important;
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

#gdpr-cookie-bar.gdpr-pos-center .gdpr-cookie-inner {
	width: 480px;
	max-width: 100%;
	margin: 0;
	text-align: center !important;
	align-items: center;
	animation: gdpr-pop .35s cubic-bezier(.2, .9, .3, 1.2) both;
}

#gdpr-cookie-bar.gdpr-pos-center .gdpr-cookie-buttons {
	width: 100%;
}

#gdpr-cookie-bar.gdpr-pos-center .gdpr-cookie-content {
	text-align: center !important;
}

/* Κλείσιμο με απαλό σβήσιμο */
#gdpr-cookie-bar.gdpr-closing {
	animation: gdpr-out .25s ease forwards !important;
}

/* ---------- Εικονίδιο cookie ---------- */
#gdpr-cookie-icon.gdpr-cookie-icon {
	position: fixed;
	bottom: 18px;
	z-index: 99980;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--gdpr-icon-bg) !important;
	color: var(--gdpr-icon-color) !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .30) !important;
	cursor: pointer;
	opacity: .9;
	transition: transform .2s ease, opacity .2s ease;
	animation: gdpr-pop .35s ease both;
}

#gdpr-cookie-icon.gdpr-cookie-icon:hover,
#gdpr-cookie-icon.gdpr-cookie-icon:focus {
	opacity: 1;
	transform: scale(1.1) rotate(-12deg);
}

#gdpr-cookie-icon.gdpr-icon-left { left: 18px; }
#gdpr-cookie-icon.gdpr-icon-right { right: 18px; }

#gdpr-cookie-icon svg {
	display: block;
	fill: currentColor;
}

/* ---------- Κινήσεις ---------- */
@keyframes gdpr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gdpr-out { to { opacity: 0; } }
@keyframes gdpr-slide-down { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes gdpr-slide-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes gdpr-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	#gdpr-cookie-bar,
	#gdpr-cookie-bar *,
	#gdpr-cookie-icon {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------- Κινητά ---------- */
@media (max-width: 767px) {
	#gdpr-cookie-bar .gdpr-cookie-inner {
		flex-wrap: wrap;
	}

	#gdpr-cookie-bar.gdpr-pos-top .gdpr-cookie-badge,
	#gdpr-cookie-bar.gdpr-pos-top-fixed .gdpr-cookie-badge,
	#gdpr-cookie-bar.gdpr-pos-bottom-fixed .gdpr-cookie-badge {
		display: none;
	}

	#gdpr-cookie-bar .gdpr-cookie-buttons {
		width: 100%;
	}

	#gdpr-cookie-bar .gdpr-btn {
		flex: 1 1 0;
		min-width: 0;
	}

	#gdpr-cookie-bar.gdpr-pos-box-left,
	#gdpr-cookie-bar.gdpr-pos-box-right {
		left: 12px;
		right: 12px;
		bottom: 12px;
		width: auto;
		max-width: none;
	}
}

@media print {
	#gdpr-cookie-bar,
	#gdpr-cookie-icon {
		display: none !important;
	}
}
