/* =========================================================
   PNW CUSTOM – GÓRNA CZĘŚĆ PRODUKTU
   ========================================================= */


/* =========================================================
   BREADCRUMBS
   ========================================================= */

/* =========================================================
   HOME – sama ikonka
   ========================================================= */

.pnw-breadcrumb-home {
	display: inline-flex !important;

	align-items: center;
	justify-content: center;

	width: 24px;
	height: 24px;

	color: #111 !important;

	vertical-align: middle;
}


.pnw-home-icon {
	display: block;

	width: 22px !important;
	height: 22px !important;

	min-width: 22px;
	max-width: 22px;

	min-height: 22px;
	max-height: 22px;

	color: currentColor !important;
}


/* =========================================================
   POZOSTAŁE ELEMENTY
   ========================================================= */

.single-product #page-breadcrumb,
.single-product #page-breadcrumb a,
.single-product #page-breadcrumb span {
	color: #111;
}


/* Aktualna strona */

.pnw-breadcrumb-current {
	color: #28A745 !important;

	font-weight: 600 !important;
}


/* =========================================================
   TYTUŁ PRODUKTU
   ========================================================= */

.single-product
.product_title,
.single-product
.entry-product-title {
	text-transform: none !important;
}


/* =========================================================
   GŁÓWNA CENA
   ========================================================= */

.single-product
.summary
.price,
.single-product
.summary
.price .woocommerce-Price-amount,
.single-product
.col-woo-single-summary
.price,
.single-product
.col-woo-single-summary
.price .woocommerce-Price-amount {
	color: #28A745 !important;
}


/* Stara cena przy promocji nadal szara */

.single-product
.summary
.price del,
.single-product
.summary
.price del .woocommerce-Price-amount,
.single-product
.col-woo-single-summary
.price del,
.single-product
.col-woo-single-summary
.price del .woocommerce-Price-amount {
	color: #9ba39e !important;

	opacity: 1 !important;
}


/* =========================================================
   QUANTITY / ILOŚĆ
   ========================================================= */

.single-product
.summary
.quantity,
.single-product
.col-woo-single-summary
.quantity {
	border-radius: 8px;

	overflow: hidden;
}


/* =========================================================
   DODAJ DO KOSZYKA
   ========================================================= */

.single_add_to_cart_button {
	display: inline-flex !important;

	align-items: center !important;
	justify-content: center !important;

	gap: 9px !important;

	background: #28A745 !important;

	border-color: #28A745 !important;

	color: #fff !important;

	border-radius: 7px !important;

	box-shadow: none !important;
}


.single_add_to_cart_button:hover {
	background: #218838 !important;

	border-color: #218838 !important;

	color: #fff !important;
}


.pnw-cart-button-icon {
	display: flex;

	align-items: center;
	justify-content: center;

	width: 20px;
	height: 20px;

	flex: 0 0 20px;
}


.pnw-cart-button-icon svg {
	display: block;

	width: 20px;
	height: 20px;
}


/* =========================================================
   PROGI CENOWE
   ========================================================= */

.pnw-tier-pricing-heading {
	display: flex;

	flex-direction: column;

	gap: 3px;

	margin: 20px 0 10px;

	padding: 0;
}


.pnw-tier-pricing-heading strong {
	color: #202622;

	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}


.pnw-tier-pricing-heading span {
	color: #747d77;

	font-size: 12px;
	font-weight: 500;
	line-height: 1.45;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	.pnw-tier-pricing-heading {
		margin-top: 16px;
	}


	.pnw-tier-pricing-heading strong {
		font-size: 14px;
	}


	.pnw-tier-pricing-heading span {
		font-size: 11px;
	}

}

/* =========================================================
   PNW – SINGLE PRODUCT
   GŁÓWNA CENA BRUTTO + NETTO
   ========================================================= */

.pnw-single-price-line {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 5px;
    width: 100%;
    line-height: 1.25;
}

