/* === WSPÓLNE STYLE PODSTAWOWE === */

.hidden {
    display: none !important;
}

/* === BTN STYLES (używane w billing.php, complete.php) === */

/*
.btn {
    display: inline-block;
    padding: 0.9375rem 2rem;
    border: none;
    border-radius: 1.875rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--c-01);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
*/


.slogan-text {
	font-size: 1.2rem;
}

.info-section span {
    font-size: 1.2rem;
}


/* === PRICING CARDS SECTION (select_package.php) === */

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 65px 20px;
    margin: 55px auto 55px auto;
    justify-content: center;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fbfbfb;
    border: 1.5px solid #ccc;
    border-radius: var(--r-02);
    padding: 25px 20px;
    margin-top: 0;
    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-title {
    font-size: 1.75em;
    font-weight: 700;
    margin: 0.25rem 0 0.25rem 0;
    text-align: left;
}

.pricing-card-description {
    margin: 1.5rem 0;
}

.pricing-card-price {
    display: flex;
    flex-direction: row;
    min-height: 4rem;
}

.pricing-card-products {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pricing-card-products-title {
    font-weight: 400;
    margin-bottom: 0.5rem;
    font-size: 17px;
    color: #444;
}

.pricing-card-products-list {
    margin-top: 5px;
    flex-grow: 1;
    font-weight: 500;
}

.pricing-card-products-list-custom .checkbox-all {
    cursor: pointer;
}

.pricing-card-products-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0.45rem 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 {
    position: relative;
    font-size: 15px;
}

.pricing-card-products-item-price {
    text-align: right;
}

.pricing-card-products-item-custom:hover .pricing-card-products-item-name,
.pricing-card-products-item-custom:hover .pricing-card-products-item-price {
    color: #222222;
}

.pricing-card-products-item-custom {
    color: #999999;
}

/* === FORM CONTROLS === */

.checkbox-all {
    accent-color: #222;
}

.checkbox-readonly {
    accent-color: #555;
    pointer-events: none;
}

/* === BUY BUTTONS === */

.button-section {
    margin-top: auto;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.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;
}

/* === PERIOD SELECTOR (select_package.php) === */

.period-selector {
    margin: 40px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 1.15rem;
}

.period-buttons {
    background: #fbfbfb;
    border: 1px solid #d1d5db;
    border-radius: 25px;
    padding: 6px;
    width: 100%;
    max-width: 320px;
    justify-content: space-between;
}

.period-buttons-mobile {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.period-buttons-desktop {
    display: none;
}

.period-btn {
    background: #fbfbfb;
    border: none;
    padding: 10px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex: 1;
    min-width: auto;
}

.period-btn:hover {
    color: #374151;
    background: rgba(255, 255, 255, 0.5);
}

.period-btn.active {
    background: #111827;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === PRICING CARD STRUCTURE === */

.pricing-card-title h2 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #111111;
}

.pricing-card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #111111;
    min-height: 4rem;
}

.price-amount {
    font-size: 36px;
    font-weight: 600;
}

.price-currency {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.price-period {
    font-size: 16px;
    font-weight: 400;
    color: #555555;
}

.pricing-card-gross {
    color: #777777;
    font-size: 14px;
    margin-bottom: 12px;
}

.pricing-card-badge-wrapper {
    /* Wrapper dla badge - bez stylów wizualnych */
}

.pricing-card-badge {
    padding: 6px 2px 6px 4px;
    border-radius: var(--r-02);
    font-size: 14px;
    font-weight: 700;
    margin: 10px 0;
    text-align: center;
    background: #fff;
    border: 2px solid #fa4004;
    color: #fa4004;
}

.pricing-card-products-item-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    justify-content: flex-end;
    color: #888888;
}

/* === SUMMARY SECTION === */

.pricing-card-summary {
    margin-top: 16px;
    font-size: 14px;
    color: #333333;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-savings {
    font-weight: 700;
    border-top: 1px solid #d1d5db;
    padding-top: 6px;
    margin-top: 6px;
}

.summary-custom-package {
    font-weight: 700;
    border-top: 1px solid #d1d5db;
    padding-top: 6px;
    margin-top: 6px;
}

.summary-custom-package .summary-label {
    font-weight: 700;
}

.summary-custom-package .summary-value {
    font-weight: 700;
}

.summary-value {
    font-weight: 600;
}

/* === INFO SECTION === */

.info-section {
    text-align: center;
    margin: 0 0 4rem 0;
}

/* === RESPONSIVE STYLES === */

@media (min-width: 450px) {
    .period-buttons {
        width: auto;
        max-width: none;
        justify-content: initial;
    }
    
    .period-buttons-mobile {
        display: none;
    }
    
    .period-buttons-desktop {
        display: flex;
    }
    
    .period-btn {
        padding: 12px 24px;
        min-width: 120px;
        flex: none;
    }
}

@media (min-width: 700px) {
    .pricing-cards.grid-1-col {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .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: 8.1rem;
        margin: 0.5rem 0 0 0;
    }
}

@media (min-width: 768px) {
    .pricing-card-title h2 {
        margin: 0 0 20px 0;
    }
    
    .pricing-card-price {
        gap: 8px;
    }
    
    .price-amount {
        font-size: 44px;
    }
    
    .price-currency {
        font-size: 30px;
    }
    
    .price-period {
        font-size: 24px;
    }
    
    .pricing-card-badge {
        margin: 12px 0;
    }
    
    .pricing-card-summary {
        margin-top: 20px;
    }
}

@media (min-width: 1100px) {
    .pricing-cards.grid-1-col {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .pricing-cards.grid-2-col {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
    }
    
    .pricing-cards.grid-3-col,
    .pricing-cards.grid-4-col {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1600px;
    }
}

@media (min-width: 1495px) {
    .pricing-cards.grid-1-col {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .pricing-cards.grid-2-col {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
    }
    
    .pricing-cards.grid-3-col {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1600px;
    }
    
    .pricing-cards.grid-4-col {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1600px;
    }
	
	.pricing-card-description {
        min-height: 6.7rem;
    }
}

/* === SUMMARY TOGGLE === */

.pricing-card-summary-toggle {
    text-align: center;
    padding: 12px 0;
}

.summary-toggle-link {
    color: #333333;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.summary-toggle-link:hover {
    opacity: 0.8;
}

.savings-percent {
}

/* === RESPONSIVE - WYRÓWNANE WYSOKOŚCI KART === */

/* Desktop - od 768px wzwyż */
@media (min-width: 768px) {
    
    .pricing-cards {
        align-items: stretch;
    }
    
    .pricing-card {
        display: flex;
        flex-direction: column;
    }
    
	/* Badge wrapper - stała wysokość */
	.pricing-card-badge-wrapper {
		min-height: 100px;
		display: flex;
		align-items: flex-start;
	}

	/* Badge - naturalny rozmiar wewnątrz wrappera */
	.pricing-card-badge {
		width: 100%;
	}
    
    /* Sekcja produktów - wypełnia dostępną przestrzeń */
    .pricing-card-products {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    /* Lista produktów - scrollowalna przy dużej ilości */
    .pricing-card-products-list {
        max-height: 400px;
        overflow-y: auto;
    }
    
    /* Toggle na dole sekcji produktów */
    .pricing-card-summary-toggle {
        margin-top: auto;
    }
}