@font-face {
    font-family: "Nationwide Founders";
    font-weight: normal;
    src: local("Nationwide Founders"), url("../font/nbs-direct/NationwideFounders-Regular.otf");
    font-display: swap;
}

@font-face {
    font-family: "PP Editorial New";
    font-weight: normal;
    src: local("PP Editorial New"), url("../font/nbs-direct/EditorialNew-Regular.otf");
    font-display: swap;
}

@font-face {
    font-family: "Nationwide Founders";
    font-weight: 500;
    src: local("Nationwide Founders Medium"), url("../font/nbs-direct/NationwideFounders-Medium.otf");
    font-display: swap;
}

@font-face {
    font-family: "Nationwide Founders";
    font-weight: 700;
    src: local("Nationwide Founders Bold"), url("../font/nbs-direct/NationwideFounders-Bold.otf");
    font-display: swap;
}

:root {
    --max-width-desktop: 1230px;
    --max-width-tablet: 708px;
    --content-width-desktop: 810px;
    --content-width-tablet: 708px;
    --content-primary-max-width: 660px;
    --mobile-side-padding: 20px;
    --pf-global--FontFamily--sans-serif: "Nationwide Founders", "Roboto", "Arial", sans-serif;
    --title-font-family: "PP Editorial New", serif;

    --font-size-title: 28px;
    --font-size-content: 24px;
    --line-height-content: 28px;
    --ice-paragraph-font-size: 20px;
    --ice-paragraph-font-size-small: 0.8em;

    --Primary-Blue: #011546;
    --Text-Body: #4E5262;
    --Text-Headline: #011546;
    --ice-material-primary: #003D6A;
    --ice-hyperlink: #0068F0;
    --ice-material-primary-hover: #0092be;
    --nbs-white: #FFFFFF;
    --Interaction-LinkHover: #0059FF;
    --Field-Hover: #80ACFF;
    --Black-20: #E6E6E8;
    --Black-100: #000000;
    --PlaqueBlue-10: #DAE4FF;
    --Body-Colour-Label: #4E5262;
    --Feedback-Error: #DA1E28;

    --Background-Error: #FDF4F4;
    --Background-Information: #E6E8EC;
    --Background-Confirmation: #E8F2EB;
    --Backgorund-Tip: #E5EEFF;
}

.link-styling {
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
}

a:hover,
.login-pf a:hover {
    color: var(--Interaction-LinkHover);
}

a:focus,
.login-pf a:focus {
    outline: 2px solid var(--Interaction-LinkHover);
}

a:focus,
.login-pf a:focus {
    border-radius: 4px;
    color: var(--Interaction-LinkHover);
}

h1,
#kc-page-title {
    font-size: 64px;
    line-height: 68px;
    color: var(--Primary-Blue);
    font-family: var(--title-font-family), serif;
    word-break: break-word;
    text-align: left;
}

h2 {
    font-weight: 500;
    font-size: 40px;
    line-height: 44px;
    color: var(--Primary-Blue);
}

h2 > img:first-child {
    margin-right: 20px;
}

.left-text-align {
    text-align: left;
}

.popup-timeout-header {
    margin: 0 0 32px;
}

p {
    margin: 0 0 12px;
}

ul {
    display: flex;
    flex-direction: column;
    list-style: disc inside;
}

.ul-success li {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 12px;
}

.ul-success li::before {
    content: url("../img/success.svg");
    margin-right: 8px;
}

.fw-400 {
    font-weight: 400;
}

.c-pb {
    color: var(--Primary-Blue);
    text-rendering: geometricPrecision;
    font-weight: 500;
}

.w-cwd {
    max-width: var(--content-width-desktop);
}

.w-281 {
    width: 281px;
}

.mw-pw {
    max-width: var(--content-primary-max-width);
}

* {
    text-rendering: optimizeLegibility;
}

.login-pf body {
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    -webkit-flex-direction: column;
    background: #ffffff;
    font-family: var(--pf-global--FontFamily--sans-serif), sans-serif;
    font-size: 20px;
    line-height: 28px;
    font-weight: 500;
    color: var(--Text-Body, #4E5262);
}

div.kc-logo-text {
    background-image: url("../resources/img/ice-logo.svg");
    background-size: auto;
    background-position: left;
    height: 50px;
    margin-left: 16px;
}

#_browser_detection_safe_content {
    min-height: 100%;
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    -webkit-flex-direction: column;
    flex: 1 0 auto;
    -webkit-flex: 1 0 auto;
}

.login-pf-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    flex: 1 0 100%;
    -webkit-flex: 1 0 100%;
}

