/*
Theme Name: Tobel Child
Theme URI: https://tobel.qodeinteractive.com
Description: A child theme of Tobel
Author: Elated Themes
Author URI: https://qodeinteractive.com
Version: 1.0
Text Domain: tobel
Template: tobel
*/

/* custom dashboard agent */
/*PERSONALIZZAZIONI AGENTI DI VENDITA - 21/02/2024 - by Weavesrl*/
	
/*padding destro menu*/
.qodef-header-navigation>ul>li {
    margin: 0 16px;
}
/*altezza logo*/ 
#qodef-page-header .qodef-header-logo-link.qodef-height--not-set img {
    max-height: 75%;
}
/*nasconde wishlist in prodotti*/ 
#wl-wrapper.wl-button-wrap {
    display: none;
}
/*h1 solo in prodotti*/
.single-product h1
{
font-size: 36px !important;
	}
/*color breadcrumb*/
.qodef-page-title .qodef-breadcrumbs a, .qodef-page-title .qodef-breadcrumbs span {
    font-size: 16px;
    color: #fff;
}
/*sistema prodotti in home*/
.qodef-woo-product-list .qodef-woo-product-content {
    background-color: #fff;
    padding: 20px;
}
/*padding footer*/
#qodef-page-footer-top-area-inner {
    padding: 70px 0 0px;
}
.qodef-grid.qodef-layout--columns.qodef-col-num--4>.qodef-grid-inner>.qodef-grid-item {
    width: 25% !important;
}
.wpcf7-form-control-wrap {
    margin: 20px 0 20px 0px;
}
.qodef-qi-contact-form-7 input[type=checkbox], .qodef-qi-contact-form-7 input[type=radio] {
    margin-right: 10px;
}

/*Personalizzazioni pagine WP in presenza del banner Sales agent*/

:has(form.wcb2bsa-switch-form) {
    margin-top: 50px;
}

@media only screen and (max-width: 770px) {
	:has(form.wcb2bsa-switch-form) {
    margin-top: 50px;
}
}

:has(form.wcb2bsa-switch-form) .qodef-page-title.qodef-m.qodef-title--breadcrumbs.qodef-alignment--center.qodef-vertical-alignment--header-bottom.qodef--has-image.qodef-image--parallax.qodef-parallax {
    display: none!important;
}

:has(form.wcb2bsa-switch-form) #qodef-page-inner {
    padding: 30px 0px 100px;
}

:has(form.wcb2bsa-switch-form) footer#qodef-page-footer {
    display: none;
}

:has(form.wcb2bsa-switch-form) .coupon {
    display: none!important;
}

:has(form.wcb2bsa-switch-form) header#qodef-page-mobile-header {
    display: none;
}

:has(form.wcb2bsa-switch-form) .woocommerce-terms-and-conditions-wrapper {
	display: none;
}

:has(.woocommerce-checkout, .woocommerce-cart) .btn-cart {
    display: none;
}


:has(.woocommerce-checkout, .woocommerce-cart) .btn-checkout {
    display: none;
}

/*Pulsante "Aggiungi al carrello" verde in caso di aggiunta prodotto */
.wtbpAddToCartWrapper .button.product_type_simple.add_to_cart_button.ajax_add_to_cart.added {
	background-color: green;
}


/*Nascondo il pulsante "Torna al catalogo" nella pagina del catalogo*/
:has(.page-id-13037) .btn-catalogo {
    display: none;
}

/*breackpoint header*/
@media only screen and (max-width: 1350px) {
.qodef-header--standard #qodef-page-header {
    display: none;
}
#qodef-page-mobile-header {
    display: block;
	}}

/*Personalizzazione Dashboard agenti di vendita */
body.page-id-8473 header#qodef-page-mobile-header {
    display: none;
}

/*Personalizzazione table */
.wtbpAddToCartWrapper a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
    background-color: #e60700;
    border-color: #e60700;
    margin: 10px;
    width: auto;
    color: #fff;
		padding: 13px;
    font-size: medium;
    height: 46px;
}

.wtbpTableWrapper input.qty {
    max-width: 36px!important;
    border: solid;
    border-width: 0.5px;
    border-radius: 0px;
    padding: 3px;
}


.dtr-title {
    display: none!important;
}

.custom-as-valentino .qodef-quantity-plus {
    background-color: #e60700;
    color: #fff;
    padding: 13px 15px;
    vertical-align: -webkit-baseline-middle;
}

