/*
 * Integracja WooCommerce z layoutem Elektrohydraulik24.
 * Arkusze Woo sa wylaczone (inc/assets.php), wiec wszystkie elementy sklepu
 * sa opisane tutaj, w jezyku wizualnym projektu.
 */

/* =========================================================================
   1. Kafelek produktu
   ========================================================================= */

.product-card {
	display: flex;
	flex-direction: column;
}

.product-card h3 a {
	position: static;
}

/* Rozciagniety odnosnik: caly kafelek klikalny, a przycisk zakupu zostaje przyciskiem. */
.product-card .eh24-card-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.product-card .price,
.product-card .availability,
.product-card .brand {
	position: relative;
	z-index: 0;
}

.product-card .price {
	margin-top: auto;
}

.eh24-card-action {
	position: relative;
	z-index: 2;
	margin-top: 14px;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .22s ease, transform .22s ease;
}

.product-card:hover .eh24-card-action,
.product-card:focus-within .eh24-card-action {
	opacity: 1;
	transform: none;
}

@media (hover: none) {
	.eh24-card-action {
		opacity: 1;
		transform: none;
	}
}

.eh24-card-btn,
a.eh24-card-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 44px;
	gap: 10px;
	background: var(--blue);
	color: #fff;
	border: 1px solid var(--blue);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .02em;
	cursor: pointer;
	transition: background .2s ease;
}

.eh24-card-btn:hover {
	background: var(--blue2);
}

.eh24-card-btn.loading {
	opacity: .6;
	pointer-events: none;
}

.eh24-card-btn.added {
	background: #2d7a1c;
	border-color: #2d7a1c;
}

a.added_to_cart {
	display: block;
	margin-top: 8px;
	font-size: 11px;
	font-weight: 700;
	color: var(--blue);
	position: relative;
	z-index: 2;
	text-align: center;
}

.availability.is-out {
	color: #a63b2c;
}

.availability.is-out::before {
	background: #c8543f;
}

.availability.is-backorder {
	color: #9a6a12;
}

.availability.is-backorder::before {
	background: #d8a13a;
}

.price-ask {
	font-family: 'Space Grotesk', Manrope, Arial, sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: var(--muted);
}

.price del {
	font-size: 13px;
	color: #98a2a9;
	font-weight: 400;
	margin-right: 7px;
}

.price ins {
	text-decoration: none;
}

/* =========================================================================
   2. Pole ilosci
   ========================================================================= */

.qty .qty-btn {
	border: 0;
	background: #fff;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	color: inherit;
	transition: background .2s ease, color .2s ease;
}

.qty .qty-btn:hover {
	background: var(--ink);
	color: #fff;
}

.qty .qty-input {
	border: 0;
	outline: 0;
	background: none;
	text-align: center;
	font-weight: 700;
	width: 100%;
	min-width: 0;
	-moz-appearance: textfield;
	appearance: textfield;
}

.qty .qty-input::-webkit-outer-spin-button,
.qty .qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.quantity.hidden {
	display: none;
}

.eh24-qty-fixed {
	display: grid;
	place-items: center;
	height: 54px;
	border: 1px solid #bcc6cc;
	font-weight: 700;
}

/* =========================================================================
   3. Karta produktu
   ========================================================================= */

.eh24-short {
	color: #5b666f;
	margin: 20px 0 0;
}

.eh24-short p {
	margin: 0 0 10px;
}

.buy-row .single_add_to_cart_button {
	gap: 14px;
}

.eh24-full {
	width: 100%;
}

.eh24-description p {
	color: #5e6972;
	margin: 0 0 16px;
}

.eh24-description ul,
.eh24-description ol {
	color: #5e6972;
	padding-left: 20px;
}

.eh24-docs .eh24-doc-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.eh24-doc-list a {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	padding: 20px 22px;
	font-size: 13px;
	font-weight: 700;
	transition: background .2s ease;
}

.eh24-doc-list a:hover {
	background: var(--soft);
}

