/*
Theme Name: Legit Shop Mania
Description: Legit.lv child theme for TH Shop Mania custom styling.
Template: th-shop-mania
Version: 1.0.0
Text Domain: legit-shop-mania
*/

/* Pārnests no TH Shop Mania Papildu CSS. */
.widget-footer .widget ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: block; /* Ensure block layout */
}

.widget-footer .widget ul li {
  display: block; /* Ensure list items are block-level */

}
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
}
.woocommerce ul#shipping_method {
    list-style: none outside;
    margin: 0;
    padding: 0;
	  padding-left:15px;
    text-align: left; /* Ensure the text alignment is left */
}

#add_payment_method .cart-collaterals .cart_totals .woocommerce-shipping-destination, .woocommerce-cart .cart-collaterals .cart_totals .woocommerce-shipping-destination, .woocommerce-checkout .cart-collaterals .cart_totals .woocommerce-shipping-destination {
    margin-bottom: 0;
    display: none;
}

.product .inbank {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 0 10px 0;
    margin: 0;
    width: 100%;
}
span.in-my-stock {
    position: absolute;
    top: 3%;
    left: 0.5%;
    background-color: #448a85; 
    color: #fff;
    padding: 3px 8px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 10;
}
/* Container for the delivery times */
.delivery-time {
    background-color: #f7f7f7; /* Light grey background */
    padding: 15px; /* Padding inside the div */
    margin-top: 20px; /* Adds space above the delivery time box */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    text-align: center;
}

/* Heading styling */
.delivery-time h3, 
.delivery-time h4 {
    color: #333; /* Darker text color */
    margin-bottom: 15px; /* Space below the heading */
    font-weight: 600; /* Semi-bold text */
}

/* Rocket icon before the 'Ātra piegāde' text */
.delivery-time h4 .lnr.lnr-rocket {
    color: #f39c12; /* Icon color (Orange in this case) */
    margin-right: 10px; /* Space between the icon and the text */
    font-size: 24px; /* Size of the icon */
    vertical-align: middle; /* Align the icon with the text */
}

/* Table styling */
.delivery-time table {
    width: 100%; /* Full-width table */
    margin-top: 15px; /* Space above the table */
    border-collapse: collapse; /* Remove gaps between table cells */
    text-align: center; /* Center text inside the table */
}

/* Table headers */
.delivery-time th {
    background-color: #ffbd27; /* Header background color */
    color: #fff; /* White text color */
    padding: 10px; /* Padding inside the table headers */
    font-weight: 700; /* Bold text */
}

/* Table data (cells) */
.delivery-time td {
	/* Padding inside the table cells */
    border-bottom: 1px solid #ddd; /* Light bottom border for separation */
    color: #333; /* Dark text color */
}

/* Styling for the specific time text */
.delivery-time td:first-child {
    font-weight: 600; /* Slightly bold the first column (Mūsu ofisā) */
    color: #448a85;
	/* Custom green color for office availability */
}

/* Link styling in the table headers */
.delivery-time th a {
    color: #fff; /* White text for links in the headers */
    text-decoration: none; /* Remove underline */
}

.delivery-time th a:hover {
    text-decoration: underline; /* Underline on hover */
}

/* Table row styling */
.delivery-time tr:nth-child(odd) {
    background-color: #448a85;!important
	/* Alternating background color for rows */
}

/* Space below the table */
.delivery-time span#timeleft {
    display: block;
    margin-top: 10px; /* Space above the timeleft */
    font-size: 14px; /* Smaller font size for additional info */
    color: #888; /* Light gray text */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .delivery-time table {
        font-size: 14px; /* Smaller font size for smaller screens */
    }

    .delivery-time td, .delivery-time th {
        padding: 8px; /* Adjust padding for smaller screens */
    }
}
.woocommerce ul.products li.product .th-shop-mania-shop-page-layout-6 .onsale {
    right: initial;
    left: 9px;
    display: none;
}
.woocommerce #content div.product .prev_next_buttons
{
	display:none;
}
.single-product.woocommerce span.onsale {
display:none;
}
.term-description
{
	display:none;
}
.social-share
{
	display:none;
}
.woocommerce-shipping-totals td {
    display: block;
}