.custom-as-valentino .qodef-quantity-buttons.quantity {
    align-items: center;
    display: flex!important;
}

.custom-as-valentino .qodef-quantity-minus {
    background-color: #e60700;
    color: #fff;
    padding: 13px 16px;
    vertical-align: -webkit-baseline-middle;
}



.wtbpAddToCartWrapper .quantity {
    margin-bottom: 0px!important;
}

.custom-as-valentino .wtbpTableWrapper input.qty {
    max-width: 46px!important;
    height: 46px;
    margin-right: 3px!important;
    margin-left: 3px!important;
}

.dataTables_wrapper .add_to_cart_inline a {
    vertical-align: middle!important;
}

:has(form.wcb2bsa-switch-form) .pushr {
    display: none!important;
}

/*Button stycky custom*/
.wcb2bsa-switch-form-custom {
	position: fixed;
    top: 77px;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 10px;
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*Button sticky carrello*/

button.btn-custom {
    background-color: var(--qode-main-color);
	color: #fff;
	margin: 10px;
}

.div-btn-custom {
	color: #fff;
}


a:hover .div-btn-custom {
	color: #000;
}

button.btn-switch-custom {
    line-height: 18px;
    padding: 10px 38px;
    background: #e60700;
		width: auto;
}

.div-switch-to {
    padding-right: 30px;
    margin-left: 16px;
}

/*Personalizzazioni sidabar */
.vi-wcaio-sidebar-cart-products .vi-wcaio-sidebar-cart-pd-img-wrap {
	display: none;
}

.vi-wcaio-sidebar-cart-products .vi-wcaio-sidebar-cart-pd-info-wrap {
	width: 100%;
}

.vi-wcaio-sidebar-cart-products .vi-wcaio-sidebar-cart-pd-desc .vi_wcaio_change_qty {
	min-height: 30px;
	min-width: 30px;
	font-size: larger;
}

.vi-wcaio-sidebar-cart-products .vi-wcaio-sidebar-cart-pd-desc .vi_wcaio_qty {
	font-size: larger;
}

.vi-wcaio-sidebar-cart-footer-action {
    float: right;
    display: flex;
    flex-direction: column; 
}

button.vi-wcaio-sidebar-cart-bt.vi-wcaio-sidebar-cart-bt-update.button {
    margin-bottom: 8px;
		font-size: 15.6px;
}

.vi-wcaio-sidebar-cart-footer.vi-wcaio-sidebar-cart-footer-products {
    font-size: 120%;
}

.vi_wcaio_change_qty {
    background-color: #e60700;
    color: #fff;
    border-color: #fff!important;
    border-radius: 0px;
}

.vi-wcaio-sidebar-cart-footer-cart_total-wrap {
    max-width: 50%;
}

.vi-wcaio-sidebar-cart-pd-price.vi-wcaio-sidebar-cart-pd-price-price {
    max-width: 50%!important;
}

input.vi_wcaio_price {
    padding: 0px;
}

/*Button Fattura in schermata ThankYou*/
.downloadInvoice {
    background-color: #e60700;
    border-color: #e60700;
    width: 100%;
    border-radius: 0px;
    margin-bottom: 40px;
    margin-top: 10px;
		border-width: 0px;
}

a.wpo_wcpdf_document_link {
    color: white!important;
    font-family: 'Roboto'!important;
    font-size: large;
}

.woocommerce-order-received .woocommerce-order .woocommerce-thankyou-order-received {
	font-size: 30px;
}

:has(form.wcb2bsa-switch-form) .woocommerce-order-received .woocommerce-order .woocommerce-thankyou-order-received {
    font-family: "Roboto"!important;
}


.woocommerce-order-received .woocommerce-order h2 {
	font-size: 30px;
}

:has(form.wcb2bsa-switch-form) .downloadInvoice {
    display: block!important;
}

/*Nascondo i campi sezionale e ID agente di vendita nella pagina checkout*/

tr#tr-_billing_wooccm11 {
    display: none;
}

tr#tr-_billing_wooccm12 {
    display: none;
}

p#billing_wooccm11_field {
    display: none;
}

p#billing_wooccm12_field {
    display: none;
}

.btn-elementor-custom {
	display: grid;
	justify-content: right;
}

/* Aggiungi questo stile per la finestra modale */
.modal-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/*Finestra modale prodotto in catalogo agente*/

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
}

