/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* A11y Fixes */

/* Allow for esc key to close Kadence submenu */
.nav--toggle-sub li:hover > ul,
.nav--toggle-sub li.menu-item--toggled-on > ul,
.nav--toggle-sub li:not(.menu-item--has-toggle):focus > ul {
    display: none;
}

.main-navigation .menu-item .sub-menu,
header .navigation .menu-item .sub-menu {
    display: none;
}
.main-navigation .menu-item .sub-menu.submenu-open,
.main-navigation .menu-item .sub-menu.toggle-show,
header .navigation .menu-item .sub-menu.submenu-open,
header .navigation .menu-item .sub-menu.toggle-show  {
    display: block;
}

/* Gravity Forms */
.gform_wrapper.gravity-theme input[type="color"],
.gform_wrapper.gravity-theme input[type="date"],
.gform_wrapper.gravity-theme input[type="datetime-local"],
.gform_wrapper.gravity-theme input[type="datetime"],
.gform_wrapper.gravity-theme input[type="email"],
.gform_wrapper.gravity-theme input[type="month"],
.gform_wrapper.gravity-theme input[type="number"],
.gform_wrapper.gravity-theme input[type="password"],
.gform_wrapper.gravity-theme input[type="search"],
.gform_wrapper.gravity-theme input[type="tel"],
.gform_wrapper.gravity-theme input[type="text"],
.gform_wrapper.gravity-theme input[type="time"],
.gform_wrapper.gravity-theme input[type="url"],
.gform_wrapper.gravity-theme input[type="week"],
.gform_wrapper.gravity-theme select,
.gform_wrapper.gravity-theme textarea {
    font-size: 1rem;
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    color: var(--global-palette3);
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus,
.gform_wrapper.gravity-theme .gfield textarea:focus,
select:focus {
    border-color: #000000;
    outline: -webkit-focus-ring-color auto 1px !important;
}
/* Styling for floating label for gravity forms.
 * Add class of floating-label to desired form fields */
.floating-label {
    position: relative;
}

.floating-label label {
    position: absolute;
    top: 12px;
    left: 0;
    margin: 0;
    opacity: 0;
    line-height: 1.4;
    font-size: 1rem;
    transition: all ease 0.4s;
}

.floating-label:focus-within label,
.floating-label input:focus ~ label,
.floating-label textarea:focus ~ label,
.floating-label input.valid ~ label,
.floating-label textarea.valid ~ label,
.floating-label input:visited ~ label,
.floating-label textarea:visited ~ label,
.floating-label input:-webkit-autofill ~ label,
.floating-label textarea:-webkit-autofill ~ label,
.floating-label.input-active label {
    top: 0;
    left: 16px;
    font-size: 0.875rem !important;
    color: var(--global-palette3);
    opacity: 1;
}

/* Basic A11Y fixes for Kadence Blocks */
body .kt-blocks-modal-link:not(.kb-btn-global-inherit):focus-within {
    outline: inherit;
}

/* Search Bar */
.woocommerce-product-search {
    position: relative;
}
.woocommerce-product-search .screen-reader-text {
    cursor: text;
    font-size: 1rem;
    left: 1rem;
    margin: 0;
    opacity: 0;
    padding-right: 3.5em;
    position: absolute;
    top: 0.75rem;
    font-weight: 500;
    transition: all ease 0.4s;
}
.woocommerce-product-search:focus-within .screen-reader-text {
    clip: unset;
    clip-path: unset;
    height: auto;
    width: auto;
    left: 12px;
    padding: 0 5px !important;
    background: #fff;
    font-size: 13px !important;
    top: -13px;
    left: 1px;
    line-height: 19px;
    color: #383b41;
    opacity: 1;
}
.woocommerce-product-search input[type="search"]::placeholder,
.search-form input[type="search"]::placeholder {
    opacity: 1;
}

/* menu */
body:not(.hide-focus-outline)
    .header-navigation
    li.menu-item--has-toggle
    > a:focus
    .dropdown-nav-toggle {
    opacity: 1 !important;
}
body #search-drawer .drawer-inner form ::-webkit-input-placeholder {
    opacity: 1;
}
#search-drawer input:-webkit-autofill,
#search-drawer input:-webkit-autofill:focus {
    transition: background-color 0s 600000s, color 0s 600000s !important;
}

