/*
Theme Name:   Bricks Child Theme
Theme URI:    https://bricksbuilder.io/
Description:  Use this child theme to extend Bricks.
Author:       Bricks
Author URI:   https://bricksbuilder.io/
Template:     bricks
Version:      1.0
Text Domain:  bricks
*/





.pa-stock-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #060C0E;
	font-family: Figtree, sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	letter-spacing: -0.48px;

	& .pa-stock-status__dot {
		display: inline-block;
		width: 10px;
		height: 10px;
		border-radius: 50%;
		flex-shrink: 0;
	}

	& .pa-stock-status__label {
		/* dziedziczy typografię z rodzica */
	}

	/* ── Stany ─────────────────────────────── */

	&.pa-stock-status--instock {
		& .pa-stock-status__dot {
			background-color: #22C55E; /* zielony */
			box-shadow: 0 0 0 3px rgb(34 197 94 / .15);
		}
	}

	&.pa-stock-status--outofstock {
		color: #6B7280; /* wygaszony tekst */

		& .pa-stock-status__dot {
			background-color: #EF4444; /* czerwony */
			box-shadow: 0 0 0 3px rgb(239 68 68 / .15);
		}
	}

	&.pa-stock-status--onbackorder {
		& .pa-stock-status__dot {
			background-color: #F59E0B; /* pomarańczowy */
			box-shadow: 0 0 0 3px rgb(245 158 11 / .15);
		}
	}
}





















.pa-dobor {
	display: flex;
	align-items: center;
	gap: 24px;

	@media (max-width: 991px) {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	& .pa-dobor__text {
		margin: 0;
		color: #000;
		font-family: Figtree, sans-serif;
		font-size: 16px;
		font-style: normal;
		font-weight: 400;
		line-height: normal;
		letter-spacing: -0.48px;
	}

	& .pa-dobor__btn {
		display: inline-block;
		text-decoration: none;
		white-space: nowrap;
		cursor: pointer;

		/* Typografia */
		color: #000;
		font-family: Figtree, sans-serif;
		font-size: 16px;
		font-style: normal;
		font-weight: 600;
		line-height: normal;
		letter-spacing: -0.48px;
		text-align: center;

		/* Kształt */
		padding: 13px 20px;
		border-radius: 50px;
		border: 1px solid #009FE3;
		background-color: transparent;

		/* Przejście */
		transition: background-color 0.2s ease, color 0.2s ease;

		&:hover,
		&:focus-visible {
			background-color: #009FE3;
			color: #fff;
			outline: none;
		}

		&:active {
			background-color: #007bb0;
			border-color: #007bb0;
			color: #fff;
		}


		@media (max-width: 991px) {
			width: 100%;

		}
	}
}














.pa-atrybuty {
	margin: 0;
	padding: 0;
	list-style: none;

	& .pa-atrybuty__row {
		display: grid;
		grid-template-columns: 140px 1fr;
		align-items: baseline;
		gap: 8px 16px;
		padding: 14px 0;
		border-bottom: 1px solid #E0F0F7;

		&:first-child {
			border-top: 1px solid #E0F0F7;
		}

		@media (max-width: 480px) {
			grid-template-columns: 1fr;
			gap: 2px;
			padding: 12px 0;
		}
	}

	& .pa-atrybuty__label {
		margin: 0;
		color: #000;
		font-family: Figtree, sans-serif;
		font-size: 16px;
		font-style: normal;
		font-weight: 400;
		line-height: normal;
		letter-spacing: -0.48px;
	}

	& .pa-atrybuty__value {
		margin: 0;
		color: #000;
		font-family: Figtree, sans-serif;
		font-size: 16px;
		font-style: normal;
		font-weight: 600;
		line-height: normal;
		letter-spacing: -0.48px;
	}
}








/* ── Blokada scrolla ── */
body.pa-popup-open {
	overflow: hidden;
}

/* ── Overlay ── */
.pa-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background-color: rgb(6 12 14 / 0.55);
	backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	animation: pa-overlay-in 0.2s ease forwards;

	&.pa-popup-overlay--hidden {
		display: none;
	}
}

@keyframes pa-overlay-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* ── Okno ── */
.pa-popup {
	position: relative;
	background: #fff;
	border-radius: 16px;
	padding: 40px;
	width: 100%;
	max-width: 620px;
	max-height: 90dvh;
	overflow-y: auto;
	box-shadow: 0 24px 64px rgb(0 0 0 / 0.12);
	animation: pa-popup-in 0.25s ease forwards;

	@media (max-width: 600px) {
		padding: 28px 20px;
		border-radius: 12px;
	}
}

