/* =========================================================
   CookieYes – brand styling (Świąteczne Cuda)
   ========================================================= */

.cky-consent-container,
.cky-modal,
.cky-preference-center,
.cky-consent-bar,
.cky-notice,
.cky-preference-body,
.cky-preference-header,
.cky-accordion,
.cky-btn {
	font-family: var(--sc-font-sans, "Source Sans 3", system-ui, sans-serif) !important;
}

/* ----- Banner ----- */
.cky-consent-container {
	z-index: 99999 !important;
}

.cky-consent-bar,
.cky-notice {
	background:
		linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(247, 244, 239, 0.98)),
		var(--sc-cream, #f7f4ef) !important;
	border: 1px solid rgba(31, 77, 58, 0.14) !important;
	border-radius: 14px !important;
	box-shadow:
		0 18px 48px rgba(22, 56, 42, 0.16),
		0 2px 0 rgba(31, 77, 58, 0.06) !important;
	color: var(--sc-text, #2a2a2a) !important;
	overflow: hidden !important;
}

.cky-consent-bar::before,
.cky-notice::before {
	content: "";
	display: block;
	height: 3px;
	background: linear-gradient(
		90deg,
		var(--sc-green-dark, #16382a),
		var(--sc-green, #1f4d3a) 45%,
		var(--sc-beige, #e8dfd0)
	);
}

.cky-title,
.cky-preference-title {
	font-family: var(--sc-font-serif, "Cormorant Garamond", Georgia, serif) !important;
	font-weight: 600 !important;
	font-size: clamp(1.35rem, 2.2vw, 1.7rem) !important;
	line-height: 1.2 !important;
	color: var(--sc-green, #1f4d3a) !important;
	letter-spacing: 0.01em !important;
}

.cky-notice-des,
.cky-preference-content-wrapper,
.cky-accordion-header,
.cky-cookie-des-box,
.cky-preference-body p,
.cky-notice-des p,
.cky-notice-des span {
	font-size: 0.95rem !important;
	line-height: 1.55 !important;
	color: var(--sc-muted, #5c5c5c) !important;
}

.cky-notice-des a,
.cky-preference-content-wrapper a,
.cky-policy,
.cky-banner-element a {
	color: var(--sc-green, #1f4d3a) !important;
	text-decoration: underline !important;
	text-underline-offset: 0.15em !important;
	font-weight: 600 !important;
}

.cky-notice-des a:hover,
.cky-preference-content-wrapper a:hover {
	color: var(--sc-green-dark, #16382a) !important;
}

.cky-notice-btn-wrapper,
.cky-preference-btn-wrapper {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 0.55rem !important;
	align-items: center !important;
}

/* ----- Buttons ----- */
button.cky-btn,
.cky-btn {
	border-radius: 4px !important;
	font-family: var(--sc-font-sans, "Source Sans 3", system-ui, sans-serif) !important;
	font-size: 0.78rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	padding: 0.75rem 1.15rem !important;
	min-height: 2.65rem !important;
	box-shadow: none !important;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

button.cky-btn.cky-btn-accept {
	background: var(--sc-green, #1f4d3a) !important;
	border: 1.5px solid var(--sc-green, #1f4d3a) !important;
	color: #fff !important;
}

button.cky-btn.cky-btn-accept:hover,
button.cky-btn.cky-btn-accept:focus {
	background: var(--sc-green-dark, #16382a) !important;
	border-color: var(--sc-green-dark, #16382a) !important;
	color: #fff !important;
}

button.cky-btn.cky-btn-reject,
button.cky-btn.cky-btn-preferences {
	background: transparent !important;
	border: 1.5px solid rgba(31, 77, 58, 0.35) !important;
	color: var(--sc-green, #1f4d3a) !important;
}

button.cky-btn.cky-btn-reject:hover,
button.cky-btn.cky-btn-reject:focus,
button.cky-btn.cky-btn-preferences:hover,
button.cky-btn.cky-btn-preferences:focus {
	background: var(--sc-cream, #f7f4ef) !important;
	border-color: var(--sc-green, #1f4d3a) !important;
	color: var(--sc-green-dark, #16382a) !important;
}

button.cky-btn.cky-btn-customize {
	background: var(--sc-beige, #e8dfd0) !important;
	border: 1.5px solid transparent !important;
	color: var(--sc-green, #1f4d3a) !important;
}

button.cky-btn.cky-btn-customize:hover,
button.cky-btn.cky-btn-customize:focus {
	background: var(--sc-beige-dark, #d4c7b2) !important;
	color: var(--sc-green-dark, #16382a) !important;
}

/* ----- Preference center ----- */
.cky-overlay {
	background: rgba(18, 32, 26, 0.48) !important;
	backdrop-filter: blur(2px);
}

.cky-modal,
.cky-preference-center,
.cky-modal-open .cky-preference-center {
	background: var(--sc-white, #fff) !important;
	border: 1px solid rgba(31, 77, 58, 0.12) !important;
	border-radius: 14px !important;
	box-shadow: 0 22px 56px rgba(22, 56, 42, 0.2) !important;
	overflow: hidden !important;
}

.cky-preference-header {
	background: linear-gradient(180deg, var(--sc-cream, #f7f4ef), #fff) !important;
	border-bottom: 1px solid rgba(31, 77, 58, 0.1) !important;
	padding: 1.15rem 1.25rem !important;
}

.cky-preference-body {
	background: #fff !important;
}

.cky-accordion {
	border: 1px solid rgba(31, 77, 58, 0.1) !important;
	border-radius: 10px !important;
	background: var(--sc-cream, #f7f4ef) !important;
	margin-bottom: 0.65rem !important;
	overflow: hidden !important;
}

.cky-accordion-item,
.cky-accordion-header {
	background: transparent !important;
	color: var(--sc-green, #1f4d3a) !important;
}

.cky-accordion-header {
	font-weight: 600 !important;
}

.cky-always-active {
	background: rgba(31, 77, 58, 0.12) !important;
	color: var(--sc-green, #1f4d3a) !important;
	border-radius: 999px !important;
	font-size: 0.7rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
}

/* Switches */
.cky-switch input:checked,
input.cky-switch:checked,
.cky-switch input[type="checkbox"]:checked {
	background-color: var(--sc-green, #1f4d3a) !important;
	border-color: var(--sc-green, #1f4d3a) !important;
}

/* ----- Revisit button ----- */
.cky-btn-revisit-wrapper {
	background: var(--sc-green, #1f4d3a) !important;
	border: 0 !important;
	box-shadow: 0 8px 22px rgba(22, 56, 42, 0.28) !important;
}

.cky-btn-revisit-wrapper:hover {
	background: var(--sc-green-dark, #16382a) !important;
}

.cky-btn-revisit {
	background: transparent !important;
}

@media (max-width: 720px) {
	.cky-notice-btn-wrapper,
	.cky-preference-btn-wrapper {
		flex-direction: column !important;
		align-items: stretch !important;
	}

	button.cky-btn,
	.cky-btn {
		width: 100% !important;
		justify-content: center !important;
	}
}