.login-pf-page > main {
    flex-grow: 1;
    width: var(--max-width-desktop);
}

#kc-skip-link {
    position: absolute;
    left: 0;
    top: -100px;
    z-index: 1;
    width: 100%;
    border: 4px solid var(--Interaction-LinkHover);
    border-radius: 0;
    background: var(--PlaqueBlue-10);
    color: var(--Primary-Blue);
    text-align: center;
    padding: 22px 0 17px;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    outline: 0;
}

#kc-skip-link:focus {
    top: 0;
}

#kc-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--Primary-Blue);
    color: var(--nbs-white);
}

#kc-footer a {
}

#kc-footer a:hover {
    text-decoration: underline;
}

ol#kc-totp-settings {
    padding-left: 0;
}

#kc-totp-secret-qr-code {
    max-width: 225px;
    max-height: 225px;
}

#kc-totp-secret-key {
    border-radius: 8px;
    background: var(--Background-Information, #E6E8EC);
    padding: 16px;
    margin: 16px 0;
    max-width: fit-content;
}

.topt-supported-apps {
    margin-top: 8px;
}

.topt-list {
    margin-left: 24px;
}

.topt-list:not(:first-of-type) {
    margin-top: 24px;
}

.li-negative-margin {
    margin-left: -24px;
}

.nbs-footer {
    width: var(--max-width-desktop);
    display: flex;
    flex-direction: column;
    align-content: start;
    line-height: 24px;
}

.nbs-footer a,
.nbs-footer button {
    color: var(--nbs-white);
    text-align: start;
    font-weight: 500;
    text-rendering: geometricPrecision;
}

.nbs-footer a:hover,
.nbs-footer button:hover {
    color: var(--Interaction-LinkHover);
}

.nbs-footer > * {
    padding: 16px 0;
}

.nbs-footer > :not(:last-child) {
    border-bottom: 1px solid var(--nbs-white);
}

.nbs-footer-links {
    display: flex;
    gap: 32px;
}

.nbs-footer-links > * {
    flex: 0 1 auto;
    background: none;
    border: none;
    text-decoration: underline;
}

.nbs-password-tip-list-padding {
    margin-left: 12px;
}

.footer-text {
    font-size: 18px;
    font-weight: 400;
}

.nbs-lead-content-text-grey {
    color: var(--Text-Body);
    font-size: 28px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
    margin-bottom: 12px;
}

.chat-with-us-spacer {
    margin: 23px 0 42px
}

.new-line-padding {
    margin-top: 32px;
}

.body-text-colour {
    color: var(--Text-Body)
}

#kc-header, .ice-backup-header {
    width: 100%;
    padding: 0;
    height: 100px;
    background: var(--Primary-Blue);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#kc-header-wrapper {
    display: flex;
    flex-direction: column;
}

#kc-header-wrapper, .ice-backup-header-wrapper {
    width: var(--max-width-desktop);
    font-family: var(--pf-global--FontFamily--sans-serif), sans-serif;
    font-size: 36pt;
    color: #ffffff;
    padding: 40px 0;
}

#kc-header-wrapper > a,
.ice-backup-header-wrapper > a {
    display: flex;
}

#kc-header-img {
    height: 20px;
    width: 150px;
}

#kc-header-img-mobile {
    height: 40px;
    width: 40px;
    display: none;
}

.ice-backup-header-wrapper {
}

#kc-page-title {
    padding-bottom: 8px;
}

.login-pf-page .card-pf {
    align-items: start;
    max-width: initial;
    padding: 0;
    margin: 0;
}