.woocommerce-shipping-methods {
    margin-left: 0;
}

.woocommerce-shipping-totals th {
    text-align: left;
}

.woocommerce-shipping-totals th, .woocommerce-shipping-totals td {
    display: block;
    width: 100%;
}

/* Optional: To hide "Piegāde" */
.woocommerce-shipping-totals th {
    #display: none;
}
/* Ensure the Venipak dropdown is styled */
select#venipak_pickup_point {
    background-color: #f0f0f0 !important; /* Example: change background color */
    color: #333 !important; /* Change text color */
    padding: 10px !important; /* Add padding */
    border-radius: 5px !important; /* Rounded corners */
    border: 1px solid #ccc !important; /* Add border */
    width: 100% !important; /* Full width */
}

/* Adjust the container with additional styling if needed */
.wc-venipak-shipping-terminals {
    padding: 10px !important;
    background-color: #d7dcd9 !important;
    border: 1px solid #ddd !important;
}
.woocommerce-store-notice, p.demo_store
{
	background:#448a85;
}
.woocommerce-shipping-destination
{
	display:none;
}
.thunk-single-product-summary-wrap .product_meta span {
    margin-bottom: 10px;
    display: none;
}
.woocommerce-error-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f44336; /* Red for error */
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.woocommerce-error-popup-close {
    cursor: pointer;
    float: right;
    font-size: 20px;
    margin-left: 10px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}
.elemento-addons-quickview-simple {
    display: none;
}

.delivery-options {
    border: 1px solid #e5e5e5;
    padding: 10px;
    background-color: #fff;
    margin-top: 15px;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.delivery-options .country {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
}

.delivery-item {
    margin-bottom: 8px;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.delivery-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.icon {
    margin-right: 10px; /* Space between the icon and the text */
    font-size: 18px;
}

.delivery-item strong {
    font-weight: bold;
    font-size: 14px;
}

.delivery-time {
    color: #448a85;
    font-weight: bold;
    display: block;
    font-size: 14px;
    margin-top: 5px; /* Add margin above the date */
    background-color: #e9ecef;
    padding: 5px 10px;
    border-radius: 5px;
}

.icon-location::before {
    content: '1F4CD'; /* Pin Icon */
}

.icon-truck::before {
    content: '1F69A'; /* Truck Icon */
}

.icon-box::before {
    content: '1F4E6'; /* Package Icon */
}

.icon-payment::before {
    content: '1F4B3'; /* Credit Card Icon */
}

.delivery-payment {
    margin-top: 10px;
    line-height: 1.3;
    font-size: 14px;
}

.woocommerce div.product form.cart {
    display: block;
    clear: both;
}

.delivery-options {
    margin-top: 15px; /* Adjusted margin to make it more compact */
    clear: both;
    position: relative;
}

.woocommerce button.single_add_to_cart_button {
    display: block;
    margin-bottom: 15px; /* Adjusted margin to tighten the space */
}
/* Backorder specific styling */
.delivery-time-backorder {
    background-color: #ffe6e6;
    color: #d9534f;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure the div takes full width */
    clear: both; /* Clear any floated elements to force the backorder box below */
}

/* Style for the text inside the backorder box */
.delivery-time-backorder h3 {
    margin: 0;
    font-size: 18px;
    color: #d9534f;
    font-weight: bold;
}

/*
element.style {
    display: none;
}
.woocommerce-store-notice, p.demo_store {
    background: Orange;
}
.woocommerce .summary.entry-summary p.in-stock {
	display:none;
}
.single-product .product {
    display: flex;
    flex-wrap: wrap;
}

.single-product .product .summary {
    flex: 1 1 33%;
}

.single-product .product .images {
    flex: 1 1 33%;
}

.single-product .product .woocommerce-product-details__short-description,
.single-product .product .shipping-info-section {
    flex: 1 1 33%;
    margin-left: 15px;
}

.delivery-options {
    margin-top: 20px;
}
*/
/*Atspējo nav obligāti checkouta */
.woocommerce form .optional {
    display: none !important;
}
.product-category.product h2{
	opacity:1;!important
}

/* Pseudo‐elements horizontālajai līnijai visā viewport platumā */
.woocommerce-Tabs-panel.woocommerce-Tabs-panel--description.panel.entry-content.wc-tab::after {
  content: "";
  position: absolute;
                 /* piespiests bloka apakšai */
  left: 50%;                 /* sākums centra līnijas līnija */
  transform: translateX(-50%);
  width: 100vw;              /* stiepjas pārlūkprogrammas loga platumā */
  height: 1px;               /* līnijas biezums */
  background-color: #ccc;    /* līnijas krāsa */
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid #ccc;
    text-align: center;
    padding: 0;
    margin: 0;
	width: 100vw;
	                 /* piespiests bloka apakšai */
  left: 50%;                 /* sākums centra līnijas līnija */
  transform: translateX(-50%);
}
/* samazina “Piegādāt citā adresē?” teksta izmēru un atstarpes */
#ship-to-different-address {
  font-size: 1rem;        /* fontu izmērs */
  font-weight: normal;    /* ne-treknraksts */
  margin: 0 0 1em;        /* atstarpe zem bloka */
  padding: 0;
	padding-left: 0.5%;
	
}
/* Starp checkbox un tekstu zem “Piegādāt citā adresē?” */
#ship-to-different-address-checkbox + span {
  margin-left: 0.5em;  /* nomaini 0.5em uz to pašu vērtību, kā augšējajā rindā */
}
.single-product div.product form.cart button.plus{
	padding-top:3%;
}
.th-shop-mania-quantity{
	margin-top: 9px;
	border-radius:5px;
}
.wc-venipak-shipping-logo{
	display:none;
}
.thunk-woo-product-list .woocommerce-loop-product__title {
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
    -webkit-box-orient: unset !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    max-height: none !important;
    height: auto !important;
    white-space: normal !important;
}
.thunk-woo-product-list .woocommerce-loop-product__title {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
    line-clamp: 4 !important;
    line-height: 24px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    white-space: normal !important;
}
@media (max-width: 767px) {
    .thunk-woo-product-list .woocommerce-loop-product__title {
        font-size: 14px !important;
        line-height: 20px !important;
        min-height: 80px !important;
        max-height: 80px !important;
        -webkit-line-clamp: 4 !important;
        line-clamp: 4 !important;
    }
}
.legit-delivery {
    max-width: 1180px;
    margin-top: 20px;
}