/* Cookies */
.cky-preference-header .cky-btn-close img {
    filter: brightness(0);
}

/* Kadence Slider */
.kb-splide .splide__pagination__page:focus-visible {
    outline: 2px solid #000;
}

/* Smart Slider */
body .n2-ss-slider :focus-visible,
body .n2-ss-slider a.n2-ow:focus-visible,
body .n2-ss-slider .n2-ow-all a:focus-visible {
    outline: 1px solid #fff !important;
    box-shadow: inset 0 0 0 1px #000000 !important;
}
.n2-ss-slider .n2-ss-widget.n2-ss-widget-hidden {
    display: none;
}
body .n2-ss-slider .n2-ss-slider-wrapper-inside .n2-ss-slider-controls {
    visibility:visible;
}

/* Forms */
body select,
body select.orderby {
    background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' class='kadence-svg-icon kadence-arrow-down-svg' fill='currentColor' version='1.1' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M5.293 9.707l6 6c0.391 0.391 1.024 0.391 1.414 0l6-6c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z'%3E%3C/path%3E%3C/svg%3E");
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
body select,
body .select2-container--default .select2-selection--single,
.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    border-color: #4e5c74;
    color: var(--global-palette3);
}

/* Events Calendar */
.tribe-events .datepicker .day.focused,
.tribe-events .datepicker .day:focus,
.tribe-events .datepicker .day:hover,
.tribe-events .datepicker .month.focused,
.tribe-events .datepicker .month:focus,
.tribe-events .datepicker .month:hover,
.tribe-events .datepicker .year.focused,
.tribe-events .datepicker .year:focus,
.tribe-events .datepicker .year:hover {
    outline: 2px solid #000;
}
.tribe-events-c-search__input-group {
    position: relative;
}
.tribe-events-c-search__input-group label {
    opacity: 0;
    transition: all ease 0.4s;
}
.tribe-events-c-search__input-group:focus-within label {
    clip: unset;
    height: auto;
    width: auto;
    opacity: 1;
    margin: 0;
    top: -40px;
}
.tribe-events
    .datepicker
    .next
    .tribe-events-c-top-bar__datepicker-nav-icon-svg
    path,
.tribe-events
    .datepicker
    .prev
    .tribe-events-c-top-bar__datepicker-nav-icon-svg
    path,
#primary
    .tribe-events
    .tribe-common-c-btn-icon--caret-left
    .tribe-common-c-btn-icon__icon-svg
    path,
#primary
    .tribe-events
    .tribe-common-c-btn-icon--caret-right
    .tribe-common-c-btn-icon__icon-svg
    path,
.tribe-events
    .tribe-events-c-nav__next:disabled
    .tribe-events-c-nav__next-icon-svg
    path,
.tribe-events
    button.tribe-events-c-nav__next:disabled
    .tribe-events-c-nav__next-icon-svg
    path {
    fill: #707070;
}

/* WooCommerce */
select.orderby:focus-visible {
    outline: 2px solid #000;
}
.kadence-shop-top-row {
    position: relative;
}
.kadence-shop-top-row .skip-link {
    right: 0;
    left: auto;
}
span.required {
    color: red;
}
.form-description {
    font-size: 1rem;
}
.kadence-product-gallery-thumbnails.splide.splide--nav
    > .splide__slider
    > .splide__track
    > .splide__list
    > .splide__slide:focus-visible,
.kb-splide .splide__arrows .splide__arrow:focus-visible {
    box-shadow: 0 0 0 3px #000 !important;
    outline: 2px solid #fff !important;
}
body .kb-advanced-slide-inner {
    overflow: visible;
}
/* used to display focus outline above, if needed adjust to not apply to general Kadence slider */
/*body .kb-splide .splide__list {
	padding:3px !important;
}
body .kb-splide.splide-initial .splide__list {
	gap:3px;
}*/
.gbtn.focused {
    outline: 2px solid #fff !important;
}
body .woocommerce form .form-row label {
    color: var(--global-palette3);
}
body .wp-element-button:disabled {
    opacity: 0.7;
}

