/*
====================================================================
Custom styles for Accessible Autocomplete - Country input
====================================================================
*/

.autocomplete__wrapper {
  position: relative;
  max-width: 100%;
}
.autocomplete__wrapper ul>li {
    margin-bottom: 0;
}
#countryContainer .autocomplete__wrapper {
    max-width: 41ex;
}

.autocomplete__hint,
.autocomplete__input {
  -webkit-appearance: none;
  border: 2px solid #0b0c0c;
  border-radius: 0; /* Safari 10 on iOS adds implicit border rounding. */
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  margin-bottom: 0; /* BUG: Safari 10 on macOS seems to add an implicit margin. */
  width: 100%;
}

.autocomplete__input {
  background-color: #ffffff;
  border: 2px solid #4c6272;
  position: relative;
  width: 100%;
  height: 34px;
}
.nhsuk-form-group--error .autocomplete__input, .autocomplete__input.nhsuk-input--error, .autocomplete__input.nhsuk-select--error {
    border: 4px solid #d5281b;
}

.autocomplete__hint {
  color: #b1b4b6;
  position: absolute;
}

.autocomplete__input--default {
  padding: 5px;
}
.autocomplete__input--focused {
  border: 2px solid #212b32;
  box-shadow: inset 0 0 0 2px;
  outline: 4px solid #ffeb3b;
  outline-offset: 0;
}

.autocomplete__input--show-all-values {
  padding: 5px 34px 5px 5px; /* Space for arrow. Other padding should match .autocomplete__input--default. */
  cursor: pointer;
}

.autocomplete__dropdown-arrow-down{
  z-index: -1;
  display: inline-block;
  position: absolute;
  right: 8px;
  width: 24px;
  height: 24px;
  top: 10px;
}

.autocomplete__menu {
  background-color: #fff;
  border: 2px solid #0B0C0C;
  border-top: 0;
  color: #0B0C0C;
  margin: 0;
  max-height: 342px;
  overflow-x: hidden;
  padding: 0;
}

.autocomplete__menu--visible {
  display: block;
}

.autocomplete__menu--hidden {
  display: none;
}

.autocomplete__menu--overlay {
  box-shadow: rgba(0, 0, 0, 0.256863) 0px 2px 6px;
  left: 0;
  position: absolute;
  top: 100%;
  z-index: 100;
}

.autocomplete__menu--inline {
  position: relative;
}

.autocomplete__option {
  border-bottom: solid #b1b4b6;
  border-width: 1px 0;
  cursor: pointer;
  display: block;
  position: relative;
  text-decoration: none;
}

.autocomplete__option > * {
  pointer-events: none;
}

.autocomplete__option:first-of-type {
  border-top-width: 0;
}

.autocomplete__option:last-of-type {
  border-bottom-width: 0;
}

.autocomplete__option--odd {
  background-color: #FAFAFA;
}

.autocomplete__option--focused,
.autocomplete__option:hover {
  background-color: #1d70b8;
  border-color: #1d70b8;
  color: white;
  outline: none;
}

.autocomplete__option--no-results {
  background-color: #FAFAFA;
  color: #646b6f;
  cursor: not-allowed;
}

.autocomplete__hint,
.autocomplete__input,
.autocomplete__option {
  font-size: 16px;
  line-height: 1.25;
}

.autocomplete__hint,
.autocomplete__option {
  padding: 6px;
}

.autocomplete__input:focus {
    border: 2px solid #212b32;
    box-shadow: inset 0 0 0 2px;
    outline: 4px solid #ffeb3b;
    outline-offset: 0;
    padding: 5px;
}

@media (min-width: 641px) {
  .autocomplete__hint,
  .autocomplete__input,
  .autocomplete__option {
    font-size: 19px;
    line-height: 1.31579;
  }
}

@media (min-width: 40.0625em) {
    #countryContainer .autocomplete__wrapper {
      max-width: 48.5ex;
    }
    .autocomplete__input {
        height: 40px;
    }
    .autocomplete__input:focus {
        border: 2px solid #212b32;
        box-shadow: inset 0 0 0 2px;
        outline: 4px solid #ffeb3b;
        outline-offset: 0;
        padding: 5px;
    }
}

/*
====================================================================
Custom styles for Phase Banner - Gov.uk
====================================================================
*/

.govuk-phase-banner {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #b1b4b6
}

.govuk-phase-banner__content {
    font-weight: 400;
    font-size: 14px;
    font-size: .875rem;
    line-height: 1.14286;
    color: #0b0c0c;
    display: table;
    margin: 0
}

@media print {
    .govuk-phase-banner__content {
        font-family: sans-serif
    }
}

@media (min-width: 40.0625em) {
    .govuk-phase-banner__content {
        font-size:16px;
        font-size: 1rem;
        line-height: 1.25
    }
}

@media print {
    .govuk-phase-banner__content {
        font-size: 14pt;
        line-height: 1.2
    }
}

@media print {
    .govuk-phase-banner__content {
        color: #000
    }
}

.govuk-phase-banner__content__tag {
    margin-right: 10px
}