.eh24-doc-list [data-lucide] {
	width: 20px;
	color: var(--blue);
}

.eh24-doc-list span {
	flex: 1 1 auto;
}

@media (max-width: 700px) {
	.eh24-docs .eh24-doc-list {
		grid-template-columns: 1fr;
	}
}

/* Gwiazdki ocen (wlasna implementacja - font Woo nie jest ladowany). */
.star-rating {
	position: relative;
	display: inline-block;
	width: 5.8em;
	height: 1.3em;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.3;
	letter-spacing: 2px;
	color: #f1ac00;
	vertical-align: middle;
}

.star-rating::before {
	content: "\2605\2605\2605\2605\2605";
	position: absolute;
	left: 0;
	top: 0;
	color: #d7dee2;
	white-space: nowrap;
}

.star-rating span {
	position: absolute;
	left: 0;
	top: 0;
	overflow: hidden;
	white-space: nowrap;
}

.star-rating span::before {
	content: "\2605\2605\2605\2605\2605";
	color: #f1ac00;
}

.star-rating strong,
.star-rating span > * {
	display: none;
}

.rating .star-rating {
	margin-right: 4px;
}

.eh24-reviews {
	background: var(--soft);
}

.eh24-reviews .commentlist {
	list-style: none;
	padding: 0;
	margin: 0 0 34px;
	max-width: 860px;
}

.eh24-reviews .commentlist li {
	background: #fff;
	border: 1px solid var(--line);
	padding: 24px;
	margin-bottom: 12px;
}

.eh24-reviews .comment-text .meta {
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 8px;
}

.eh24-reviews .comment-form,
.eh24-reviews #review_form_wrapper {
	max-width: 860px;
}

.eh24-reviews #reply-title {
	font: 600 28px 'Space Grotesk', Manrope, Arial, sans-serif;
	letter-spacing: -.035em;
	display: block;
	margin-bottom: 16px;
}

.eh24-reviews label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 6px;
}

.eh24-reviews input[type="text"],
.eh24-reviews input[type="email"],
.eh24-reviews textarea {
	width: 100%;
	border: 1px solid #ccd5da;
	background: #fff;
	padding: 12px 13px;
	outline: none;
}

.eh24-reviews p {
	margin: 0 0 16px;
}

.comment-form-rating .stars {
	display: flex;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 0 0 14px;
	font-size: 20px;
	color: #d7dee2;
}

.comment-form-rating .stars a {
	color: inherit;
}

.comment-form-rating .stars.selected a,
.comment-form-rating .stars:hover a {
	color: #f1ac00;
}

/* Warianty produktu */
.variations {
	width: 100%;
	border-collapse: collapse;
	margin: 18px 0 0;
}

.variations th,
.variations td {
	text-align: left;
	padding: 8px 0;
	vertical-align: middle;
}

.variations th {
	font-size: 12px;
	font-weight: 700;
	width: 130px;
}

.variations select {
	width: 100%;
	height: 46px;
	border: 1px solid #ccd5da;
	background: #fff;
	padding: 0 12px;
}

.reset_variations {
	font-size: 11px;
	color: var(--muted);
	text-decoration: underline;
}

.woocommerce-variation-price {
	margin: 14px 0;
	font: 600 26px 'Space Grotesk', Manrope, Arial, sans-serif;
}

.woocommerce-variation-availability {
	font-size: 13px;
	font-weight: 700;
	color: #2d7a1c;
}

/* =========================================================================
   4. Listing: podkategorie, aktywne filtry, sortowanie
   ========================================================================= */

.eh24-subcats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 26px;
}

.eh24-subcats a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--line);
	padding: 9px 15px;
	font-size: 12px;
	font-weight: 700;
	transition: .2s;
}

.eh24-subcats a:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.eh24-subcats i {
	font-style: normal;
	font-size: 10px;
	color: #98a0a6;
}

.eh24-active-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
}

