/*-----------------------------------------
    Esec custom framework overwrites
    ---------------------------------------------- */

.u-header--centered .u-header-public .o-masthead-logo {
    float: none;
    margin-left: auto;
    margin-right: auto;
}

.u-text-input--suffix {
    font-weight: bold;
    margin: 1em 0 0 0.5em;
    display: inline-block;
}

.u-text-input--prefix {
    font-weight: bold;
    margin: 1em 0.5em 0 0;
    display: inline-block;
}

.m-card-notification--warning.u-notification--list-reset ul {
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: .9375em 1.25em;
    transition: background .35s;
    background: #fff;
    border-left: 0;
}

.input-validation-error {
    border-color: #bd2624;
}

#InternationalCallingCode_CountryCodeMin.a-dropdown__select option:last-of-type {
    color: #004fb6;
}

/*-----------------------------------------
    Loading spinner modal window
    ---------------------------------------------- */
.o-loader-overlay {
    background: #333;
    background: rgba(51,51,51,.75);
    bottom: 0;
    content: "";
    display: block;
    left: 0;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    -webkit-transition: opacity .5s;
    transition: opacity .5s;
    z-index: 5000;
}

.o-loader-overlay .a-loading-indicator-container {
    left: 50%;
    margin: -5.5em 0 0 -5.5em;
    position: absolute;
    top: 50%;
}


/*-----------------------------------------
    Initiatives logos
    ---------------------------------------------- */

header.LiveHappier .o-masthead-logo, header.AvivaCommunityFund .o-masthead-logo {
    background:none;
}

header.LiveHappier .o-masthead-logo a {
    margin-top:0.7em;
    width: 90px;
    height: 21px;
    background: url(../../images/initiatives-logo/liveHappierLogo.png);
    background-size: 100%;
}

header.AvivaCommunityFund .o-masthead-logo a {
    margin-top: 0.7em;
    width: 114px;
    height: 25px;
    background: url(../../images/initiatives-logo/AvivaCommunityFundLogo.png) no-repeat;
    background-size: 100%;
}


/*-----------------------------------------
    Initiatives login page
    ---------------------------------------------- */

.a-list-ordered--fullWidth > li {
    display: block;
}
.a-list-ordered--fullWidth > li:last-child {
    border-bottom: 2px solid #ccc;
    margin-top: 1.25em;
    padding: 0 0 1.25em 5em;
}


.u-hidden-if-empty:empty {
    display: none;
}


/*-----------------------------------------
   _PolicyNumberHelp show/hide formatting
    ---------------------------------------------- */
.m-data-group--compact {
  display: inline-block;
}

.m-data-group--compact .m-data-group-item {
    float: left;
    margin-bottom: 0;
}
.m-data-group--compact .m-data-group-item > p {
    margin-bottom: 0;
    margin-top: 5px;
}

.js-m-showhide .m-showhide__heading.a-heading:first-child, .js-m-showhide .m-showhide__heading:first-child {
    border-top: 0;
}


/*-----------------------------------------
  Hidden field for JS date of birth validation
    ---------------------------------------------- */

input.DateOfBirth {
    width: 1px;
    height: 1px;
    opacity: 0;
    position: absolute;
    top: -9999px;
    left: -9999px;
}

/*-----------------------------------------
  Fix for non-framework checkbox placement
    ---------------------------------------------- */
.a-checkbox--rememberme {
    margin-top: 15px;
}

.u-no--wrap {
    white-space:nowrap;
}

#mainError {
    min-height: 80vh;
}

/*-----------------------------------------
  Styling for Photo IDV Local screens
    ---------------------------------------------- */

img.unlock-policy--img-width {
    width: 20%;
}

#onfido_privacy table, #onfido_privacy th, #onfido_privacy.m-table tbody > tr > td {
    border: 1px solid #ccc;
}

#onfido-alpha-list.a-list-ordered--alpha > li:before {
    content: counter(item,lower-alpha);
}

.a-button--ios {
    background: url(/MyAccount/Content/images/uk/logout/app-store-en.png) no-repeat;
    width: 165px;
}

.a-button--android {
    background: url(/MyAccount/Content/images/uk/logout/google-play-en.png) no-repeat;
    width: 185px;
}

.a-button--ios, .a-button--android {
    background-color: transparent;
    background-size: 100%;
    border: 0;
    display: inline-block;
    height: 55px;
    padding: 0;
    margin: 0 .9em .9em 0;
}

.l-register-login .a-heading:first-child {
   margin-top: 0;
}

.l-register-login-section {
    padding-top: .875em;
}

/*-----------------------------------------
    QMH ThankYou logos
    ---------------------------------------------- */

.l-logo-container {
    margin-left: -50px;
    padding: 20px 0;
}

.l-logo-container__logo {
    display: inline-block;
    margin-left: 50px;
    position: relative;
}

.l-logo-container__logo:before {
    border-left: 1px solid #5c596d;
    bottom:0;
    content: "";
    display: block;
    left: -25px;
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
}

.l-logo-container > .l-logo-container__logo:first-child:before {
    border-left: none;
}

.l-logo-container > .l-logo-container__logo img {
    display: inline-block;
    vertical-align: middle;
}

/* FW v4 Show/Hide bugfix */

.js-m-showhide .m-showhide__heading .m-showhide__control, 
.t-accent-dark .t-accent-light .js-m-showhide .m-showhide__heading .m-showhide__control, 
.t-accent-light .js-m-showhide .m-showhide__heading .m-showhide__control, 
.t-card-accent-light .m-card .js-m-showhide .m-showhide__heading .m-showhide__control,
.t-accent-dark .js-m-showhide .m-showhide__heading .m-showhide__control, 
.t-card-accent-dark .m-card .js-m-showhide .m-showhide__heading .m-showhide__control {
    border-bottom-color: transparent;
}

/* FW Policy Edit SVG */

.o-masthead-support__link--your-policy {
    background-image: url('../../images/icons/edit.svg');
}

/* fix for logo centered but no skip-links visible on tab */

@media (min-width: 35em) {
    .u-header--centered .u-header-public .o-masthead__navigation-container {
        display: flex;
    }
}

/*-----------------------------------------
cookie preferences button with no js
---------------------------------------------- */

.js .m-footer__list li.u-hidden--no-js {
    display: inline-block;
}
.m-footer__list li.u-hidden--no-js {
    display: none;
}
/* tertiary button colour flicker fix */
.m-footer__list .a-button--tertiary.optanon-toggle-display {
    color: #ccc;
}

@media only screen and (max-width:64em) {
    .hidden-sm-md {
        display: none;
    }
}

.m-card-content__inner .importantMessage .information p {
    margin: 0;
}

/*-----------------------------------------
Explanatory text + explanatory text link edge case for reset password
---------------------------------------------- */

.text-and-link .m-form-row__explanatory-text {
    float: left;
}

.text-and-link .a-label{
    display: block;
}

/*-----------------------------------------
NextGen DOB input labels
---------------------------------------------- */

.nextGenDOB label.m-form-row-group-item__label {
    position: relative;
    left: auto;
    display: block;
    text-align: left;
}