/* End A11y Fixes */

/* Blog archive */

body.blog .kb-query-item.type-post {
    display: flex;
    flex-direction: column;
}

body.blog .kb-query-item.type-post .wp-block-kadence-column:last-child {
    flex-grow: 1;
}

body.blog .kb-sort,
body.blog .kb-sort:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='25' fill='none' stroke='%23222862' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* Hide cart button but not quote button */
.single_add_to_cart_button:not(.afrfqbt_single_page) {
    display: none;
    visibility:hidden;
}

.addify .return-to-shop {
    display: none;
    visibility:hidden;
}

/** Request a Quote **/

/* Page wrapper */
.adf-request-quote-page.template_one {
	margin: 0 auto;
}

/* Table wrapper */
.adf-request-quote-page .addify-quote-form__contents {
	border: 1px solid rgba(0, 0, 0, .08) !important;
	border-radius: 12px;
	overflow: hidden;
	background: rgb(255, 255, 255);
	margin-bottom: 28px !important;
	table-layout: fixed;
	width: 100%;
}

/* Header row */
.adf-request-quote-page .addify-quote-form__contents thead th {
	background: rgba(0, 0, 0, .03);
	font-weight: 600;
	font-size: 18px;
	color: rgb(17, 17, 17);
	padding: 16px 18px !important;
	text-align: left !important;
	border: 1px solid rgb(255, 255, 255) !important;
}

/* Product link */
.adf-request-quote-page .addify-quote-form__contents .product-name > a {
	font-weight: 600;
	color: var(--global-palette1);
	text-decoration: none;
	text-align: left;
}

.adf-request-quote-page .addify-quote-form__contents .product-name > a:hover {
	text-decoration: underline;
}

.adf-request-quote-page .addify-quote-form__contents dl.variation {
	margin: 8px 0 0;
	display: grid;
	grid-template-columns: max-content 1fr;
	column-gap: 6px;
	row-gap: 2px;
	text-align: left;
}

.adf-request-quote-page .addify-quote-form__contents dl.variation dt {
	font-weight: 600;
	color: rgb(17, 17, 17);
}

.adf-request-quote-page .addify-quote-form__contents dl.variation dd {
	margin: 0;
	color: rgba(0, 0, 0, .75);
	text-align: right;
}

.adf-request-quote-page .addify-quote-form__contents .product-name small {
	display: inline-block;
	margin-top: 8px;
	color: rgba(0, 0, 0, .65);
}

/* X */
.adf-request-quote-page .addify-quote-form__contents a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, .12);
	color: rgb(209, 26, 26) !important;
	font-size: 22px;
	line-height: 1;
	text-decoration: none;
	padding-bottom: 2px;
	padding-left: 1px;
}

.adf-request-quote-page .addify-quote-form__contents a.remove:hover {
	background: rgba(209, 26, 26, .08);
	border-color: rgba(209, 26, 26, .25);
}

.adf-request-quote-page .addify-quote-form__contents tbody td {
	font-size: 16px;
	background: rgb(255, 255, 255);
}

/* Form section */
.adf-request-quote-page .af_quote_fields {
	border-top: 1px solid rgba(0, 0, 0, .08) !important;
	padding-top: 28px !important;
	margin-top: 22px !important;
}

.adf-request-quote-page .quote-fields {
	gap: 16px;
}

.adf-request-quote-page .addify-option-field label {
	font-weight: 600;
	font-size: 16px;
	margin-bottom: 8px;
	color: rgb(17, 17, 17);
}

/* Inputs */
.adf-request-quote-page .af_quote_fields input[type="text"],
.adf-request-quote-page .af_quote_fields input[type="email"],
.adf-request-quote-page .af_quote_fields input[type="tel"],
.adf-request-quote-page .af_quote_fields select,
.adf-request-quote-page .af_quote_fields textarea {
	height: 48px !important;
	box-shadow: none !important;
	padding: 10px 12px !important;
	font-size: 16px;
}