.eh24-active-filters a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--soft);
	border: 1px solid var(--line);
	padding: 7px 12px;
	font-size: 11px;
	font-weight: 700;
}

.eh24-active-filters a:hover {
	border-color: var(--ink);
}

.eh24-active-filters [data-lucide] {
	width: 13px;
}

.eh24-active-filters .eh24-clear {
	background: none;
	border: 0;
	text-decoration: underline;
	color: var(--muted);
}

.eh24-orderby {
	display: flex;
	align-items: center;
}

.eh24-orderby label {
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.eh24-orderby select {
	cursor: pointer;
}

.filter-title a {
	color: #71808a;
	font-size: 11px;
	text-decoration: underline;
}

.filter-group label {
	cursor: pointer;
}

.filter-group label a {
	color: inherit;
	flex: 1 1 auto;
}

.filter-group label:hover a {
	color: var(--blue);
}

.eh24-price-form .btn.eh24-price-submit {
	width: 100%;
	height: 40px;
	margin-top: 12px;
	font-size: 11px;
	gap: 0;
}

/* =========================================================================
   5. Komunikaty
   ========================================================================= */

.eh24-notice,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 15px 18px;
	margin: 0 0 20px;
	font-size: 13px;
	font-weight: 600;
	border-left: 3px solid var(--blue);
	background: #eef5ff;
	color: #17334f;
	list-style: none;
}

.eh24-notice.is-success {
	background: #e9f8df;
	border-left-color: #4e9c25;
	color: #2c6612;
}

.eh24-notice.is-error {
	background: #fdeceb;
	border-left-color: #c8543f;
	color: #8d2e1e;
	flex-direction: column;
	gap: 8px;
}

.eh24-notice.is-error li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.eh24-notice [data-lucide] {
	width: 19px;
	flex: 0 0 auto;
	margin-top: 1px;
}

.eh24-notice a {
	text-decoration: underline;
}

/* =========================================================================
   6. Koszyk
   ========================================================================= */

.cart-item .cart-product .eh24-remove {
	display: inline-block;
	margin-top: 8px;
	color: #71808a;
	font-size: 11px;
	text-decoration: underline;
}

.cart-item .cart-product .eh24-remove:hover {
	color: #a63b2c;
}

.cart-item .qty {
	width: 105px;
}

.eh24-cart-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.eh24-update-cart {
	border: 1px solid var(--line);
	background: #fff;
	padding: 10px 16px;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	transition: .2s;
}

.eh24-update-cart:hover {
	border-color: var(--ink);
}

.has-auto-update .eh24-update-cart {
	display: none;
}

.order-summary .eh24-shipping {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 12px;
	padding: 9px 0;
}

.eh24-shipping-choices {
	display: grid;
	gap: 6px;
	text-align: right;
}

.eh24-shipping-choices label {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	cursor: pointer;
}

.eh24-shipping-note {
	display: block;
	color: var(--muted);
	font-weight: 400;
	font-size: 11px;
	line-height: 1.4;
	margin-top: 4px;
}

.eh24-shipping-calc {
	border-top: 1px solid var(--line);
	padding-top: 14px;
	margin-top: 6px;
	font-size: 12px;
}

.eh24-shipping-calc .shipping-calculator-button {
	color: var(--blue);
	font-weight: 700;
	text-decoration: underline;
}

.eh24-shipping-calc .shipping-calculator-form {
	display: grid;
	gap: 10px;
	margin-top: 12px;
}

.eh24-shipping-calc input,
.eh24-shipping-calc select {
	width: 100%;
	border: 1px solid var(--line);
	padding: 10px 12px;
	background: #fff;
}

.order-summary .checkout-button,
.order-summary .button.checkout,
.order-summary .wc-proceed-to-checkout a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	height: 54px;
	background: var(--blue);
	color: #fff;
	font-weight: 800;
	font-size: 13px;
	letter-spacing: .02em;
	border: 0;
	cursor: pointer;
	transition: background .2s ease;
}