.modal-container {
    max-width: 90%;
    max-height: 90%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-content {
    padding: 20px;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

.product-name {
    margin-top: 0;
    margin-bottom: 20px;
}

.product-details img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.product-description {
    line-height: 1.6;
}

@media (max-width: 768px) {
    .modal-container {
        max-width: 95%;
        max-height: 95%;
    }
}

h2.product-name {
    font-size: 20px;
    font-family: "Roboto"!important;
    line-height: 22px;
    font-weight: 700;
    margin-bottom: 17px;
}



/* pagamento con fattura */
li.wc_payment_method.payment_method_wcb2b_invoice_gateway {
    display: none;
}

li.wc_payment_method.payment_method_cod {
	display: none;
}

:has(form.wcb2bsa-switch-form) li.wc_payment_method.payment_method_cod {
	display: inherit;
}



:has(form.wcb2bsa-switch-form) li.wc_payment_method.payment_method_wcb2b_invoice_gateway {
    display: inherit;
}

:has(form.wcb2bsa-switch-form) li.wc_payment_method.payment_method_bacs {
    display: none;
}

.button-back-agente {
    display: none;
}


:has(form.wcb2bsa-switch-form) .button-back-agente {
    display: block;
}

.div-button-back-checkout {
	display: none!important;
}

.button-back-checkout {
		background-color: #e60700!important;
}

:has(form.wcb2bsa-switch-form) .div-button-back-checkout {
    display: block;
    display: flex;
    justify-content: right;
}

/*:has(form.wcb2bsa-switch-form) h2, h3 {
    font-family: "Roboto"!important;
}*/

:has(form.wcb2bsa-switch-form) p#order_comments_field {
    margin-top: 20px;
}

:has(form.wcb2bsa-switch-form) label.woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox {
    font-size: 30px;
    line-height: normal;
}

/*Nascondo Visualizza carrello in catalogo agenti*/
a.added_to_cart.wc-forward {
    display: none!important;
}

/*Nascondo IUBENDA nella Dashboard agente */
:has(form.wcb2bsa-switch-form) a.iubenda-tp-btn.iubenda-cs-preferences-link {
    display: none!important;
}

/*Nascondo AGENTE DI VENDITA tra i metodi di spedizione*/

label[for="shipping_method_0_flat_rate4"] {
    display: none  !important;
}
#shipping_method_0_flat_rate4 {
 
    display: none !important;
}

:has(form.wcb2bsa-switch-form) #shipping_method_0_flat_rate4 {
    display: block !important  ;
}
:has(form.wcb2bsa-switch-form) label[for="shipping_method_0_flat_rate4"]{
    display: block !important  ;
}



/*Nascondo SPEDIZIONE A PAGAMENTO per gli agenti
:has(form.wcb2bsa-switch-form) #shipping_method_0_flat_rate2 {
    display: none !important  ;
}
:has(form.wcb2bsa-switch-form) label[for="shipping_method_0_flat_rate2"]{
    display: none !important  ;
}
*/

/*colore pulsante movimenti contabili*/
.fa-bars:before {
    content: "\f0c9" !important;
}

.btn-elementor-custom .catalogo-btn {
    justify-content: end !important;
}

body.page-id-13015 #tpbr_box,
body.page-id-183537 #tpbr_box,
body.page-id-8473 #tpbr_box,
body.page-id-183556 #tpbr_box,
body.page-id-183572 #tpbr_box,
body.page-id-183964 #tpbr_box,
body.page-id-201150 #tpbr_box,
body.page-id-201180 #tpbr_box {
    display: none;
}

#movimento_contabile_saldo_field {
    margin-bottom: 30px;
}

.movimento-contabile-table .no-wrap {
    white-space: nowrap;
}

.movimento-contabile-table.ordini-cliente {
    font-size: 90%;
} 


/*Stili per Menu Sales Agent in pagine wordpress*/
.b2bsales-class .d-flex {
    display: flex !important;
} 

.b2bsales-class .justify-content-between {
    justify-content: space-between !important;
} 

.b2bsales-class .align-items-center {
    align-items: center !important;
} 

.b2bsales-class .bg-dark {
    background-color: #1a1a1a !important;
} 

.b2bsales-class .p-4 {
    padding: 1.5rem !important;
    padding-bottom: 5px !important;
}

.b2bsales-class .p-3 {
    padding: 1rem !important;
} 

.b2bsales-class .h3 {
    font-size: 1.75rem;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
} 

.b2bsales-class .title-header {
    color: white;
}

