/* 
Theme Name: NerdStuds
Theme URI: https://github.com/elementor/hello-theme/
Description: This is a custom child theme built using the Elementor Hello theme.
Author: Jeremy Cox
Author URI: https://nerdstuds.com/
Template: hello-elementor
*/

@import "css/woocommerce-styles.css";

:root {
	--navy: #244C5A;
	--light-green: #D2E1D9;
	--text: #244C5A;
	--orange: #FFB549;
	--header-font: "nexa-rust-sans-black-2", Sans-serif;
	--book-font: "nexa_rust_sansbook", Sans-serif;
	--body-font: "brother-1816-printed", Sans-serif;
	--wavy-line-width: 28px;
	--wavy-btn-gap: 10px;
}

/* General Styles */

*:focus:not(:focus-visible),
body input:focus,
body button:focus,
body a:focus,
body i:focus,
body *:focus,
body input:focus-visible,
body button:focus-visible,
body a:focus-visible,
body i:focus-visible,
body *:focus-visible {
	outline-color: transparent !important;
	box-shadow: none !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
	-webkit-box-shadow: 0 0 0 30px white inset !important;
}

input:-webkit-autofill,
select:-webkit-autofill {
	-webkit-text-fill-color: var(--text) !important;
}

.product-loop-item p {
	margin-bottom: 0;
}

.product-loop-item .product-title {
	max-width: 375px !important;
}

a.iconic-wis-product-image {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

a.iconic-wis-product-image picture {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
}

a.iconic-wis-product-image picture > img {
	width: 100% !important;
	height: auto !important;
	display: block;
}

a.iconic-wis-product-image picture + picture {
	opacity: 0;
	transition: opacity .25s ease;
}

a.iconic-wis-product-image:hover picture:first-of-type { opacity: 0; }
a.iconic-wis-product-image:hover picture + picture { opacity: 1; }


.subpage-hero .elementor-widget-text-editor p {
	margin-bottom: 0 !important;
}

.elementor-lightbox .elementor-lightbox-image {
	border-radius: 16px !important;
	box-shadow: unset !important;
}

#footer h4 {
	margin: 0 0 20px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 1.6px;
	font-family: var(--book-font);
	font-size: 14px;
}

#footer p {
	margin-bottom: 0;
}

.ns-attribution img {
	opacity: .5;
	transition: all .5s ease;
}

.ns-attribution img:hover {
	opacity: 1;
	transition: all .5s ease;
}

.tooltip-btn {
	background: var(--navy);
	color: white;
	padding: 10px 20px;
	border-radius: 25px;
	box-sizing: border-box;
	display: inline-block;
	font-family: var(--book-font);
	font-weight: 600;
	font-size: 12px;
}

.e-hotspot__tooltip {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.e-hotspot__tooltip p {
	margin: 0;
}

/*.elementor-widget-hotspot .e-hotspot__tooltip,*/
/*.elementor-widget-hotspot .elementor-hotspot__tooltip {*/
/*	max-width: min(320px, calc(100vw - 24px)); !* 12px padding per side *!*/
/*	word-wrap: break-word;*/
/*	overflow-wrap: anywhere;*/
/*	!* We'll apply translate adjustments from JS using CSS vars: *!*/
/*	transform: translate(var(--shiftX, 0px), var(--shiftY, 0px));*/
/*	will-change: transform;*/
/*}*/

.elementor-testimonial {
	display: flex;
	flex-direction: column-reverse;
}

.elementor-testimonial__header {
	padding: 18px 30px 30px !important;
}

.elementor-testimonial__header cite {
	flex-direction: column-reverse;
	width: 100%;
	text-align: center;
}

.elementor-testimonial__content {
	text-align: center;
	padding: 65px 30px 0px !important;
}

.elementor-star-rating {
	position: absolute;
	top: 25px;
	left: 50%;
	transform: translateX(-50%)
}

.product-pillars .elementor-cta .elementor-cta__bg-overlay {
	background: linear-gradient(180deg,rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.29) 100%);
}

@media(max-width: 1100px) {
	body .product-pillars {
		flex-wrap: wrap;
		justify-content: center !important;
	}

	.product-pillars .elementor-widget-call-to-action {
		width: calc(33% - 12px) !important;
	}
}

@media(max-width: 1000px) {
	.e-hotspot__icon svg, .e-hotspot__label svg {
		height: 24px !important;
	}
}

@media(max-width: 690px) {
	#footer h4 {
		font-size: 12px;
		margin-bottom: 15px;
	}

	.product-pillars .elementor-widget-call-to-action {
		width: calc(50% - 12px) !important;
	}
}

@media(max-width: 480px) {
	.e-hotspot__icon svg, .e-hotspot__label svg {
		height: 20px !important;
	}
}

