.mod-test-packages-grid {
    container-type: inline-size;
    padding-top: 1em;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.test-package__box {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    width: 90%;
}

.test-package__box>* {
    padding: 1rem;
}

.test-package__box h3 {
    margin: 0;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
}

.package_title {
    background-color: var(--sky-blue-10);
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .3rem 1rem;
    height: 60px;
}

.test-package__box:hover {
    box-shadow: var(--box-shadow-hover);
}

.package_included_tests {
    padding: .5rem 1rem;
    margin: .5rem;
    border: 1px solid var(--sky-blue-10);
    border-radius: 10px;
    max-height: 180px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--sky-blue-10) transparent;
    scroll-margin-right: 10px;
}

.package_included_tests::-webkit-scrollbar {
    width: 5px;
}

.package_included_tests::-webkit-scrollbar-track {
    background: transparent;
}

.package_included_tests::-webkit-scrollbar-thumb {
    background-color: var(--sky-blue-10);
    border-radius: 20px;
    border: transparent;
}

.package_price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--sky-blue);
    text-align: center;
    padding-bottom: 0;
}

.package_price:after {
    content: 'GHS';
    font-size: .7rem;
    margin-left: 3px;
}

.package_old_price {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray);
    text-align: center;
    padding: 0;
    text-decoration: line-through;
}

.package_old_price:not(:empty):after {
    content: 'GHS';
    font-size: .7rem;
    margin-left: 3px;
    text-decoration: line-through;
}

.package_tests_number {
    color: var(--dark-blue);
    text-transform: uppercase;
    font-size: .85rem;
    font-weight: 900;
    padding-bottom: 0;
}

.package_tests_number:after {
    content: 'TESTS';
    margin-left: 3px;
}

.package_included_tests ul {
    list-style: none;
}

.package_included_tests li {
    font-size: .85rem;
    color: var(--dark-gray);
}

.package_included_tests li:before {
    content: '';
    background-image: url('/images/icons/circle-check-solid-orange.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 10px;
    height: 10px;
    display: inline-block;
    margin-right: .7rem;
    opacity: 0.7;
}

.package_description * {
    font-size: .85rem;
    color: var(--gray);
    font-style: italic;
}

.package_description {
    margin-bottom: auto;
    padding-bottom: 0;
}

.package_link a {
    padding: .3rem;
    background-color: var(--sky-blue-10);
    border-radius: 10rem;
    width: 100%;
    display: block;
    margin: 0 auto;
    text-align: center;
    font-weight: 600;
}

@container (min-width: 550px) {
    .test-package__box {
        width: calc(50% - 2rem);
    }
}

@container (min-width: 850px) {
    .test-package__box {
        width: calc(33% - 2rem);
    }
}

@container (min-width: 1150px) {
    .test-package__box {
        width: calc(25% - 2rem);
    }
}