.login-pf-page .card-pf p {
    color: var(--Text-Body, #4E5262);
}

.login-pf-page .login-pf-signup {
    text-align: initial;
}

.section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section > *, .section::after {
    max-width: 1000px;
    width: 100%;
}

.section-header {
    padding: 0 1em 1em;
}

.section-content {
    padding: 0 1em;
    overflow: hidden;
    transition: height 0.1s ease-in-out;
}

.pf-c-alert,
.info-box {
    display: flex;
    gap: 8px;
    margin: 32px 0 32px;
    padding: 32px;
    font-weight: 400;
    border-radius: 8px;
    border: none;
}

.pf-c-alert {
    width: 100%;
}

.info-box {
    background-color: var(--Backgorund-Tip);
    display: flex;
    gap: 8px;
    font-weight: 400;
    border-radius: 8px;
}

.text-headline-color {
    color: var(--Text-Headline);
}

.change-password-rules {
    margin-top: 16px;
}

.create-password-rules {
    margin-top: 32px;
}

.info-box::before {
    content: url("../img/tip.svg");
}

.pf-c-alert__title {
    display: flex;
    align-items: start;
    gap: 8px;
    color: var(--Text-Body);
    font-size: var(--ice-paragraph-font-size);
    font-weight: 400;
}

.pf-c-alert .pf-c-alert__title::before {
    display: block;
    height: 24px;
    width: 24px;
}

.pf-c-alert.pf-m-inline.pf-m-info {
    background-color: transparent;
    border-color: #808080;
    border-color: var(--pf-global--warning-color--100);
}

.pf-c-alert.pf-m-info .pf-c-alert__title {
    font-size: 14pt;
}

.pf-c-alert.pf-m-inline.pf-m-success {
    background-color: var(--Background-Information);
}

.pf-c-alert.pf-m-success .pf-c-alert__title::before {
    content: url("../img/information.svg");
}

.pf-c-alert.pf-m-inline.pf-m-confirmation {
    background-color: var(--Background-Confirmation);
}

.pf-c-alert.pf-m-confirmation .pf-c-alert__title::before {
    content: url("../img/success.svg");
}

.pf-c-alert.pf-m-inline.pf-m-warning {
    max-width: var(--content-primary-max-width);
    background-color: var(--Background-Information);
}

.pf-c-alert.pf-m-inline.pf-m-warning::before {
    content: url("../img/information.svg");
}

.pf-c-alert.pf-m-warning .pf-c-alert__title {
    font-size: 16px;
    font-size: var(--ice-paragraph-font-size);
    color: #343C3D;
    color: var(--ice-alert);
}

.pf-c-alert.pf-m-inline.pf-m-danger {
    background: var(--Background-Error);
}

.pf-c-alert.pf-m-danger .pf-c-alert__title::before {
    content: url("../img/error.svg");
}

#kc-error-message {
    text-align: center;
}

#kc-content-wrapper {
    margin-top: 26px;
}

#kc-info {
    margin: 0;
}

#kc-info-wrapper {
    margin-top: 32px;
    margin-bottom: 32px;
    padding: 0;
}

p.instruction {
    margin: 0;
    padding: 0;
    width: 100%;
    font-weight: normal;
}

.login-pf-page .login-pf-signup a {
    margin-left: 0;
}

fieldset {
    display: flex;
    flex-direction: column;
}

legend {
    float: left;
    border: 0;
    margin-bottom: 16px;
}


.form-group {
    margin-top: 32px;
    margin-bottom: 32px;
    max-width: 707px;
}

.verification-code {
    margin-top: 8px;
}