.pnw-single-price-gross-value,
.pnw-single-price-suffix {
    display: inline-block !important;
    width: auto !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

.pnw-single-price-gross {
	margin-bottom: 3px;
}


.pnw-single-price-prefix {
	flex: 0 0 18px;

	color: #667069;

	font-size: 13px;
	font-weight: 400;
}


.pnw-single-price-gross
.tiered-pricing-dynamic-price-wrapper {

	color: #171A18;

	font-size: 21px;
	font-weight: 700;

	white-space: nowrap;
}


.pnw-single-price-gross
.woocommerce-Price-amount {

	color: inherit !important;

	font-size: inherit !important;
	font-weight: inherit !important;
}


.pnw-single-price-suffix {
	color: #667069;

	font-size: 12px;
	font-weight: 400;

	white-space: nowrap;
}


.pnw-single-price-net {
	margin-top: 2px;
}


.pnw-single-price-net-value {
	color: #4f5752;

	font-size: 13px;
	font-weight: 400;

	white-space: nowrap;
}


.pnw-single-price-net-value
.woocommerce-Price-amount {

	color: inherit !important;

	font-size: inherit !important;
	font-weight: inherit !important;
}


.pnw-single-price-net-suffix {
	color: #667069;

	font-size: 11px;
	font-weight: 400;

	white-space: nowrap;
}

/* Stary dopisek brutto – nowy system ceny ma własny */
body.single-product
.custom-brutto-text.strona-produktu {
	display: none !important;
}

/* =========================================================
   PNW – ADD TO CART
   NIEAKTYWNY, GDY ILOŚĆ = 0
   ========================================================= */

.single-product
.single_add_to_cart_button.pnw-qty-disabled {
	opacity: 0.45 !important;

	cursor: not-allowed !important;

	pointer-events: none !important;
}


/* PNW – zabezpieczenie przed uruchomieniem JS */

body.pnw-initial-quantity-required
form.cart .single_add_to_cart_button:not(.pnw-qty-ready) {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}


/* =========================================================
   PNW – KOMPAKTOWA TABELA CEN PROGOWYCH
   Tylko pojedyncza karta produktu
   ========================================================= */

body.single-product table.tiered-pricing-table {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
}

/* Desktop i tablet */

@media (min-width: 768px) {

    body.single-product table.tiered-pricing-table th {
        font-size: 13px !important;
        padding: 6px 4px !important;
        line-height: 1.3 !important;
    }

    body.single-product table.tiered-pricing-table td {
        font-size: 12px !important;
        padding: 6px 4px !important;
        line-height: 1.3 !important;
    }

    body.single-product table.tiered-pricing-table .amount {
        font-size: 12px !important;
    }
}

/* Mobile – przywrócenie zwartego układu */

@media (max-width: 767px) {

    body.single-product .tiered-pricing-wrapper {
        max-width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.single-product table.tiered-pricing-table {
        display: table !important;
        table-layout: fixed !important;
        min-width: 0 !important;
    }

    body.single-product table.tiered-pricing-table thead {
        display: table-header-group !important;
    }

    body.single-product table.tiered-pricing-table tbody {
        display: table-row-group !important;
    }

    body.single-product table.tiered-pricing-table tr {
        display: table-row !important;
    }

    body.single-product table.tiered-pricing-table th,
    body.single-product table.tiered-pricing-table td {
        display: table-cell !important;
        white-space: nowrap !important;
        vertical-align: middle !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.single-product table.tiered-pricing-table th {
        font-size: 10px !important;
        padding: 4px 2px !important;
    }

    body.single-product table.tiered-pricing-table td,
    body.single-product table.tiered-pricing-table .amount {
        font-size: 9px !important;
        padding: 4px 2px !important;
        line-height: 1.3 !important;
    }
}

/* Czytelny tekst na zaznaczonym zielonym progu */

body.single-product
table.tiered-pricing-table
.tiered-pricing--active td,

body.single-product
table.tiered-pricing-table
.tiered-pricing--active .amount {
    color: #111 !important;
}

/* PNW – grupa progów cenowych pod koszykiem */

.pnw-tier-pricing-group {
    margin-top: 24px;
}

.pnw-tier-pricing-group .pnw-tier-pricing-heading {
    margin-bottom: 14px;
}

.pnw-tier-pricing-group .tiered-pricing-wrapper,
.pnw-tier-pricing-group table.tiered-pricing-table {
    width: 100%;
}