/* Focus state */
.adf-request-quote-page .af_quote_fields input:focus,
.adf-request-quote-page .af_quote_fields select:focus,
.adf-request-quote-page .af_quote_fields textarea:focus {
	outline: none;
	border-color: var(--global-palette1) !important;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

/* Place Quote button */
.adf-request-quote-page .addify_checkout_place_quote.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 240px;
	height: 52px;
	padding: 10px 30px;
	border-radius: 999px;
	background: var(--global-palette1);
	border: 2px solid var(--global-palette1);
	color: rgb(255, 255, 255);
	font-weight: 400;
	font-size: 18px;
	line-height: 28px;
	text-transform: none;
	letter-spacing: .2px;
    margin-top: 20px;
}

.adf-request-quote-page .addify_checkout_place_quote.button:hover,
.adf-request-quote-page .addify_checkout_place_quote.button:focus-visible {
	background: transparent;
	color: var(--global-palette1);
}

@media (min-width: 766px) {
	.adf-request-quote-page .addify-quote-form__contents tbody td {
		padding: 16px 18px !important;
	}

	/* Row separators */
	.adf-request-quote-page .addify-quote-form__contents tbody tr + tr td {
		border-top: 1px solid rgba(0, 0, 0, .06) !important;
	}

	/* Column widths + alignment */
	.adf-request-quote-page .addify-quote-form__contents th.product-remove,
	.adf-request-quote-page .addify-quote-form__contents td.product-remove {
		width: 60px !important;
		text-align: center !important;
	}

	.adf-request-quote-page .addify-quote-form__contents th.product-thumbnail,
	.adf-request-quote-page .addify-quote-form__contents td.product-thumbnail {
		width: 180px;
		text-align: center;
	}

	.adf-request-quote-page .addify-quote-form__contents th.product-name,
	.adf-request-quote-page .addify-quote-form__contents td.product-name {
		text-align: left !important;
	}

	.adf-request-quote-page .addify-quote-form__contents th.product-quantity,
	.adf-request-quote-page .addify-quote-form__contents td.product-quantity {
		width: 110px;
		text-align: left !important;
	}

	.adf-request-quote-page .addify-quote-form__contents td.product-quantity .quantity {
		justify-content: center !important;
	}

	/* Thumbnail centering */
	.adf-request-quote-page .addify-quote-form__contents td.product-thumbnail {
		vertical-align: middle !important;
	}

	.adf-request-quote-page .addify-quote-form__contents td.product-thumbnail a {
		display: inline-flex;
		justify-content: center;
		align-items: center;
		width: auto;
	}

	.adf-request-quote-page .addify-quote-form__contents td.product-thumbnail img {
		display: block;
		margin: 0 auto;
		width: auto;
		height: auto;
		object-fit: contain;
		border-radius: 8px;
		background: rgba(0, 0, 0, .02);
	}

	/* Quantity input */
	.adf-request-quote-page .product-quantity input.qty {
		width: 72px !important;
		height: 42px !important;
		border-radius: 10px;
		border: 1px solid rgba(0, 0, 0, .14);
		box-shadow: none;
		padding: 6px 10px !important;
		text-align: center;
	}

	.adf-request-quote-page .addify-quote-form__contents td.product-quantity .quantity {
		display: flex;
	}
}

@media (max-width: 765px) {
	/* X */
	.adf-request-quote-page .addify-quote-form__contents a.remove {
		border-radius: 3px;
		border: none;
	}

	table.addify-quote-form__contents .product-remove {
		padding-left: 0px !important;
		background: rgb(255, 255, 255) !important;
	}

	form.addify-quote-form table.addify-quote-form__contents td {
		background: rgb(255, 255, 255) !important;
	}
}

/** END - Request a Quote **/

/** Header: My Account & Cart **/
#quote-li-icon.quote-li {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Base */
#quote-li-icon .afrq-menu-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 44px;
	padding: 0 14px;
	background: #fff;
	text-decoration: none;
	line-height: 1;
	position: relative;
	transition: background-color .2s ease, border-color .2s ease;
	color: var(--global-palette3);
}

/* Cart icon */
#quote-li-icon .afrq-menu-item .dashicons {
	font-size: 20px;
	width: 20px !important;
	height: 20px !important;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: currentColor;
}

