/* Areso Marketing Tools: μπάρα cookies */
:root {
	--amt-main: #ab9555;
	--amt-bg: #ffffff;
	--amt-text: #000000;
	--amt-configure-bg: #bfb9a6;
	--amt-configure-text: #595859;
	--amt-selection-bg: #c9c9c9;
	--amt-selection-text: #5c5c5c;
	--amt-accept-text: #ffffff;
}

.amt-consent[hidden],
.amt-consent-open[hidden],
.amt-consent .amt-cats[hidden],
.amt-consent .amt-btn[hidden] {
	display: none !important;
}

.amt-consent {
	position: fixed;
	z-index: 2147483000;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	padding: 12px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.45;
	color: var(--amt-text);
	pointer-events: none;
}

.amt-consent.amt-pos-bottom {
	bottom: 0;
}

.amt-consent.amt-pos-top {
	top: 0;
	align-items: flex-start;
}

.amt-consent.amt-pos-middle {
	top: 0;
	bottom: 0;
	align-items: center;
	background: rgba(0, 0, 0, 0.45);
	pointer-events: auto;
}

/* Ήπιος τρόπος: το σκούρο φόντο δεν σταματά τα κλικ (το κλικ έξω από το πλαίσιο μετρά ως αποδοχή και συνεχίζει στη σελίδα) */
.amt-consent.amt-mode-soft.amt-pos-middle {
	pointer-events: none;
	background: rgba(0, 0, 0, 0.35);
}

.amt-consent .amt-box {
	pointer-events: auto;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 24px);
	overflow: auto;
	background: var(--amt-bg);
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	padding: 20px 22px;
	box-sizing: border-box;
}

.amt-consent.amt-pos-bottom .amt-box,
.amt-consent.amt-pos-top .amt-box {
	max-width: 980px;
}

.amt-consent .amt-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--amt-main);
}

.amt-consent .amt-text p {
	margin: 0 0 8px;
}

.amt-consent .amt-text .amt-link {
	display: inline-block;
	margin-top: 4px;
	color: var(--amt-main);
	text-decoration: underline;
}

/* Κατηγορίες: μία γραμμή η καθεμία, κείμενο αριστερά και διακόπτης on/off δεξιά, όπως η μπάρα του Google Marketing Tools */
.amt-consent .amt-cats {
	display: block;
	margin: 14px 0 6px;
	border-top: 1px solid var(--amt-main);
}

.amt-consent .amt-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	cursor: pointer;
	margin: 0;
	padding: 9px 0 11px;
	border-bottom: 1px solid var(--amt-main);
	font-weight: 400;
}

.amt-consent .amt-cat-text {
	flex: 1 1 auto;
	min-width: 0;
}

.amt-consent .amt-cat-name {
	display: block;
	font-weight: 700;
	margin-bottom: 3px;
}

.amt-consent .amt-cat-explain {
	display: block;
	font-size: 12px;
	opacity: 0.8;
}

.amt-consent .amt-cat-explain p {
	margin: 0;
}

/* Ο διακόπτης: το checkbox μένει (αόρατο) για το JavaScript και την προσβασιμότητα, το σχήμα το δίνουν track και knob */
.amt-consent .amt-switch {
	position: relative;
	flex: 0 0 auto;
	width: 40px;
	height: 20px;
	display: block;
}

.amt-consent .amt-switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}

.amt-consent .amt-track {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.4);
	background: rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
	transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.amt-consent .amt-knob {
	position: absolute;
	top: 1px;
	left: 1px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.4);
	transition: transform 0.4s cubic-bezier(0.54, 1.85, 0.5, 1), box-shadow 0.4s;
	pointer-events: none;
}

.amt-consent .amt-switch input:checked ~ .amt-track {
	background: var(--amt-main);
	border-color: var(--amt-main);
	box-shadow: inset 0 0 0 10px var(--amt-main);
}

.amt-consent .amt-switch input:checked ~ .amt-knob {
	transform: translate3d(20px, 0, 0);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--amt-main);
}

.amt-consent .amt-switch input:focus-visible ~ .amt-track {
	outline: 2px solid var(--amt-main);
	outline-offset: 2px;
}

.amt-consent .amt-switch input:disabled {
	cursor: not-allowed;
}

.amt-consent .amt-switch input:disabled ~ .amt-track,
.amt-consent .amt-switch input:disabled ~ .amt-knob {
	opacity: 0.5;
}

.amt-consent .amt-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 14px;
}

.amt-consent .amt-btn {
	display: inline-block;
	width: auto;
	flex: 0 0 auto;
	margin: 0;
	border: 0;
	border-radius: 6px;
	padding: 10px 18px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
	text-transform: none;
	box-shadow: none;
}

.amt-consent .amt-btn-accept {
	background: var(--amt-main);
	color: var(--amt-accept-text);
}

.amt-consent .amt-btn-configure,
.amt-consent .amt-btn-refuse {
	background: var(--amt-configure-bg);
	color: var(--amt-configure-text);
}

.amt-consent .amt-btn-selection {
	background: var(--amt-selection-bg);
	color: var(--amt-selection-text);
}

/* Ήπιος τρόπος: η «Προσαρμογή» είναι σύνδεσμος, όχι κουμπί· τα κουμπιά είναι πάνω από τις κατηγορίες */
.amt-consent.amt-mode-soft .amt-btn-configure {
	background: transparent;
	color: var(--amt-configure-text);
	text-decoration: underline;
	font-weight: 500;
	padding-left: 8px;
	padding-right: 8px;
	margin-right: auto;
}

.amt-consent.amt-mode-soft .amt-cats {
	margin: 16px 0 0;
}

.amt-consent-open {
	position: fixed;
	z-index: 2147482000;
	left: 14px;
	bottom: 14px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--amt-main);
	color: var(--amt-accept-text);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

/* Το badge της Google κάθεται κάτω αριστερά· το κουμπί πάει λίγο πιο πάνω */
.google_badge_amt ~ .amt-consent-open,
body:has(.google_badge_amt) .amt-consent-open {
	bottom: 76px;
}

@media (max-width: 640px) {
	.amt-consent .amt-buttons {
		justify-content: stretch;
	}

	.amt-consent .amt-btn {
		flex: 1 1 100%;
	}

	.amt-consent.amt-mode-soft .amt-btn-configure {
		margin-right: 0;
		order: 2;
	}
}
