/*
Theme Name: Storefront Child - Italasgurmanas.lt
Version: 1.3
Description: A child theme of Storefront
Template: storefront
Author: Administrator
*/
@import url("../storefront/style.css");
/* Your awesome customization starts here */


/* Global */
abbr[title] {
	border-bottom: none !important;
	cursor: inherit !important;
	text-decoration: none !important;
}
hr, p {
	margin: 0 0 1em 0;
}
a {
	text-decoration: none !important;
}
a:hover {
	text-decoration: underline !important;
}
a:hover,a:active {
	outline: none !important;
}
.width_auto, .width_auto input {
	width: auto;
}
.block {
	display: block;
}
.inline-block {
	display: inline-block;
}
.mt-13 {
	margin-top: 13px;
}
.mb-13 {
	margin-bottom: 13px;
}

/* Header */
.site-header-cart .cart-contents {
	display: block !important;
	padding: 0.5em 0;
}
.site-header .site-branding {
	float: none !important;
	width: 100% !important;
	padding: 10px 0;
}
.site-header .site-branding a img {
	height: 80px;
	max-width: none;
	max-height: 80px;
}

/* Header on scrolling */
.site-header.scroll-active {
    position: fixed !important;         /* Priverstinai laiko meniu ekrano viršuje */
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: #ffffff !important; /* Suteikia tvirtą baltą foną, kad produktai nepersišviestų */
    z-index: 99999 !important;           /* Iškelia meniu juostą į patį viršų virš produktų */
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.site-header.scroll-active .col-full {
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
align-content: center;
align-items: center;
}
.site-header.scroll-active .sp-header-row {
	width: 33%;
}
.site-header.scroll-active .site-branding a img {
	height: 52px;
}
.site-header.scroll-active .col-full::after {
	display: none;
}
.site-header.scroll-active .col-full::before {
	display: none;
}
.site-header .col-full::after, .site-header .col-full::before, .site-header .col-full button.menu-toggle::before {
	transition: none;
}
.site-header.scroll-active .col-full .sp-header-row:nth-child(2n) {
	
}
.site-header.scroll-active .main-navigation.toggled {
	position: relative;
}
.site-header.scroll-active .main-navigation.toggled .handheld-navigation {
position: absolute;
right: 0;
background: #fff;
min-width: 200px;
border: 1px solid #ccc;
}
.site-header.scroll-active button.menu-toggle::before {
	left: 95%;
	transition: none;
}
.site-header.scroll-active .main-navigation:not(.toggled) #menu-mobilus-meniu {
	display:none;
}
.site-header-cart .cart-contents::after {
	font-weight: 900;
	content: "";
	font-size: 26px;
	line-height: 26px;
	position: absolute;
	left: 0;
	font-family: "Font Awesome 5 Free";
}

#site-header-cart > li:first-child {
	height: 40px;
	position: relative;
}
.site-header-cart .cart-contents .amount {
	position: absolute;
	left: 52px;
}
.site-header-cart .cart-contents .count {
position: absolute;
left: 20px;
background: #ce2b37;
z-index: 1;
opacity: 1;
top: 1px;
color: #fff;
padding: 0 5px;
width: 28px;
overflow: hidden;
display: block;
height: 21px;
text-align: center;
border-radius: 8px;
font-size: 13px;
font-family: Verdana;
line-height: 20px;
}

@media (max-width: 768px){
	.site-header.scroll-active button.menu-toggle::before {
		left: 90%;
	}
}

/* Plugin: ProductX */
/* Pseudo remove of font Roboto */
.wopb-block-d3d07f .wopb-heading-wrap .wopb-heading-inner,
.wopb-block-d3d07f .wopb-product-cat-title,
.wopb-block-d3d07f .wopb-product-cat-title a {
	font-family: inherit !important;
}

