/*
Theme Name: Twenty Twenty-Five – grupy witryny
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Description: Motyw potomny Twenty Twenty-Five z pięcioma grupami, dynamicznymi nagłówkami i sidebarami.
Author: Tomasz Bartosiewicz
Template: twentytwentyfive
Version: 1.2
Text Domain: tt5-groups
*/


body {
	font-size: 1rem;
}

a,
img,
button,
.button {
	-webkit-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}

::placeholder {
	color: #333;
	opacity: 1;
}

.woocommerce form .form-row textarea {
	font-size: 1rem;
	line-height: 120%;
	padding: 0.5rem;
}

button,
.button,
input,
textarea,
select {
	border-radius: 5px !important;
}

.cs-group-header {
	border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent)
}

.cs-group-header__inner {
	padding-top: 1rem;
	padding-bottom: 1rem
}

.cs-group-header__title {
	margin: 0
}

.cs-group-switcher ul,
.cs-customer-menu ul {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none
}

.cs-group-switcher .is-active>a {
	font-weight: 700;
	text-decoration: underline
}

.cs-velux-tools {
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 1rem
}

.cs-velux-tools__search {
	min-width: min(100%, 280px)
}

.cs-velux-tools__cart {
	white-space: nowrap
}

.cs-sidebar-toggle {
	display: none;
	margin: 0 0 1rem
}

.cs-sidebar-overlay {
	display: none
}

.cs-group-sidebar {
	height: 100%
}

.cs-template-layout {
	align-items: flex-start
}

@media (max-width:781px) {
	.cs-velux-tools {
		justify-content: flex-start
	}

	.cs-sidebar-toggle {
		display: inline-flex
	}

	.cs-template-layout>.wp-block-column.cs-template-sidebar-column {
		position: fixed;
		z-index: 100001;
		inset: 0 auto 0 0;
		width: min(88vw, 390px) !important;
		max-width: 390px;
		overflow: auto;
		padding: 1.25rem;
		background: var(--wp--preset--color--base, #fff);
		box-shadow: 0 0 30px rgba(0, 0, 0, .25);
		transform: translateX(-105%);
		transition: transform .25s ease
	}

	.cs-template-layout>.wp-block-column.cs-template-sidebar-column.is-open {
		transform: translateX(0)
	}

	.cs-sidebar-close {
		display: block;
		margin-left: auto;
		margin-bottom: 1rem
	}

	.cs-sidebar-overlay {
		position: fixed;
		z-index: 100000;
		inset: 0;
		background: rgba(0, 0, 0, .48)
	}

	body.cs-sidebar-open {
		overflow: hidden
	}
}

@media (min-width:782px) {
	.cs-sidebar-close {
		display: none !important
	}
}

.aws-container input.aws-search-field {
	border-top-left-radius: 25px !important;
	border-bottom-left-radius: 25px !important;
}

.aws-search-btn.aws-form-btn {
	border-top-right-radius: 25px !important;
	border-bottom-right-radius: 25px !important;
}

/* Sidebar */
ul.menu-sidebar {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0;
	list-style: none;
	align-items: flex-start;
	margin: 4.1rem 0 0 0;
}

ul.menu-sidebar li {
	width: 100%;
}

ul.menu-sidebar a {
	color: #000;
	background-color: #fff;
	display: block;
	padding: 0.8rem 1.2rem;
	border-radius: 25px;
	border: 1px solid #888;
	width: 100%;
	text-decoration: none;
}

ul.menu-sidebar a:hover {
	color: #000;
	background-color: #eee;
	text-decoration: none;
	border: 1px solid #333;
}

/* END Sidebar */

/* Single Product */

.csvm-logo-section {
	border-radius: 25px;
}

span.csvm-waiting {
	font-size: 0.8rem;
}

.csvm-variation-table {
	width: 100%;
	table-layout: fixed;
}

.csvm-variation-table th:nth-child(1),
.csvm-variation-table td:nth-child(1) {
	width: 30%;
	text-align: center;
}

.csvm-variation-table th:nth-child(2),
.csvm-variation-table td:nth-child(2) {
	width: 25%;
	text-align: center;
}

.csvm-variation-table th:nth-child(3),
.csvm-variation-table td:nth-child(3) {
	width: 25%;
	text-align: center;
}

.csvm-variation-table th:nth-child(4),
.csvm-variation-table td:nth-child(4) {
	width: 20%;
	text-align: center;
}

@media (max-width:781px) {
	.csvm-variation-table td:nth-child(1):before {
		margin-top: 11px;
	}

	.csvm-variation-table td {
		width: 100% !important;
		text-align: left !important;
	}

	.csvm-variation-table td:before {
		text-align: center !important;
	}
}

.csvm-variation-table th,
.csvm-variation-table td {
	box-sizing: border-box;
	overflow-wrap: anywhere;
}

.csvm-variation-table th:nth-child(4),
.csvm-variation-table td:nth-child(4) {
	white-space: nowrap;
}

.csvm-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.single-product h1.wp-block-post-title {
	width: 100%;
}

button.single_add_to_cart_button {
	padding: 1rem 0.5rem;
	font-size: 1.2rem;
}

ul.wc-block-product-gallery-large-image__container img {
	display: block;
	width: 100%;
	border-radius: 25px;
}

ul.wc-block-product-gallery-large-image__container .wc-block-components-product-image a {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 25px;
}

ul.wc-block-product-gallery-large-image__container .wc-block-components-product-image a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 2px rgba(0, 0, 0, 1);
	pointer-events: none;
	z-index: 9;
}

.woocommerce img,
.woocommerce-page img {
	box-shadow: inset 0 0 2px rgba(0, 0, 0, 1);
	height: auto;
	max-width: 100%;
	border-radius: 25px;
}

/* END Single Product */

/* Category Page */
.wc-block-product-template .wc-block-product {
	position: relative;
}

ul.wc-block-product-template a.wp-block-button__link.product_type_variable {
	display: none;
}

ul li.product a {
	border: 0;
}

.wc-block-product-template .wc-block-product {
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	border-radius: 25px;
}

/* Usunięcie wizualnej ramki wokół zdjęć produktów */
.wc-block-product .wc-block-components-product-image,
.wc-block-product .wc-block-components-product-image>a,
.wc-block-product .wc-block-components-product-image__inner-container {
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	padding: 0 !important;
	border-radius: 25px;
}

.wc-block-components-product-image img[alt=""] {
	border: 0 !important;
}

.wc-block-product .wc-block-components-product-image>a {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 25px;
}

.wc-block-product .wc-block-components-product-image>a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 2px rgba(0, 0, 0, 1);
	pointer-events: none;
	z-index: 9;
}

.wc-block-product .wc-block-components-product-image img {
	display: block;
	width: 100%;
	border-radius: inherit;
}

.wp-block-query-pagination-numbers span,
.wp-block-query-pagination-numbers a {
	padding: 5px 10px;
	text-decoration: none;
	border-radius: 5px;
}

.wp-block-query-pagination-numbers span {
	background-color: #333;
	color: #fff;
}

.wp-block-query-pagination-numbers a,
.wp-block-query-pagination-numbers span.dots {
	background-color: #eee;
	color: #000;
}

.wp-block-query-pagination-numbers a:hover {
	background-color: #ffc4c4;
	color: #470a0a;
}

.woocommerce .woocommerce-ordering select {
	padding: 5px;
}

/* END Category Page */