.order-summary .checkout-button:hover {
	background: var(--blue2);
}

.wc-proceed-to-checkout {
	margin: 6px 0 14px;
}

.eh24-cart-empty-layout {
	grid-template-columns: 1fr;
}

/* =========================================================================
   7. Kasa
   ========================================================================= */

.eh24-order-form {
	border-top: 8px solid var(--soft);
	margin: 20px -34px 0;
	padding: 34px;
}

.eh24-order-form:last-of-type {
	margin-bottom: -34px;
}

.eh24-order-form h3 {
	font: 600 18px 'Space Grotesk', Manrope, Arial, sans-serif;
	margin: 24px 0 12px;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper,
.woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 22px;
}

.form-row {
	margin: 0;
	display: flex;
	flex-direction: column;
}

.form-row-wide,
.form-row.notes,
#billing_address_1_field,
#billing_address_2_field,
#shipping_address_1_field,
#shipping_address_2_field,
#billing_company_field,
#shipping_company_field,
#order_comments_field {
	grid-column: 1 / -1;
}

.form-row label {
	font-size: 11px;
	font-weight: 700;
	margin-bottom: 5px;
}

.form-row .required {
	color: #c8543f;
	text-decoration: none;
}

.form-row .optional {
	color: var(--muted);
	font-weight: 400;
}

.form-row input.input-text,
.form-row textarea,
.form-row select,
.woocommerce-input-wrapper input,
.woocommerce-input-wrapper textarea {
	width: 100%;
	height: 46px;
	border: 1px solid var(--line);
	background: #fff;
	padding: 0 13px;
	outline: none;
}

.form-row textarea,
.woocommerce-input-wrapper textarea {
	height: auto;
	min-height: 110px;
	padding: 13px;
	resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(0, 109, 255, .1);
}

.woocommerce-input-wrapper {
	display: block;
}

.form-row.woocommerce-invalid input.input-text {
	border-color: #c8543f;
}

.form-row.woocommerce-validated input.input-text {
	border-color: #7fb75f;
}

.woocommerce-form__label-for-checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
	font-size: 12px;
	font-weight: 500;
}

.woocommerce-form__label-for-checkbox input {
	width: auto;
	height: auto;
	margin-top: 3px;
}

#ship-to-different-address {
	font: 600 15px 'Space Grotesk', Manrope, Arial, sans-serif;
	margin: 0;
}

#ship-to-different-address label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

/* Select2 (kraj / wojewodztwo) */
.select2-container .select2-selection--single {
	height: 46px;
	border: 1px solid var(--line);
	border-radius: 0;
	background: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 44px;
	padding-left: 13px;
	color: var(--ink);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 44px;
}

.select2-dropdown {
	border-color: var(--line);
	border-radius: 0;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
	background: var(--blue);
}

.woocommerce-checkout-payment {
	margin-top: 18px;
	border-top: 1px solid var(--line);
	padding-top: 20px;
}

.wc_payment_methods {
	list-style: none;
	padding: 0;
	margin: 0 0 18px;
}

.wc_payment_method {
	border: 1px solid var(--line);
	margin-bottom: 8px;
}

.wc_payment_method > label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.wc_payment_method .payment_box {
	background: var(--soft);
	padding: 14px 16px;
	font-size: 12px;
	color: #5c6771;
	border-top: 1px solid var(--line);
}

.wc_payment_method .payment_box p:first-child {
	margin-top: 0;
}

.woocommerce-terms-and-conditions-wrapper {
	font-size: 12px;
	color: #5c6771;
	margin-bottom: 16px;
}

#place_order,
.woocommerce-checkout .button.alt {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 54px;
	background: var(--blue);
	color: #fff;
	border: 0;
	font-weight: 800;
	font-size: 13px;
	letter-spacing: .02em;
	cursor: pointer;
	transition: background .2s ease;
}

#place_order:hover {
	background: var(--blue2);
}