/* Wavy Button Styles */

.elementor-button--view-cart::before,
.elementor-button--view-cart::after,
.light-btn .elementor-button-content-wrapper::before,
.light-btn .elementor-button-content-wrapper::after {
	/* White Wavy Lines */
	content: url("/wp-content/uploads/2025/07/icon-wave-white.svg");
	position: relative;
	width: var(--wavy-line-width);
	margin-top: -1px;
	transition: filter .3s ease;
}

.elementor-button--view-cart:hover::before,
.elementor-button--view-cart:hover::after {
	/* White Wavy Lines Hover to Navy */
	filter: brightness(0) saturate(100%) invert(24%) sepia(24%) saturate(981%) hue-rotate(149deg) brightness(95%) contrast(91%);
	transition: filter .3s ease;
}

.elementor-field-type-submit button::before,
.elementor-field-type-submit button::after,
#place_order::before,
#place_order::after,
.checkout-button::before,
.checkout-button::after,
.elementor-button--checkout::before,
.elementor-button--checkout::after,
.single_add_to_cart_button::before,
.single_add_to_cart_button::after,
/*.e-apply-coupon::before,*/
/*.e-apply-coupon::after,*/
.elementor-cta__button::before,
.elementor-cta__button::after,
.navy-btn .elementor-button-content-wrapper::before,
.navy-btn .elementor-button-content-wrapper::after {
	/* Dark Wavy Lines */
	content: url("/wp-content/uploads/2025/07/icon-wave-navy.svg");
	position: relative;
	width: var(--wavy-line-width);
	margin-top: -1px;
	transition: all .3s ease;
}

.elementor-field-type-submit button:hover::before,
.elementor-field-type-submit button:hover::after,
#place_order:hover::before,
#place_order:hover::after,
.checkout-button:hover::before,
.checkout-button:hover::after,
.single_add_to_cart_button:hover::before,
.single_add_to_cart_button:hover::after,
/*.e-apply-coupon:hover::before,*/
/*.e-apply-coupon:hover::after,*/
.elementor-cta__button:hover::before,
.elementor-cta__button:hover::after,
.navy-btn a:hover .elementor-button-content-wrapper::before,
.navy-btn a:hover .elementor-button-content-wrapper::after {
	/* Dark Wavy Lines Hover to White */
	filter: brightness(0) invert(1);
	transition: filter .3s ease;
}

.elementor-button svg g {
	clip-path: unset;
}

#place_order,
.elementor-button--view-cart,
.elementor-button--checkout,
.single_add_to_cart_button,
.checkout-button,
/*.e-apply-coupon,*/
.elementor-button-content-wrapper,
.elementor-cta__button {
	display: inline-flex !important;
	justify-content: center;
	gap: var(--wavy-btn-gap);
}

@media(max-width: 480px) {
	/*:root {*/
	/*	--wavy-line-width: 23px !important;*/
	/*	--wavy-btn-gap: 5px !important;*/
	/*}*/
}

/* Menu Styles */

.main-nav {
	width: 100vw !important;
}

.e--pointer-underline .elementor-item:after {
	content: url("/wp-content/uploads/2025/07/icon-wave-teal.svg");
	width: 40px;
	background: unset !important;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
}

.mobile-menu .menu-item a {
	position: relative !important;
	width: fit-content;
}

.mobile-menu .e--pointer-underline .elementor-item:after {
	top: 30% !important;
	transform: translateY(-50%) !important;
	bottom: unset !important;
	left: unset !important;
	right: -50px;
}

.mobile-menu .elementor-button-icon,
.mobile-menu .menu-item-191 {
	display: none !important;
}

.main-nav svg g {
	clip-path: unset !important;
}

#elementor-menu-cart__toggle_button {
	padding: 0 !important;
	border: none !important;
}

.e-off-canvas__main {
	padding: 20px;
}

.elementor-widget-off-canvas:not(.elementor-element-e252702) .e-off-canvas__content {
	height: 100%;
}

.elementor-menu-cart__main .widget_shopping_cart_content {
	height: calc(100% - 20px) !important;
}

.elementor-menu-cart__main {
	margin: 20px;
}

#elementor-menu-cart__toggle_button {
	padding: 0 !important;
	background: unset !important;
	border: none !important;
	box-shadow: none !important;
}

.elementor-button--view-cart {
	color: white !important;
}

.elementor-button--view-cart:hover {
	background: white !important;
	color: var(--text) !important;
	box-shadow: 0 10px 20px 0 rgba(0,0,0,.2);
}

.elementor-button--checkout {
	border-color: var(--orange) !important;
	background: var(--orange) !important;
	color: var(--text) !important;
}