.govuk-phase-banner__text {
    display: table-cell;
    vertical-align: baseline
}


/*
====================================================================
Custom styles for Phase Banner Tag - Gov.uk
====================================================================
*/

.govuk-tag {
    display: inline-block;
    outline: 2px solid transparent;
    outline-offset: -2px;
    color: #fff;
    background-color: #1d70b8;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    font-size: .875rem;
    line-height: 1;
    padding-top: 5px;
    padding-right: 8px;
    padding-bottom: 4px;
    padding-left: 8px;
}

@media (min-width: 40.0625em) {
    .govuk-tag {
        font-size: 16px;
        font-size: 1rem;
        line-height: 1;
    }
}

.govuk-phase-banner__content__tag {
    margin-right: 10px;
}


.nhsuk-panel--confirmation {
  margin-top: 0; }
  @media (min-width: 48.0625em) {
    .nhsuk-panel--confirmation {
      padding-bottom: 56px;
      padding-top: 56px; } }

.nhsuk-panel__title {
  margin-bottom: 16px;
  text-align: center; }
  @media (min-width: 40.0625em) {
    .nhsuk-panel__title {
      margin-bottom: 24px; } }

.nhsuk-panel__body {
  font-weight: 400;
  font-size: 20px;
  font-size: 1.25rem;
  line-height: 1.4;
  text-align: center;
}
@media (min-width: 40.0625em) {
    .nhsuk-panel__body {
      font-size: 24px;
      font-size: 1.5rem;
      line-height: 1.33333;
    }
}
@media print {
    .nhsuk-panel__body {
      font-size: 18pt;
      line-height: 1.15;
    }
}
.nhsuk-panel__body strong {
    font-weight: 600;
    font-size: 24px;
    font-size: 1.5rem;
    line-height: 1.33333;
}
@media (min-width: 40.0625em) {
    .nhsuk-panel__body strong {
        font-size: 32px;
        font-size: 2rem;
        line-height: 1.25;
    }
}
@media print {
    .nhsuk-panel__body strong {
        font-size: 24pt;
        line-height: 1.05;
    }
}

  .nhsbsa-u-margin-left-0 {
    margin: 0 0 8px 0;
  }


/*
====================================================================
Generic Custom Styles
====================================================================
*/

.visually-hidden,
.visuallyhidden {
	position: absolute;
	overflow: hidden;
	clip: rect(0 0 0 0);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
}


/*
======================================================================
Other customer styles for Review
======================================================================
*/

.example-icon-list p {
    display: inline-block;
    font-size: 16px;
    padding-left: 1em;
    vertical-align: middle;
    margin-bottom: 0;
}
.list--check, {
    list-style: none;
    padding-left: 32px;
}
.list--check li::before {
    background-image:
}
.standard {
    vertical-align: middle;
    padding: 0;
    counter-reset: standard-counter;
}
.standard>li::before {
    width: 10%;
}
.standard>li {
    list-style: none;
    display: block;
    border-top: 1px solid #bfc1c3;
    padding: 1em 0 0.5em 0;
    margin: 0;
    page-break-inside: avoid;
}
.updated-standard li .point {
    width: 67%;
}
.standard>li .point {
    padding-left: 3em
}
.standard>li .point {
    font-size: 18px;
    line-height: 1.2;
}
.circle-step {
    min-width: 36px;
    min-height: 38px;
    line-height: 36px;
}
.circle {
    display: inline-block;
    border-radius: 50%;
    background: #0b0c0c;
    color: #fff;
    font-size: 16px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    position: absolute;
    margin: 0em;
}
.number {
    display: inline-block;
    border-radius: 50%;
    /*background: #0b0c0c;*/
    /*color: #fff;*/
    font-size: 32px;
    /*font-family: Arial, sans-serif;*/
    font-weight: bold;
    text-align: center;
    position: absolute;
    margin: 0em;
}
.panel_side {
    display: block;
    padding-top: 15px;
    background-color: #DEE0E2;
}
.panel_side_inner {
    width: auto;
    margin-left: 15px;
    margin-right: 15px;
    padding-bottom: 5px;
}
.display_field {
    margin-bottom: 20px;
    display: block;
}
.display_field_value h3 {
    font-family: "nta", Arial, sans-serif;
    font-size: 19px;
    line-height: 1.31579;
    text-transform: none;
    font-weight: 700;
    margin-bottom: 5px;
}
.income-img {
    width: 283px;
}
@media(max-width:640px) {
    .income-img {
        width: 100%
    }
}

/* Card design size */
.nhsbsa-card-design .nhsuk-image {
    width: 100%;
    margin-top: 0;
}
.nhsbsa-add-btm-margin {
    margin-bottom: 30px;
}

/* File upload custom css */
.file-upload {
    font-family: "Frutiger W01", arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.25;
    color: #0b0c0c;
    margin-left: -5px;
    padding: 5px;
    white-space: break-spaces;
}
.file-upload::-webkit-file-upload-button {
    -webkit-appearance: button;
    color: inherit;
    font: inherit;
}
.file-upload:focus {
	outline: 3px solid #fd0;
    -webkit-box-shadow: inset 0 0 0 4px #0b0c0c;
    box-shadow: inset 0 0 0 4px #0b0c0c;
}

