/*
Theme Name: fpf Theme
Theme URI: https://www.portotheme.com/wordpress/porto
Author: P-THEMES
Author URI: https://www.portotheme.com/
Description: Porto Responsive WordPress + eCommerce Theme.
Version: 1.1
Template: porto
License: Commercial
License URI: http://themeforest.net/licenses/regular_extended
Tags: woocommerce, corporate, ecommerce, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
*/

/*************** ADD YOUR CUSTOM CSS HERE  ***************/

/* hide add to cart button */
.hidecartbutton .single_add_to_cart_button {
    display:none;
}

/* disable quick view */
ul.products .add-links .quickview {
    display:none;
}

/* override style of quote button */
.woocommerce .add-request-quote-button.button,
.woocommerce .add-request-quote-button-addons.button {
    background-color: var(--porto-shop-add-links-bg-color) !important;
    border: 1px solid var(--porto-shop-add-links-border-color,transparent) !important;
    color: var(--porto-shop-add-links-color,#212529) !important;
    padding: 0 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
    white-space: nowrap;
    height: 36px;
    line-height: 34px;
    min-width: 36px;   
    display: inline-block !important;
}

.woocommerce .add-request-quote-button.button:before {
    font-family: "Porto";
    content: "\e8ba";
    font-size: 1rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

.woocommerce .add-request-quote-button.button:before,
.woocommerce .add-request-quote-button-addons.button:before {
    content: "\f061";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 5px;
    position: relative;
    float: left;
}

/* override more styles for single product page */

.woocommerce.single-product .add-request-quote-button.button,
.woocommerce.single-product .product-summary-wrap .add-request-quote-button-addons.button {
    border: 2px solid black !important;
    height: 3rem!important;
    padding: 0 2em;
    margin-bottom: 5px;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 1em;
    letter-spacing: -0.015em;
    font-weight: 700;
    line-height: 2.89rem;
    border: none;    
}

.woocommerce.single-product .product .yith-ywraq-add-to-quote {
    margin-top: 0px;
}


@media (max-width: 991px) {
    .woocommerce.single-product .add-request-quote-button.button,
    .woocommerce.single-product .product-summary-wrap .add-request-quote-button-addons.button {
        padding: 0 1.4286em;
    }
}

@media (max-width: 575px) {
    .woocommerce.single-product .add-request-quote-button.button,
    .woocommerce.single-product .product-summary-wrap .add-request-quote-button-addons.button {
        padding: 0 0.7143em;
    }
}


/* request for quote mini cart */
.widget_ywraq_mini_list_quote {
    vertical-align: middle;
    margin:0;
}

.widget_ywraq_mini_list_quote .raq-info {
    border:none;
    margin:0;
    padding:0;
}

/* style the quote mini cart number same as normal cart number */
.widget_ywraq_mini_list_quote .raq-items-number {
    font-weight: 600;
    box-shadow: -1px 1px 2px 0 rgb(0 0 0 / 30%);
    background-color: #EE8379;
    --porto-badge-size: 16px;
    position: absolute;
    right: calc(-1 * var(--porto-badge-size) / 2);
    top: -5px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    width: var(--porto-badge-size);
    height: var(--porto-badge-size);
    line-height: var(--porto-badge-size);
    border-radius: 50%;
    overflow: hidden;
    color: #fff;    
}
/* override quote cart icon to match style of the theme icons */
.ywraq-quote-icon-icon_quote:before {
    content: none;
}
.ywraq-quote-icon-icon_quote {
    display: inline-block;
    width: 35px;
    height: 30px;
    background: url(img/ico_quotecart.svg) no-repeat 0 0;
}
.elementor-widget-yith-ywraq-mini-widget-quote {
    position: relative;
    top: 4px;
}

/* hide arrow next to account icon */
.mega-menu.show-arrow>li.has-sub>a:after {
    display: none;
}
/* remove unused margin on account menu */
.mega-menu>li.menu-item .popup {
    margin-top: 0;
}
/* add missing border radius on account menu */
.mega-menu .narrow.pos-right .popup>.inner>ul.sub-menu,
.mega-menu .wide.pos-right .popup {
    border-radius: 4px 4px 4px 4px;
}

/* additional style for rental badge */
.yith-wcbm-badge.yith-wcbm-badge-text.yith-wcbm-badge-3662 {
    border-radius: 4px;
    margin-bottom: 10px;
}

/* style general page title (h1!) */

.page-top .page-title {
    color: #8e8e8e;
    font-size: 0.75rem;
    text-shadow: none;
    text-transform: uppercase;
    line-height: inherit;
    font-weight: bold;
}


/* style datetime fields of ninja forms plugin (relevant for request for quote form) */

.datetime-wrapper .field-wrap .pikaday__container {
    float:left;
    margin-right: 20px;
    width: 250px;
}

@media (max-width: 575px) {
    .datetime-wrapper .field-wrap .pikaday__container {
        width: 50%;
    }
}

.datetime-wrapper .extra {
    width: 50px;
    height: 50px;
    font-size: 16px;
    padding: 12px;
    margin: 0 5px 0 0;
    background-color: #f7f7f7;
}
.datetime-wrapper .nf-field-element .hour,
.datetime-wrapper .nf-field-element .minute {
    border: 1px solid #c4c4c4;

}
.datetime-wrapper .datetime-field {
    background-image: url(/wp-content/themes/fpf-theme/img/ico_calendar.svg) !important;
    background-position: 96% 50% !important;
    background-size: auto 55% !important;
    background-repeat: no-repeat !important;
}

.datetime-wrapper .field-wrap.date-wrap .nf-field-element div:last-child {
    padding-right: 26px;
    background-image: url(/wp-content/themes/fpf-theme/img/ico_time.svg);
    background-position: 100% 50%;
    background-size: auto 55%;
    background-repeat: no-repeat;    
}

.flatpickr-day.selected {
    background: #02bb8a !important;
    border-color: #029f75 !important;
}
.flatpickr-day.today {
    border-color:#95a99a !important;
}

/* overstyle some other fields to make it smooth */
.nf-form-wrap .nf-form-content .list-select-wrap .nf-field-element>div,
.nf-form-wrap .nf-form-content input:not([type=button]),
.nf-form-wrap .nf-form-content textarea {
    border-radius: 3px;
}

.nf-form-content {
    padding: 0;
}

/* give field descriptions (small text below labels) little margin bottom and size down the font to smooth out things */
.nf-form-wrap .nf-field-description {
    font-size: .8rem;
}
.nf-form-wrap .checkbox-wrap .nf-field-description {
    margin-top: 8px;
}
.nf-form-wrap .nf-field-description p:last-child {
    margin-bottom: 15px;
}
.nf-form-wrap .nf-field-description p {
    max-width: 80ch;
}

/* single checkbox does some weird stuff with flexbox. clear it. (used for Datum & Einsatzzeiten angeben) */
.nf-form-wrap .checkbox-container.label-right .field-wrap,
.nf-form-wrap .label-right .nf-field-label {
    display: block;
}
.nf-form-wrap .label-right .nf-field-description {
    margin-right: 0;
}

/* set uniform margin bottoms to labels of all fields */
.nf-form-wrap .nf-form-content .label-above .nf-field-label,
.nf-form-wrap .nf-form-content .label-below .nf-field-label,
.nf-form-wrap .nf-form-content .label-hidden .nf-field-label,
.nf-form-wrap .nf-form-content .label-right .nf-field-label {
    margin-bottom: 5px;
}
/* set margin bottoms for field containers */
#ninja_forms_required_items, .nf-field-container {
    margin-bottom: 0;
}

/* clear out radio button glitch for desktop & mobile */
.nf-form-wrap .nf-form-content input[type=radio].ninja-forms-field {
    visibility: hidden;
}
.nf-form-wrap .listradio-wrap .nf-field-element label:after {
    top: 0px;
}
.nf-form-wrap .listradio-wrap .nf-field-element label.nf-checked-label:before {
    top: 4px;
}
.ywraq-form-table-wrapper.vertical .nf-form-content {
    padding: 0;
}
.nf-form-wrap .ninja-forms-req-symbol {
    color: #02bb8a;
}


/* color coding



function is_child($pageID) { 
    global $post; 
    if( is_page() && ($post->post_parent==$pageID) ) {
               return true;
    } else { 
               return false; 
    }
}


<?php if (is_child(12)) { ?>
    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/viewmont-imaging.css" type="text/css">
<?php } elseif (is_child(14)) { ?>
    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/viewmont-labs.css" type="text/css">
<?php } else { ?>
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" />
<?php } ?>

*/



/* custom payment icons */

.payment-icons .payment-icon {
    filter: none;
    background-color: #2A2C30;
}

.payment-icons .payment-icon {
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center;  
}
.payment-icons .fpfvisa {
    background-image: url(img/ico_visa.svg);
}
.payment-icons .fpfpaypal {
    background-image: url(img/ico_paypal.svg);
}
.payment-icons .fpfmastercard {
    background-image: url(img/ico_mastercard.svg);
}
.payment-icons .fpfpostfinance {
    background-image: url(img/ico_postfinance.svg);
}
.payment-icons .fpftwint {
    background-image: url(img/ico_twint.svg);
}
.payment-icons .fpfvorkasse {
    background-image: url(img/ico_vorkasse.svg);
}

/* some menu styling */
#main-toggle-menu .toggle-menu-wrap{padding:0px !important;}
.sidebar-menu .popup:before{display:none !important;}
.sidebar-menu .popup>.inner, 
.sidebar-menu .narrow .popup>.inner>ul.sub-menu,
.sidebar-menu .wide .popup,
.sidebar-menu .wide .popup>.inner {border-radius:0px !important;}

#menu-geschaeftsbereiche>li.menu-item .popup {
    padding-top: 14px;
    margin-left: 1px;
}
#menu-geschaeftsbereiche>li.menu-item .popup * {
    border-radius: 0px !important;
}

