/*
Theme Name:     Success
Theme URI:      https://demos.restored316.com/success/
Template:       kadence
Author:         Restored 316 // Lauren Dierschke
Author URI:     http://www.restored316designs.com/
Description:    A mobile responsive WordPress theme built for the Kadence Framework by Lauren Dierschke of Restored 316.
Version:        1.0.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/

/* Theme customization starts here
-------------------------------------------------------------- */

/* Add custom font to theme */
@font-face {
    font-family: 'Khalila';
    src: url('fonts/Khalila.woff2') format('woff2'),
        url('fonts/Khalila.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

.single-post .kadence-thumbnail-position-above {
	margin-bottom: 20px;
}

.entry-taxonomies .category-style-pill a {
	border-radius: 0;
	padding: 5px 10px;
}

/* Adjustments to carousel */
.kb-splide .splide__track {
	margin-left: 30px;
	margin-right: 30px;
}

.kb-splide .splide__arrow,
.kb-splide .splide__arrow:hover,
.kb-splide .splide__arrow:focus {
	background: none;
	opacity: 100;
}


/* Add hover effect to buttons*/
@media (hover: hover) {
    @supports (filter: blur()) {
        @media (hover: hover) and (prefers-reduced-motion: no-preference) {
            .button:hover,
            .form-submit .submit:hover {
                transform: var(--theme-button-transform, translate3d(0, -3px, 0));
            }
        }
    }
}

/* Edits to default WP search block */
.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper {
	border: 1px solid var(--global-palette3);
	border-radius: 100px;
}

.wp-block-search .wp-block-search__input {
	border: none;
	border-radius: 100px;
}

.wp-block-search .wp-block-search__button {
	border-radius: 100px;
}



/* Header Adjustments */
.site-header-row-container-inner {
	box-shadow: 0px 10px 20px rgba(44,62,80,0.05);
}

/* Vertical Align Posts to middle */
.grid-lg-col-1.item-image-style-beside.half article.loop-entry.has-post-thumbnail:not(.kb-post-no-image),
.grid-lg-col-1.item-image-style-beside article.loop-entry.has-post-thumbnail:not(.kb-post-no-image),
.kt-feat-image-align-left {
	align-items: center;
}

@media screen and (min-width: 768px) {
	.grid-lg-col-1.item-image-style-beside.half article.loop-entry.has-post-thumbnail:not(.kb-post-no-image) {
	    display: grid;
	    grid-template-columns: 1fr 1fr;
	    align-items: center;
	}
}

.kb-posts .entry-header {
    margin-bottom: 0;
}

/* Transform images left or right */

/* Add a class of transform-right to your element and it will rotate 5 degrees to the right */
.transform-right{
	position: relative;
	transform: rotate(3deg);
}

/* Add a class of transform-left to your element and it will rotate 5 degrees to the left */
.transform-left {
	position: relative;
	transform: rotate(-3deg);
}

@media screen and (min-width: 768px) {
    .kadence-account-nav-left.woocommerce-account .account-navigation-wrap {
        border-right: 0;
    }
    
    .kadence-account-nav-left.woocommerce-account .account-navigation-wrap li a {
        border: 1px solid var(--global-palette7);
        border-radius: 11px;
        margin-bottom: 10px;
    }
    
    .kadence-account-nav-left.woocommerce-account .account-navigation-wrap li.is-active a, 
    .kadence-account-nav-left.woocommerce-account .account-navigation-wrap li.is-active a:hover {
        background: var(--global-palette7);
        border: 1px solid var(--global-palette7);
    }
    
    .kadence-account-nav-left.woocommerce-account .account-navigation-wrap li:hover a {
        border: 1px solid var(--global-palette2);
    }
}

/* Menu Block */
.wp-block-navigation-item {
	width: 100%;
}

.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle,
.wp-block-navigation-item.open-on-hover-click a {
	background: #fff !important;
	border: 1px solid var(--global-palette5) !important;
	border-radius: 100px;
	padding: 12px 40px 12px 20px !important;
    color: #242424 !important;
	letter-spacing: 0;
	text-transform: none;
	width: 100%;
	font-weight: 700;
	font-size: 18px;
}

.wp-block-navigation-item .wp-block-navigation-submenu__toggle {
	transform: scale(1);	
}

.wp-block-navigation__submenu-icon {
	background: var(--global-palette1) !important;
	border-radius: 50%;
	width: 24px !important;
	height: 24px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	margin-left: -32px !important;
	z-index: 99;
}

.wp-block-navigation__submenu-icon svg {
	width: 12px !important;
	height: 12px !important;
	color: #fff;
}

.wp-block-navigation__submenu-container {
	background-color: var(--global-palette7) !important;
	border: none !important;
	left: 0 !important;
	margin-left: 0 !important;
	padding-left: 0 !important;
	width: 100% !important;
    box-shadow: 0px 0px 6px 0px rgb(0 0 0 / 5%);
}

.wp-block-navigation-item.open-on-hover-click .wp-block-navigation__submenu-container a {
	background-color: var(--global-palette7) !important;
	border: 0 !important;
	border-radius: 10px;
	font-size: 14px;
	padding: 10px 15px;
	z-index: 99;
}

.wp-block-navigation-item.open-on-hover-click .wp-block-navigation__submenu-container a:hover {
	background-color: var(--global-palette8) !important;
}

.wp-block-navigation__submenu-container li {
	font-weight: 700;
	font-size: 16px;
    color: #242424 !important;
	letter-spacing: 0;
	text-transform: none;
	font-size: 14px;
}

.wp-block-navigation__submenu-container li:hover {
	background: var(--global-palette8);
}

.wp-block-navigation__submenu-container li:last-of-type {
	border: none;
}

.wp-block-navigation__submenu-container li a {
	padding: 10px 15px;
}

@media only screen and (max-width: 767px) {

	.wp-block-navigation .wp-block-navigation-item,
	.wp-block-navigation__container{
		position: relative;
		flex-wrap: wrap !important;
	}
	
	.wp-block-navigation .has-child .wp-block-navigation__submenu-container{
		display: Block !important;
		position: relative !important;
		left: auto !important;
		top: auto !important;
		width: 100% !important;
	}
	
	
	.wp-block-navigation-item .wp-block-navigation-submenu__toggle,
	.wp-block-navigation__submenu-container li a{
		padding-top: 14px;
		padding-bottom: 14px;
	}

}

@media (max-width: 440px) {
	
	.wp-block-navigation.no-wrap {
		--navigation-layout-wrap: wrap;
	}
	
}

/* This will add the underline on a focused link in your navigation */
.black-focus a {
	background: url(images/BlackLine.png) bottom center no-repeat;
	background-size: 100%;
}

.blue-focus a {
	background: url(images/BlueLine.png) bottom center no-repeat;
	background-size: 100%;
}

.popup-drawer .blue-focus a,
.popup-drawer .black-focus a {
	background-image: none;
}

/* Add star to review posts */
.wp-block-kadence-posts.kb-posts-style-boxed .type-reviews .kadence-post-image-inner-wrap:before,
.wp-block-kadence-posts.kb-posts-style-boxed .type-reviews .post-thumbnail-inner:before {
    content: '';
    background: url(images/star.svg) center no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    display: block;
    position: absolute;
    top: 8%;
    left: 12%;
    transform: translate(-50%, -50%);
    filter: brightness(0) invert(1);
    opacity: 1;
    transition: .5s;
}

.wp-block-kadence-posts.kb-posts-style-boxed .loop-entry .entry-content-wrap {
	padding: 1rem !important;
}

.wp-block-kadence-posts.kb-posts-style-boxed .loop-entry,
.post-archive .entry {
	border-radius: 0;
	box-shadow: none;
	border: 1px solid var(--global-palette7);
	padding: 10px;
}

@media screen and (max-width: 719px) {
    .content-style-boxed .content-bg:not(.loop-entry) {
        margin-left: 0rem;
        margin-right: 0rem;
        width: auto;
    }
}

.wp-block-kadence-posts .entry.type-reviews {
	position: relative;
}

/* Star on single posts */

.custom-star-svg-wrapper svg {
    width: 50px;  
    height: 50px; 
    fill: var(--global-palette6);  
}

.custom-star-svg-wrapper {
    display: flex;
    justify-content: center;  
}

/* Author Box */

.entry-author-style-center .entry-author-avatar:before,
.entry-author-style-center .entry-author-avatar:after {
	background: var(--global-palette6);
	height: 2px;
}

.entry-author-style-center {
	border-bottom: 2px solid var(--global-palette6);
}

.entry-author-profile {
	background: var(--global-palette8);
	padding: 20px 20px 20px 120px;
}

.entry-author-avatar {
	left: 20px;
}

.entry-author-avatar img {
	border-radius: 100%;
}

/* Mobile Navigation */

.popup-drawer .drawer-inner {
	margin: 20px auto;
	position: relative;
	border-radius: 5px;
}

.popup-drawer .drawer-content {
	background: var(--global-palette9);
	border: 2px solid var(--global-palette7);
	margin: 10px;
}

.popup-drawer .drawer-header {
	background: var(--global-palette3);
}

/* WooCommerce Edits */
@media screen and (max-width: 719px) {
.woocommerce div.product .woocommerce-tabs {
	border: none;
}
}

.woocommerce .woocommerce-message, .woocommerce .woocommerce-error, .woocommerce .woocommerce-info {
	border-left: none;
	border-radius: 100px;
}