.blockUI.blockOverlay {
	background: rgba(255, 255, 255, .7) !important;
}

.woocommerce-form-coupon-toggle,
.woocommerce-form-login-toggle {
	margin-bottom: 18px;
}

.woocommerce-form-coupon,
.woocommerce-form-login {
	background: var(--soft);
	padding: 22px;
	margin-bottom: 22px;
}

.woocommerce-form-coupon .form-row,
.woocommerce-form-login .form-row {
	margin-bottom: 12px;
}

.woocommerce-form-coupon .button,
.woocommerce-form-login .button {
	background: var(--ink);
	color: #fff;
	border: 0;
	height: 46px;
	padding: 0 22px;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

@media (max-width: 700px) {
	.eh24-order-form {
		margin: 20px -22px 0;
		padding: 22px;
	}

	.eh24-order-form:last-of-type {
		margin-bottom: -22px;
	}

	.woocommerce-billing-fields__field-wrapper,
	.woocommerce-shipping-fields__field-wrapper,
	.woocommerce-address-fields__field-wrapper {
		grid-template-columns: 1fr;
	}
}

/* =========================================================================
   8. Podziekowanie i konto klienta
   ========================================================================= */

.woocommerce-order,
.woocommerce-account .woocommerce {
	width: min(calc(100% - 64px), var(--max));
	margin: 60px auto 90px;
}

.woocommerce-thankyou-order-received {
	font: 600 clamp(32px, 4vw, 48px)/1.06 'Space Grotesk', Manrope, Arial, sans-serif;
	letter-spacing: -.045em;
	margin: 0 0 26px;
}

.woocommerce-order-overview,
.woocommerce-order-details,
.woocommerce-customer-details {
	margin-bottom: 40px;
}

.woocommerce-order-overview {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	border: 1px solid var(--line);
}

.woocommerce-order-overview li {
	padding: 20px 22px;
	border-right: 1px solid var(--line);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: #8b959d;
}

.woocommerce-order-overview li:last-child {
	border-right: 0;
}

.woocommerce-order-overview strong {
	display: block;
	margin-top: 7px;
	font-family: 'Space Grotesk', Manrope, Arial, sans-serif;
	font-size: 16px;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ink);
}

.shop_table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.shop_table th,
.shop_table td {
	border-bottom: 1px solid var(--line);
	padding: 14px 10px;
	text-align: left;
}

.shop_table th {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: #8b959d;
}

.shop_table td:last-child,
.shop_table th:last-child {
	text-align: right;
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
	border-top: 2px solid var(--ink);
}

.woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid var(--line);
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 14px 0;
	font-size: 13px;
	font-weight: 700;
	color: #4f5b64;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation a:hover {
	color: var(--blue);
}

.woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 44px;
	align-items: start;
}

.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after {
	content: none;
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
	font: 600 24px 'Space Grotesk', Manrope, Arial, sans-serif;
	letter-spacing: -.03em;
	margin: 0 0 18px;
}

.woocommerce-account:not(.logged-in) .woocommerce {
	grid-template-columns: 1fr;
	max-width: 520px;
}

.woocommerce-account .button,
.woocommerce-MyAccount-content .button,
.woocommerce .button:not(.checkout-button):not(.eh24-card-btn) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 48px;
	padding: 0 22px;
	background: var(--ink);
	color: #fff;
	border: 0;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	transition: background .2s ease;
}

.woocommerce .button:hover {
	background: var(--blue);
}

.woocommerce-form-row label,
.woocommerce-EditAccountForm label {
	font-size: 11px;
	font-weight: 700;
}

.woocommerce-LostPassword {
	font-size: 12px;
	margin-top: 12px;
}

@media (max-width: 900px) {
	.woocommerce-account .woocommerce {
		grid-template-columns: 1fr;
		gap: 26px;
	}
}

@media (max-width: 700px) {
	.woocommerce-order,
	.woocommerce-account .woocommerce {
		width: calc(100% - 28px);
	}
}