/* adjust main toggle menu width */
.header-main #main-toggle-menu .toggle-menu-wrap {
    width: 100.5%;
}
/* adjust line height of main toggle menu items to fit icons */
.header-main .toggle-menu-wrap .sidebar-menu > li.menu-item > a,
#side-nav-panel .accordion-menu li.menu-item > a,
#side-nav-panel .menu-custom-block a {
    display: flex;
    align-items: center;
}

/* conny wanted the funfood icon a little bit bigger, so adjust the paddings here to make it equal to other menu list items :-) */
#nav-menu-item-3607 > a {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* for some reason the porto theme doesnt apply border radius everytime, so overwrite it hardly... */
#header .main-menu > li.menu-item > a {
    border-radius: 3px !important;
}

/* make mobile menu open arrow bigger and adjust font size, remove ugly line */
#side-nav-panel .accordion-menu .arrow {
    width: 40px;
    height: 100%;
    right: 0;
    top: 0;
	line-height: 27px;
}
#side-nav-panel .accordion-menu .arrow:before {
    position: relative;
    top: 4px;
}
/* first level style corrections */
#side-nav-panel .accordion-menu>li.menu-item>a {
	text-transform: uppercase;
	font-size: 13px;
	padding: 7px 10px;
}
/* second level */
#side-nav-panel .accordion-menu>li.menu-item li a {
	font-size: 13px;
	padding: 0px;
	text-transform: none;
}
#side-nav-panel .accordion-menu li:not(:last-child) {
    border: none !important;
}
#side-nav-panel .accordion-menu .elementor-widget:not(:last-child) {
    margin-bottom: 10px;
}
#header .popup .sub-menu,
#header .header-side-nav .narrow .popup {
    text-transform: none;
}

/* yith request cart layer repositioning */
#header .widget_ywraq_mini_list_quote .yith-ywraq-list-wrapper {
    left: auto;
    bottom: auto;
    top: 10px;
    right: 0;
    display: none;
}
#header .widget_ywraq_mini_list_quote .yith-ywraq-list-widget-wrapper:hover .yith-ywraq-list-wrapper {
    display: block;
}
/* yith buttons fix */
#header .widget_ywraq_mini_list_quote .button,
.button.yith-ywraq-before-table-wc-backward,
.button.wc-backward {
    border-radius: 3px;
    color: #fff;
}


/* change style of product options block and corresponding price table */

.product-summary-wrap .yith-wapo-block .yith-wapo-addon {
    margin-bottom: 0;
}
.product-summary-wrap #wapo-total-price-table table {
    font-size: .9em;
    line-height: 1em;
    margin: 10px 0 15px;
}
.product-summary-wrap #wapo-total-price-table table th {
    padding-left: 0;
    font-weight: normal;
}

.product-summary-wrap .yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-checkbox .yith-wapo-option label {
    margin-left: 0;
}