/*
 * GM Collin — style WooCommerce (listing, karta produktu, koszyk, checkout, konto).
 * Uzupełniane w etapie 2 wg makiet z katalogu projekty/. Selektory WooCommerce/Elementora, bez zależności od Kadence.
 */

/* Listing: siatka 4 kolumny, karta produktu w ramce, nazwa wielkimi literami */
.theme-gmcollin ul.products li.product {
	text-align: center;
}
.theme-gmcollin ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--gmc-font-body);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-top: 1rem;
}
.theme-gmcollin ul.products li.product .price {
	color: var(--gmc-color-text);
	font-weight: 600;
}
.theme-gmcollin ul.products li.product .price ins {
	text-decoration: none;
	color: var(--gmc-color-sale);
}

/* Próbki w koszyku (znaczniki z modułu free-samples) */
.theme-gmcollin .woocommerce-gift-selection-container h5 {
	font-family: var(--gmc-font-heading);
	font-weight: 400;
	font-size: 1.5rem;
	margin: 2rem 0 1rem;
}
.theme-gmcollin .gift_set_cart {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}
.theme-gmcollin .gift_set_cart label {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 5px 25px;
	border: 1px solid var(--gmc-color-accent);
	border-radius: 6px;
	cursor: pointer;
}
.theme-gmcollin .gift_set_cart label:has(input:checked) {
	border-color: var(--gmc-color-text);
}
.theme-gmcollin .btn-select-gift {
	background: var(--gmc-color-accent);
	border: 0;
	padding: 0.9rem 2.5rem;
	margin-top: 1rem;
	cursor: pointer;
}
@media (max-width: 767px) {
	.theme-gmcollin .gift_set_cart {
		grid-template-columns: 1fr;
	}
}

/* Checkout: komunikaty walidacji z GM Collin Core */
.theme-gmcollin .form-row .checkout-error-message {
	display: block;
	color: var(--gmc-color-sale);
	font-size: 0.75rem;
	margin-top: 0.25rem;
}

