.c-equity-rates {
    display: flex;
    flex-direction: column;
    background: transparent;
    padding: 1rem;
}
@media only screen and (min-width: 56.25em) {
    .c-equity-rates {
        background: transparent;
        margin: 2rem auto;
        width: 900px;
    }
}
#rates.o-fixed-width {
    padding: 0 1rem;
}

/* Service Messages */
.c-rates-obtaining {
    width: 55%;
    border-left: 5px solid var(--brand-primary-opal);
    margin:10px auto;
    background:var(--brand-primary-marble);
    padding:20px;
    -webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.5);
    -moz-box-shadow:0 2px 4px 0 rgba(0,0,0,.5);
    box-shadow:0 2px 4px 0 rgba(0,0,0,.5);
}
.c-rates-obtaining__heading {
    font-size:1.125rem;
}
.c-rates-obtaining__body {
    padding-bottom:0;
}
.c-rates-unavailable {
    width:55%;
    border-left:5px solid var(--brand-primary-opal);
    margin:10px auto;
    background:var(--brand-primary-marble);
    padding:20px;
    -webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.5);
    -moz-box-shadow:0 2px 4px 0 rgba(0,0,0,.5);
    box-shadow:0 2px 4px 0 rgba(0,0,0,.5);
}
.c-rates-unavailable__heading {
    font-size:1.125rem;
}
.c-rates-unavailable__body {
    padding-bottom:0;
}
.c-error-message {
    width:55%;
    border-left:5px solid var(--brand-tertiary-fire-opal);
    margin:10px auto;
    background:var(--brand-primary-marble);
    padding:20px;
    -webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.5);
    -moz-box-shadow:0 2px 4px 0 rgba(0,0,0,.5);
    box-shadow:0 2px 4px 0 rgba(0,0,0,.5);
}
.c-error-message__icon {
    display:inline-block;
    margin-right:.5rem;
    color:var(--brand-tertiary-fire-opal);
    font-size:1.75rem;
}
.c-error-message__heading {
    font-size:1.125rem;
    display:inline-block;
    vertical-align:middle;
}
.c-error-message__body {
    padding-bottom:0;
}
label.error{
    width:100%;
    box-sizing:border-box;
    color:var(--brand-tertiary-fire-opal);
    font-size:14px;
    font-weight:700;
    text-align:left;
    display:inline-block;
}
label.valid{
    display:none;
}

/* Heading */
.c-table__heading {
    text-align:center;
    margin:2rem 1rem 0;
    padding-bottom:0;
    font-size:1.5rem;
    color: var(--brand-primary-opal)
}
.c-equity-rates__date {
    font-style: italic;
}
.c-equity-rates__heading-wrap {
    text-align:center;
    width:100%;
    margin-bottom: 1.5rem;
}
.c-equity-rates__heading {
    display:block;
    text-align:center;
    vertical-align:middle;
    margin-top: 1rem;
    color: var(--brand-secondary-azurite);
}
.c-equity-rates__heading sup {
    font-size: 1.5rem;
    top:-0.5rem;
}
.c-equity-rates__heading sup a {
    text-decoration: underline;
}
.c-equity-rates__body {
    font-weight:700;
    display:block;
}

/* Fields */
#equity_rates .c-field {
    padding: 0 0.25rem 2rem;
    flex: 1 0 75%;
}
@media only screen and (min-width: 56.25em) {
    #equity_rates .c-field {
        margin-right: 1rem;
    }
}
#equity_rates .o-grid--gutters {
    margin-bottom:0;
}
#equity_rates {
    padding:0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    max-width: 400px;
    margin: 0 auto;
}
#equity_rates h2 {
    color:var(--brand-primary-marble);
}
#equity_rates .o-grid--gutters {
    margin-bottom:0;
}
form#equity_rates {
    text-align:center;
}
#equity_rates .c-field__label {
    text-align: left;
    font-weight: 700;
}
#equity_rates .c-form__select,
#equity_rates .c-form__input,
#equity_rates .submit-button {
    border-radius: 0.325rem;
}
#equity_rates .c-form__select {
    border-radius: 0.325rem;
    z-index:0;
    position:relative;
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    height:40px;
    width:100%;
    border-color:#bebfbf;
    padding:0px .5rem;
    font-size:16px;
    line-height:1.2;
    background-color: var(--brand-primary-marble);
    /*background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");*/
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border:1px solid #bebfbf;
}
#equity_rates abbr.important{
    text-decoration:none;
    color:var(--brand-tertiary-fire-opal);
}
#equity_rates .submit-button {
    display: inline;
    vertical-align: middle;
    position: relative;
    top: -2px;
    border-radius: 2rem;
    flex: 1;
    text-transform: none;
    font-size: 1rem;
    cursor: pointer;
    background-color: var(--brand-secondary-azurite);
    border: 0.125rem solid var(--brand-secondary-azurite);
}
#equity_rates .submit-button:hover,
#equity_rates .submit-button:focus {
    background-color: var(--brand-primary-opal) !important;
    border: 0.125rem solid var(--brand-primary-opal) !important;
    color: var(--brand-primary-marble);
}
#equity_rates input[type="submit"]:disabled {
    border: 2px solid #cccccc;
    background-color: #cccccc;
    color: #666666;
    cursor: no-drop;
}
#equity_rates input:-webkit-input-placeholder,
#equity_rates input:-moz-placeholder,
#equity_rates input:-ms-input-placeholder {
    color: #333;
}
#equity_rates .row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
}
#equity_rates .row .c-field {
    width: 28%;
}
#equity_rates .c-field.c-field--multiple {
    width: 30%;
}

