.public-term-page {
    margin-top: 2rem;
    margin-bottom: 3rem;
    padding: 2.25rem 2.5rem 2.5rem;
}

.public-term-page__header {
    width: 100%;
    margin: 0;
    padding: 0 0 1.5rem;
    border-bottom: 1px solid #d1e9e8;
}

.public-term-page__header h1 {
    margin: 0;
    padding: 0;
    color: #d23363;
    border: 0;
    font-size: 2.1rem;
    line-height: 1.2;
}

.public-term-page__header .clear,
.public-term-page__content > .clear,
.public-term-page > .clear {
    display: none;
}

.public-term-page__content {
    width: 100%;
    margin: 0;
}

.public-term-payment {
    display: flex;
    margin: 1.75rem 0 2rem;
    padding: 1.25rem 1.4rem;
    gap: 1.25rem;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #d1e9e8;
    border-radius: 5px;
    box-shadow: 0 8px 20px rgba(71, 55, 63, 0.07);
    color: #645d61;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.55;
}

.public-term-page .public-term-payment a {
    display: inline-flex;
    flex: 0 0 auto;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0.5rem 1rem;
    align-items: center;
    color: #ffffff;
    background: #d23363;
    border-radius: 4px;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
}

.public-term-payment a::after {
    margin-left: 0.65rem;
    content: "->";
    font-size: 1rem;
}

.public-term-payment a:hover,
.public-term-payment a:focus-visible {
    color: #ffffff;
    background: #a9274d;
    outline: none;
}

.public-term-payment > span {
    flex: 1 1 auto;
    color: #645d61;
    font-size: 0.92rem;
    font-weight: 500;
}

.public-term-payment + p {
    display: none;
}

.public-term-table {
    --term-week-width: calc(9ch + 2rem);
    --term-date-width: calc(11ch + 2rem);
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid #d1e9e8;
    border-radius: 6px;
    border-spacing: 0;
    border-collapse: separate;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(71, 55, 63, 0.06);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 0.95rem;
    table-layout: fixed;
}

.public-term-table col:nth-child(1) {
    width: var(--term-week-width);
}

.public-term-table col:nth-child(2) {
    width: var(--term-date-width);
}

.public-term-table td {
    box-sizing: border-box;
    padding: 0.85rem 1rem;
    color: #4e5b76;
    border: 0;
    border-bottom: 1px solid #e6f0ef;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 0.93rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    vertical-align: middle;
}

.public-term-table tr:first-child td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    color: #d23363;
    background: #ffffff;
    border-bottom: 0;
    font-size: 1.35rem;
    font-weight: 800;
    text-align: center;
}

.public-term-table tr:nth-child(2) td {
    height: 42px;
    padding-top: 0;
    padding-bottom: 0;
    color: #ffffff;
    background: #60AAA9;
    border-bottom: 0;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04rem;
    line-height: 1;
    text-transform: uppercase;
    vertical-align: middle;
}

.public-term-table tr:nth-child(n + 3):nth-child(even) td {
    background: #f6fbfb;
}

.public-term-table tr.public-term-row--spacer {
    display: none !important;
}

.public-term-table tr:last-child td {
    color: #d23363;
    background: #ffffff;
    border-bottom: 0;
    font-weight: 800;
}

.public-term-table tr:not(:first-child) td:nth-child(1),
.public-term-table tr:not(:first-child) td:nth-child(2) {
    white-space: nowrap;
}

.public-term-table tr:nth-child(n + 3) td:nth-child(2) {
    font-variant-numeric: tabular-nums;
}

.public-term-table .auto-style2,
.public-term-table .auto-style3,
.public-term-table .auto-style4,
.public-term-table .table_header,
.public-term-table .table_row {
    height: auto;
    color: inherit;
    font-family: "Manrope", Arial, sans-serif;
    font-size: inherit;
    font-weight: inherit;
    text-align: left;
}

.public-term-table + p.bodytextSTYLE {
    margin: 1.5rem 0 0;
    padding: 1rem 1.15rem 0;
    color: #645d61;
    border-top: 1px solid #d1e9e8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.public-term-table + p.bodytextSTYLE span {
    color: inherit;
    font: inherit;
}

@media (max-width: 767.98px) {
    .public-term-page {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
        padding: 1.25rem 1rem 1.35rem;
    }

    .public-term-page__header {
        padding-bottom: 1.1rem;
    }

    .public-term-page__header h1 {
        font-size: 1.55rem;
    }

    .public-term-payment {
        display: flex;
        margin: 1.25rem 0 1.5rem;
        padding: 1rem;
        align-items: stretch;
        flex-direction: column;
        gap: 0.85rem;
    }

    .public-term-payment a {
        width: auto;
        max-width: 100%;
        align-self: center;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
    }

    .public-term-table,
    .public-term-table tbody {
        display: block;
        width: 100%;
    }

    .public-term-table {
        --term-week-width: calc(9ch + 1.1rem);
        --term-date-width: calc(11ch + 1.1rem);
        font-size: 0.82rem;
    }

    .public-term-table colgroup {
        display: none;
    }

    .public-term-table tr {
        display: grid;
        width: 100%;
        grid-template-columns: var(--term-week-width) var(--term-date-width) minmax(0, 1fr);
    }

    .public-term-table tr:first-child,
    .public-term-table tr:last-child {
        display: block;
        grid-template-columns: minmax(0, 1fr);
    }

    .public-term-table tr:first-child td,
    .public-term-table tr:last-child td {
        display: block;
        width: 100% !important;
    }

    .public-term-table tr:first-child td {
        min-height: 3.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .public-term-table tr td {
        width: auto !important;
    }

    .public-term-table tr:not(:first-child):not(:nth-child(2)):not(:last-child):not(.public-term-row--note) td:nth-child(3) {
        display: none;
    }

    .public-term-table tr.public-term-row--note td:nth-child(3) {
        display: block;
        grid-column: 1 / -1;
        padding-top: 0.2rem;
        color: #a9274d;
        font-size: 0.78rem;
        font-weight: 700;
    }

    .public-term-table tr.public-term-row--note td:nth-child(3)::before {
        content: "Note: ";
        font-weight: 800;
    }

    .public-term-table td {
        padding: 0.7rem 0.55rem;
        font-size: 0.82rem;
    }

    .public-term-table tr:first-child td {
        font-size: 1.1rem;
    }

    .public-term-table tr:nth-child(2) td {
        height: 38px;
        font-size: 0.82rem;
        letter-spacing: 0.02rem;
    }

    .public-term-table + p.bodytextSTYLE {
        padding-inline: 0;
        font-size: 0.88rem;
    }
}