/* Menu Toggle Button */
.site-header .menu-toggle {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	margin: 15px auto;
	padding: 0;
	height: 30px;
	line-height: 30px;
	float: none;
	border: none !important;
	outline: none !important;
}
.site-header .menu-toggle:hover {
	border: none !important;
	outline: none !important;
}
.site-header button.menu-toggle span {
	display: none;
}
.site-header button.menu-toggle::after {
	display: none;
}
.site-header button.menu-toggle::before {
	border: none;
	background: none;
	font-family: "Font Awesome 5 Free";
	font-size: 2em;
	content: " ";
	display: block;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	top: 50%;
	left: 50%;
	margin: -15px 0 0 -15px;
	transform: none;
}
.site-header button.menu-toggle[aria-expanded="false"]::before {
	content: "\f0c9";
}
.site-header button.menu-toggle[aria-expanded="true"]::before {
	content: "\f00d";
}

/* Menu */
#menu-mobilus-meniu {
	margin: 0;
}

/* Hidden Menu text */
.site-header .menu-toggle > span {
	height: 0px;
	visibility: hidden;
}
.site-header .menu-toggle > span:before {
	content: "";
	display: none;
}
.site-header .primary-navigation {
	display: none !important;
}
.site-header .handheld-navigation {
	display: block !important;
}
.site-header .handheld-navigation > ul {
	display: flex;
	flex-direction: column;
}
.site-header .handheld-navigation > ul > li {
	text-align: center;
}
.site-header .handheld-navigation > ul > li > a {
	padding: 0.5em 1em;
}
.entry-header {
	display: none;
}
#primary {
	margin-bottom: 0 !important;
}
#main {
	margin-bottom: 0 !important;
}

/* Storefront */
.storefront-breadcrumb {
	padding: 1em 0 !important;
	margin: 0 0 1em 0 !important;
}
.widget_recent_entries ul li::before, .widget_pages ul li::before {
	content: '' !important;
}
.widget_recent_entries ul li, .widget_pages ul li {
	padding-left: 0 !important;
}

@media (min-width: 768px) {
	.storefront-product-pagination a[rel=prev] {
		left: -410px;
	}
	.storefront-product-pagination a[rel=next] {
		right: -410px;
	}
	html .sp-header-active .site-header .site-branding {
		margin-right: auto !important;
	}
}


/* Category blocks */ 
/* Alignment */
.wopb-product-cat-wrap .wopb-product-cat-content {
	min-height: 30%;
	display: flex;
	align-items: center;
	justify-content: center;
}


/* Woocommerce */
.woocommerce-info {
	background-color: #fff !important;
	color: #000 !important;
	padding: 2px 10px;
	margin-bottom: 3px;
	line-height: 1;
}
.woocommerce-info a, .woocommerce-info a:hover, .woocommerce-info .button, .woocommerce-info .button:hover {
	color: #000 !important;
}
.woocommerce-info a {
	font-weight: bold;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before, .woocommerce-noreviews::before, p.no-comments::before {
	display: none;
}
#customer_details > .col-1, #customer_details .woocommerce-account-fields p {
	margin-bottom: 0;
}
.woocommerce-breadcrumb {
	font-weight: bold;
}
.woocommerce-breadcrumb a {
	font-weight: normal !important;
}
.woocommerce-products-header {
	padding: 0 0 0 0 !important;
	margin: 0 0 1em 0 !important;
	display: none;
}
.products .product .woocommerce-loop-product__title {
	min-height: 60px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin-bottom: 10px !important;
}
.products .product .price {
	min-height: 20px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin-bottom: 10px !important;
}
.products .product [itemprop="description"] {
	min-height: 60px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin-bottom: 10px !important;
}
.product .woocommerce-product-gallery {
	margin-bottom: 1em !important;
}
#ship-to-different-address label {
	color: #43454b;
	font-size: initial;
	padding-left: 0;
}
#ship-to-different-address #ship-to-different-address-checkbox {
	color: #43454b;
	font-size: initial;
	position: initial;
	transform: none;
	margin-right: .3342343017em;
}
#ship-to-different-address span {
	color: #43454b;
}

