/*
 * ttproductwishlist 2.0.0
 *  1) komunikat po dodaniu / usunieciu (.ttwl-toast)
 *  2) strona /ulubione (.ttwl-page): uwagi, pasek nad lista, stan pusty, link do udostepnienia
 *  3) sekcja kontaktowa na jasnym tle (.ttwl-contact)
 * Wszystkie klasy z prefiksem ttwl- - nie koliduja ze stylami motywu.
 * Miniatury produktow na stronie korzystaja ze stylow listy kategorii (category-views.css).
 */

.ttwl-page [hidden],
.ttwl-toast[hidden] {
	display: none !important;
}

/* ============ 1) komunikat ============ */

.ttwl-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 1060;
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: calc(100vw - 32px);
	padding: 12px 20px;
	border-radius: 8px;
	background: #172266;
	box-shadow: 0 8px 24px rgba(6, 10, 40, .35);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	color: #fff;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 16px);
	transition: opacity .2s ease, transform .2s ease;
}

.ttwl-toast.ttwl-toast-on {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.ttwl-toast .ttwl-toast-link {
	flex: 0 0 auto;
	color: #ffd2c9;
	text-decoration: underline;
	white-space: nowrap;
}

.ttwl-toast .ttwl-toast-link:hover,
.ttwl-toast .ttwl-toast-link:focus {
	color: #fff;
}

/* pasek porownywarki (ttcompare) stoi na dole ekranu - komunikat ponad nim */
body.ttc-bar-open .ttwl-toast {
	bottom: 150px;
}

body.ttc-bar-open.ttc-bar-min .ttwl-toast {
	bottom: 64px;
}

@media (max-width: 767px) {
	body.ttc-bar-open .ttwl-toast {
		bottom: 210px;
	}

	body.ttc-bar-open.ttc-bar-min .ttwl-toast {
		bottom: 64px;
	}
}

/* ============ 2) strona /ulubione ============ */

.ttwl-page .ttwl-note {
	margin: 0 0 20px;
}

.ttwl-page .ttwl-actions .btn {
	margin-right: 8px;
}

.ttwl-page .ttwl-guest-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 20px;
	padding: 12px 16px;
	border-left: 4px solid #20308a;
	border-radius: 4px;
	background: #f1f3f8;
	font-size: 14px;
	line-height: 20px;
	color: #333;
}

.ttwl-page .ttwl-guest-note .material-icons {
	flex: 0 0 auto;
	font-size: 22px;
	line-height: 20px;
	color: #20308a;
}

.ttwl-page .ttwl-guest-note a {
	font-weight: 600;
	color: #20308a;
	text-decoration: underline;
}

.ttwl-page .ttwl-total {
	display: inline-block;
	margin: 0 0 0 16px;
	font-size: 14px;
}

.ttwl-page .ttwl-toolbar-right {
	text-align: right;
}

.ttwl-page .ttwl-clear {
	padding: 0;
	border: 0;
	background: none;
	font-size: 13px;
	color: #666;
	text-decoration: underline;
	cursor: pointer;
}

.ttwl-page .ttwl-clear:hover {
	color: #c0392b;
}

/* stan pusty */
.ttwl-page .ttwl-empty {
	max-width: 560px;
	margin: 24px auto 40px;
	padding: 40px 24px;
	text-align: center;
}

.ttwl-page .ttwl-empty-icon {
	display: block;
	width: 64px;
	height: 64px;
	margin: 0 auto 28px;
	color: #b9c6ee;
}

.ttwl-page .ttwl-empty-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.ttwl-page .ttwl-empty-title {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: #20308a;
	text-align: center;
}

.ttwl-page .ttwl-empty-text {
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.6;
	color: #555;
}

/* kontener listingu (#js-product-list) jest w motywie float:left - bez clear odstep pod nim nie dziala */
.ttwl-page .ttwl-products::after {
	content: "";
	display: table;
	clear: both;
}

.ttwl-page .ttwl-after {
	clear: both;
	padding-top: 40px;
}

/* link do udostepnienia */
.ttwl-page .ttwl-share {
	margin: 0;
	text-align: left;
}

.ttwl-page .ttwl-share label {
	display: block;
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	color: #20308a;
	text-align: left;
}

.ttwl-page .ttwl-share-row {
	display: flex;
	gap: 8px;
	max-width: 640px;
}

.ttwl-page .ttwl-share input.form-control[readonly] {
	flex: 1 1 auto;
	min-width: 0;
	border: 1px solid #b9c6ee;
	background: #f3f6ff;
	color: #20308a;
	font-size: 14px;
	text-align: left;
	box-shadow: none;
}

.ttwl-page .ttwl-share input.form-control[readonly]:focus {
	border-color: #20308a;
	outline: 0;
}

