/*
Theme Name: KS Theme Child
Theme URI: https://carpathian.pl
Description: Motyw potomny (child theme) dla Carpathian bazujący na KS Theme
Author: Carpathian / KS
Template: ks
Version: 1.0.0
Text Domain: ks-child
*/

/* -------------------------------------------------------------
 * 1. Ukrycie starego bannera Autopay pod przyciskiem zakupu
 * ----------------------------------------------------------- */
.single-product div.product .ks-product-payment-logos {
	display: none !important;
}

/* -------------------------------------------------------------
 * 2. Nowy blok metod płatności (PayPo + logotypy)
 * ----------------------------------------------------------- */
.ks-child-payment-methods {
	clear: both;
	width: 100%;
	margin: 40px 0 24px;
	padding: 28px 32px;
	background-color: var(--zero, #ffffff);
	border: 1px solid var(--four-lighted, #dddddd);
	border-radius: 10px 0 10px 0;
	box-sizing: border-box;
}

/* Dostosowanie pod siatkę CSS Grid na urządzeniach mobilnych */
@media (max-width: 767.98px) {
	.single-product div.product .ks-child-payment-methods {
		grid-column: 1 / -1;
		width: 100%;
		padding: 20px 16px;
		margin: 32px 0 16px;
	}
}

/* Nagłówek sekcji metod płatności */
.ks-child-payment-methods__header {
	text-align: center;
	margin-bottom: 20px;
}

.ks-child-payment-methods__title {
	font-size: 15px;
	font-weight: 500;
	color: var(--four, #292929);
	letter-spacing: 0.3px;
	text-transform: uppercase;
}


/* Wiersz logotypów */
.ks-child-payment-methods__logos {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 20px 32px;
}

.ks-child-payment-methods__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.ks-child-payment-methods__item:hover {
	transform: translateY(-2px);
	opacity: 0.9;
}

.ks-child-payment-methods__item img {
	display: block;
	height: 38px;
	max-height: 42px;
	width: auto;
	object-fit: contain;
}

/* Optyczne dopasowanie wysokości logotypów */
.ks-child-payment-methods__item--p24 img {
	height: 42px;
}
.ks-child-payment-methods__item--p24-raty img {
	height: 38px;
}
.ks-child-payment-methods__item--blik img {
	height: 36px;
}
.ks-child-payment-methods__item--visa img {
	height: 30px;
}
.ks-child-payment-methods__item--mastercard img {
	height: 36px;
}
.ks-child-payment-methods__item--gpay img {
	height: 38px;
}
.ks-child-payment-methods__item--applepay img {
	height: 38px;
}

@media (max-width: 767.98px) {
	.ks-child-payment-methods__logos {
		gap: 16px 20px;
	}
	.ks-child-payment-methods__item {
		height: 36px;
	}
	.ks-child-payment-methods__item img {
		height: 30px;
		max-height: 34px;
	}
	.ks-child-payment-methods__item--p24 img {
		height: 32px;
	}
	.ks-child-payment-methods__item--visa img {
		height: 24px;
	}
}

@media (max-width: 575.98px) {
	.ks-child-payment-methods__logos {
		gap: 14px 18px;
	}
}

/* -------------------------------------------------------------
 * 3. Logotypy płatności w stopce serwisu (.ks-child-footer-payments)
 * ----------------------------------------------------------- */
.ks-child-footer-payments {
	width: 100%;
	padding: 20px 0 0;
	margin-top: 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ks-child-footer-payments__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px 20px;
}

.ks-child-footer-payments__label {
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ks-child-footer-payments__logos {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 14px;
}

.ks-child-footer-payments__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border-radius: 4px;
	padding: 4px 8px;
	height: 28px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.ks-child-footer-payments__item:hover {
	transform: translateY(-1px);
	opacity: 0.95;
}

.ks-child-footer-payments__item img {
	display: block;
	max-height: 20px;
	width: auto;
	object-fit: contain;
}

/* -------------------------------------------------------------
 * 4. Płatności ratalne w górnym pasku kontaktowym (.topbar-installment)
 * ----------------------------------------------------------- */
.topbar-installment {
	display: inline-flex;
	align-items: center;
	margin-left: 20px;
	padding-left: 20px;
	border-left: 1px solid rgba(0, 0, 0, 0.2);
}

.topbar-installment a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--three, #000000);
	text-decoration: none;
	padding: 10px 0;
	font-weight: 500;
	font-size: 14px;
	line-height: 20px;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.topbar-installment a:hover {
	opacity: 0.7;
}

.topbar-installment svg {
	display: block;
	height: 15px;
	width: 15px;
	flex-shrink: 0;
}

.topbar-installment svg path {
	fill: var(--three, #000000);
}

.topbar-installment__label {
	font-weight: 700;
}

.topbar-installment__cta {
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (max-width: 1199.98px) {
	.topbar-installment {
		margin-left: 15px;
		padding-left: 15px;
	}
}

@media (max-width: 767.98px) {
	.topbar-installment__cta {
		display: none;
	}
}

@media (max-width: 575.98px) {
	.topbar-installment {
		border-left: none;
		margin-left: 10px;
		padding-left: 0;
	}
	.topbar-installment__label {
		font-size: 13px;
	}
}


/* -------------------------------------------------------------
 * 4. Górny pasek promocyjny (Top Bar) - akcenty ratalne
 * ----------------------------------------------------------- */
.promo-bar .promo-text {
	font-size: 15px;
}

.promo-bar .promo-text a,
.promo-bar__link {
	color: var(--four, #292929) !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
	font-weight: 700;
	margin-left: 6px;
	display: inline-inline;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.promo-bar .promo-text a:hover,
.promo-bar__link:hover {
	color: #000000 !important;
	opacity: 0.85;
}

.promo-bar__tag {
	display: inline-block;
	background-color: rgba(0, 0, 0, 0.12);
	color: var(--four, #292929);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	padding: 2px 7px;
	border-radius: 3px;
	margin-right: 8px;
	letter-spacing: 0.5px;
	vertical-align: middle;
}

/* -------------------------------------------------------------
 * 5. Główny responsywny baner ratalny (.ks-installment-banner)
 * ----------------------------------------------------------- */
.ks-installment-banner {
	position: relative;
	overflow: hidden;
	border-radius: 12px 0 12px 0;
	margin: 40px 0;
	min-height: 440px;
	display: flex;
	align-items: center;
	background-color: #0f1115;
}

.ks-installment-banner__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center right;
	background-repeat: no-repeat;
	z-index: 1;
}

.ks-installment-banner__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(15, 17, 21, 0.95) 0%,
		rgba(15, 17, 21, 0.90) 42%,
		rgba(15, 17, 21, 0.55) 75%,
		rgba(15, 17, 21, 0.15) 100%
	);
}

.ks-installment-banner .container {
	position: relative;
	z-index: 2;
	padding-top: 40px;
	padding-bottom: 40px;
}

.ks-installment-banner__content {
	color: #ffffff;
}

.ks-installment-banner__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(249, 175, 59, 0.14);
	border: 1px solid var(--two, #f9af3b);
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--two, #f9af3b);
	margin-bottom: 18px;
}

.ks-installment-banner__badge-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--two, #f9af3b);
	box-shadow: 0 0 8px var(--two, #f9af3b);
}

.ks-installment-banner__badge-logo {
	height: 18px;
	width: auto;
	margin-left: 4px;
	filter: brightness(0) invert(1);
	opacity: 0.9;
}

.ks-installment-banner__title {
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	font-weight: 700;
	line-height: 1.15;
	color: #ffffff;
	margin: 0 0 16px;
}

.ks-installment-banner__title .highlight {
	color: var(--two, #f9af3b);
}

.ks-installment-banner__desc {
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
	margin: 0 0 22px;
	max-width: 540px;
}

.ks-installment-banner__features {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}

.ks-installment-banner__features li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.92);
}

.ks-installment-banner__features li svg {
	color: var(--two, #f9af3b);
	flex-shrink: 0;
}

.ks-installment-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.ks-installment-banner__actions .button--primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 30px;
	background-color: var(--two, #f9af3b);
	color: var(--four, #292929);
	font-weight: 700;
	font-size: 15px;
	border: 1px solid var(--two, #f9af3b);
	border-radius: 10px 0 10px 0;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ks-installment-banner__actions .button--primary:hover {
	background-color: var(--two-dark, #b10000);
	border-color: var(--two-dark, #b10000);
	color: #ffffff;
}

.ks-installment-banner__actions .button--outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	background-color: transparent;
	color: #ffffff;
	font-weight: 600;
	font-size: 15px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 10px 0 10px 0;
	text-decoration: none;
	transition: all 0.2s ease;
}

.ks-installment-banner__actions .button--outline:hover {
	border-color: var(--two, #f9af3b);
	color: var(--two, #f9af3b);
	background-color: rgba(249, 175, 59, 0.08);
}

@media (max-width: 991.98px) {
	.ks-installment-banner__overlay {
		background: linear-gradient(
			180deg,
			rgba(15, 17, 21, 0.95) 0%,
			rgba(15, 17, 21, 0.90) 55%,
			rgba(15, 17, 21, 0.70) 100%
		);
	}
	.ks-installment-banner .container {
		padding-top: 36px;
		padding-bottom: 36px;
	}
}

@media (max-width: 575.98px) {
	.ks-installment-banner {
		margin: 28px 0;
		border-radius: 8px 0 8px 0;
	}
	.ks-installment-banner__actions {
		flex-direction: column;
		width: 100%;
	}
	.ks-installment-banner__actions .button {
		width: 100%;
		text-align: center;
	}
	.ks-installment-banner__desc {
		font-size: 14px;
	}
}

/* -------------------------------------------------------------
 * 5. Formularz Reklamacyjny (Contact Form 7 w module ACF)
 * ----------------------------------------------------------- */
.wpcf7 form.wpcf7-form {
	max-width: 860px;
	margin: 0 auto;
}

.wpcf7 .form-row {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 20px;
	gap: 20px;
}

.wpcf7 .form-col {
	flex: 1 1 100%;
}

.wpcf7 label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--four, #292929);
	margin-bottom: 8px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--four-lighted, #dddddd);
	border-radius: 10px 0 10px 0;
	background-color: #ffffff;
	font-size: 15px;
	color: var(--four, #292929);
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--two-dark, #b10000);
	box-shadow: 0 0 0 3px rgba(177, 0, 0, 0.1);
}

.wpcf7 textarea {
	min-height: 130px;
	resize: vertical;
}

.wpcf7 input[type="file"] {
	display: block;
	width: 100%;
	padding: 12px;
	background: #fdfdfd;
	border: 1px dashed var(--four-lighted, #c0c0c0);
	border-radius: 10px 0 10px 0;
	cursor: pointer;
	box-sizing: border-box;
	font-size: 14px;
}

.wpcf7 input[type="file"]:hover {
	border-color: var(--two-dark, #b10000);
	background: #fff8f8;
}

.wpcf7 input[type="submit"] {
	display: inline-block;
	width: 100%;
	max-width: 320px;
	padding: 15px 32px;
	background-color: var(--two-dark, #b10000);
	color: #ffffff;
	font-weight: 700;
	font-size: 16px;
	border: none;
	border-radius: 10px 0 10px 0;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wpcf7 input[type="submit"]:hover {
	background-color: #8c0000;
	transform: translateY(-1px);
}

.wpcf7 .wpcf7-not-valid-tip {
	color: #dc3232;
	font-size: 13px;
	margin-top: 5px;
	font-weight: 500;
}

.wpcf7 .wpcf7-response-output {
	border-radius: 10px 0 10px 0 !important;
	padding: 16px !important;
	margin: 24px 0 0 !important;
	font-size: 15px !important;
	font-weight: 500;
}

/* Fix: Ukrycie tekstu logowania w nagłówku mobilnym (zapobiega rozpychaniu ekranu) */
@media (max-width: 767.98px) {
    .menu-bar .account-link span,
    .menu-bar .account-link__guest span,
    .menu-bar .account-link__user span {
        display: none !important;
    }
    .menu-bar .account-link,
    .menu-bar .cart-link {
        font-size: 0 !important; /* ukrywa tekst, zostawia ikonę svg */
    }
    .menu-bar .account-link svg,
    .menu-bar .cart-link svg {
        font-size: initial;
    }
}