.woocommerce-privacy-policy-link, .woocommerce-terms-and-conditions-link {
	font-weight: bold;
}
@media (min-width: 768px) {
	.product .woocommerce-product-gallery {
		width: 60% !important;
		margin-right: 2% !important;
	}
}
.product .woocommerce-product-gallery .wp-post-image {
	min-width: 100%;
}
.product .summary {
	margin-bottom: 1em !important;
}
@media (min-width: 768px) {
	.product .summary {
		width: 38% !important;
	}
}
.product .summary .product_title {
	font-size: 1.5em !important;
}
.product .summary .price {
	margin: 1em 0 !important;
}
.product .woocommerce-tabs {
	padding: 0 0 0 0 !important;
	margin: 0 0 1em 0 !important;
}
.product .woocommerce-tabs .tabs li.active a {
	font-weight: bold !important;
}
.product .woocommerce-tabs .wc-tab {
	margin-bottom: 1em !important;
}
.product .woocommerce-tabs .wc-tab h2 {
	display: none !important;
}
.wopb-wishlist-addon-btn span {
    display: none !important;
}
.wopb-compare-addon-btn span,
.wopb-compare-addon-btn svg {
    display: none !important;
}


/* WooCommerce notices */
/* Keep the text layout spacious on mobile, but restore the original button and divider line */
@media screen and (max-width: 768px) {
    
    /* Keep the message box padding spacious for the text */
    .woocommerce-message,
    .woocommerce-error,
    .woocommerce-info {
        padding: 20px 20px 20px 25px !important;
        display: block !important; /* Reverts back to standard theme layout */
    }
    
    /* Restore the original right-aligned button layout */
    .woocommerce-message .button,
    .woocommerce-error .button,
    .woocommerce-info .button {
        float: right !important;
        display: inline-block !important;
        width: auto !important;
        margin-top: 0 !important;
    }
    
    /* Ensure the original vertical divider line is visible next to the button */
    .woocommerce-message .button::before,
    .woocommerce-message .wc-forward::before,
    .woocommerce-error .button::before,
    .woocommerce-info .button::before {
        display: inline-block !important;
    }
}

/* WooCommerce notices */
/* Completely remove all borders, shadows, and outline styles from all notices and their pseudo-elements */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}


/* Cart page */

/* Cart page adjustments - Hides the default shipping destination text and the calculator button */
.woocommerce-shipping-destination, .shipping-calculator-button {
    display: none !important;
}

/* Cart page adjustments - Removes the terminal city selector and related post office elements */
.woocommerce-cart select#woo_lithuaniapost_lpexpress_terminal_city,
.woocommerce-cart [for="woo_lithuaniapost_lpexpress_terminal_id"],
.woocommerce-cart .woo_lithuaniapost_lpexpress_terminal_id_field,
.woocommerce-cart .woo_lithuaniapost_lpexpress_terminal_city_field,
.woocommerce-cart br,
.woocommerce-cart #_woo_lithuaniapost_lpexpress_terminal_field {
    display: none !important;
}


/* Cart page adjustments - Aligns the shipping options vertically and fixes the layout on mobile screens */
@media screen and (max-width: 767px) {
    .woocommerce-shipping-totals td, tr.shipping td, ul#shipping_method {
        display: block !important; 
        width: 100% !important; 
        text-align: left !important; 
        float: none !important; 
        padding: 0 !important;
    }
    ul#shipping_method li {
        display: flex !important; 
        align-items: center !important; 
        justify-content: flex-start !important; 
        margin-bottom: 10px !important;
    }
    ul#shipping_method li input[type="radio"] {
        margin: 0 10px 0 0 !important; 
        float: none !important; 
        position: relative !important; 
        flex-shrink: 0 !important;
    }
    ul#shipping_method li label {
        display: inline-block !important; 
        text-align: left !important; 
        margin: 0 !important; 
        white-space: nowrap !important;
    }
}

