/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ==========================================================================
   Sidebar - przewijalny po najechaniu myszką (desktop)
   ========================================================================== */

@media (min-width: 1024px) {
	.ct-sidebar {
		max-height: 100vh;
		overflow-y: auto;
		scrollbar-width: thin;
		scrollbar-color: transparent transparent;
		transition: scrollbar-color 0.3s ease;
	}

	.ct-sidebar:hover {
		scrollbar-color: var(--theme-palette-color-1, #3eaf7c) transparent;
	}

	/* Webkit (Chrome, Safari, Edge) */
	.ct-sidebar::-webkit-scrollbar {
		width: 6px;
	}

	.ct-sidebar::-webkit-scrollbar-track {
		background: transparent;
	}

	.ct-sidebar::-webkit-scrollbar-thumb {
		background: transparent;
		border-radius: 3px;
		transition: background 0.3s ease;
	}

	.ct-sidebar:hover::-webkit-scrollbar-thumb {
		background: var(--theme-palette-color-1, #3eaf7c);
	}
}

/* ==========================================================================
   Sidebar - ukryty na mobile (bo jest w off-canvas)
   ========================================================================== */

@media (max-width: 999px) {
	.ct-sidebar {
		display: none;
	}
}

/* ==========================================================================
   Share Box - custom ikona Facebook
   ========================================================================== */

.ct-share-box a[data-network="facebook"] .ct-icon-container {
	position: relative;
}

.ct-share-box a[data-network="facebook"] .ct-icon-container svg {
	visibility: hidden;
}

.ct-share-box a[data-network="facebook"] .ct-icon-container::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	-webkit-mask-image: url('https://kopia.nm.dfirma.pl/wp-content/uploads/2025/11/facebook.svg');
	mask-image: url('https://kopia.nm.dfirma.pl/wp-content/uploads/2025/11/facebook.svg');
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	background-color: currentColor;
}

/* ==========================================================================
   Lista składników (shortcode [lista_skladnikow])
   ========================================================================== */

ul.lista-skladnikow {
	margin: 1.5rem 0;
	padding-left: 0;
	list-style: none;
}

ul.lista-skladnikow li {
	margin-bottom: 0.5rem;
	padding-left: 1.75rem;
	position: relative;
	line-height: 1.5;
}

ul.lista-skladnikow li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.25em;
	width: 1em;
	height: 1em;
	-webkit-mask-image: url('https://kopia.nm.dfirma.pl/wp-content/uploads/2025/12/tick-2.svg');
	mask-image: url('https://kopia.nm.dfirma.pl/wp-content/uploads/2025/12/tick-2.svg');
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	background-color: #EFB043;
}

/* ==========================================================================
   Cookie banner - ukrycie przycisku odmowy
   ========================================================================== */

.ct-cookies-decline-button {
	display: none !important;
}

/* ==========================================================================
   WPForms - przycisk submit
   ========================================================================== */

.wpforms-submit,
.wpforms-page-button {
	border-radius: 9999px !important;
}
