/**
 * Custom CSS Overrides for Aces high
 */

/* Layout */
.container {
	max-width: 1800px;
}

/*  Hide the extra category description that appears inside the content */
.site-content .term-description {
	display: none;
}

/* Hide main price on product page */
.entry-summary .price {
	display: none;
}

/* Hide price on category pages */
.products .product .price {
	height: 0;
	visibility: hidden;
}

/* Secondary Menu - float right */
.secondary-nav {
	float: right;
}

/* Secondary Menu - Search Styles */
.secondary-nav {
	padding: 0.2rem 0;
}

.secondary-nav .search-item {
	line-height: 3rem;
}

.secondary-nav .search-field {
	font-size: .8rem;
	padding: .5rem;
}

.secondary-nav .search-submit {
	font-size: .8rem;
	padding: .5rem;
}

/* Product - Variations Table */
#nipv-tablesorter {
	border: none;
}

/* Table - Hide headers */
#nipv-tablesorter thead {
	visibility: hidden;
}

/* Table - Generic styles for cells */
#nipv-tablesorter th,
#nipv-tablesorter td {
	padding: 1px 2px;
	background-color: #ffffff;
	border-top: none;
    border-left: none;
    border-right: none;
	text-align: center;
	font-size: 1rem;
	line-height: 1rem;
}

/* Table - Variation Value */
#nipv-tablesorter .variation-value {
	min-width: 2rem;
}

#nipv-tablesorter .variation-value:nth-child(2) {
	margin-left: 1rem;
}

/* Table - Variation Name */
#nipv-tablesorter th.variation,
#nipv-tablesorter td.variation {
	order: 1;
	text-align: left;
}

#nipv-tablesorter th.description,
#nipv-tablesorter td.description {
	order: 2;
	text-align: left;
}

/* Table - Price and Status */
#nipv-tablesorter th.price,
#nipv-tablesorter td.price {
	order: 3;
}

/* Table - Quantity */
#nipv-tablesorter th.quantity,
#nipv-tablesorter td.quantity {
	order: 4;
}

/* Table - Add to Cart Button */
#nipv-tablesorter th.action,
#nipv-tablesorter td.action {
	order: 5;
}

/* Table - description */
#nipv-tablesorter td.description {
	font-size: .8rem;
	font-weight: bold;
}

/* Table - Qty input */
#nipv-tablesorter td .qty {
    width: 3.631rem;
    text-align: center;
    padding: 0.2rem 0.5rem 0.2rem 1rem;
	margin-bottom: .1rem;
	font-size: 1rem;
	line-height: 1.2rem;
}

/* Table - Add to Cart Button */
#nipv-tablesorter a.button,
#nipv-tablesorter button {
    display: flex;
    width: 100%;
    max-width: 210px;
    vertical-align: top;
	align-items: center;
	justify-content: center;
    float: none;
    font-size: 0.8rem;
    line-height: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    background: #111;
    border-radius: 0;
    text-transform: uppercase;
    padding: 0.3rem 0.3rem;
    color: #fff;
    -webkit-transition: linear .2s;
    -moz-transition: linear .2s;
    transition: linear .2s;
}

/* Change Table to use Flex */
#nipv-tablesorter tr {
	position: relative;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	background: white;
	border-bottom: 1px solid #ccc;
}

@media only screen and (max-width: 1024px) {
	#nipv-tablesorter tr {
		padding-top: 1rem;
	}
}

@media only screen and (max-width: 767px) {
	#nipv-tablesorter tr {
		min-height: 5rem;
		margin-bottom: 1rem;
	}
}

#nipv-tablesorter td {
	flex: 1;
	flex-shrink: 1;
	border: none;
}

#nipv-tablesorter td.variation {
	flex-grow: 2;
}

@media only screen and (max-width: 1024px) {
	#nipv-tablesorter td.variation {
		position: absolute;
		top: .2rem;
	}
}

@media only screen and (min-width: 767px) {
	#nipv-tablesorter td.description {
			flex-grow: 3;
		}
}

#nipv-tablesorter td.action {
	display: flex;
}

#nipv-tablesorter .offer-price-button {
	margin-left: 0.2rem;
	background: #38c77d;
}

#nipv-tablesorter td.price {
	max-width: 95px;
}

#nipv-tablesorter td.quantity {
	max-width: 65px;
}

/* Table - Add to Cart Button Hover*/
#nipv-tablesorter a.button:hover,
#nipv-tablesorter button:hover {
    background-color: #d8bbb5;
}

/* Product - Margin below image and short description */
.woocommerce .site-content div.product div.images,
.woocommerce .site-content div.product div.summary {
	margin-bottom: 2rem;
}

/* Woocommerce Login / Reg page */
.woocommerce-account .woocommerce-form-login label .required,
.woocommerce-account .woocommerce-form-register label .required{
	display: none;
}