@keyframes pa-popup-in {
	from { opacity: 0; transform: translateY(16px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Przycisk X ── */
.pa-popup__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: transparent;
	cursor: pointer;
	transition: background-color 0.15s ease;

	&:hover {
		background-color: #f0f0f0;
	}
}

/* ── Tytuł ── */
.pa-popup__title {
	margin: 0 0 24px;
	padding-right: 32px;
	color: #060C0E;
	font-family: Figtree, sans-serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 28px;
	letter-spacing: -0.66px;

	& strong {
		font-weight: 700;
	}

	@media (max-width: 600px) {
		font-size: 18px;
		line-height: 24px;
	}
}

/* ── Formularz CF7 ── */
.pa-popup__form {

	& .wpcf7-form {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	& .cf7-row {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px;

		@media (max-width: 480px) {
			grid-template-columns: 1fr;
		}
	}

	/* Spany CF7 muszą być full-width */
	& .wpcf7-form-control-wrap {
		display: block;
		width: 100%;
	}

	& input[type="text"],
	& input[type="email"],
	& input[type="tel"] {
		width: 100%;
		box-sizing: border-box;
		border-radius: 106px;
		border: 1px solid #E4EFF6;
		background: #FFF;
		padding: 12px 25px;
		color: #091927;
		font-family: Outfit, sans-serif;
		font-size: 16px;
		font-style: normal;
		font-weight: 400;
		line-height: 28px;
		letter-spacing: -0.32px;
		outline: none;
		transition: border-color 0.15s ease;

		&::placeholder {
			color: #8EAAB5;
		}

		&:focus {
			border-color: #009FE3;
		}

		&.wpcf7-not-valid {
			border-color: #EF4444;
		}
	}

	& textarea {
		width: 100%;
		box-sizing: border-box;
		border-radius: 16px;
		border: 1px solid #E4EFF6;
		background: #FFF;
		padding: 12px 25px;
		color: #091927;
		font-family: Outfit, sans-serif;
		font-size: 16px;
		font-style: normal;
		font-weight: 400;
		line-height: 28px;
		letter-spacing: -0.32px;
		outline: none;
		transition: border-color 0.15s ease;
		min-height: 80px;
		max-height: 120px;
		resize: vertical;
		overflow-y: auto;

		&::placeholder {
			color: #8EAAB5;
		}

		&:focus {
			border-color: #009FE3;
		}

		&.wpcf7-not-valid {
			border-color: #EF4444;
		}
	}

	& .wpcf7-acceptance {
		display: flex;
		align-items: flex-start;
		gap: 10px;

		label{
			display: flex;
			gap: 10px;
		}

		& input[type="checkbox"] {
			margin-top: 3px;
			flex-shrink: 0;
			accent-color: #009FE3;
			width: 16px;
			height: 16px;
		}

		& .wpcf7-list-item-label,
		& span:not(.wpcf7-list-item) {
			color: #000;
			font-family: Figtree, sans-serif;
			font-size: 15px;
			font-style: normal;
			font-weight: 400;
			line-height: normal;
			letter-spacing: -0.3px;
		}

		& a {
			color: #009FE3;
			text-decoration: none;

			&:hover { text-decoration: underline; }
		}
	}

	& input[type="submit"],
	& .wpcf7-submit {
		width: 100%;
		padding: 14px 20px;
		border-radius: 50px;
		border: none;
		background-color: #009FE3;
		color: #fff;
		font-family: Figtree, sans-serif;
		font-size: 16px;
		font-weight: 600;
		letter-spacing: -0.48px;
		cursor: pointer;
		transition: background-color 0.2s ease;
		text-align: center;

		&:hover { background-color: #007bb0; }
		&:disabled { opacity: 0.6; cursor: not-allowed; }
	}

	& .wpcf7-not-valid-tip {
		color: #EF4444;
		font-size: 12px;
		margin-top: 4px;
		padding-left: 12px;
	}

	& .wpcf7-response-output {
		margin-top: 8px;
		padding: 10px 14px;
		border-radius: 8px;
		font-size: 14px;
		font-family: Figtree, sans-serif;
		border: none !important;
	}

	& .wpcf7-mail-sent-ok {
		background: #DCFCE7;
		color: #166534;
	}

	& .wpcf7-validation-errors,
	& .wpcf7-mail-sent-ng {
		background: #FEE2E2;
		color: #991B1B;
	}
}



















/* ── Treść informacyjna w popupie ── */
.pa-popup__content {
    display: flex;
    flex-direction: column;
    gap: 0px;

    & ol,
    & ul {
        padding-left: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
		margin: 0;
		font-family: "Figtree", sans-serif;
    }

    & li {
        font-family: "Figtree", sans-serif;
        font-size: 15px;
        line-height: 1.6;
        color: #091927;
    }
	
	p {
		font-family: "Figtree", sans-serif;
	}
}

.pa-popup__subtitle {
    font-family: "Figtree", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #060C0E;
    margin: 0 0 4px;
}

.pa-popup__note {
    font-family: "Figtree", sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7f8a;
    background: #f4f9fc;
    border-left: 3px solid #009FE3;
    border-radius: 8px;
    padding: 10px 14px;
	margin: 20px 0;
}



.pa-popup__cta {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    background-color: #009FE3;
    color: #fff;
    font-family: Figtree, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.48px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease;
    align-self: flex-start;

    &:hover {
        background-color: #007bb0;
    }
}