.elementor-button--checkout:hover {
	box-shadow: 0 10px 30px 0 rgba(0,0,0,.2);
}

.elementor-menu-cart__product-image img {
	border-radius: 8px;
}

/* Elementor Form Styles */

.inline-form input {
	height: 54px;
}

.inline-form .elementor-field-type-email {
	margin-right: -40px;
	margin-left: 20px;
}

.elementor-field-type-submit button {
	display: inline-flex;
	justify-content: center;
	gap: 10px;
}

@media(max-width: 1000px) {
	.inline-form .elementor-field-type-submit {
		width: 36% !important;
	}

	.inline-form .elementor-field-type-email {
		width: 64%;
	}
}

@media(max-width: 800px) {
	.inline-form .elementor-field-type-submit {
		width: 42% !important;
	}

	.inline-form .elementor-field-type-email {
		width: 58%;
	}
}

@media(max-width: 690px) {
	.inline-form .elementor-form-fields-wrapper {
		gap: 10px;
	}

	.inline-form .elementor-field-type-submit button,
	.inline-form .elementor-column {
		width: 100% !important;
	}

	.inline-form .elementor-field-type-email {
		margin: 0;
	}

	.inline-form .elementor-field-type-email input {
		border-radius: 25px !important;
	}
}

/* Gravity Form Styles */

.gfield.hide-desc .gfield_description,
.gravity-theme #stripe-payment-link::before,
.ginput_product_price_label,
.partial_entry_warning,
.grecaptcha-badge,
.gform_heading {
	display: none !important;
}

.gform-body input,
.gform-body textarea,
.gform-body select {
	border: 2px solid var(--light-green) !important;
	font-family: var(--body-font) !important;
	border-radius: 16px !important;
	background-color: white !important;
	color: var(--text) !important;
	padding: 10px 15px !important;
	font-size: 16px !important;
	line-height: 1.4em !important;
	min-height: 50px !important;
	box-shadow: unset !important;
}

.gform-body input::placeholder,
.gform-body select::placeholder {
	color: var(--text) !important;
	opacity: 1 !important;
	font-size: 16px !important;
}

.gform-theme--foundation .gform_fields {
	row-gap: 20px !important;
}

.gform-theme--framework .gform-loader {
	border-block-end-color: var(--navy) !important;
	border-block-start-color: rgba(255,255,255,.3) !important;
	border-inline-end-color: rgba(255,255,255,.3) !important;
	border-inline-start-color: var(--navy) !important;
}

.gfield--type-submit input,
.gform-footer input {
	line-height: 1em !important;
	color: white !important;
	background: var(--navy) !important;
	border: none !important;
	margin-bottom: 0 !important;
	font-weight: bold !important;
	padding: 16px 32px !important;
	border-radius: 25px !important;
	font-size: 14px !important;
	letter-spacing: 1.2px !important;
	text-transform: uppercase !important;
	font-family: var(--book-font) !important;
}

.gfield--type-submit input:hover,
.gform-footer input:hover {
	box-shadow: 0 10px 20px 0 rgba(0,0,0,0.2) !important;
	color: white !important;
}

.gform_footer {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 25px !important;
}

.gform_footer input[type="submit"]:focus {
	outline: transparent auto 0px !important;
	background-image: var(--navy) !important;
	color: white !important;
}

.gform_confirmation_message {
	padding: 30px;
	background: var(--text);
	font-family: var(--body-font);
	border-radius: 16px;
	text-align: center;
	font-size: 18px;
	line-height: 1.4em;
	font-weight: bold !important;
	color: white !important;
}

.gform-body input:-webkit-autofill,
.gform-body input:-webkit-autofill:hover,
.gform-body input:-webkit-autofill:focus,
.gform-body input:-webkit-autofill:active,
.gform-body select:-webkit-autofill,
.gform-body select:-webkit-autofill:hover,
.gform-body select:-webkit-autofill:focus,
.gform-body select:-webkit-autofill:active {
	-webkit-box-shadow: 0 0 0 30px white inset !important;
}

input:-webkit-autofill,
select:-webkit-autofill {
	-webkit-text-fill-color: var(--text) !important;
}

@media(max-width: 690px) {
	.gform-body input,
	.gform-body textarea,
	.gform-body select {
		font-size: 14px !important;
	}
}


/* Error Message Styles */

.gform_validation_errors {
	display: none !important;
}

.gform_wrapper.gravity-theme .gfield_error label,
.gform_wrapper.gravity-theme .gfield_error legend,
.gfield_required_asterisk
{
	color: salmon !important;
}

.gform_body input[aria-invalid=true],
.gform_body select[aria-invalid=true],
.gform_body textarea[aria-invalid=true] {
	border: 1px solid salmon !important;
}