/* Komunikaty WooCommerce (błąd / sukces / info) — jeden spójny styl w całym sklepie (produkt, koszyk, zamówienie, konto): Lato, jasne tło, lewa krawędź w kolorze, bez ikon WC */
.theme-gmcollin .woocommerce-error, .theme-gmcollin .woocommerce-message, .theme-gmcollin .woocommerce-info,
.theme-gmcollin .woocommerce .woocommerce-error, .theme-gmcollin .woocommerce .woocommerce-message, .theme-gmcollin .woocommerce .woocommerce-info {
	position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px 24px;
	max-width: 1160px; margin: 0 auto 24px; padding: 16px 24px 16px 20px; box-sizing: border-box;
	list-style: none; background: #F7F5F2; border: 0; border-left: 3px solid #665050; border-radius: 0; box-shadow: none;
	font-family: "Lato", sans-serif; font-size: 14px; font-weight: 400; line-height: 1.6; color: #333333;
}
.theme-gmcollin .woocommerce-error::before, .theme-gmcollin .woocommerce-message::before, .theme-gmcollin .woocommerce-info::before,
.theme-gmcollin .woocommerce .woocommerce-error::before, .theme-gmcollin .woocommerce .woocommerce-message::before, .theme-gmcollin .woocommerce .woocommerce-info::before { content: none !important; display: none !important; }
.theme-gmcollin .woocommerce-error, .theme-gmcollin .woocommerce .woocommerce-error { border-left-color: #9B274E; }
.theme-gmcollin .woocommerce-info, .theme-gmcollin .woocommerce .woocommerce-info { border-left-color: #EBEBEB; }
.theme-gmcollin .woocommerce-error li, .theme-gmcollin .woocommerce-message li, .theme-gmcollin .woocommerce-info li { list-style: none; margin: 0; padding: 0; flex: 1 1 100%; }
.theme-gmcollin .woocommerce-error strong, .theme-gmcollin .woocommerce-message strong, .theme-gmcollin .woocommerce-info strong { font-weight: 700; color: #090A0C; }
.theme-gmcollin .woocommerce-error a, .theme-gmcollin .woocommerce-message a, .theme-gmcollin .woocommerce-info a { color: #090A0C; text-decoration: underline; text-underline-offset: 3px; transition: color .25s; }
.theme-gmcollin .woocommerce-error a:hover, .theme-gmcollin .woocommerce-message a:hover, .theme-gmcollin .woocommerce-info a:hover { color: #8a8a8a; }
.theme-gmcollin .woocommerce-error .button, .theme-gmcollin .woocommerce-message .button, .theme-gmcollin .woocommerce-info .button,
.theme-gmcollin .woocommerce .woocommerce-error .button, .theme-gmcollin .woocommerce .woocommerce-message .button, .theme-gmcollin .woocommerce .woocommerce-info .button {
	order: 2; margin: 0 0 0 auto; padding: 0; float: none; background: none !important; border: 0 !important; border-radius: 0; box-shadow: none !important;
	font-family: "Lato", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #090A0C !important; text-decoration: underline; text-underline-offset: 3px; transition: color .25s;
}
.theme-gmcollin .woocommerce-error .button:hover, .theme-gmcollin .woocommerce-message .button:hover, .theme-gmcollin .woocommerce-info .button:hover { color: #8a8a8a !important; }
.theme-gmcollin.single-product .woocommerce-notices-wrapper { padding: 32px 24px 0; } /* komunikaty wypisują się przed <main class="gmc-product"> — selektor po klasie body */
.theme-gmcollin .woocommerce-notices-wrapper:empty { display: none; }
@media (max-width: 767px) {
	.theme-gmcollin .woocommerce-error, .theme-gmcollin .woocommerce-message, .theme-gmcollin .woocommerce-info { margin: 0 16px 20px; padding: 14px 16px 14px 14px; font-size: 13px; }
	.theme-gmcollin.single-product .woocommerce-notices-wrapper { padding: 20px 0 0; }
}

/* Popup up-sell (moduł upsell-popup) */
.theme-gmcollin .upsell-popup {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}
.theme-gmcollin .upsell-popup.visible {
	display: flex; /* wyśrodkowanie w pionie i poziomie */
}
.theme-gmcollin .upsell-popup .popup-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}
.theme-gmcollin .upsell-popup .popup-content {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 1160px;
	max-height: calc(100vh - 48px);
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	overflow: hidden; /* przewija się tylko .upsell-content */
	background: #fff;
	border: 1px solid #EBEBEB;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .12);
	font-family: "Lato", sans-serif;
	text-align: center;
	animation: gmc-popup-in .25s ease;
}
@keyframes gmc-popup-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .theme-gmcollin .upsell-popup .popup-content { animation: none; } }
.theme-gmcollin .upsell-popup .popup-head { flex: 0 0 auto; padding: 44px 64px 20px; }
.theme-gmcollin .upsell-popup .popup-content h2 { margin: 0 0 8px; font-family: "Lato", sans-serif; font-size: 18px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #090A0C; }
.theme-gmcollin .upsell-popup .popup-content .popup-sub, .theme-gmcollin .upsell-popup .popup-content h5 { margin: 0; font-family: "Lato", sans-serif; font-size: 13px; font-weight: 300; color: #333; }
.theme-gmcollin .upsell-popup .upsell-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 12px 56px 40px; scrollbar-width: thin; scrollbar-color: #cfcfcf transparent; }
.theme-gmcollin .upsell-popup .close-popup,
.theme-gmcollin .upsell-popup .close-popup:hover,
.theme-gmcollin .upsell-popup .close-popup:focus {
	position: absolute; z-index: 2; top: 12px; right: 16px; width: 36px; height: 36px; margin: 0; padding: 0;
	background: none !important; border: 0 !important; border-radius: 0; box-shadow: none !important;
	font: 300 28px/36px "Lato", sans-serif; color: #6f6f6f; cursor: pointer; transition: color .25s;
}
.theme-gmcollin .upsell-popup .close-popup:hover { color: #090A0C; }
.theme-gmcollin .upsell-popup .close-popup:focus-visible { outline: 2px solid #090A0C; outline-offset: 2px; }
.theme-gmcollin .upsell-popup .gmc-pc__panel { padding: 0 28px; }
.theme-gmcollin .upsell-popup .gmc-slider .swiper { overflow: hidden; }
@media (max-width: 767px) {
	.theme-gmcollin .upsell-popup { padding: 12px; }
	.theme-gmcollin .upsell-popup .popup-content { max-height: calc(100vh - 24px); }
	.theme-gmcollin .upsell-popup .popup-head { padding: 40px 44px 14px; }
	.theme-gmcollin .upsell-popup .popup-content h2 { font-size: 15px; }
	.theme-gmcollin .upsell-popup .upsell-content { padding: 8px 16px 24px; }
	.theme-gmcollin .upsell-popup .gmc-pc__panel { padding: 0; }
}