/* Count badge */
#quote-li-icon .afrq-menu-item .totalitems {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--global-palette1);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	position: relative;
}

/* Underline Entire Cart */
#quote-li-icon .afrq-menu-item::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 3px;
	height: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .18s ease;
}

/* Hover/focus */
#quote-li-icon .afrq-menu-item:hover,
#quote-li-icon .afrq-menu-item:focus-visible {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
}

#quote-li-icon .afrq-menu-item:hover::after,
#quote-li-icon .afrq-menu-item:focus-visible::after {
	transform: scaleX(1);
}

/* Header Account Button */
.wp-block-woocommerce-customer-account > a {
	display: inline-flex;
	text-decoration: none;
	line-height: 1;
	position: relative;
}

/* Icon sizing */
.wp-block-woocommerce-customer-account .wc-block-customer-account__account-icon {
	width: auto !important;
	height: 28px !important;
	color: currentColor;
}

/* Label */
.wp-block-woocommerce-customer-account .label {
	line-height: 1;
}

/* Underline animation */
.wp-block-woocommerce-customer-account > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 3px;
	height: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .18s ease;
}

.wp-block-woocommerce-customer-account > a:hover::after,
.wp-block-woocommerce-customer-account > a:focus-visible::after {
	transform: scaleX(1);
}

.wp-block-woocommerce-customer-account > a:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .12);
	border-radius: 6px;
}

.wp-block-woocommerce-customer-account a:hover {
	text-decoration: none !important;
}
/** END - Header: My Account & Cart **/

/* A11y QC */
.yoast-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.yoast-breadcrumbs ol>li+li::before {
	content: "|";
	margin: 0 0.4em 0 0;
	color: inherit;
	opacity: 0.6;
}
.gform_wrapper.gravity-theme .gform_validation_errors>h2 {
    letter-spacing: 0;
}
@media (max-width: 767px) {
    .variations_form .woocommerce-variation-add-to-cart {
	    flex-direction: column;
	    row-gap: 16px;
    }
	.variations_form .variations_button .button {
		width: 100%;
	}
	.ksk-gallery .product_image {
		max-width: 100% !important;
	}
	.kwt-gallery-wrap {
		width: 100%;
	}
}
.site-main > .woocommerce-notices-wrapper {
	display: none;
}
.kadence-angled-bg .kb-blocks-bg-video-container .kb-background-video-buttons-wrapper {
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
}
.woocommerce-variation-add-to-cart .afrfqbt_single_page {
    margin-bottom: 0 !important;
}
body .kb-blocks-bg-video-container .kb-background-video-buttons-wrapper button.kb-toggle-video-btn {
    opacity: 1;
    background: rgba(0, 0, 0, .6);
}
body .kb-query-basic-style .kadence-filter-wrap input[type=checkbox], 
body .kb-query-basic-style .kadence-filter-wrap input[type=radio],
body .kb-query-basic-style .kadence-filter-wrap select,
body.woocommerce div.product form.variations_form table.variations select,
body.woocommerce div.product form.cart .quantity {
    border-color: var(--global-palette5);
}
body .kb-query-basic-style .kadence-filter-wrap select,
body .kb-query-basic-style .kadence-filter-wrap select:focus {
    background: transparent;
}
.kb-query-basic-style .wp-block-kadence-query-sort .kadence-filter-wrap {
    position: relative;
}
.kb-query-basic-style .wp-block-kadence-query-sort .kadence-filter-wrap::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--global-palette5);
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNSIgaGVpZ2h0PSIyNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjYmJiIiBzdHJva2Utd2lkdGg9IjIiPjxwYXRoIGQ9Im02IDkgNiA2IDYtNiIvPjwvc3ZnPg==);
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
}
body .kb-splide .splide__pagination__page,
body .splide .splide__pagination__page {
    width: 24px;
    height: 24px;
}
body .splide .splide__pagination,
body .kb-splide .splide__pagination, 
body .kb-splide ul.splide__pagination.splide__pagination {
    bottom: -45px;
}
.woocommerce div.product form.cart .button.added_to_quote {
	white-space: nowrap;
}