/* EU Cookies Auto - Frontend Styles (ÚOOÚ Compliant, Enfold & The7 Safe) */

.euc-root {
	--euc-primary: #1d63b8;
	--euc-bg: #ffffff;
	--euc-text: #1e293b;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--euc-text);
}

.euc-root *,
.euc-embed-wrap *,
.euc-policy-table-wrap * {
	box-sizing: border-box;
}

/* ===== Banner (1st layer) ===== */
.euc-banner {
	position: fixed;
	z-index: 999990;
	background: var(--euc-bg);
	color: var(--euc-text);
	box-shadow: 0 8px 34px rgba(15, 23, 42, 0.22);
	border: 1px solid rgba(15, 23, 42, 0.12);
}

.euc-banner[hidden],
.euc-modal[hidden],
.euc-reopen-btn[hidden] {
	display: none !important;
}

.euc-pos-bottom-bar {
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 0;
	border-left: none;
	border-right: none;
	border-bottom: none;
	padding: 18px 24px;
}

.euc-pos-bottom-bar .euc-banner-inner {
	max-width: 1260px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
}

.euc-pos-bottom-bar .euc-banner-text {
	flex: 1 1 420px;
}

.euc-pos-bottom-left,
.euc-pos-bottom-right {
	bottom: 20px;
	width: 420px;
	max-width: calc(100vw - 32px);
	border-radius: 12px;
	padding: 20px;
}

.euc-pos-bottom-left { left: 20px; }
.euc-pos-bottom-right { right: 20px; }

.euc-pos-center-modal {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 540px;
	max-width: calc(100vw - 32px);
	border-radius: 14px;
	padding: 24px;
}

.euc-banner-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 6px;
}

.euc-banner-msg {
	margin: 0;
	font-size: 13.5px;
	opacity: 0.9;
}

.euc-policy-link {
	color: var(--euc-primary);
	text-decoration: underline;
	margin-left: 4px;
	font-weight: 500;
}

.euc-banner-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.euc-pos-bottom-bar .euc-banner-actions {
	margin-top: 0;
	flex-shrink: 0;
}

/* Equal visual weight buttons (ÚOOÚ requirement) */
.euc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 7px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: opacity 0.15s ease, transform 0.1s ease;
}

.euc-btn:hover {
	opacity: 0.9;
}

.euc-btn-primary {
	background: var(--euc-primary);
	color: #ffffff;
	border-color: var(--euc-primary);
}

.euc-btn-secondary {
	background: #334155;
	color: #ffffff;
	border-color: #334155;
}

.euc-btn-outline {
	background: transparent;
	color: var(--euc-text);
	border-color: rgba(15, 23, 42, 0.35);
}

/* ===== Preferences Modal (2nd layer) ===== */
.euc-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.euc-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.58);
}

.euc-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: 88vh;
	background: var(--euc-bg);
	color: var(--euc-text);
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.euc-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.euc-modal-head h2 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: inherit;
}

.euc-close-x {
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	opacity: 0.7;
	padding: 2px 6px;
}

.euc-modal-body {
	padding: 16px 20px;
	overflow-y: auto;
	flex: 1;
}

.euc-modal-intro {
	margin: 0 0 14px;
	font-size: 13.5px;
	opacity: 0.85;
}

.euc-cat-card {
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 8px;
	padding: 12px 14px;
	margin-bottom: 10px;
}

.euc-cat-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.euc-cat-info strong {
	font-size: 14px;
}

.euc-cat-count {
	font-size: 12px;
	opacity: 0.6;
	margin-left: 4px;
}

.euc-cat-info p {
	margin: 4px 0 0;
	font-size: 12.5px;
	opacity: 0.82;
}

/* Accessible toggle switch */
.euc-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
	margin-top: 2px;
}

.euc-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.euc-slider {
	position: absolute;
	inset: 0;
	background: #cbd5e1;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.euc-slider::before {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	left: 3px;
	top: 3px;
	background: #ffffff;
	border-radius: 50%;
	transition: transform 0.2s ease;
}

.euc-switch input:checked + .euc-slider {
	background: var(--euc-primary);
}

.euc-switch input:checked + .euc-slider::before {
	transform: translateX(20px);
}

.euc-switch input:disabled + .euc-slider {
	opacity: 0.6;
	cursor: not-allowed;
}

.euc-cat-details {
	margin-top: 8px;
	font-size: 12px;
}

.euc-cat-details summary {
	cursor: pointer;
	color: var(--euc-primary);
	font-weight: 500;
}

.euc-mini-list {
	margin: 6px 0 0;
	padding-left: 18px;
	opacity: 0.85;
}

.euc-mini-list li {
	margin: 3px 0;
}

.euc-modal-foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	padding: 14px 20px;
	border-top: 1px solid rgba(15, 23, 42, 0.1);
	background: rgba(15, 23, 42, 0.02);
}

/* ===== Floating Reopen Button ===== */
.euc-reopen-btn {
	position: fixed;
	bottom: 16px;
	z-index: 999980;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 13px;
	border-radius: 999px;
	border: 1px solid rgba(15, 23, 42, 0.16);
	background: var(--euc-bg);
	color: var(--euc-text);
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
}

.euc-reopen-bottom-left { left: 16px; }
.euc-reopen-bottom-right { right: 16px; }

/* ===== Blocked YouTube / Google Maps Iframe Placeholder ===== */
.euc-embed-wrap {
	position: relative;
	width: 100%;
}

.euc-iframe-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	padding: 24px;
	background: #f1f5f9;
	border: 1px dashed #94a3b8;
	border-radius: 8px;
	text-align: center;
	color: #1e293b;
}

.euc-iframe-ph-inner strong {
	display: block;
	font-size: 16px;
	margin-bottom: 6px;
}

.euc-iframe-ph-inner p {
	margin: 0 0 14px;
	font-size: 13.5px;
	opacity: 0.85;
}

/* ===== Policy Page Cookie Table ===== */
.euc-cookie-table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0 24px;
	font-size: 14px;
}

.euc-cookie-table th,
.euc-cookie-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid rgba(15, 23, 42, 0.12);
	vertical-align: top;
}

.euc-cookie-table th {
	background: rgba(15, 23, 42, 0.04);
	font-weight: 700;
}

.euc-inline-reopen-btn {
	padding: 10px 18px;
	border-radius: 6px;
	border: none;
	background: #1d63b8;
	color: #ffffff;
	font-weight: 600;
	cursor: pointer;
}
