/*
Theme Name:     Neve Child
Theme URI:      https://themeisle.com/themes/neve/
Template: neve
Author:         VIVTEC
Author URI:     https://vivtec.co.za
Description:    Custom child theme developed by VIVTEC.
Version:        1.0.0
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    neve
Tags: blog, custom-logo, e-commerce, rtl-language-support, post-formats, grid-layout, one-column, two-columns, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, flexible-header, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, accessibility-ready, wide-blocks, block-styles
*/

:root {
	--primary-dark: color-mix(in srgb, var(--nv-primary-accent) 50%, #000000);
	--primary-darker: color-mix(in srgb, var(--nv-primary-accent) 70%, #000000);
	--primary-light: color-mix(in srgb, var(--nv-primary-accent) 50%, #ffffff);
	--primary-foo: color-mix(in srgb, var(--nv-primary-accent) 40%, #000000);
	--fs-100: clamp(0.8rem, 0.165vw + 0.759rem, 0.891rem);
	--fs-200: clamp(1rem, 0.341vw + 0.915rem, 1.188rem);
	--fs-300: clamp(1.25rem, 0.605vw + 1.099rem, 1.583rem);
	--fs-400: clamp(1.563rem, 0.996vw + 1.314rem, 2.11rem);
	--fs-500: clamp(1.953rem, 1.563vw + 1.562rem, 2.813rem);
	--fs-600: clamp(2.441rem, 2.378vw + 1.847rem, 3.749rem);
	--fs-700: clamp(3.052rem, 3.538vw + 2.167rem, 4.998rem);
}

html {
	margin: 0 !important;
	scroll-behaviour: smooth;
}

body {
	font: normal normal normal var(--fs-200)/1.5 Lato, system-ui;
	
	main {
		font-size: var(--fs-200);
	}
	
	:where(h1, h2, h3, h4, h5, h6, p, .lead, ul, li, ol) {margin-bottom: 1rem;}
	:where(p, ul, ol):has(+ :is(h1, h2, h3, h4, h5, h6)) {margin-bottom: 1.5rem;}
	:is(h1, h2, h3, h4, h5, h6, p, .lead, ul, li, ol, .button:not(.icon)):not(:has(+ :is(h1, h2, h3, h4, h5, h6, p, ul, .button:not(.icon)))) {margin-bottom: 0 !important;}
	
	h1 {font-size: var(--fs-500);}
	h2 {font-size: var(--fs-400);}
	h3 {font-size: var(--fs-300);}
	h4 {font-size: var(--fs-200);}
	h5 {font-size: var(--fs-200);}
	h6 {font-size: var(--fs-100);}
	
	.fs-100 :is(h1, h2, h3, h4, h5, h6, p, ul) {font-size: var(--fs-100);}
	.fs-200 :is(h1, h2, h3, h4, h5, h6, p, ul) {font-size: var(--fs-200);}
	.fs-300 :is(h1, h2, h3, h4, h5, h6, p, ul) {font-size: var(--fs-300);}
	.fs-400 :is(h1, h2, h3, h4, h5, h6, p, ul) {font-size: var(--fs-400);}
	.fs-500 :is(h1, h2, h3, h4, h5, h6, p, ul) {font-size: var(--fs-500);}
	.fs-600 :is(h1, h2, h3, h4, h5, h6, p, ul) {font-size: var(--fs-600);}
	.fs-700 :is(h1, h2, h3, h4, h5, h6, p, ul) {font-size: var(--fs-700);}
	
	ol ol, ol ul, ul ol, ul ul {
		margin-left: 0px;
		margin-top: 0rem;
	}
	
	& > .wrapper {
		overflow: visible !important;
		width: 100%;
	}
	
}

#wpadminbar {
	position: sticky;
}

header {
	--radius: 2em;
	--radius-gap: 2px;
	position: sticky;
	inset: 0 auto auto auto;
	z-index: 5;
	
	.admin-bar & {
		inset: 32px auto auto auto;
	}
	
	#header-grid {
		padding: 0 var(--radius-gap) var(--radius-gap) var(--radius-gap);
		margin: 0 calc(var(--radius-gap) * -1);
		overflow: clip;
		border-radius: 0 0 0 var(--radius);
		box-shadow: 0 0 10px 0 #A153A080;

		&::before {
			content: '';
			position: absolute;
			inset: 0 calc(var(--radius-gap) * -1);
			background: linear-gradient(to right, var(--nv-primary-accent), var(--nv-secondary-accent), var(--nv-primary-accent), var(--nv-secondary-accent)) 50% 50% / 300% 100% no-repeat scroll;
			animation: slide 6s ease-in-out infinite alternate;
		}

		.header-main {
			position: relative;
			border-radius: 0px 0px var(--radius) var(--radius);
		}

		.header-main-inner {
			border-radius: 0 0 0 calc(var(--radius) - (var(--radius-gap) / 2));
		}

	}
	
	nav {
		
		li a {
			position: relative;
			isolation: isolate;
			padding: 10px 15px !important;
			transition: 0.3s;
		}
		
		li.nv-active a {
			color: var(--bgcolor) !important;
			text-shadow: 0px 3px 3px #00000050;
			
			&::before {
				content: '';
				position: absolute;
				inset: 0;
				background: linear-gradient(to right, var(--nv-primary-accent), var(--nv-secondary-accent)) 50% 50% / 100% 100% no-repeat scroll;
				z-index: -1;
				transform: skew(-20deg, 0deg);
				border-radius: 5px 10px 5px 10px;
			}
			
		}
		
		li:not(.nv-active) a {
			background: linear-gradient(to right, var(--nv-primary-accent), var(--nv-secondary-accent), #ffffff, #ffffff) 100% 50% / 300% 100% no-repeat scroll;
			-webkit-text-fill-color: transparent;
			-webkit-background-clip: text;
		
			&:hover {
				background: linear-gradient(to right, var(--nv-primary-accent), var(--nv-secondary-accent), #ffffff, #ffffff) 0% 50% / 300% 100% no-repeat scroll;
				-webkit-text-fill-color: transparent;
				-webkit-background-clip: text;
			}
			
		}
		
	}
	
}

.gradient.elementor-widget-text-editor {
	background: linear-gradient(to bottom, var(--nv-primary-accent), var(--nv-secondary-accent)) 50% 50% / 100% 100% no-repeat scroll;
	-webkit-text-fill-color: transparent;
	-webkit-background-clip: text;
}

.gradient.elementor-widget-heading {
	position: relative;
	color: var(--nv-dark-bg) !important;
	text-shadow: 0px 3px 3px #00000050;
	
	&::before {
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(to right, var(--nv-primary-accent), var(--nv-secondary-accent)) 50% 50% / 100% 100% no-repeat scroll;
		z-index: -1;
		transform: skew(-20deg, 0deg);
		border-radius: 5px 10px 5px 10px;
	}
	
	&.success::before {
		background: linear-gradient(to right, #68CCE5, #00F6BB) 50% 50% / 100% 100% no-repeat scroll;
	}
	
}

.gradient.e-con-full {
	--radius: 2em;
	--radius-gap: 2px;
	position: relative;
	isolation: isolate;
	border-radius: 0 20px 20px 0;
	
	&::before {
		content: '';
		position: absolute;
		inset: 0 0 0 0;
		background: linear-gradient(to right, var(--nv-primary-accent), var(--nv-secondary-accent), var(--nv-primary-accent), var(--nv-secondary-accent)) 100% 50% / 300% 100% no-repeat scroll;
		z-index: -2;
		animation: slide 3s linear infinite;
		border-radius: var(--radius);
		box-shadow: 0 0 10px 0 #A153A080;
	}
	
	&.success::before {
		background: linear-gradient(to right, #68CCE5, #00F6BB, #68CCE5, #00F6BB) 100% 50% / 300% 100% no-repeat scroll;
	}
	
	&::after {
		content: '';
		position: absolute;
		inset: 2px 2px 2px 2px;
		background: #1a1d23;
		z-index: -1;
		border-radius: calc(var(--radius) - (var(--radius-gap) / 2));
	}
	
	&.bleed-l {
		
		&::before {
			inset: 0 0 0 auto;
			width: 100vw;
			border-radius: 0 var(--radius) var(--radius) 0;
		}
		
		&::after {
			inset: 2px 2px 2px auto;
			width: 100vw;
			border-radius: 0 var(--radius) var(--radius) 0;
		}
		
	}
	
	&.bleed-r {
		
		&::before {
			inset: 0 auto 0 0;
			width: 100vw;
			border-radius: var(--radius) 0 0 var(--radius) ;
			animation-direction: reverse;
		}
		
		&::after {
			inset: 2px auto 2px 2px;
			width: 100vw;
			border-radius: var(--radius) 0 0 var(--radius) ;
		}
		
	}	
	
}

.ea-woo-checkout-order-review {
	
	.product-thumbnail {
		width: unset !important;
		
		img {
			max-width: 100px;
		}
		
	}
	
}

.ea-woo-checkout-order-review {
	padding: 0 !important;
	margin-top: 20px !important;
}

.ea-order-review-table-footer .footer-content {
	width: 100% !important;
	margin: 20px 0 0 0 !important;
}

.woo-checkout-payment {
	padding-top: 0 !important;
}

button#place_order {
	width: 100% !important;
	margin: 20px 0 0 0 !important;
}

#customer_details#customer_details {
	display: flex;
	flex-flow: column;
	gap: 20px;
	
	& > * {
		width: 100% !important;
	}
	
}

.woocommerce-terms-and-conditions-checkbox-text {
	line-height: 1 !important;
}

.woocommerce-input-wrapper :is(input, textarea) {
	background: transparent !important;
}

.woocommerce-notices-wrapper, .button.wc-backward, .woocommerce-info {
	background: transparent !important;
	color: #fff !important;
	border-radius: 99px !important;
}

.eael-woo-cart-td.product-thumbnail {
	height: unset !important;
	
	img {
		aspect-ratio: 4 / 3;
		object-fit: contain;
	}
	
}

.payment_method_payfast img {
	filter: invert(100) brightness(100);
}

.custom {
	--radius: 2em;
	
	.eael-countdown-wrapper {
		overflow: clip;
		border-radius: var(--radius) var(--radius) var(--radius) var(--radius);
	}
	
	.woocommerce-loop-product__title {
		display: none;
	}
	
	.eael-product-price {
		margin: 0 !important;
		display: flex;
		align-items: center;
		justify-content: center;
		background: 
			linear-gradient(to bottom, #00000000, #00000080),
			var(--nv-secondary-accent);
		border-radius: 20px 0 0 0;
		padding: 10px 15px;
		min-height: 50px;
	}
	
	.product-details-wrap {
		padding: 0 !important;
	}
	
	.product-image-wrap img {
		aspect-ratio: 4 / 3;
		object-fit: contain;
		padding: 25px;
	}
}

.custom  {
	
	.eael-feature-list-title {
		display: none;
	}
	
	.eael-feature-list-content-box {
		place-content: center;
	}
	
}

.watermark {
	display: grid;
	grid-template-columns: repeat(3, 175px);
	align-items: flex-end;
	justify-content: flex-end;
	gap: 50px;
	rotate: -35deg;
	
	div {
		aspect-ratio: 1 / 1;
		border-radius: 10px;
		background: linear-gradient(to right, #ffffff0a, #ffffff00);
		animation: watermark 5s ease-in-out infinite alternate;
		
		&:nth-of-type(1) {
			scale: 0.7;
			animation-delay: -5s;
		}
		&:nth-of-type(2) {
			scale: 1;
			animation-delay: -2s;
		}
		&:nth-of-type(3) {
			scale: 0.7;
			animation-delay: -9s;
		}
		&:nth-of-type(4) {
			scale:1;
			animation-delay: -3s;
		}
		&:nth-of-type(5) {
			scale: 1;
			translate: 50% 0;
			width: 80%;
			animation-delay: -1s;
		}
		&:nth-of-type(6) {
			scale: 1;
			translate: 80% 0;
			animation-delay: -5.5s;
		}
		&:nth-of-type(7) {
			scale: 0.7;
			animation-delay: -2.5s;
		}
		&:nth-of-type(8) {
			scale: 1;
			animation-delay: -1.5s;
		}
		&:nth-of-type(9) {
			scale: 0.7;
			animation-delay: -3s;
		}
		&:nth-of-type(10) {
			scale: 0.7;
			animation-delay: -4.5s;
		}
		&:nth-of-type(11) {
			scale: 0.7;
			animation-delay: -5s;
		}
		&:nth-of-type(12) {
			scale: 0.7;
			animation-delay: 0s;
		}
		
	}
	
}

@keyframes watermark {
	0% {
		opacity: 1;
		translate: 0% 0%;
	}
	50% {
		opacity: 0;
		translate: -50% -20%;
	}
	100% {
		opacity: 1;
		translate: 0% 0%;
	}
}

#cmplz-document, #policies {
	max-width: unset;
	
	h1 {font-size: var(--fs-400);}
	h2 {font-size: var(--fs-300);}
	h3 {font-size: var(--fs-200);}
	h4 {font-size: var(--fs-200);}
	h5 {font-size: var(--fs-100);}
	h6 {font-size: var(--fs-100);}
	p {font-size: var(--fs-100);}
	li {font-size: var(--fs-100);}
	
	.cookies-per-purpose * {
		background: var(--e-global-color-nvsitebg) !important;
	}
	
}

@keyframes slide {
	to {
		background-position: 0% 50%
	}
}