/**
 * Industrial Credit Union custom CSS 
 */

.form-date, .form-time, .webform-time {
   @media only screen and (max-width: 481px) {
      min-width: 11rem;
   }
}

.icu-numeric-data {
  font-family: Century Gothic, CenturyGothic, AppleGothic, Consolas, monospace, monospace; /* Do not alter "monospace, monospace" browser hack */
  padding-right: 1rem;
  font-size: 1.0rem;
  white-space: nowrap;
}

.icu-hidden {
  display:none;
}

.icu-no-width {
  width: 0%;
}

.icu-no-wrap {
  white-space: nowrap;
}

.icu_table_plain, .icu_table_plain tbody, .icu_table_plain tbody tr, .icu_table_plain tbody tr td {
   margin: 0px;
   padding: 0px;
   border: none;
   background-color: transparent;
}

.icu_table_plain tbody tr:nth-child(even)
{
   background-color: transparent;
   padding: 0px;
   margin: 0px;
   border: none;
}

.icu_table_plain tbody tr:nth-child(odd)
{
   background-color: transparent;
   padding: 0px;
   margin: 0px;
   border: none;
}

.icu_table_plain tbody tr td
{
   background-color: transparent;
   padding: 0px;
   margin: 0px;
   border: none;
}


/* SHOUT BOXES *****************************************************/

.ck-content .icu_shoutbox_farawaypurple, .off-canvas-content .icu_shoutbox_farawaypurple {
  width: auto;
  background-color: #766db2;
  border: 0.4rem;
  border-style: solid;
  border-color: #766db2;
  border-radius: 10px;
  width: fit-content;
}

.ck-content .icu_shoutbox_elephantblue, .off-canvas-content .icu_shoutbox_elephantblue {
  width: auto;
  background-color: #194A5D;
  border: 0.4rem;
  border-style: solid;
  border-color: #194A5D;
  border-radius: 8px;
  width: fit-content;
}

.ck-content .icu_shoutbox_sagegreen, .off-canvas-content .icu_shoutbox_sagegreen {
  width: auto;
  background-color: #3D7A71;
  border: 0.4rem;
  border-style: solid;
  border-color: #3D7A71;
  border-radius: 10px;
  width: fit-content;
}

.ck-content .icu_shoutbox_blackonyx, .off-canvas-content .icu_shoutbox_blackonyx {
  width: auto;
  background-color: #443C3B;
  border: 0.4rem;
  border-style: solid;
  border-color: #443C3B;
  border-radius: 8px;
  width: fit-content;
}

.off-canvas-content .icu_shoutbox_h2 {
   font-family: "Henderson Sans", Helvetica, sans-serif;
   color:white;
   font-size:1.4rem;
   text-align: center;
   padding-top: 0px;
   padding-bottom: 0px;
   padding-left: 6px;
   padding-right: 6px;
   white-space: nowrap;
   font-weight: normal;
}

.off-canvas-content .icu_shoutbox_h1 {
   font-family: "Tablet Gothic", Arial, sans-serif;
   color:white;
   font-size:3.0rem;
   font-weight: bold;
   text-align: center;
   white-space: nowrap;
   padding-left:5px;
}


/* MORTGAGE RATE TABLES *****************************************************/


.icu-table-mortgagerates {
  border-collapse: collapse;
  width: 100%;
  max-width: 700px;
}

.icu-table-mortgagerates thead {
    border-top: 0.4rem;
    border-style: solid;
    border-color: #53A598;
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-radius: 8px 8px 0 0;
}