.ice-input-error {
    border-left: 4px solid var(--Feedback-Error, #DA1E28);
    padding-left: 32px;
}

.ice-text-label {
    padding-bottom: 12px;
    font-weight: 700;
    margin-bottom: 0;
}

.ice-text-input {
    font-weight: 400;
    padding: 6px 12px;
    border: 1px solid #80838E;
    border-radius: 4px;
}

.ice-input-error .ice-text-input {
    border: 1px solid var(--Feedback-Error, #DA1E28);
    background: var(--Background-Error, #FDF4F4);
}

.ice-text-input:hover:not(:focus) {
    box-shadow: 0px 0px 0px 4px var(--Field-Hover);
}

.ice-text-input:focus {
    box-shadow: 0px 0px 0px 2px #FFF, 0px 0px 0px 5px var(--Interaction-LinkHover, #0059FF);
}

.ice-text-input[readonly] {
    border: 1px solid #80838E;
    background-color: #F3F3F5;
    box-shadow: none;
}

.ice-input-error .ice-text-input:hover:not(:focus) {
    box-shadow: 0px 0px 0px 4px #E1898B;
}

.ice-input-error .ice-text-input:focus {
    box-shadow: 0px 0px 0px 2px #FFF, 0px 0px 0px 5px var(--Feedback-Error, #DA1E28);
}

.pf-m-error {
    display: none;
    margin-top: 8px;
    color: var(--Text-Headline, #011546);
}

.ice-input-error .pf-m-error {
    display: flex;
    font-weight: 400;
    color: var(--Text-Body, #4E5262);
}

.ice-input-error .pf-m-error b {
    color: var(--Text-Headline, #011546);
    font-weight: 700;
}

.pf-m-error::before {
    content: url("../img/error.svg");
    margin-right: 8px;
}

#kc-form-buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.page-bottom-button-panel {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 32px;
}

.pf-c-button {
    text-decoration: none;
    display: inline-flex;
    padding: 6px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 50px;
    font-family: var(--pf-global--FontFamily--sans-serif), sans-serif;
    font-size: 20px;
    line-height: 28px;
    outline: none;
    font-weight: 700;
    text-wrap: wrap;
}

.pf-c-button.pf-m-primary {
    background: var(--Primary-Blue);
}

.pf-c-button.pf-m-primary:not([disabled]):hover {
    box-shadow: 0px 0px 0px 4px var(--Field-Hover);
}

.pf-c-button.pf-m-primary:not([disabled]):focus {
    box-shadow: 0 0 0 2px #FFF, 0 0 0 5px var(--Primary-Blue);
}

.pf-c-button.pf-m-primary[disabled] {
    color: #ffffff;
    background-color: #c5c5c5;
}

.pf-c-button.kc-m-secondary {
    border: 2px solid var(--Primary-Blue, #011546);
    color: var(--Primary-Blue);
    background: #FFF;
}

.pf-c-button.kc-m-secondary:not([disabled]):hover {
    box-shadow: 0px 0px 0px 4px var(--Field-Hover);
}

.pf-c-button.kc-m-secondary:not([disabled]):focus {
    box-shadow: 0 0 0 2px #FFF, 0 0 0 5px var(--Primary-Blue);
}

.pf-c-button.kc-m-secondary[disabled] {
    color: #3a3a3a;
    border: 2px solid #c5c5c5;
}

.form-footer-links {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-top: 20px;
    gap: 16px;
}

.mfa-radio-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mfa-legend {
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    margin-bottom: 0;
}

.radio-buttons {
    width: 100%;
    max-width: var(--content-primary-max-width);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.radio-buttons > input[type="radio"] {
    appearance: none;
    min-width: 28px;
    min-height: 28px;
    background: white;
    border: 1px solid #80838E;
    border-radius: 50px;
    margin: 0 12px 0 0;
}

.radio-buttons > label {
    font-weight: normal;
    margin-right: 16px;
    margin-bottom: 0;
}

.radio-buttons > input[type="radio"]:hover {
    box-shadow: 0px 0px 0px 4px var(--Field-Hover);
}

.radio-buttons > input[type="radio"]:focus {
    box-shadow: 0px 0px 0px 2px #FFF, 0px 0px 0px 5px var(--Interaction-LinkHover);
    outline: none;
}

.radio-buttons > input[type="radio"]:checked {
    border: 10px solid var(--Interaction-LinkHover);
}

.radio-buttons > input[type="radio"].ice-input-error {
    border: 1px solid var(--Feedback-Error, #DA1E28);
    background: var(--Background-Error, #FDF4F4);
}

.radio-buttons > input[type="radio"].ice-input-error:hover {
    box-shadow: 0px 0px 0px 4px #E1898B;
}

.radio-buttons > input[type="radio"].ice-input-error:focus {
    box-shadow: 0px 0px 0px 2px #FFF, 0px 0px 0px 5px var(--Feedback-Error);
}

.radio-buttons > input[type="radio"].ice-input-error:checked {
    border: 10px solid var(--Feedback-Error, #DA1E28);
}

.date-selection {
    gap: 8px;
}

.date-selection > :nth-child(1),
.date-selection > :nth-child(2) {
    flex: 0 1 80px;
}

.date-selection > :nth-child(3) {
    flex: 0 1 105px;
}

.date-selection input {
    text-align: center;
}

#cookie-accept-popup {
    background-color: rgba(0, 0, 0, 0.3);
}

.ice-popup-card {
    border-radius: 16px;
}

.popup-title {
    font-weight: bold;
    font-size: 24pt;
    color: #38335E;
}

.popup-title::after {
    content: "";
    width: calc(100% + 40px);
    height: 2px;
    background-color: #808080;
}

.popup-button-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
}

.remove-margin {
    margin: 0;
}

.standard-font-size {
    font-size: 20px;
}

.cookie-disclaimer {
    max-width: 828px;
}

#cookie-table {
    width: 100%;
}

#cookie-accept-popup .button-row {
    flex-wrap: wrap;
}

#cookie-accept-popup .ice-button {
    margin: 20px;
    flex: 0 1 260px;
}

.ice-backup-content #kc-page-title {
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-color: #007cc3;
    border-bottom: 0;
}

.ice-backup-button {
    background-color: #38335E;
    color: white;
    padding: 6px 2em;
    font-family: var(--pf-global--FontFamily--sans-serif);
    text-transform: uppercase;
    font-weight: bold;
    margin: 8px;
    border-radius: 2px;
}

.ice-backup-button:hover {
    color: white;
}

.popup:focus {
    box-shadow: 0 0 0 2px #BBBBBB, 0 0 0 5px #00002D;
}

.modal-container {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 32px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.popup {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 8px 1px rgba(2, 8, 30, 0.50);
    max-width: var(--max-width-desktop);
    width: 100%;
    max-height: 100%;
}

.popupPadding {
    padding: 32px;
}

.popupTitle {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.popupTitle > h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--Text-Headline);
    font-size: var(--font-size-title);
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
    margin: 0;
}

.popupCloseButton > img {
    height: 24px;
    width: 24px;
    border: none;
    background: none;
}

.popupContent {
    border-top: 1px solid var(--Black-20);
    color: var(--Body-Colour-Label);
    font-size: var(--font-size-content);
    line-height: var(--line-height-content);
    overflow-y: auto;
}

.popupFooter {
    border-top: 1px solid var(--Black-20);
}

.alert-expired-action {
    display: flex;
    padding: 32px;
    align-items: flex-start;
    gap: 8px;
    border-radius: 8px;
    background: #FDEFE5;
    color: var(--Text-Body);
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
}

.alert-expired-action > span > b {
    color: var(--Text-Headline);
}

.alert-expired-action::before {
    display: block;
    height: 24px;
    width: 24px;
    content: url("../img/warning.svg");
}

.hidden {
    display: none;
}

.timeoutPopupContent {
    color: #191919;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
}

.in-page-contact-us-button:focus {
    border-radius: 4px;
    color: var(--Interaction-LinkHover);
    outline: 2px solid var(--Interaction-LinkHover);
}

.in-page-contact-us-button:hover {
    color: var(--Interaction-LinkHover);
}

/*override standard link stlying*/
.back-to-login-button:focus {
    outline: none !important;
    color: var(--Primary-Blue) !important;
    text-decoration: none !important;
    border-radius: 50px !important;
}

.back-to-login-button:hover {
    color: var(--Primary-Blue) !important;
}

.hide-on-desktop {
    display: none;
}

.vertical-button-panel {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-top: 32px;
    gap: 24px;
}

@media (max-width: 1230px) {
    .w-cwd {
        max-width: var(--content-width-tablet);
    }

    .login-pf-page > main {
        width: var(--max-width-tablet);
    }

    .nbs-footer {
        width: var(--max-width-tablet);
    }

    .nbs-footer > * {
        padding: 32px 0;
    }

    .nbs-footer-links {
        padding-top: 32px;
        padding-bottom: 32px;
        gap: 16px;
    }

    .footer-text {
        padding-top: 6px;
    }

    .nbs-footer-links > * {
        margin-right: 4px;
    }

    #kc-header-wrapper, .ice-backup-header-wrapper {
        width: var(--max-width-tablet);
    }

    .popup {
        max-width: var(--max-width-tablet);
    }

    .info-box {
        padding: 24px;
    }

    .vertical-button-panel {
        margin-top: 24px;
    }

    .vertical-button-panel > input {
        align-self: stretch;
    }

    .vertical-button-panel > a {
        align-self: center;
    }

    .pf-c-alert {
        padding: 16px;
    }
}

@media (max-width: 762px) {

    .hide-on-mobile {
        display: none;
    }

    .hide-on-desktop {
        display: initial;
    }

    h1,
    #kc-page-title {
        font-size: 48px;
        line-height: 52px;
    }

    .login-pf body {
        font-size: 18px;
        line-height: 24px;
    }

    #kc-header {
        height: 80px;
    }

    #kc-header-wrapper,
    .ice-backup-header-wrapper {
        width: 100%;
        padding: 20px 16px;
    }

    #kc-header-img {
        display: none;
    }

    #kc-header-img-mobile {
        display: block;
    }

    .login-pf-page > main {
        width: 100%;
    }

    .login-pf-page .card-pf {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    #kc-form-buttons {
        flex-direction: column;
        justify-content: start;
        align-items: start;
    }

    .page-bottom-button-panel {
        flex-direction: column;
        justify-content: start;
        margin-top: 24px;
    }

    .popup-button-container {
        flex-direction: column;

    }

    .nbs-footer {
        width: auto;
        padding-top: 16px;
        padding-left: var(--mobile-side-padding);
        padding-right: var(--mobile-side-padding);
    }

    .nbs-footer > * {
        padding: 16px 0;
    }

    .nbs-footer-links {
        flex-direction: column;
        gap: 16px;
    }

    .login-pf body {
        background-color: white;
    }

    .card-pf {
        box-shadow: none;
    }

    .modal-container {
        padding: 0;
    }

    .popup {
        border-radius: 0;
        box-shadow: none;
        height: 100%;
    }

    .info-box {
        padding: 16px;
        margin: 24px 0;
    }
}