.legit-delivery-intro {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.legit-delivery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.legit-delivery-card {
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 22px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.legit-delivery-card h3 {
    font-size: 20px;
    margin: 8px 0 8px;
}

.legit-delivery-card p {
    min-height: 44px;
    margin: 0 0 14px;
    color: #555;
}

.delivery-icon {
    font-size: 30px;
}

.delivery-price {
    font-size: 22px;
    font-weight: 700;
    color: #4d918b;
}

.delivery-country {
    display: block;
    margin-top: 6px;
    color: #777;
}

.delivery-prices {
    display: grid;
    gap: 8px;
    text-align: left;
}

.delivery-prices span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

.legit-delivery-note {
    margin-top: 24px;
    padding: 16px 18px;
    background: #f3f8f7;
    border-left: 4px solid #4d918b;
    font-weight: 500;
}

@media (max-width: 767px) {
    .legit-delivery-grid {
        grid-template-columns: 1fr;
    }

    .legit-delivery-card {
        padding: 18px;
    }

    .legit-delivery-card p {
        min-height: 0;
    }
}
.legit-contact {
    max-width: 1180px;
    margin-top: 22px;
}

.legit-contact-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.legit-contact-action {
    display: block;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    text-decoration: none !important;
    color: #111 !important;
}

.legit-contact-action span {
    display: block;
    color: #667085;
    margin-bottom: 6px;
}

.legit-contact-action strong {
    color: #4d918b;
    font-size: 19px;
}

.legit-contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
}

.legit-contact-card {
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.legit-contact-card h3 {
    margin: 0 0 18px;
    font-size: 22px;
}

.legit-contact-card dl {
    margin: 0;
}

.legit-contact-card dl div,
.legit-hours div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid #eee;
    padding: 10px 0;
}

.legit-contact-card dt,
.legit-hours span {
    color: #667085;
}

.legit-contact-card dd {
    margin: 0;
    text-align: right;
    font-weight: 500;
}

.legit-hours strong {
    color: #111;
}

.legit-contact-note {
    margin-top: 20px;
    padding: 16px 18px;
    background: #f3f8f7;
    border-left: 4px solid #4d918b;
    font-weight: 500;
}

@media (max-width: 767px) {
    .legit-contact-actions,
    .legit-contact-grid {
        grid-template-columns: 1fr;
    }

    .legit-contact-card,
    .legit-contact-action {
        padding: 18px;
    }

    .legit-contact-card dl div,
    .legit-hours div {
        display: block;
    }

    .legit-contact-card dd {
        text-align: left;
        margin-top: 4px;
    }
}

/* Paslēpj tikai lielo Klix kalkulatora kvadrātu produkta lapā */
body.single-product klix-pay-later[view="product"] {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* Mobilajā atdala Inbank kalkulatoru no saistītajiem produktiem */
@media (max-width: 767px) {
    body.single-product .related.products {
        clear: both !important;
        padding-top: 50px !important;
    }
}
/* Datorā atdala Inbank kalkulatoru no saistītajiem produktiem */
@media (min-width: 768px) {
    body.single-product .related.products {
        clear: both !important;
        padding-top: 55px !important;
    }
}
/* Rāda noliktavas atlikumu produkta lapā */
body.single-product p.stock.in-stock {
    display: block !important;
    color: #448a85 !important;
    font-weight: 700 !important;
    margin: 10px 0 !important;
}
	/* Produkta lapas V1 - platāks un kompaktāks produkta skats */
@media (min-width: 992px) {
    body.single-product .thunk-single-product-summary-wrap {
        display: grid !important;
        grid-template-columns: 43% 57% !important;
        gap: 34px !important;
        align-items: start !important;
        margin-bottom: 25px !important;
    }

    body.single-product .woocommerce-product-gallery {
        width: 100% !important;
        max-width: 520px !important;
        margin: 0 auto !important;
    }

    body.single-product .woocommerce-product-gallery img {
        max-height: 430px !important;
        width: 100% !important;
        object-fit: contain !important;
    }

    body.single-product .summary.entry-summary {
        width: 100% !important;
        max-width: none !important;
        margin-bottom: 0 !important;
    }

   body.single-product .product_title.entry-title {
    font-size: 25px !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
    max-width: 780px !important;
    }
}

/* Mobilajā atstājam vienā kolonnā, tikai savācam virsrakstu */
@media (max-width: 767px) {
    body.single-product .product_title.entry-title {
        font-size: 24px !important;
        line-height: 1.22 !important;
        margin-bottom: 14px !important;
    }
}

/* Latviešu burtu attēlojums: stabils fonts ar pilnu garumzīmju atbalstu */
body,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6,
p,
.woocommerce div.product .product_title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.cat-content,
.cat-content a,
.legit-delivery-box {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif !important;
}
/* Piegādes bloka tekstiem vienmēr lieto latviešu burtiem drošu fontu */
.legit-delivery-box,
.legit-delivery-box * {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif !important;
    font-variant-ligatures: none;
}
/* Paslēpj WooCommerce standarta “Pieejams”, atstājot tikai īsto atlikuma skaitu */
body.single-product .summary p.stock,
body.single-product .entry-summary p.stock {
    display: none !important;
}

/* Latviešu garumzīmju labojums: Roboto bold svars */
h1, h2, h3, h4, h5, h6,
b, strong, th, th a, dt,
.menu-category-list .toggle-title,
.cart-contents .cart-total,
.single_add_to_cart_button.button.alt,
.woocommerce a.button.alt,
.woocommerce button.button {
  font-family: 'Roboto', Arial, sans-serif !important;
  font-weight: 700 !important;
}

.th-shop-mania-menu > li > a,
.widget_nav_menu > li > a {
  font-family: 'Roboto', Arial, sans-serif !important;
}


/* Privātuma politikas pārskatāms izkārtojums */
.page-id-3 .entry-content {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.page-id-3 .entry-content h2 {
  margin-top: 42px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border-left: 4px solid #438d89;
  border-radius: 6px;
  background: #f4f8f8;
  color: #2d716e;
  font-size: 1.35rem;
  line-height: 1.35;
}
.page-id-3 .entry-content p {
  margin-bottom: 20px;
  line-height: 1.75;
}
.page-id-3 .entry-content h2 + p {
  margin-top: 0;
}


/* Produktu saraksta nosaukumi: vieglāks svars, lai redz vairāk teksta */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title a {
  font-family: 'Roboto', Arial, sans-serif !important;
  font-weight: 400 !important;
}

/* ACC ražotāja specifikācijas saite */
.single-product .legit-manufacturer-link {
    margin: 28px 0 0;
    padding: 14px 16px;
    border-left: 4px solid #4f928e;
    background: #f1f8f7;
}

.single-product .legit-manufacturer-link a {
    color: #2f7774;
    font-weight: 600;
    text-decoration: none;
}

.single-product .legit-manufacturer-link a:hover,
.single-product .legit-manufacturer-link a:focus {
    color: #1f625f;
    text-decoration: underline;
}




/* Produkta galerija: noņem tēmas fiksēto 600px tukšo laukumu zem bildes */
.woocommerce.single-product .woocommerce-product-gallery__image a {
    min-height: 0 !important;
}

/* Produktu kartīšu nosaukumi: piecas rindas, sākotnējais tēmas fonts */
.thunk-woo-product-list .woocommerce-loop-product__title {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 5 !important;
    line-height: 24px !important;
    min-height: 120px !important;
    max-height: 120px !important;
    white-space: normal !important;
}

/* Checkout: kompakta banku izvēle datorā */
@media (min-width: 768px) {
    .woocommerce-checkout .payment_box.payment_method_bank_transfer > div {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .woocommerce-checkout .payment_box.payment_method_bank_transfer > div > label {
        width: auto !important;
        min-height: 68px !important;
        margin: 0 !important;
        padding: 8px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .woocommerce-checkout .payment_box.payment_method_bank_transfer .spell-pm-image {
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
    }

    .woocommerce-checkout .payment_box.payment_method_bank_transfer .spell-pm-image img {
        width: auto !important;
        max-width: 100% !important;
        max-height: 32px !important;
        object-fit: contain !important;
    }
}


/* Grozs: cena vienmēr zem Total kolonnas datorā */
@media (min-width: 769px) {
    .woocommerce-cart table.shop_table .product-top {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 110px !important;
        column-gap: 20px !important;
        align-items: start !important;
    }

    .woocommerce-cart table.shop_table .product-name {
        margin: 0 !important;
        text-align: left !important;
    }

    .woocommerce-cart table.shop_table .product-subtotal {
        margin: 0 !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    .woocommerce-cart table.shop_table .product-bottom {
        margin-top: 14px !important;
    }
}


/* Grozs: rezervē vietu produkta attēlam, lai nosaukums tam nepārklājas */
@media (min-width: 769px) {
    .woocommerce-cart .woocommerce-cart-form__cart-item .product-thumbnail {
        flex: 0 0 140px !important;
        width: 140px !important;
    }
}


/* Checkout: skaidri izceļ izvēlēto banku */
.woocommerce-checkout .payment_box.payment_method_bank_transfer > div > label {
    border: 1px solid transparent !important;
    border-radius: 6px !important;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease !important;
    cursor: pointer !important;
}

.woocommerce-checkout .payment_box.payment_method_bank_transfer > div > label:has(input.spell-payment-method:checked) {
    background: #eef8f7 !important;
    border-color: #4f928e !important;
    box-shadow: 0 0 0 1px #4f928e !important;
}


/* Checkout: kompaktākas, bet skaidras atstarpes */
.woocommerce-checkout #payment .payment_method_bank_transfer > label > img {
    display: none !important;
}

.woocommerce-checkout #payment ul.payment_methods > li {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

.woocommerce-checkout #payment .payment_method_bank_transfer .payment_box {
    margin: 8px 0 !important;
    padding: 12px !important;
}

.woocommerce-checkout #payment .woocommerce-privacy-policy-text,
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-checkbox-text {
    font-size: 14px !important;
    line-height: 21px !important;
}

.woocommerce-checkout #payment .woocommerce-privacy-policy-text p {
    margin: 0 0 12px !important;
}

.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper .form-row {
    margin: 0 !important;
}
/* Vienāds kategoriju attēlu laukums */
.woocommerce ul.products li.product-category,
.woocommerce-page ul.products li.product-category {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

/* Kategorijas saite aizpilda visu kartīti */
.woocommerce ul.products li.product-category > a,
.woocommerce-page ul.products li.product-category > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}


/* TH Shop Mania 1.9: do not repeat the site name below the logo. */
.site-branding .site-title,
.site-branding .site-description {
    display: none !important;
}

/* Logo bez vietnes nosaukuma zem tā. */
.site-title {
    display: none !important;
}

/* Grozs: paslēpj lieko vienības cenas kolonnu. */
.woocommerce-cart table.woocommerce-cart-form__contents th.product-price,
.woocommerce-cart table.woocommerce-cart-form__contents td.product-price {
    display: none !important;
}

/* Kategoriju skaitus nedrīkst dalīt starp rindām. */
.woocommerce ul.products li.product-category .count,
.woocommerce-page ul.products li.product-category .count {
    display: inline-block !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

/* Groza piegādes kopsavilkums: normāls platums un atstarpes. */
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table {
    table-layout: auto !important;
}

.woocommerce-cart .cart-collaterals .cart_totals tr.woocommerce-shipping-totals th {
    width: 125px !important;
    min-width: 125px !important;
    white-space: nowrap !important;
    word-break: normal !important;
}

.woocommerce-cart .cart-collaterals .cart_totals .woocommerce-shipping-methods li {
    margin: 0 0 14px !important;
    line-height: 1.55 !important;
}

.woocommerce-cart .cart-collaterals .cart_totals .woocommerce-shipping-methods label {
    display: inline-block !important;
    padding-left: 4px !important;
}

/* Mobilajā tehnisko datu tabula paliek divās salasāmās kolonnās. */
@media (max-width: 767px) {
    .woocommerce div.product table.woocommerce-product-attributes {
        width: 100% !important;
        table-layout: auto !important;
    }

    .woocommerce div.product table.woocommerce-product-attributes th,
    .woocommerce div.product table.woocommerce-product-attributes td {
        display: table-cell !important;
        vertical-align: top !important;
        padding: 9px 7px !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    .woocommerce div.product table.woocommerce-product-attributes th {
        width: 36% !important;
        min-width: 104px !important;
    }
}
/* Kategoriju preču skaitu nerādām. */
.woocommerce ul.products li.product-category .count,
.woocommerce-page ul.products li.product-category .count {
    display: none !important;
}

/* Mobilajā tehniskie parametri: katrs nosaukums un vērtība savā pilna platuma rindā. */
@media (max-width: 767px) {
    table.woocommerce-product-attributes,
    table.woocommerce-product-attributes tbody,
    table.woocommerce-product-attributes tr {
        display: block !important;
        width: 100% !important;
    }

    table.woocommerce-product-attributes tr {
        margin: 0 0 12px !important;
    }

    table.woocommerce-product-attributes th,
    table.woocommerce-product-attributes td {
        display: block !important;
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 8px 10px !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    table.woocommerce-product-attributes th {
        padding-bottom: 2px !important;
    }

    table.woocommerce-product-attributes td {
        padding-top: 2px !important;
    }
}

/* acme-specifications kompaktam mobilajam skatam. */
@media (max-width: 767px) {
    .single-product .woocommerce-Tabs-panel table.shop_attributes.acme-specifications {
        display: table !important;
        width: 100% !important;
        table-layout: fixed !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    .single-product .woocommerce-Tabs-panel table.shop_attributes.acme-specifications tbody {
        display: table-row-group !important;
    }

    .single-product .woocommerce-Tabs-panel table.shop_attributes.acme-specifications tr {
        display: table-row !important;
        margin: 0 !important;
    }

    .single-product .woocommerce-Tabs-panel table.shop_attributes.acme-specifications th,
    .single-product .woocommerce-Tabs-panel table.shop_attributes.acme-specifications td {
        display: table-cell !important;
        box-sizing: border-box !important;
        width: auto !important;
        min-width: 0 !important;
        padding: 8px !important;
        vertical-align: top !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
        overflow-wrap: anywhere !important;
    }

    .single-product .woocommerce-Tabs-panel table.shop_attributes.acme-specifications th {
        width: 40% !important;
    }
}

/* Mobīlais grozs: produktu kartīšu izkārtojums. */
@media (max-width: 767px) {
    .woocommerce-cart .woocommerce-cart-form table.woocommerce-cart-form__contents {
        display: block !important;
        width: 100% !important;
    }

    .woocommerce-cart .woocommerce-cart-form table.woocommerce-cart-form__contents thead,
    .woocommerce-cart .woocommerce-cart-form table.woocommerce-cart-form__contents tbody {
        display: block !important;
    }

    .woocommerce-cart .woocommerce-cart-form table.woocommerce-cart-form__contents thead {
        display: none !important;
    }

    .woocommerce-cart .woocommerce-cart-form tr.woocommerce-cart-form__cart-item {
        position: relative !important;
        display: grid !important;
        grid-template-columns: 92px minmax(0, 1fr) !important;
        grid-template-areas:
            "image name"
            "image quantity"
            "image subtotal" !important;
        column-gap: 14px !important;
        row-gap: 9px !important;
        padding: 16px 12px !important;
        margin: 0 !important;
        border-bottom: 1px solid #e6e6e6 !important;
    }

    .woocommerce-cart .woocommerce-cart-form tr.woocommerce-cart-form__cart-item > td {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .woocommerce-cart .woocommerce-cart-form tr.woocommerce-cart-form__cart-item > td::before {
        display: none !important;
        content: none !important;
    }

    .woocommerce-cart .woocommerce-cart-form td.product-remove {
        position: absolute !important;
        top: 10px !important;
        right: 4px !important;
        z-index: 2 !important;
    }

    .woocommerce-cart .woocommerce-cart-form td.product-thumbnail {
        grid-area: image !important;
        width: 92px !important;
    }

    .woocommerce-cart .woocommerce-cart-form td.product-thumbnail img {
        display: block !important;
        width: 92px !important;
        height: auto !important;
        margin: 0 !important;
    }

    .woocommerce-cart .woocommerce-cart-form td.product-name {
        grid-area: name !important;
        padding-right: 24px !important;
        font-size: 15px !important;
        line-height: 1.4 !important;
    }

    .woocommerce-cart .woocommerce-cart-form td.product-name a {
        display: block !important;
        font-weight: 600 !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    .woocommerce-cart .woocommerce-cart-form td.product-quantity {
        grid-area: quantity !important;
    }

    .woocommerce-cart .woocommerce-cart-form td.product-subtotal {
        grid-area: subtotal !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        white-space: normal !important;
    }
}

/* Mobilais produkta virsraksts un groza poga. */
@media (max-width: 767px) {
    .single-product .summary .product_title {
        font-size: 24px !important;
        line-height: 1.22 !important;
        margin-bottom: 18px !important;
    }

    .single-product .summary form.cart {
        margin-top: 22px !important;
    }

    .single-product .summary form.cart .single_add_to_cart_button {
        width: 100% !important;
        min-height: 56px !important;
        padding: 12px 16px !important;
        font-size: 17px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }
}

/* Papildu mobilā virsraksta samazināšana gariem importa nosaukumiem. */
@media (max-width: 767px) {
    .single-product .ths-entry-content .product_title {
        font-size: 20px !important;
        line-height: 1.28 !important;
    }
}

/* Virsraksts mobilajā 20px — pārraksta iepriekšējo 24px noteikumu. */
@media (max-width: 767px) {
    body.single-product .product_title.entry-title {
        font-size: 20px !important;
        line-height: 1.28 !important;
    }
}