/* Input - Readonly */
.wpforms-field.read-only input[type=text] {
	background: #ededed !important;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Link - Added to cart */
.woocommerce a.added_to_cart {
	display: block;
	padding: .2rem;
}

/* Footer - Widget*/
.widget.widget_bttk_contact_social_links {
	padding-left: 1rem;
}

/* Home - Slideshow banners clickable */
.banner .item .banner-image {
	display: block;
	position: relative;
	z-index: 1;
}


/* Header - Widget Area */
.ahg-header-widget-area {
	position: absolute;
	top: 0;
	left: 2rem;
	font-size: 1rem;
	color: #121212;
	z-index: 10;
}

.ahg-header-widget-area	a {
	color: #121212;
}

.ahg-header-widget-area	a:visited {
	color: #121212;
}

/* Header - Widget Area - Admin logged in */
.admin-bar .ahg-header-widget-area {
	top: 2rem;
}

/* Header - Widget Area - Mobile */
@media only screen and (max-width: 767px) {
	.admin-bar .ahg-header-widget-area {
		top: 2.8rem;
	}
}

/* Header - Widget Area - Telephone */
.ahg-header-widget-area .header-telephone {
	font-size: 1.2rem;
	color: #121212;
}

.ahg-header-widget-area .header-email {
	color: #121212;
}


/* Header - Widget Area - Small Desktop */
@media only screen and (max-width: 1024px) {
	.ahg-header-widget-area {
		font-size: 0.9rem;
	}

	.ahg-header-widget-area .header-telephone {
		font-size: 1.1rem;
	}
}

/* Header - Widget Area - Mobile */
@media only screen and (max-width: 767px) {
	.ahg-header-widget-area {
		left: initial;
		right: 1rem;
		font-size: .8rem;
		line-height: 1.5rem;
	}

	.ahg-header-widget-area .header-telephone {
		font-size: 1rem;
	}
}

/* Header - Widget Area - XS */
@media only screen and (max-width: 360px) {
	.ahg-header-widget-area address {
		display: none;
	}
}

/* Header - Padding around Logo */
.header-m {
	padding: 1rem 0;
}

/* Nav - font size */
.main-navigation ul li {
	font-size: .8rem;
}

/* Nav - Padding */
.header-layout-two .main-navigation ul#primary-menu>li {
	padding: 1.7rem 0.9rem;
}

/* Nav - Icon */
.header-layout-two .main-navigation ul li.menu-item-has-children:after {
	right: 0;
}

/* Nav - Search & Cart padding */
.header-layout-two .header-b .tools {
	padding-left: 6px;
	margin: 25px 15px 25px 5px;
}

/* List - Alphabet sorting */
ul.ap_pagination {
	z-index: 1;
}

/* Product - Hide widget column on product page */
.product-template-default #primary + #secondary {
	display: none;
}

/* Product - keep width 100% */
.product-template-default #primary {
	width: 100%;
}

/* Category - Use Flex to switch order of columns */
.tax-product_cat .site-content > .row {
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-flow: row wrap;
	flex-flow: row wrap;
	width: 100%;
}

/* Category - Flex order to put sidebar on right */
.tax-product_cat .widget-area {
	-webkit-box-ordinal-group: 2;
	-moz-box-ordinal-group: 2;
	-ms-flex-order: 2;
	-webkit-order: 2;
	order: 2;
}

.tax-product_cat .content-area {
	-webkit-box-ordinal-group: 1;
	-moz-box-ordinal-group: 1;
	-ms-flex-order: 1;
	-webkit-order: 1;
	order: 1;
}

/* Category - Reduce top content margin */
.tax-product_cat .main-content {
	margin-top: 2rem;
}

/* Categry - Top of content mobile styles */
@media only screen and (max-width: 1024px) {

	.tax-product_cat .widget-area {
		-webkit-box-ordinal-group: 1;
		-moz-box-ordinal-group: 1;
		-ms-flex-order: 1;
		-webkit-order: 1;
		order: 1;
	}

	.tax-product_cat .content-area {
		-webkit-box-ordinal-group: 2;
		-moz-box-ordinal-group: 2;
		-ms-flex-order: 2;
		-webkit-order: 2;
		order: 2;
	}

	.tax-product_cat #secondary {
		margin-top: .2rem;
	}

	.tax-product_cat .widget-area .widget {
		margin: 0 0 2rem;
	}
}

/* Category - Alphabetical pagination reset link */
@media only screen and (min-width: 1024px) {
	.tax-product_cat .ap_pagination {
		line-height: 3rem;
	}
}

/* Category - Page sorter position */
@media only screen and (max-width: 767px) {
	.tax-product_cat.woocommerce .woocommerce-ordering,
	.tax-product_cat.woocommerce .woocommerce-ordering {
		float: right;
	}
}