.ttwl-page .ttwl-share .ttwl-copy {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 24px;
	border: 1px solid #20308a;
	background: #20308a;
	color: #fff;
	text-align: center;
	text-indent: 0;
}

.ttwl-page .ttwl-share .ttwl-copy:hover,
.ttwl-page .ttwl-share .ttwl-copy:focus {
	border-color: #172266;
	background: #172266;
	color: #fff;
}

.ttwl-page .ttwl-share-hint {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 18px;
	color: #777;
}

@media (max-width: 575px) {
	.ttwl-page .ttwl-share-row {
		flex-direction: column;
	}

	.ttwl-page .ttwl-share .ttwl-copy {
		min-height: 44px;
	}

	.ttwl-page .ttwl-total {
		margin-left: 0;
	}
}

/* licznik w headerze: bez zera, gdy lista jest pusta */
.top-wishlist .wishlist-number.ttwl-zero {
	display: none !important;
}

/* serduszko dodane do ulubionych na listingu: zawsze biale - motyw przy :hover/:focus/:active (czyli tuz po kliknieciu)
   zmienia kolor ikony na ciemny */
.products .thumbnail-container .btn.addToWishlist.checked i,
.products .thumbnail-container .btn.addToWishlist.checked:hover i,
.products .thumbnail-container .btn.addToWishlist.checked:focus i,
.products .thumbnail-container .btn.addToWishlist.checked:active i,
.products .thumbnail-container .btn.addToWishlist.checked.wishlist-loading i {
	color: #fff;
}

/* po odznaczeniu serduszka (kursor nadal nad przyciskiem) motyw trzyma niebieskie tlo przez :hover / :focus -
   klasa ttwl-removed (ustawia ja JS, zdejmowana po zjechaniu myszka) przywraca szary kwadrat */
.products .thumbnail-container .btn.addToWishlist.ttwl-removed,
.products .thumbnail-container .btn.addToWishlist.ttwl-removed:hover,
.products .thumbnail-container .btn.addToWishlist.ttwl-removed:focus,
.products .thumbnail-container .btn.addToWishlist.ttwl-removed:active {
	background: #f5f5f5;
}

.products .thumbnail-container .btn.addToWishlist.ttwl-removed i,
.products .thumbnail-container .btn.addToWishlist.ttwl-removed:hover i,
.products .thumbnail-container .btn.addToWishlist.ttwl-removed:focus i,
.products .thumbnail-container .btn.addToWishlist.ttwl-removed:active i {
	color: #444;
}

