/* === POCZĄTKOWY STAN ELEMENTÓW === */

.price-monthly {
	display: none;
}


/* === HERO SECTION === */

.hero {
	text-align: center;
	padding: 0.5rem 0 2rem 0;
}

.slogan-main {
}

.slogan-text {
	font-size: 1.15rem;
	padding: 1rem 0;
	font-weight: 400;
	margin: 0 auto;
}


/* === SUBSCRIPTION TOGGLE === */

.toggle-subscription {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 0.5rem;
}

.toggle-switch {
	width: 40px;
	min-width: 40px;
	height: 24px;
	background: #222;
	border-radius: 14px;
	border: none;
	position: relative;
	cursor: pointer;
}

.toggle-switch::before {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px; /* położenie kółka */
	width: 20px;
	height: 20px;
	background: white;
	border-radius: 50%;
	transition: 0.3s;
}

.toggle-switch.unchecked {
	background: #ccc;
}

.toggle-switch:not(.unchecked)::before {
	left: 18px; /* położenie kółka */
}

.toggle-subscription-label {
	font-weight: 600;
	color: #222;
}

.toggle-subscription-label-unchecked {
  color: #999999;
}

@media (min-width: 365px) {
	.toggle-subscription {
		flex-direction: row;
		gap: 0.6rem;
	}
}

@media (min-width: 420px) {
	.toggle-subscription {
		gap: 1.5rem;
	}
}


/* === TAG PROMO === */
.tag-promo {
	background: #caf5ca;
	color: #40792d;
	padding: 2px 10px;
	border-radius: 15px;
	font-size: .85em;
	min-height: calc( 2 * 0.85em);
	font-weight: 600;
	margin: 0 0 10px 0;
	text-transform: uppercase;
	width: fit-content;
	transition: opacity 0.3s;
}

.tag-promo.hidden {
	display: none;
	visibility: hidden;
	opacity: 0;
}

.toggle-subscription .tag-promo {
	margin: 3px 0;
}

.toggle-subscription .tag-promo.hidden {
	display: block;
	visibility: visible;
	opacity: 0.6;
}



/* === PRICING CARDS SECTION === */

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 65px 20px;
	margin: 75px auto 55px auto;
    justify-content: center;
}

.pricing-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: #fff;
	border: 1.5px solid #222;
	border-radius: var(--r-02);
	padding: 1.5rem;
	margin-top: 0;
	/*z-index: 99; /* Zakładanie .pricing-card-top-label na .pricing-card działa tylko przy wyłączonym z-index */
	transition: transform 0.2s, box-shadow 0.2s;
	width: 100%;
    justify-self: center;
}

.pricing-card:hover {
	box-shadow: 0 0 10px #00000033;
}

.pricing-cards.grid-1-col,
.pricing-cards.grid-2-col,
.pricing-cards.grid-3-col,
.pricing-cards.grid-4-col {
    grid-template-columns: 1fr;
    width: 100%;
}

.pricing-card-top-label {
	position: absolute;
	top: -50px;
	height: 75px;
	left: -1.5px;  /* rozszerz o border .pricing-card */
    right: -1.5px; /* rozszerz o border .pricing-card */
	background-color: #222;
	color: #fff;
	display: flex;
	padding: .75rem 0;
	justify-content: center;
	font-size: 1.25rem;
	font-weight: 600;
	border-top-left-radius: var(--r-02);
	border-top-right-radius: var(--r-02);
	z-index: -99;
	transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card-top-label:hover {
	box-shadow: 0 0 10px #00000033;
}

.pricing-card-title {
	font-size: 1.75em;
	font-weight: 700;
	margin: 0.25rem 0 0.25rem 0;
	text-align: left;
}

.pricing-card-description {
	/* min-height: 6rem; /* Stała wysokość dla opisu */
	color: #555555;
	margin: 1.5rem 0;
}

.pricing-card-price {
	display: flex;
	flex-direction: column;
	min-height: 9rem; /* Stała wysokość sekcji cen */
}

.pricing-card-price-old {
	color: #999999;
    font-weight: 500;
    font-size: 1.4rem;
    display: block;
    margin: 0;
    position: relative;
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
}

.pricing-card-price-current {
	color: #222;
	font-size: 2.5rem;
    font-weight: 700;
    margin: -0.4rem 0 1.1rem 0;
}

.pricing-card-price-current .period {
	color: #555555;
	font-size: 1rem;
	font-weight: 400;
	margin-top: -1rem;
}

.pricing-card-products {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.pricing-card-products-title {
	font-weight: 400;
	margin-bottom: 0.5rem;
	font-size: 1.05rem;
}

.pricing-card-products-list {
	margin-top: 5px;
	flex-grow: 1;
	font-weight: 500;
}

.pricing-card-products-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--border);
}