.b2bsales-class .btn-menu {
    background: transparent;
    color: white;
    border: none;
}

.b2bsales-class [type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled), button:not(:disabled) {
    cursor: pointer;
}

.b2bsales-class [type=button], [type=reset], [type=submit], button {
    -webkit-appearance: button;
}

.b2bsales-class .button {
    text-transform: none;
    overflow: visible;
    margin: 0;
    font-family: "Roboto"!important;
    font-size: inherit;
    line-height: inherit;
    border-radius: 0;
}

.b2bsales-class .fas {
    font-weight: 900;
    /* font-size: xx-large; */
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    font-family: "Font Awesome 5 Free";
} 
.b2bsales-class .mr-2 {
    margin-right: .5rem !important;
} 
.b2bsales-class .icon-menu {
    font-size: xx-large;
}

*, ::after, ::before {
    box-sizing: border-box;
}

.b2bsales-class .button-small-back {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    text-transform: uppercase;
    padding-right: 34px;
    padding-bottom: 15px;
    margin-top: -1px;
}

.b2bsales-class .btn-back {
    margin-top: 10px;
    padding: 4px 10px;
    background-color: #e60700;
    color: white;
    text-decoration: none;
    border-radius: 0px;
    display: flex;
    align-items: center;
    font-size: small;
}

.b2bsales-class .flex-grow-1 {
    flex-grow: 1 !important;
}

.b2bsales-class .border-right {
    border-right: 1px solid #dee2e6 !important;
}  

.b2bsales-class .text-muted {
    color: #6c757d !important;
}
.b2bsales-class  .text-uppercase {
    text-transform: uppercase !important;
}
.b2bsales-class  .small, small {
    font-size: 80%;
    font-weight: 400;
}

.b2bsales-class fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
    display: block;
    margin-inline-start: 2px;
    margin-inline-end: 2px;
    padding-block-start: 0.35em;
    padding-inline-start: 0.75em;
    padding-inline-end: 0.75em;
    padding-block-end: 0.625em;
    min-inline-size: min-content;
}

.b2bsales-class .list-group {
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
}

.b2bsales-class .list-group-flush .list-group-item:first-child {
    border-top-width: 0;
}
.b2bsales-class .list-group-flush .list-group-item {
    border-right-width: 0;
    border-left-width: 0;
    border-radius: 0;
    font-family: "Roboto"!important;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}
.b2bsales-class .list-group-item:first-child {
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
    font-family: "Roboto"!important;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.b2bsales-class .list-group-item {
    position: relative;
    display: block;
    padding: .75rem 1.25rem;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .125);
}
.b2bsales-class .list-group-item-action {
    width: 100%;
    color: #495057;
    text-align: inherit;
}

.b2bsales-class .collapse {
    background-color: #fff;
}

/* .b2bsales-class .icon-menu:before {
    content: "\e601";
} */

.b2bsales-class .greeting-user {
    font-size: 13px;
    color: white;
    padding: 5px;
    padding-left: 25px;
    padding-top: 10px;
    background-color: #1a1a1a;
}

/*Titolo pagina Customer*/
.title-customer {
    background-color: #1a1a1a;
    color: white;
    margin: 0 0 8px;
    padding: 25px;
}

.email-customer a {
    color: #e60700;
}

.name-customer h4 {
    color: white;
    font-family: "Roboto"!important;
}

/* Visualizzazione desktop*/
@media (min-width: 1200px){
    .b2bsales-class .collapse:not(.show) {
        display: block!important;
        height: 100vh;
    }

    .b2bsales-class button.btn-menu {
        display: none;
    }

    .b2bsales-class .btn-back {
        display: none;
    }

    .b2bsales-class .flex-grow-0.bg-dark.text-white.p-2.custom-space {
        display: none;
    }

    .b2bsales-class fieldset {
        margin-inline-start: 0px;
        margin-inline-end: 0px;
        padding-block-start: 0em;
        padding-inline-start: 0em;
        padding-inline-end: 0em;
        padding-block-end: 0em;
    }

}

.woocommerce-form-login p.woocommerce-form-row.woocommerce-form-row--wide.form-row.form-row-wide {
	flex-direction: column!important;
}

.woocommerce-form-login .form-row {
		flex-direction: column-reverse!important;
}

.woocommerce-account .woocommerce-form-login .woocommerce-form__label-for-checkbox {
	margin: 10px 0 0 0px!important;
}