/* Pricing Cards Equal Height and Button Alignment Fix */

/* Make all pricing cards equal height using flexbox */
.compact-pricing-cards {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.compact-pricing-cards > [class*="col"] {
    display: flex;
    flex-direction: column;
}

/* Ensure pricing card fills the entire column height */
.compact-pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px; /* Reduced minimum height */
    padding-bottom: 0.75rem !important; /* Reduce bottom padding */
}

/* Card header section with flexible growth */
.compact-pricing-card .compact-card-header {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto; /* Don't grow or shrink */
}

/* Plan name */
.compact-pricing-card h5.s-24 {
    margin-bottom: 1rem;
    min-height: 2em; /* Reserve space for 2 lines */
}

/* Price section */
.compact-pricing-card .price {
    margin-bottom: 1rem;
}

/* Plan description - ensure consistent height */
.compact-pricing-card .price p.color--grey {
    min-height: 3em; /* Reserve space for 2-3 lines */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 1rem;
}

/* Button - push to consistent position */
.compact-pricing-card .btn {
    margin-top: auto; /* Push button to bottom of header section */
    margin-bottom: 0.5rem; /* Reduced from 1rem */
}

/* Plan tag section */
.compact-pricing-card .pricing-plan-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem !important; /* Override the mb-2 class */
}

/* Features list - grow to fill remaining space */
.compact-pricing-card .compact-features-list {
    flex: 1 1 auto; /* Grow to fill available space */
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem !important; /* Reduced spacing */
    padding-top: 0.5rem !important; /* Override default */
}

/* Features list items - more compact spacing */
.compact-pricing-card .compact-features-list li {
    padding: 0.25rem 0 !important; /* Reduced from default */
}

/* Show more/less button at bottom of features */
.compact-pricing-card .compact-features-list li:last-child {
    margin-top: auto; /* Push "show more" button to bottom */
    padding-top: 0.25rem;
}

/* Ensure consistent spacing for price display */
.compact-pricing-card .price1,
.compact-pricing-card .price2 {
    margin-bottom: 1rem;
    min-height: 4rem; /* Reserve space for price + period text */
}

/* Fix for annual price discount badge positioning */
.compact-pricing-card .pricing-discount {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.compact-pricing-card .price1,
.compact-pricing-card .price2 {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .compact-pricing-card {
        min-height: 420px;
    }
    
    .compact-pricing-card .price p.color--grey {
        min-height: 2.5em;
    }
}

@media (max-width: 767px) {
    .compact-pricing-card {
        min-height: 400px;
    }
    
    .compact-pricing-card h5.s-24 {
        min-height: auto;
    }
    
    .compact-pricing-card .price p.color--grey {
        min-height: auto;
        margin-bottom: 0.75rem;
    }
}

/* Fix highlighted plan to maintain same height */
.compact-highlighted-plan {
    height: 100%;
}

/* Ensure Enterprise plan card matches others */
.compact-pricing-card[id*="enterprise"] .price p.color--grey {
    min-height: 3em; /* Same as other cards */
}

/* Better alignment for feature checkmarks and X marks */
.compact-pricing-card .compact-features-list li p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.compact-pricing-card .compact-features-list li p svg {
    flex-shrink: 0;
    margin-top: 0.125rem; /* Slight adjustment for visual alignment */
}