/* Cart page adjustments for shipping controls and quantity input fields layout */

/* 1. Hides the default shipping destination text and the calculator button */
.woocommerce-shipping-destination, .shipping-calculator-button {
    display: none !important;
}

/* 2. Removes the terminal city selector and related post office elements */
.woocommerce-cart select#woo_lithuaniapost_lpexpress_terminal_city,
.woocommerce-cart .woo_lithuaniapost_lpexpress_terminal_city_field,
.woocommerce-cart br,
.woocommerce-cart #_woo_lithuaniapost_lpexpress_terminal_field {
    display: none !important;
}

/* 3. Hides the redundant second terminal label with the asterisk to avoid duplication */
.woocommerce-cart label[for="woo_lithuaniapost_lpexpress_terminal_id"],
.woocommerce-cart .woo_lithuaniapost_lpexpress_terminal_id_field {
    display: none !important;
}

/* 4. Forces the mobile responsive layout to display the proper spacing without custom text overrides */
.woocommerce-shipping-totals th,
.woocommerce-shipping-totals td::before {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #333333 !important;
}

/* 5. Forces the mobile responsive layout to completely hide the terminal label with the asterisk */
@media screen and (max-width: 767px) {
    .woocommerce-shipping-totals td label[for="woo_lithuaniapost_lpexpress_terminal_id"],
    .woocommerce-shipping-totals td .woo_lithuaniapost_lpexpress_terminal_id_field {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* 6. Standard mobile layout adjustments with globally locked grid columns for all rows */
@media screen and (max-width: 767px) {
    /* Clamps table dimension mechanics within responsive container nodes */
    .cart_totals table.shop_table_responsive,
    .cart_totals table.shop_table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        box-sizing: border-box !important;
    }

    /* Structures cell formatting side-by-side cleanly across horizontal planes */
    .cart_totals table.shop_table_responsive tr {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 14px 4px !important;
    }

    /* Blocks native mobile fallback duplicate content strings completely */
    .cart_totals table.shop_table_responsive tr td::before,
    .cart_totals table.shop_table_responsive tr th::before {
        content: "" !important;
        display: none !important;
    }

    /* Left column (All 3 rows th) - expanded to exactly 35% to prevent iPhone text cutoff */
    .cart_totals table.shop_table_responsive tr th {
        display: block !important;
        width: 35% !important;
        max-width: 35% !important;
        min-width: 35% !important;
        flex: 0 0 35% !important;
        text-align: left !important;
        padding: 0 !important;
        margin: 0 !important;
        background: none !important;
        white-space: nowrap !important;
    }

    /* Right column (All 3 rows td) - GLOBAL LOCK: set at 65% with strict clipping defenses */
    .cart_totals table.shop_table_responsive tr td {
        display: block !important;
        width: 65% !important;
        max-width: 65% !important;
        min-width: 65% !important;
        flex: 0 0 65% !important;
        text-align: right !important;
        padding: 0 2px 0 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Resets internal margins and list profiles for shipping choices */
    ul#shipping_method {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    /* Aligns choice fields cleanly and completely removes the purple padding zone from iOS */
    ul#shipping_method li {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        margin: 0 0 10px 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }
    
    ul#shipping_method li:last-child {
        margin-bottom: 0 !important;
    }

    /* Centers the radio input bubble and enforces a solid fixed margin grid */
    ul#shipping_method li input[type="radio"],
    ul#shipping_method li input[type="radio"]:checked {
        margin: 0 6px 0 2px !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        outline: none !important;
        box-shadow: none !important;
    }

    /* Formats shipping text strings to stand completely straight on a single line layer */
    ul#shipping_method li label {
        display: inline-block !important;
        font-size: 13px !important;
        white-space: nowrap !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 1.2 !important;
        text-align: left !important;
    }
}
	