.pricing-card-products-item-info {
	display: flex;
	flex-direction: column;
}

.pricing-card-products-item-checkbox {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.pricing-card-products-item-name {
	cursor: pointer;
	position: relative;
}

.pricing-card-products-item-name::after {
	content: "ⓘ";
	cursor: pointer;
	margin-left: 5px;
	transition: none;
	pointer-events: auto;
	position: relative;
	top: -0.05em;
	color: #999999
}

.pricing-card-products-item-description {
	color: #555555;
	font-size: 0.9rem;
	font-weight: 400;
	display: none;
	padding: 10px 0 0 0;
}

.pricing-card-products-item-price {
	min-width: 4rem;
	text-align: right;
}

.pricing-card-products-item-name:hover,
.pricing-card-products-item-price:hover {
	color: var(--c-01);
}

/* --- Custom styles for #custom-products --- */
.pricing-card-products-item-custom {
	color: #999999;
	transition: color 0.3s;
}

.pricing-card-products-item-checked,
.pricing-card-products-item-custom:hover {
	color: #222;
	transition: color 0.3s;
}


/* --- Price & currency --- */
.price-annual .currency,
.price-monthly .currency {
	font-size: 0.85em;
}

.price-monthly.hidden {
	visibility: hidden;
	opacity: 0;
}

.pricing-card-price-old .currency {
	font-size: 1em;
}


/* --- Form Controls --- */
.checkbox-all {
	accent-color: #222;
}

.checkbox-readonly {
	accent-color: #222;
	pointer-events: none;
}

/* --- Buttons Section --- */
.button-section {
	margin-top: auto;
	margin-bottom: 2rem;
	padding-top: 3rem;
}

.btn-buy {
	display: block;
	width: 100%;
	padding: 0.9375rem;
	background-color: var(--c-01);
	color: white;
	border: none;
	border-radius: 1.875rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s;
}

.btn-buy:hover {
	opacity: 0.9;
}

.btn-buy:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.btn-buy-custom.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* === INFO SECTION === */

.info-section {
	text-align: center;
	margin: 0 0 4rem 0;
}


/* === RESPONSIVE STYLES === */

@media (min-width: 720px) {
	.hero {
		padding: 2rem 0 2rem 0;
	}
	
	.slogan-text {
		font-size: 1.35rem;
	}
	
	.pricing-cards {
	}
	
	.pricing-card {
	}
	
	/* 1 karta - wyśrodkowana */
    .pricing-cards.grid-1-col {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    /* 2+ karty - obok siebie */
    .pricing-cards.grid-2-col,
	.pricing-cards.grid-3-col,
    .pricing-cards.grid-4-col	{
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
	
	.pricing-card-description {
		min-height: 7.5rem;
		margin: 0.5rem 0;
	}
	
	.tag-promo {
		margin: 10px 0;
	}
	
	.tag-promo.hidden {
		display: block;
	}
}

@media (min-width: 1300px) {
	/* 1 karta - wyśrodkowana */
    .pricing-cards.grid-1-col {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    /* 2 karty - obok siebie */
    .pricing-cards.grid-2-col {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
    }
    
    /* 3+ karty - trzy kolumny */
    .pricing-cards.grid-3-col,
	.pricing-cards.grid-4-col	{
        grid-template-columns: repeat(3, 1fr);
		max-width: 1600px;
    }
}

@media (min-width: 1700px) {
	/* 1 karta - wyśrodkowana */
    .pricing-cards.grid-1-col {
        grid-template-columns: 1fr;
		max-width: 600px;
    }
    
    /* 2 karty - obok siebie */
    .pricing-cards.grid-2-col {
        grid-template-columns: repeat(2, 1fr);
		max-width: 1200px;
    }
    
    /* 3 karty - trzy kolumny */
    .pricing-cards.grid-3-col {
        grid-template-columns: repeat(3, 1fr);
		max-width: 1600px;
    }
    
    /* 4+ kart - cztery kolumny */
    .pricing-cards.grid-4-col {
        grid-template-columns: repeat(4, 1fr);
		max-width: 1600px;
    }
}