/* =========================================================================
   9. Drobiazgi
   ========================================================================= */

.woocommerce-breadcrumb a:hover {
	color: var(--blue);
}

.woocommerce-result-count,
.woocommerce-ordering {
	margin: 0;
}

.woocommerce-store-notice {
	display: block;
	background: var(--ink);
	color: #fff;
	padding: 12px 20px;
	font-size: 12px;
	text-align: center;
}

.woocommerce-password-strength {
	font-size: 11px;
	padding: 6px 0;
}

.woocommerce-password-strength.short,
.woocommerce-password-strength.bad {
	color: #c8543f;
}

.woocommerce-password-strength.good,
.woocommerce-password-strength.strong {
	color: #2d7a1c;
}

.availability.is-low {
	color: #9a6a12;
}

.availability.is-low::before {
	background: #d8a13a;
}

.stock.is-low {
	color: #9a6a12;
}

.stock.is-low::before {
	background: #d8a13a;
}

/* Galeria bez miniatur - siatka .gallery ma wtedy jedna kolumne. */
.gallery.is-single {
	grid-template-columns: 1fr;
}

/* Formularz opinii: Woo renderuje wlasne pola, tu dostaja wyglad projektu. */
#review_form_wrapper #respond {
	background: #fff;
	border: 1px solid var(--line);
	padding: 32px;
}

#review_form_wrapper .comment-form-rating select,
#review_form_wrapper select {
	height: 46px;
	border: 1px solid #ccd5da;
	background: #fff;
	padding: 0 12px;
	min-width: 220px;
}

#review_form_wrapper .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 12px;
	color: var(--muted);
}

#review_form_wrapper .comment-form-cookies-consent input {
	width: auto;
	margin-top: 3px;
}

#review_form_wrapper .comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}

#review_form_wrapper .form-submit input[type="submit"],
#review_form_wrapper .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 30px;
	background: var(--blue);
	color: #fff;
	border: 0;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .02em;
	cursor: pointer;
	transition: background .2s ease;
	width: auto;
}

#review_form_wrapper .form-submit input[type="submit"]:hover {
	background: var(--blue2);
}

.eh24-reviews .woocommerce-Reviews-title {
	font: 600 clamp(30px, 3.4vw, 44px)/1.05 'Space Grotesk', Manrope, Arial, sans-serif;
	letter-spacing: -.04em;
	margin: 0 0 10px;
}

.eh24-reviews .woocommerce-noreviews {
	color: var(--muted);
	margin-bottom: 28px;
}

/* Kwota "Razem": Woo doklej a note o VAT wewnatrz kwoty - musi isc pod spodem. */
.order-summary .total {
	align-items: baseline;
}

.order-summary .total b {
	text-align: right;
}

.order-summary .total .includes_tax,
.order-summary .total small {
	display: block;
	grid-column: 1 / -1;
	margin-top: 6px;
	font: 400 11px Manrope, Arial, sans-serif;
	color: #8b959d;
	text-align: right;
}

.order-summary .total .woocommerce-Price-amount {
	white-space: nowrap;
}

/* Cena pozycji koszyka nie moze sie lamac ani wychodzic poza kolumne. */
.cart-item {
	grid-template-columns: 115px minmax(0, 1fr) 105px 150px;
}

.cart-item > strong {
	white-space: nowrap;
}

.cart-product a {
	word-break: break-word;
}

/* =========================================================================
   Podsumowanie zamowienia na stronie kasy (uklad .order-summary)
   ========================================================================= */

.eh24-review-items {
	border-bottom: 1px solid var(--line);
	padding-bottom: 10px;
	margin-bottom: 8px;
}

.eh24-review-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	padding: 10px 0;
	font-size: 12px;
}

.eh24-review-item > span {
	color: #4f5b64;
	line-height: 1.45;
}

.eh24-review-item .product-quantity {
	font-style: normal;
	color: #8b959d;
}