.icu-table-mortgagerates td, .icu-table-mortgagerates th {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

@media screen and (max-width: 640px) {

    .icu-table-mortgagerates,
    .icu-table-mortgagerates tbody {
        display: block;
        width: 100%;
        max-width: 100%;
    }  

  .icu-table-mortgagerates thead {
    border: none;
    display: none;
  }

  .icu-table-mortgagerates td, .icu-table-mortgagerates th {
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
  }

  .icu-table-mortgagerates thead tr {
    display:none;
  }

  .icu-table-mortgagerates tr {
    display: block;
    width: 100%;
    border-top: 0.4rem;
    border-style: solid;
    border-color: #53A598;
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-radius: 8px 8px 0 0;
  }

  .icu-table-mortgagerates tr {
    display: block;
  }

  .icu-table-mortgagerates tr.icu-no-mobile {
    display:none;
  }

  .icu-table-mortgagerates tr + tr {
    margin-top: 1rem;
  }

  .icu-table-mortgagerates td {
    border: none;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-justify-content: flex-start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    border-bottom: 1px solid #dddddd;
    padding-right: 100%;
    width: 220%;
    position: relative;
  }

  .icu-table-mortgagerates td.icu-no-mobile {
    display:none;
  }

  .icu-table-mortgagerates td:before {
    content: attr(data-label);
    display: inline-block;
    line-height: 1.5;
    width: 60%;
    position: relative;
    text-align: left;
    z-index: 1;
    font-family: "Henderson Sans", arial, sans-serif;
    font-size: 0.9rem;
  }

  .icu-table-mortgagerates td:after {
    content: '';
    position: absolute;
    background: #eeeeee;
    width: 28%;
    height: 95%;
    left: 1px;
    top: 1px;
    z-index: 0;
  }

  .icu-table-mortgagerates td.icu-mobile-bold {
    font-weight: bold;
  }

  .icu-table-mortgagerates td.icu-mobile-bold:before {
    font-weight: bold;
  }

}

/* SAVINGS RATE TABLES *****************************************************/


.icu-table-savingsrates {
    border-collapse: collapse;
    width: 100%;
    max-width: 700px;
}

.icu-table-savingsrates thead {
    border-top: 0.4rem;
    border-style: solid;
    border-color: #53A598;
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-radius: 8px 8px 0 0;
}

.icu-table-savingsrates td,
.icu-table-savingsrates th {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}


@media screen and (max-width: 640px) {

    /*
     * Completely exit normal table layout on mobile.
     */
    .icu-table-savingsrates,
    .icu-table-savingsrates tbody {
        display: block;
        width: 100%;
        max-width: 100%;
        border: none !important;
    }

    .icu-table-savingsrates {
        overflow: visible;
    }

    /*
     * Each row becomes its own card, so the desktop
     * table headings are no longer needed.
     */
    .icu-table-savingsrates thead {
        display: none;
    }

    /*
     * Two-column card:
     *
     * first cell = full-width title
     * second cell = APY
     * third cell = Rate
     */
    .icu-table-savingsrates tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;

        margin-bottom: 1rem;

        border: 1px solid #dddddd;
        border-top: 0.4rem solid #53A598;
        border-radius: 8px 8px 0 0;

        overflow: hidden;
        background: #ffffff;
    }

    .icu-table-savingsrates td {
        display: block;
        width: auto;

        padding: 0.5rem 0.75rem;
        border: none;

        background: #ffffff;
        text-align: center !important;
    }

    /*
     * Balance range / certificate term becomes
     * the full-width card heading.
     */
    .icu-table-savingsrates td:first-child {
        grid-column: 1 / -1;

        padding: 0.45rem 0.75rem;

        background: #eeeeee;
        border-bottom: 1px solid #dddddd;

        text-align: left !important;
        font-weight: 600;
    }

    /*
     * Divider between APY and Rate.
     */
    .icu-table-savingsrates td:nth-child(2) {
        border-right: 1px solid #dddddd;
    }

    /*
     * Column labels. Since these tables have a fixed,
     * predictable column order, we don't need data-label.
     */
    .icu-table-savingsrates td:nth-child(2)::before,
    .icu-table-savingsrates td:nth-child(3)::before {
        display: block;

        margin-bottom: 0.1rem;

        font-family: "Henderson Sans", Arial, sans-serif;
        font-size: 0.8rem;
        font-weight: 600;
        line-height: 1.3;

        color: #443c3b;
    }

    .icu-table-savingsrates td:nth-child(2)::before {
        content: "APY*";
    }

    .icu-table-savingsrates td:nth-child(3)::before {
        content: "Rate";
    }

    /*
     * Neutralize the padding from icu-numeric-data.
     */
    .icu-table-savingsrates .icu-numeric-data {
        padding-right: 0.75rem;
    }
}