.file-upload::-webkit-outer-spin-button, .file-upload::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.file-upload--error {
	border: 4px solid #d5281b;
}

@media (min-width: 40.0625em){
    .file-upload {
        font-size: 19px;
        font-size: 1.1875rem;
        line-height: 1.31579;
    }
}

.nhsuk-u-display-inline-block {
    display: inline-block;
}

.nhsuk-error-summary--warning {
    border: 4px solid #212b32;
}

/* Fixes for th:field using checkboxes which injects a hidden input which breaks default styling */
.nhsuk-checkboxes__input + input[type="hidden"] + .nhsuk-checkboxes__label::before {
    background: #fff;
    border: 2px solid #4c6272;
    box-sizing: border-box;
    content: '';
    height: 40px;
    left: 0;
    position: absolute;
    top: 0;
    width: 40px;
}
.nhsuk-checkboxes__input + input[type="hidden"] + .nhsuk-checkboxes__label::after {
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    background: 0 0;
    border: solid;
    border-top-color: transparent;
    border-width: 0 0 4px 4px;
    content: '';
    height: 10px;
    left: 10px;
    opacity: 0;
    position: absolute;
    top: 13px;
    transform: rotate(-45deg);
    width: 22px;
}
.nhsuk-checkboxes__input:focus + input[type="hidden"] + .nhsuk-checkboxes__label::before {
    border: 4px solid #212b32;
    box-shadow: 0 0 0 4px #ffeb3b;
    outline: 4px solid transparent;
    outline-offset: 4px;
}
.nhsuk-checkboxes__input:checked + input[type="hidden"] + .nhsuk-checkboxes__label::after {
    opacity: 1;
}
.nhsuk-checkboxes__input:disabled,
.nhsuk-checkboxes__input:disabled + input[type="hidden"] + .nhsuk-checkboxes__label {
    cursor: default;
}
.nhsuk-checkboxes__input:disabled + input[type="hidden"] + .nhsuk-checkboxes__label {
    opacity: 0.5;
}

.nhsuk-u-text-align-right {
    text-align: right;
}
.nhsuk-u-text-align-centre {
    text-align: center;
}

/* ==========================================================================
   COMPONENTS / #LOADER
   ========================================================================== */

.nhsuk-loader {
  margin-bottom: 8px;
  margin-top: 8px;
  position: relative;
  text-align: center;
}

.nhsuk-loader__spinner {
  animation: spin 2s linear infinite;
  border: 16px solid #d8dde0;
  border-radius: 50%;
  border-top: 16px solid #005eb8;
  display: inline-block;
  height: 120px;
  margin: auto;
  width: 120px;
}

.nhsuk-loader--small {
  text-align: left;

  .nhsuk-loader__spinner {
    border-width: 4px;
    border-top-width: 4px;
    height: 24px;
    left: 0;
    position: absolute;
    top: 0;
    width: 24px;

    @media (min-width: 769px) {
      height: 28px;
      width: 28px;
    }
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.nhsuk-loader--white {
  .nhsuk-loader__spinner {
    border-color: rgba(#ffffff, .3);
    border-top-color: #ffffff;
  }
  .nhsuk-loader__text {
    color: #ffffff;
  }
}

/* Session timeout modal */
dialog h2, dialog .modal-dialog__inner__text {
    color: #212b32;
    font-family: Frutiger W01,Arial,Sans-serif;
}

/*
==========================================================================
   UTILITIES / #TEXT-ALIGN
==========================================================================
*/

@media (min-width: 48.0625em) {
    .nhsuk-u-text-align-right {
      text-align: right;
    }
}

/* Fix overflow of input text by user e.g. first name */
legend {
    word-break: break-word;
}
fieldset .nhsuk-select {
    width: 100%;
}
fieldset .nhsuk-select.nhsuk-input--width-20 {
    width: 41ex;
}

/* Frontend dependency fixes */
.nhsuk-header__transactional-service-name {
    padding-left: 16px;
}
@media (max-width: 450px) {
    .nhsuk-header__logo {
        max-width: none;
    }
}
@media (max-width: 48.0525em) {
    .nhsuk-header__logo {
        max-width: none;
    }
}
@media (max-width: 61.865em) {
    .nhsuk-header__transactional-service-name {
        padding-left: 0;
        padding-top: 8px;
        width: 100%;
    }
}
/* Fix for empty error on date caused by validation */
.nhsuk-date-input br:first-of-type {
    display: none;
}
/* Confirmation panel on CYA pages */
.nhsuk-panel-with-label__label {
    background-color: #005eb8;
    color: #fff;
    padding: 24px;
}
@media (min-width: 48.0625em) {
    .nhsuk-panel--confirmation {
        padding-bottom: 56px;
        padding-top: 56px;
    }
 }

.maintenance-banner.nhsuk-warning-callout {
    margin-top: 15px;
}

footer .nhsuk-footer-default__list-item:last-child {
    margin-right: 0;
}

.nhsuk-skip-link:focus {
  display: block;
  position: static;
}