/* Table */
.c-table thead {
    background-color: var(--brand-primary-opal);
    color: var(--brand-primary-marble);
}
.c-table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
}

/* Borders */
table {
    border: none;
}
.c-table th,
.c-table td {
    border: 1px solid #AEAEAE;
    font-size: 1.2rem;
}
.c-table__cell--border-white {
    border: 1px solid var(--brand-primary-marble) !important;
}

/* Alignment */
.c-table--align-center {
    text-align: center;
}
.c-table {
    text-align: center;
}
.c-table__cell--first-row {
    text-align: left;
}

/* Rows */
.momentum tr.c-table__thead-top {
    background: var(--brand-secondary-azurite);
}
.c-table__cell--first-column sup a {
    text-decoration:underline;
}
th.c-table__cell--first-column a {
    text-decoration:underline;
    font-size:75%;
    top:-0.5em;
    vertical-align: baseline;
    position:relative;
}
.c-table tbody tr:nth-child(odd) {
    background-color: #E8E8E8;
}
.c-table tbody tr:nth-child(even) {
    background-color: var(--brand-primary-marble);
}
.c-table__cell--first-row {
    width: 25%;
}
.c-table__cell-blank {
    background: var(--brand-primary-marble) !important;
    border: none !important;
}

/* Spinner */

@-webkit-keyframes spinner-border {
    to {
        transform: rotate(360deg) /* rtl:ignore */;
    }
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg) /* rtl:ignore */;
    }
}
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -0.125em;
    border: 0.25em solid var(--brand-primary-opal);
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: 0.75s linear infinite spinner-border;
    animation: 0.75s linear infinite spinner-border;
    margin-bottom: 0.5rem;
}
@media (prefers-reduced-motion: reduce) {
    .spinner-border{
        -webkit-animation-duration: 1.5s;
        animation-duration: 1.5s;
    }
}

table {
    border:0;
    margin-top:15px;
}
th {
    border-top:0;
    border-right:3px solid var(--brand-primary-marble);
    border-bottom:3px solid var(--brand-primary-marble);
    border-left:3px solid var(--brand-primary-marble);
}
td {
    border:3px solid var(--brand-primary-marble);
}
.c-rates__descriptions,
.c-rates__block {
    margin:0 auto;
    width:75%;
}
.c-rates__descriptions__body p {
    font-size:14px;
}
#descriptions.o-fixed-width {
    padding: 1.5rem 1rem;
}
#not-listed.o-fixed-width {
    padding: 0 1rem;
}
.c-rates__block__body p {
    padding-bottom: 0;
    text-align: center;
    font-size: 1.25rem;
}
.c-table__container.is-hidden {
    display: none !important;
}

@media only screen and (max-width:768px) {
    #equity_rates .row .c-field,
    #equity_rates .c-field,
    #equity_rates .c-field.c-field--multiple {
        width:100%;
        padding-bottom:1rem;
        display:block;
    }
    .c-table__container {
        width: 100%;
        padding: 0;
        overflow-y: auto;
    }
    .c-equity-rates__heading-wrap{
        text-align:center;
        width:100%;
    }
    .c-field {
        width:100%;
        padding-bottom:1rem;
        display:block;
    }
    .submit-button{
        margin:.5rem 0 1rem;
        min-width:100%;
        margin-top:0;
    }
    .c-rates-unavailable,
    .c-rates-obtaining {
        width:100%;
        margin:1rem 0;
    }
    .c-error-message {
        width:100%;
        margin:0;
    }
    .c-rates__descriptions,
    .c-rates__block{
        width:100%;
    }
}

/* Responsive Tables */

@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1023px) {
    #equity_rates {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    /* Force table to not be like tables anymore */
    table, thead, tbody, td, tr {
        display: flex;
        flex-direction: column;
    }
    .momentum tr.c-table__thead-top {
        margin-bottom: 0;
    }
    /* Hide table headers (but not display: none;, for accessibility) */
    thead tr:nth-of-type(2),
    thead tr:nth-of-type(3),
    thead tr:nth-of-type(4),
    thead tr:nth-of-type(5) {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    tr {
        margin: 0 0 1rem 0;
    }
    tr:nth-child(odd) {
        background: #ccc;
    }
    td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50% !important;
    }
    td:before {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 0;
        left: 0;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        background: var(--brand-primary-opal);
        color: var(--brand-primary-marble);
        font-weight: 700;
    }
    /* Label the data */
    #heloc_tbl td:nth-of-type(1):before {
        content: "Amount";
    }
    #heloc_tbl td:nth-of-type(2):before {
        content: "Interest Rate";
    }
    #heloc_tbl td:nth-of-type(3):before {
        content: "APR";
    }
    #heloc_tbl td:nth-of-type(4):before {
        content: "Lien";
    }
    #heloan_tbl td:nth-of-type(1):before,
    #ehr_tbl td:nth-of-type(1):before {
        content: "Term";
    }
    #heloan_tbl td:nth-of-type(2):before,
    #ehr_tbl td:nth-of-type(2):before {
        content: "Amount";
    }
    #heloan_tbl td:nth-of-type(3):before,
    #ehr_tbl td:nth-of-type(3):before {
        content: "Interest Rate";
    }
    #heloan_tbl td:nth-of-type(4):before,
    #ehr_tbl td:nth-of-type(4):before {
        content: "APR";
    }
    #heloan_tbl td:nth-of-type(5):before,
    #ehr_tbl td:nth-of-type(5):before {
        content: "Lien";
    }
}