/*
* Main css file for the productbuilder editable layouts

* @package productbuilder
* @author Sakis Terz (sakis@breakDesigns.net)
* @copyright	Copyright (C) 2010-2020 breakDesigns.net. All rights reserved
* @license	GNU/GPL v3
* see administrator/components/com_productbuilder/COPYING.txt
*/

#pb_mainPage {
    --wrappers-top-margin:1em;
}

#pb_mainPage label {
	display: inline-block;
}

/* But we want the labels to be inline, when the radio btns are visible */
#pb_mainPage ul.groupSelect:not(.groupSelectImg):not(.groupSelectRadioImg) label {
	display: inline;
}

.pb_toolbar {
	margin-top: 1em;
}

.pb_toolbar label {
	display: inline-block;
}

/* The custom product's image */
.pb_prod_img {
	padding: 10px;
	height: 4em;
	overflow: hidden;
	margin: 0.5em auto;
	display: inline-block;
}

.pb_prod_img img {
	height: 100%;
	width: auto;
}

.group_descr {
	display: inline-block;
	box-sizing: border-box;
}

/*groups*/
#pb_mainPage #groups_part {
	float: left;
	margin: 0;
}

#groups_part form {
	margin:0 0 1.3em;
}

.group_wrap_all {
	margin-bottom: 10px;
	padding: 0;
}

#pb_mainPage .group {
	width: 98%;
	margin: 0;
	padding: 0;
	float: left;
}

#pb_mainPage .group_header {
	margin-top: 0 !important;
	margin-bottom: 1em;
}

#pb_mainPage .group_header h3 {
	margin: 0 !important;
	padding: 0.5em 1em;
}

/*everything below the group header*/
#pb_mainPage .group_details {
	padding: 1em;
	padding-top: 0;
}

#pb_mainPage .group_search {
	margin-top: 1em;
}

/*contains the select and radio buttons*/
#pb_mainPage .product_wrap {
    margin-top: var(--wrappers-top-margin);
	float: left;
	max-height: 550px;
	overflow-y: auto;
	overflow-x: hidden;
}

/*contains the product's thumb images*/
.img_product_full {
	width: 100%;
}

/*contains the price the quantity , product details and the lamp*/
.product_wrap_r {
	float: right;
    margin-top: var(--wrappers-top-margin);
}

#pb_mainPage .productname, .group_search, .groupSelect {
	width: 100%;
	margin-top: 1em;
	float: left;
}

/* the select or the ul list*/
#pb_mainPage .groupSelect {
	list-style: none !important;
	padding: 0;
	margin: 0;
}

/* the select or the ul list*/
#pb_mainPage .groupSelect li {
	padding: 0;
	background: none;
	text-align: left;
}

#pb_mainPage .product_wrap > ul.groupAreaFullWidth {
	width: 100%;
}

.groupAreaFullWidth {
	width: 100%;
}

.groupSelectImgPrdName .pb_productname, .groupSelectRadioImg .pb_productname {
	padding: 0 0 10px 10px;
}

.groupSelectRadioImg li input{
	display: none;
}

.groupSelectImg li, .groupSelectRadioImg li {
	display: inline-block;
	box-sizing: border-box;
	height: auto;
	margin: 0.7em 0.7em 0 0;
}

.groupSelectImg li input {
	display: none;
}

.groupSelectImg li:not(.pb_null_option) label, .groupSelectRadioImg li:not(.pb_null_option) label {
	border: 1px solid #cccccc;
	box-sizing: border-box;
	padding: 12px !important;
}

.groupSelectImg li img, .groupSelectRadioImg li img{
	padding: 0;
	margin: 0;
	height: 95px;
}

.groupSelectImg li label:hover {
	cursor: pointer;
}

.pb_null_option {
	width: 100%;
	clear: both !important;
	margin-bottom: 0.7em;
}

.pb_null_option label {
	display: inline-block !important;
	width: 10%;
	min-width: 80px;
	border: 1px solid #cccccc;
	vertical-align: middle;
	text-align: center;
	padding: 5px;
	color: #333333;
}

/*Price*/
.pr_price {
	float: right;
}

/*Quantity */
.pb_quantity_wrapper {
	float: right;
	margin: 0;
    margin-inline-end: 1em;
}

#pb_mainPage .pr_price input, #pb_mainPage .pb_quantity_wrapper input, #pb_mainPage .pb_quantity_wrapper select {
	/*Some templates display the inputs as block and give width*/
	display: inline;
	width: auto;
}

.quantity_box {
	font-size: 1em;
	font-weight: bold;
}

.quantity_box_button {
	width: 17px !important;
	height: 17px !important;
	border: none;
	padding: 0;
	margin: 0;
}

.quantity_box_button:focus {
	border: none;
}

.quantity_box_button_up {
	padding: 0;
	margin: 0;
	background: url(../images/plus.png) 0 0 no-repeat !important;
}

.quantity_box_button_down {
	padding: 0;
	margin: 0;
	background: url(../images/minus.png) 0 0 no-repeat !important;
}

/*prod details link*/
.pr_details {
	position: relative;
	width: 100%;
	margin: var(--wrappers-top-margin);
	margin-inline-start: 0;
}