/* przycisk-serduszko na karcie produktu: zaznaczony = kolor akcentu */
.product-actions .product-add-to-cart a.addToWishlist.checked,
.product-actions .product-add-to-cart a.addToWishlist.checked .wishlist-icon {
	color: var(--primary-bg-color, #ff5238);
}

/* ============ 3) sekcja kontaktowa (jasne tlo) ============ */

.ttwl-page .ttwl-contact {
	position: relative;
	display: flex;
	align-items: center;
	gap: 56px;
	margin: 48px 0 8px;
	padding: 48px 56px;
	overflow: hidden;
	border: 1px solid #d5ddf5;
	border-radius: 14px;
	background: linear-gradient(135deg, #f6f8ff 0%, #e8edfb 100%);
	color: #3a4160;
	box-shadow: 0 10px 28px rgba(32, 48, 138, .10);
}

/* dekoracyjne kola w tle */
.ttwl-page .ttwl-contact::before,
.ttwl-page .ttwl-contact::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: rgba(32, 48, 138, .05);
	pointer-events: none;
}

.ttwl-page .ttwl-contact::before {
	top: -110px;
	right: -90px;
	width: 340px;
	height: 340px;
}

.ttwl-page .ttwl-contact::after {
	bottom: -130px;
	left: 28%;
	width: 260px;
	height: 260px;
}

.ttwl-contact-photo,
.ttwl-contact-body {
	position: relative;
	z-index: 1;
}

/* lewa kolumna: zdjecie, plakietka, telefon, godziny */
.ttwl-contact-photo {
	display: flex;
	flex: 0 0 300px;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.ttwl-contact-avatar {
	width: 200px;
	height: 200px;
	overflow: hidden;
	border: 6px solid #fff;
	border-radius: 50%;
	background: #dbe3fb;
	box-shadow: 0 10px 28px rgba(32, 48, 138, .22);
}

.ttwl-contact-avatar img,
.ttwl-contact-avatar svg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ttwl-contact-badge {
	position: relative;
	display: inline-block;
	margin-top: -16px;
	padding: 7px 16px;
	border-radius: 20px;
	background: var(--primary-bg-color, #ff5238);
	box-shadow: 0 4px 12px rgba(23, 34, 102, .25);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 14px;
	text-transform: uppercase;
	color: #fff;
}

.ttwl-page .ttwl-contact .ttwl-contact-phone {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	max-width: 100%;
	margin-top: 26px;
	padding: 14px 24px 14px 20px;
	border-radius: 12px;
	background: var(--primary-bg-color, #ff5238);
	/* neutralny, granatowy cien (bez czerwonej poswiaty) */
	box-shadow: 0 8px 22px rgba(23, 34, 102, .28);
	color: #fff;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}

.ttwl-page .ttwl-contact .ttwl-contact-phone:hover,
.ttwl-page .ttwl-contact .ttwl-contact-phone:focus {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(23, 34, 102, .36);
	color: #fff;
}

.ttwl-contact-phone .material-icons {
	font-size: 34px;
	line-height: 34px;
}

.ttwl-contact-phone-text {
	display: block;
	text-align: left;
}

.ttwl-contact-phone-label {
	display: block;
	margin-bottom: 2px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	line-height: 15px;
	text-transform: uppercase;
	opacity: .92;
}

.ttwl-contact-phone-number {
	display: block;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: .01em;
	line-height: 34px;
	white-space: nowrap;
}

.ttwl-contact-hours {
	margin-top: 12px;
	font-size: 14px;
	line-height: 20px;
	color: #5b6384;
}

/* prawa kolumna: tekst */
.ttwl-contact-body {
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
}

.ttwl-contact-eyebrow {
	display: block;
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .16em;
	line-height: 16px;
	text-transform: uppercase;
	color: #c8321c;
}

.ttwl-page .ttwl-contact .ttwl-contact-title {
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	text-align: left;
	text-transform: none;
	color: #172266;
}

.ttwl-page .ttwl-contact .ttwl-contact-title::before,
.ttwl-page .ttwl-contact .ttwl-contact-title::after {
	content: none;
}

/* pierwsza linia - duza, druga - mniejsza i lzejsza */
.ttwl-contact-title-main {
	display: block;
	font-size: 42px;
	font-weight: 700;
	letter-spacing: -.015em;
	line-height: 1.15;
}

.ttwl-contact-title-sub {
	display: block;
	margin-top: 8px;
	font-size: 26px;
	font-weight: 500;
	letter-spacing: -.005em;
	line-height: 1.3;
	color: #3b4a9a;
}

.ttwl-page .ttwl-contact .ttwl-contact-lead {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	color: #c8321c;
}

.ttwl-page .ttwl-contact .ttwl-contact-text {
	max-width: 660px;
	margin: 0 0 22px;
	font-size: 16px;
	line-height: 1.65;
	color: #3a4160;
}

.ttwl-contact-points {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ttwl-contact-points li {
	position: relative;
	padding-left: 26px;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	color: #172266;
}

.ttwl-contact-points li::before {
	content: "\2714";
	position: absolute;
	left: 0;
	top: 0;
	font-size: 15px;
	color: #1a9a4a;
}

@media (max-width: 991px) {
	.ttwl-page .ttwl-contact {
		gap: 36px;
		padding: 36px 32px;
	}

	.ttwl-contact-photo {
		flex-basis: 260px;
	}

	.ttwl-contact-avatar {
		width: 160px;
		height: 160px;
	}

	.ttwl-contact-phone-number {
		font-size: 26px;
		line-height: 30px;
	}

	.ttwl-contact-title-main {
		font-size: 34px;
	}

	.ttwl-contact-title-sub {
		font-size: 22px;
	}

	.ttwl-page .ttwl-contact .ttwl-contact-lead {
		font-size: 20px;
	}
}

@media (max-width: 767px) {
	.ttwl-page .ttwl-contact {
		flex-direction: column;
		gap: 26px;
		padding: 32px 20px 28px;
		text-align: center;
	}

	.ttwl-contact-photo {
		flex-basis: auto;
		width: 100%;
	}

	.ttwl-contact-body {
		align-self: stretch;
		width: 100%;
		text-align: center;
	}

	.ttwl-page .ttwl-contact .ttwl-contact-title {
		text-align: center;
	}

	.ttwl-contact-title-main {
		font-size: 28px;
	}

	.ttwl-contact-title-sub {
		font-size: 19px;
	}

	.ttwl-page .ttwl-contact .ttwl-contact-lead {
		font-size: 19px;
	}

	.ttwl-contact-points {
		justify-content: center;
	}
}

@media (max-width: 575px) {
	.ttwl-page .ttwl-contact .ttwl-contact-phone {
		gap: 12px;
		padding: 12px 18px 12px 14px;
	}

	.ttwl-contact-phone .material-icons {
		font-size: 30px;
		line-height: 30px;
	}

	.ttwl-contact-phone-number {
		font-size: clamp(20px, 7.4vw, 26px);
		line-height: 30px;
	}

	.ttwl-contact-points {
		display: inline-flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		text-align: left;
	}
}

@media print {
	.ttwl-page .ttwl-contact,
	.ttwl-toast {
		display: none;
	}
}