/* 7. Aligns, forces and widens the quantity field block to perfectly fit up to 3 digits on desktop */
.woocommerce-cart table.cart td.product-quantity input.qty {
    vertical-align: middle !important;
    margin-top: -4px !important;
    min-width: 75px !important; /* Forcefully guarantees extra structural width for the desktop arrow toggles */
    width: 75px !important;
}


/* Cart page adjustments - for mobile and tablet screens only (767px width and below) */
@media screen and (max-width: 767px) {
    
    /* Completely erases the "Product:" text content and removes the theme float layout anchor precisely */
    table.shop_table_responsive tr td.product-name[data-title]::before {
        content: "" !important;
        float: none !important;
    }

    /* Center ONLY the product name field and link, leaving other fields untouched */
    table.shop_table_responsive tr td.product-name {
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        float: none !important;
    }
    
}

/* Cart page adjustment - Align price and subtotal text to the right for a clean desktop layout */
.woocommerce-cart-form table.shop_table th.product-price,
.woocommerce-cart-form table.shop_table td.product-price,
.woocommerce-cart-form table.shop_table th.product-subtotal,
.woocommerce-cart-form table.shop_table td.product-subtotal {
    text-align: right !important;
}


/* Checkout page */

/* Checkout - Forces the radio button question title to match the normal font weight of other input fields */
#billing_rdio_field legend {
    font-weight: normal !important; /* Changes from bold to normal weight */
}

/* Checkout - Compact vertical spacing for custom Lithuanian VAT fields */
/* 1. Tighten space after Company Code field */
.form-row[id*="billing_imones_kodas"] {
    margin-bottom: 2px !important;
    padding-bottom: 0 !important;
    min-height: auto !important;
}

/* 2. Remove extra gaps around the Radio Button block */
#billing_rdio_field, .form-row[id*="billing_rdio_field"] {
    margin-top: 0 !important;
    margin-bottom: 2px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: auto !important;
}

/* 2.1. Pull first radio button closer to the question and remove bold style */
#billing_rdio_field legend, .form-row[id*="billing_rdio_field"] legend {
    font-weight: normal !important; /* Changes from bold to normal weight */
    margin-bottom: 2px !important;
    padding-bottom: 0 !important;
}

/* 2.2. Tighten vertical gap between the radio options */
#billing_rdio_field label, .form-row[id*="billing_rdio_field"] label {
    display: block !important;
    margin-top: 0 !important;
    margin-bottom: 4px !important;
    padding: 0 !important;
}
#billing_rdio_field label:last-child {
    margin-bottom: 0 !important;
}

/* 3. Pull VAT input field up closer to the radio buttons */
.form-row[id*="pvm_moketojo_kodas"] {
    margin-top: 2px !important;
    padding-top: 0 !important;
    min-height: auto !important;
}

/* Checkout - Hide optional label text suffix globally across the entire checkout form */
.woocommerce-checkout span.optional {
    display: none !important;
}

/* Hidden the "Additional Information" field heading */
.woocommerce-additional-fields h3 {
    display: none !important;
}

/* Footer */

/* gmail contact in footer */
.block.footer-widget-1 .textwidget p:nth-child(1) {
	font-size: 15px;
	white-space: nowrap;
}
	
@media (min-width: 768px) {
	.footer-widgets {
		padding-top: 2em;
	}
}
@media (max-width: 1105px) {
	.block.footer-widget-1 .textwidget p:nth-child(1) {
		white-space: normal;
	}
}
.footer-widgets > .block > * {
	margin-bottom: 1em;
}
.footer-widgets .widget-title {
	padding: 0 0 0.5em 0;
	margin: 0 0 0.5em 0;
}
.site-info {
	text-align: center;
	padding: 1em 0;
}
.privacy-policy-link {
	display: none;
}

/* Footer Column 2 */
.footer-widget-2 ul li {
	padding-left: 0;
}
.footer-widget-2 ul li:before {
	content: "";
	display: none;
}
.footer-widget-2 ul li a {
	text-decoration: none;
}