.active_group {
	float: right;
	margin-top: 18px;
	width: 16px;
	height: 16px;
	background: url(../images/lamp_off.png) center center no-repeat;
}

#img_descr {
	width: 33%;
	float: right;
	position: relative;
	top: 0;
}

/*image area*/
#image_part {
	float: left;
	position: relative;
	min-width: 140px;
	min-height: 140px;
	border: 1px solid;
	clear: both;
}

#full_img {
	display: block;
	float: left;
}

#full_img:hover {
	border: 1px solid #cccccc;
}

.imgWrapper {
	position: absolute;
	left: 0;
	top: 0;
}

#image_part_stat {
	width: 100%;
}

.imgWrapper_stat {
	float: left;
	margin: 10px;
	margin-inline-start: 0;
}

.imgWrapper_stat_r {
	float: left;
	margin: 0;
	margin-inline-start: 1em;
}

.imgWrap_in {
	padding: 10px;
	display: block;
}

.pb_ins_img {
	overflow: hidden;
}

/*description part*/
#description {
	margin-top: 10px;
}

.mflbl {
	font-weight: bold;
}

/* --Attributes/Custom Fields--*/
.attributes {
	margin-top:1.5em;
}

.atr_line {
	width: 100%;
	clear: left;
	line-height: 1.3em;
	margin-bottom: 8px;
}

.inner_atr_wrapper {
	clear: both;
	margin-bottom: 5px;
}

/*The name of the attribute/custom field */
.atrhead {
	line-height: 1.3em;
	font-weight: bold;
	text-align: left;
}

/*custom txt attribute wrapper*/
.cus_attr_wrapper {
	margin-top: 15px;
}

/*custom txt attribute label*/
.atrhead_txt {
	width: 100px;
	text-align: right;
}

/*custom txt attribute input text*/
.atr_text {
	width: 170px;
	height: 1em;
}

.warn_msg {
	color: #ff0000;
	display: none;
}

.atr {
	float: left;
	margin-inline-start: 5px;
	line-height: 1.3em;
}

.atr input, .atr label {
	padding: 0;
	margin: 0;
	display: inline;
}

.atr label {
	margin-inline-start: 3px;
}

/* Cart info modal */
.cart_info {
	display: none;
	padding: 10px;
}

.pbbuttons_area {
	padding: 10px;
}

.cartmessage {
	width: 100%;
	text-align: center;
}

.pbcart_btn {
	padding: 5px;
	float: left;
	margin-right: 10px;
	text-decoration: none;
	border: 1px solid #0054a6;
}

.pbcart_btn:hover {
	text-decoration: none;
}

#toral_pr_wrapper {
	margin: 0;
	margin-right: 36px;
	margin-top: 5px;
	clear: both;
}

#total_pr_lbl {

}

.toral_discount_wrapper {
	float: right;
	margin-right: 36px;
	color: #ff0000;
	clear: both;
	display: none;
}

#pb_discount_amount {
	color: #ff0000;
}

#cartLoader {
	margin-top: 10px;
	height: 10px;
	width: 100%;
}

#load_bar {
	height: 10px;
	background: #0f0;
	width: 0;
}

.addtocart_button {
	float: right;
	margin-right: 33px;
	margin-top: 10px;
}

/* the selected product */
.groupSelectImg li label.pb_selectedProduct, .groupSelectRadioImg li label.pb_selectedProduct {
	border:1px solid #000;
}

.pb_incompatible[disabled] {
	color: #cccccc;
}

label.pb_incompatible {
	opacity: 0.4;
}

label.pb_incompatible:hover {
	cusror: default;
}

/*Steps*/
.steps {
	display: none;
}

.step_0 {
	display: block;
}

.pb_progressbar_blocks {
	display: inline-block;
	margin-inline-end: 0.5em;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	background: transparent;
	color: #888888;
	font-weight: bold;
	font-size: 1.1em;
	line-height: 1.5em;
	border: 1px solid #cccccc;
	border-radius: 3px;
	padding: 0.3em 1em;
}
.pb_progressbar_blocks:hover {
	box-shadow: 0 0 1px 1px #c8c8c8;
}

.pb_steplinks {
	cursor: pointer;
}

.stepNo {
	display: inline-block;
	text-align: center;
	width: 1.4em;
	height: 1.4em;
	line-height: 1.4em;
	border: 1px solid #cccccc;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	border-radius: 20px;
	font-size: 1.2em;
}

#productbuilder_previous {
	display: none;
}

/*general*/
.pb_clr {
	height: 0;
	margin: 0;
	padding: 0;
	clear: both;
}

.cf_image {
	cursor: pointer;
}

.productbuilder_pagination {
	text-align: center;
	margin-top: 5px;
}

.pbbutton { /*used for buttons*/
	padding: 3px;
}

.pb-nomargin { /*used to have zero margins*/
	margin: 0;
}

.pbinvisible { /*used to hide something*/
	display: none;
}

.pbvisible_block { /*used to display a block*/
	display: block;
}

@media only screen and (max-width: 560px) {
	.imgWrapper_stat_r{margin-top:1.3em;}
	#pb_mainPage .group {width: 98% !important;}
    #pb_mainPage .product_wrap, #pb_mainPage .product_wrap_r{float: none; clear: both;}
}
