/* ==========================================================================
   ds_cookie_popup.css
   Cookie consent popup – bottom right corner dialog (Accept / Deny only)
   ========================================================================== */

.ds-cookie-popup {
	position: fixed;
	right: 12px;
	bottom: 12px;
	z-index: 99999;
	width: 600px;
	max-width: calc(100vw - 24px);
	max-height: calc(100vh - 24px);
	overflow-y: auto;
	box-sizing: border-box;
	background-color: #ffffff;
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
	padding: 28px 32px 24px;
	font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1a1a1a;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.ds-cookie-popup.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Title ------------------------------------------------------------- */

.ds-cookie-popup__title {
	margin: 0 40px 18px 0;
	font-family: inherit;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	color: #222222;
}

/* Close button ------------------------------------------------------ */

.ds-cookie-popup__close {
	position: absolute;
	top: 20px;
	right: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #1a1a1a;
	cursor: pointer;
	line-height: 1;
	transition: opacity 0.2s ease;
}

.ds-cookie-popup__close:hover,
.ds-cookie-popup__close:focus-visible {
	opacity: 0.6;
}

.ds-cookie-popup__close svg {
	display: block;
	width: 22px;
	height: 22px;
}

/* Message ----------------------------------------------------------- */

.ds-cookie-popup__message {
	margin: 0 0 26px 0;
	font-size: 17px;
	font-weight: 300;
	line-height: 1.6;
	color: #1f1f1f;
}

/* Buttons ----------------------------------------------------------- */

.ds-cookie-popup__actions {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
}

.ds-cookie-popup__btn {
	flex: 1 1 0;
	box-sizing: border-box;
	padding: 16px 20px;
	border-radius: 8px;
	border: 1px solid transparent;
	font-family: inherit;
	font-size: 19px;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ds-cookie-popup__btn:focus-visible {
	outline: 3px solid #1a73c8;
	outline-offset: 2px;
}

.ds-cookie-popup__btn--accept {
	background-color: #1a73c8;
	color: #ffffff;
}

.ds-cookie-popup__btn--accept:hover,
.ds-cookie-popup__btn--accept:focus {
	background-color: #155fa4;
}

.ds-cookie-popup__btn--deny {
	background-color: #f4f4f4;
	border-color: #e3e3e3;
	color: #1a1a1a;
}

.ds-cookie-popup__btn--deny:hover,
.ds-cookie-popup__btn--deny:focus {
	background-color: #e9e9e9;
}

/* Cookie policy link ------------------------------------------------ */

.ds-cookie-popup__policy {
	margin: 0;
	text-align: center;
	font-size: 17px;
}

.ds-cookie-popup__policy a {
	color: #1a73c8;
	text-decoration: underline;
}

.ds-cookie-popup__policy a:hover,
.ds-cookie-popup__policy a:focus {
	color: #155fa4;
}

/* Small screens ----------------------------------------------------- */

@media (max-width: 640px) {
	.ds-cookie-popup {
		right: 12px;
		left: 12px;
		bottom: 12px;
		width: auto;
		padding: 24px 20px 20px;
		border-radius: 12px;
	}

	.ds-cookie-popup__title {
		font-size: 21px;
	}

	.ds-cookie-popup__message {
		font-size: 15px;
	}

	.ds-cookie-popup__actions {
		flex-direction: column;
		gap: 12px;
	}

	.ds-cookie-popup__btn {
		font-size: 17px;
		padding: 14px 18px;
	}
}

/* Respect users who prefer no motion ------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.ds-cookie-popup {
		transition: none;
	}
}