.eh24-review-item > b {
	font-weight: 700;
	white-space: nowrap;
}

.eh24-review .cart-subtotal,
.eh24-review .cart-discount,
.eh24-review .fee,
.eh24-review .tax-rate,
.eh24-review .tax-total,
.eh24-review .eh24-shipping {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 12px;
	padding: 9px 0;
}

.eh24-review .order-total {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	border-top: 1px solid var(--line);
	margin-top: 12px;
	padding: 18px 0 4px;
}

.eh24-review .order-total b {
	font: 600 23px 'Space Grotesk', Manrope, Arial, sans-serif;
	text-align: right;
}

.eh24-review .order-total .includes_tax {
	display: block;
	grid-column: 1 / -1;
	margin-top: 6px;
	font: 400 11px Manrope, Arial, sans-serif;
	color: #8b959d;
	text-align: right;
}

.eh24-review .green {
	color: #3c861f;
}

/*
 * Arkusz projektowy ustawia .order-summary > div jako wiersz flex (etykieta + kwota).
 * Kontener podsumowania kasy jest tez bezposrednim dzieckiem, wiec musi to cofnac -
 * inaczej lista pozycji i blok platnosci ustawiaja sie obok siebie.
 */
.order-summary > #order_review,
.order-summary > .woocommerce-checkout-review-order,
.order-summary > form,
.order-summary > .eh24-shipping-calc {
	display: block;
	padding: 0;
	font-size: inherit;
}

.eh24-review .order-total {
	gap: 12px;
}

.eh24-review .order-total > span {
	font-size: 12px;
}

/* Metoda platnosci: pole wyboru w jednej linii z nazwa. */
.wc_payment_method {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	column-gap: 10px;
	padding: 0 16px;
}

.wc_payment_method > input[type="radio"] {
	grid-column: 1;
	margin: 0;
}

.wc_payment_method > label {
	grid-column: 2;
	padding: 15px 0;
	gap: 10px;
}

.wc_payment_method .payment_box {
	grid-column: 1 / -1;
	margin: 0 -16px;
}

/* Naglowek sekcji jest juz w .form-heading - drugi raz nie jest potrzebny. */
.woocommerce-billing-fields > h3,
.woocommerce-additional-fields > h3 {
	display: none;
}

/*
 * Arkusz projektowy zamienia .products w poziomy karuzel ponizej 620 px
 * (zamierzone na stronie glownej). Listing kategorii ma zostac lista pionowa -
 * regula .listing-products{grid-template-columns:1fr} sama tego nie zrobi,
 * bo display jest wtedy flex.
 */
@media (max-width: 620px) {
	.products.listing-products {
		display: grid;
		grid-template-columns: 1fr;
		overflow: visible;
	}

	.products.listing-products .product-card {
		min-width: 0;
	}
}

/* Logowanie i rejestracja: przycisk glowny w kolorze marki. */
.woocommerce-form-login .button,
.woocommerce-form-register .button,
.woocommerce-ResetPassword .button {
	background: var(--blue);
	width: 100%;
}

.woocommerce-form-login .button:hover,
.woocommerce-form-register .button:hover {
	background: var(--blue2);
}

.woocommerce-form-login,
.woocommerce-form-register {
	background: var(--soft);
	padding: 30px;
}

.woocommerce-form-login .form-row,
.woocommerce-form-register .form-row {
	margin-bottom: 16px;
}

/* Przelacznik podgladu hasla renderowany przez Woo. */
.woocommerce-password-hint,
.password-input {
	display: block;
	position: relative;
}

.show-password-input {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	border: 0;
	background: none;
	cursor: pointer;
	opacity: .55;
}

.show-password-input::after {
	content: "\1F441";
	font-size: 15px;
}

.show-password-input.display-password {
	opacity: 1;
}

.woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 12px;
	margin: 4px 0 14px;
}

.woocommerce-form-login__rememberme input {
	width: auto;
}
