@media print {
  img {
    max-width: none !important;
  }
}

/* modal styles, copied from bootstrap */
.fade {
  opacity: 0;
  -webkit-transition: opacity 0.15s linear;
  -o-transition: opacity 0.15s linear;
  transition: opacity 0.15s linear;
}
.fade.in {
  opacity: 1;
}

.modal-open {
  overflow: hidden;
}
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  outline: 0;
}
.modal.fade .modal-dialog {
  -webkit-transform: translate(0, -25%);
  -ms-transform: translate(0, -25%);
  -o-transform: translate(0, -25%);
  transform: translate(0, -25%);
  -webkit-transition: -webkit-transform 0.3s ease-out;
  -o-transition: -o-transform 0.3s ease-out;
  transition: -webkit-transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out, -o-transform 0.3s ease-out;
}
.modal.in .modal-dialog {
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  -o-transform: translate(0, 0);
  transform: translate(0, 0);
}
.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}
.modal-dialog {
  position: relative;
  width: auto;
  margin: 10px;
}

.modal-content {
  position: relative;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  outline: 0;
}
.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #000;
}
.modal-backdrop.fade {
  filter: alpha(opacity=0);
  opacity: 0;
}
.modal-backdrop.in {
  filter: alpha(opacity=50);
  opacity: 0.5;
}
.modal-header {
  padding: 15px;
  border-bottom: 1px solid #e5e5e5;
}
.modal-header .close {
  margin-top: -2px;
}
.modal-title {
  margin: 0;
  line-height: 1.42857143;
}
.modal-body {
  position: relative;
  padding: 15px;
}
.modal-footer {
  padding: 15px;
  text-align: right;
  border-top: 1px solid #e5e5e5;
}
.modal-footer .btn + .btn {
  margin-bottom: 0;
  margin-left: 5px;
}
.modal-footer .btn-group .btn + .btn {
  margin-left: -1px;
}
.modal-footer .btn-block + .btn-block {
  margin-left: 0;
}
.modal-scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll;
}

@media (min-width: 40.0625em) {
  .modal-dialog {
    width: 600px;
    margin: 30px auto;
  }
  .modal-content {
    -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  }
}
@media (min-width: 48.0625em) {
  .modal-lg {
    width: 900px;
  }
}

/* overriding the bootbox styles with a selector which uses greater specificity */
.modal-dialog .modal-header {
  border-bottom: none;
}

.modal-dialog .modal-footer {
  border-top: none;
}

.modal-dialog .modal-content {
  border-radius: 0;
}

/* getting content in separate tables to line up */
.slot-name {
  display: block;
  width: 92px;
}

@media (max-width: 48.0525em) {
  .slot-name {
    text-align: left;
  }
}

/* Bootstrap styles we want to keep */
@media print {
  .hidden-print {
    display: none !important;
  }
}

.hidden {
  display: none !important;
}

/* modal specific styles  */
.modal-close-button {
  margin-bottom: 2px;
}

.bootbox .modal-content {
  padding: 1rem;
}

.bootbox .modal-header {
  display: none;
}

/*IH custom styles */

.ih-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ih-grid-2col > * {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid #d8dde0;
}

.ih-grid-2col > :nth-child(odd) {
  font-weight: bold;
}

.ih-table-responsive tr {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.ih-table-responsive__heading-cell {
  grid-column: 1 / span 2;
}

.ih-table-responsive__heading {
  font-weight: 600;
}

@media (min-width: 48.0625em) {
  .ih-table-responsive tr {
    display: table-row;
  }

  .ih-table-responsive__heading-cell {
    width: 50%;
  }
}

/* NHS login button */
.nhslogin-button {
  font-weight: 400;
  font-size: 16px;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 28px;
  -webkit-appearance: none;
  appearance: none;
  background-color: #005eb8;
  border: 2px solid transparent;
  border-radius: 4px;
  box-shadow: 0 4px 0 #003087;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  margin-top: 0;
  padding: 12px 16px;
  position: relative;
  text-align: center;
  vertical-align: top;
  width: auto;
}
@media (min-width: 40.0625em) {
  .nhslogin-button {
    font-size: 19px;
    font-size: 1.1875rem;
    line-height: 1.47368;
  }
}
@media print {
  .nhslogin-button {
    font-size: 14pt;
    line-height: 1.15;
  }
}
@media (min-width: 40.0625em) {
  .nhslogin-button {
    margin-bottom: 36px;
  }
}
@media (max-width: 40.0525em) {
  .nhslogin-button {
    padding: 8px 16px;
  }
}
.nhslogin-button:link,
.nhslogin-button:visited,
.nhslogin-button:active,
.nhslogin-button:hover {
  color: #fff;
  text-decoration: none;
}
.nhslogin-button::-moz-focus-inner {
  border: 0;
  padding: 0;
}
.nhslogin-button:hover {
  background-color: #1e569b;
}
.nhslogin-button:focus {
  background: #ffeb3b;
  box-shadow: 0 4px 0 #003087;
  color: #003087;
  outline: none;
}
.nhslogin-button:active {
  background: #1e569b;
  box-shadow: none;
  color: #fff;
  top: 4px;
}
.nhslogin-button::before {
  background: transparent;
  bottom: -6px;
  content: "";
  display: block;
  left: -2px;
  position: absolute;
  right: -2px;
  top: -2px;
}
.nhslogin-button:active::before {
  top: -6px;
}
.nhslogin-button--reverse {
  background-color: #fff;
  box-shadow: 0 4px 0 #003087;
  color: #005eb8;
}
.nhslogin-button--reverse:hover {
  background-color: #f2f2f2;
  color: #005eb8;
}
.nhslogin-button--reverse:focus {
  background: #ffeb3b;
  box-shadow: 0 4px 0 #003087;
  color: #003087;
  outline: 4px solid transparent;
}
.nhslogin-button--reverse:active {
  background: #f2f2f2;
  box-shadow: none;
  color: #005eb8;
  top: 4px;
}
.nhslogin-button--reverse:link {
  color: #005eb8;
}
.nhslogin-button--reverse.nhsuk-button--disabled {
  background-color: #fff;
}
.nhslogin-button--reverse.nhsuk-button--disabled:focus {
  background-color: #fff;
}
.nhslogin-button--disabled,
.nhslogin-button[disabled="disabled"],
.nhslogin-button[disabled] {
  background-color: #005eb8;
  opacity: 0.5;
  pointer-events: none;
}
.nhslogin-button--disabled:hover,
.nhslogin-button[disabled="disabled"]:hover,
.nhslogin-button[disabled]:hover {
  background-color: #005eb8;
  cursor: default;
}
.nhslogin-button--disabled:focus,
.nhslogin-button[disabled="disabled"]:focus,
.nhslogin-button[disabled]:focus {
  background-color: #005eb8;
  outline: none;
}
.nhslogin-button--disabled:active,
.nhslogin-button[disabled="disabled"]:active,
.nhslogin-button[disabled]:active {
  box-shadow: 0 4px 0 #003087;
  top: 0;
}
.nhslogin-button--reverse[disabled="disabled"],
.nhslogin-button--reverse[disabled] {
  background-color: #fff;
  opacity: 0.5;
}
.nhslogin-button--reverse[disabled="disabled"]:hover,
.nhslogin-button--reverse[disabled]:hover {
  background-color: #fff;
  cursor: default;
}
.nhslogin-button--reverse[disabled="disabled"]:focus,
.nhslogin-button--reverse[disabled]:focus {
  outline: none;
}
.nhslogin-button--reverse[disabled="disabled"]:active,
.nhslogin-button--reverse[disabled]:active {
  box-shadow: 0 4px 0 #003087;
  top: 0;
}
.ie8 .nhslogin-button:focus {
  outline: 1px dotted #003087;
}

.nhsuk-button-link {
  color: -webkit-link;
  cursor: pointer;
  text-decoration: underline;
  background-color: transparent;
  border: none;
  color: #005eb8;
  font-weight: 700;
  font-size: 1rem;
  padding: 0;
}

/* utility classes, to show the elements with data-testids */
body.showTestId [data-testid] {
  outline: 1px solid red;
  background: yellow;
}

body.showTestId [class*="data-testid"] {
  outline: 1px solid blue;
  background: orange;
}

/* Copied from the NHS login pages */
.progress-spinner {
  position: relative;
  border-radius: 50%;
  background-color: #fff;
  text-align: center;
  margin: auto;
}

.progress-spinner--l {
  width: 180px;
  height: 180px;
}

.progress-spinner--s {
  width: 30px;
  height: 30px;
  margin: 0 20px 0 0;
  top: 6px;
  display: inline-block;
}

.progress-spinner:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  background-color: #fff;
  animation: spin 2s linear infinite;
}

.progress-spinner--l:after {
  border: 10px solid #f3f3f3;
  border-top: 10px solid #417505;
}

.progress-spinner--s:after {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #417505;
}

#spinner-status {
  position: relative;
  z-index: 10000;
  height: 100%;
  align-items: center;
  display: inline-flex;
  justify-content: center;
  font-size: 1.4em;
  font-weight: 400;
  color: #231f20;
}

#non-readable {
  position: relative;
  z-index: 10000;
  align-items: center;
  display: inline-flex;
  justify-content: center;
  font-size: 1.4em;
  font-weight: 400;
  color: #231f20;
}

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

.ih-bold {
  font-weight: 600;
}

.spinner-button {
  position: relative;
  -webkit-transition: width 5s ease;
  transition: width 5s ease;
}
.spinner-button:before {
  content: "";
  bottom: -6px;
  left: -2px;
  right: -2px;
  top: -2px;
  position: relative;
  display: inline-block;
  margin-right: 10px;
  margin-bottom: -9px;
  height: 25px;
  width: 25px;
  background: transparent
    url('data:image/svg+xml,<svg height="200" viewBox="0 0 200 200" width="200" xmlns="http://www.w3.org/2000/svg">%0A  <g fill="none" fill-rule="evenodd">%0A    <path%0A        d="m100 0v13.0000106c-.0149985-.0000068-.0299979-.0000106-.0449982-.0000106-48.0239214 0-86.9550018 38.9310804-86.9550018 86.9550018 0 48.0239212 38.9310804 86.9550022 86.9550018 86.9550022 48.0089212 0 86.9306812-38.906764 86.9549902-86.910004h13.090008c0 55.228475-44.771525 100-100 100s-100-44.771525-100-100 44.771525-100 100-100z"%0A        fill="%23e5e5e5"/>%0A    <path%0A        d="m0 100h13.0000106zm100 86.909993v13.090007zm100-86.909993h-13.090007c.000007-.0149985.000011-.0299979.000011-.0449982 0-48.0089211-38.906764-86.9306807-86.910004-86.9549904v-13.0000114c55.228475 0 100 44.771525 100 100z"%0A        fill="%23367c42"/>%0A  </g>%0A</svg>')
    no-repeat;
  background-size: 25px 25px;
  -webkit-animation-name: spin;
  animation-name: spin;
  -webkit-animation-duration: 0.75s;
  animation-duration: 0.75s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-transform-origin: 50% 50%;
  -ms-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
}

@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0);
  }
  to {
    -webkit-transform: rotate(1turn);
    transform: rotate(1turn);
  }
}

@media (max-width: 40.0525em) {
  .nhsuk-header__container {
    padding-bottom: 20px;
  }
}

@media (max-width: 450px) {
  .nhsuk-header__logo {
    max-width: 100%;
  }
}

@media (max-width: 48.0525em) {
  .nhsuk-header__logo {
    max-width: 100%;
  }
}

/* overrides */
.nhsuk-header__link .nhsuk-organisation-name {
  line-height: 1.5;
}

.msg-container {
  padding: 1rem;
  margin-bottom: 2em;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.gallery {
  position: relative;
}

.comms-filter-container {
  display: flex;
  gap: 1rem;
}

.ih-u-nowrap {
  white-space: nowrap;
}

.letterDownloadLink .nhsuk-button {
  margin-bottom: 0.5rem;
}

.results-image-spinner-container {
  z-index: 2;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.4);
  display: flex;
}

.results-image-spinner {
  background: transparent
    url('data:image/svg+xml,<svg height="200" viewBox="0 0 200 200" width="200" xmlns="http://www.w3.org/2000/svg">%0A  <g fill="none" fill-rule="evenodd">%0A    <path%0A        d="m100 0v13.0000106c-.0149985-.0000068-.0299979-.0000106-.0449982-.0000106-48.0239214 0-86.9550018 38.9310804-86.9550018 86.9550018 0 48.0239212 38.9310804 86.9550022 86.9550018 86.9550022 48.0089212 0 86.9306812-38.906764 86.9549902-86.910004h13.090008c0 55.228475-44.771525 100-100 100s-100-44.771525-100-100 44.771525-100 100-100z"%0A        fill="%23e5e5e5"/>%0A    <path%0A        d="m0 100h13.0000106zm100 86.909993v13.090007zm100-86.909993h-13.090007c.000007-.0149985.000011-.0299979.000011-.0449982 0-48.0089211-38.906764-86.9306807-86.910004-86.9549904v-13.0000114c55.228475 0 100 44.771525 100 100z"%0A        fill="%23367c42"/>%0A  </g>%0A</svg>')
    no-repeat;
  background-size: 48px 48px;
  animation-name: spin;
  animation-duration: 0.75s;
  animation-iteration-count: infinite;
  transform-origin: 50% 50%;
  width: 48px;
  height: 48px;
  margin: auto;
}

@media (max-width: 48.0525em) {
  .nhsuk-table-responsive .nhsuk-table__body .nhsuk-table__row td {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 2fr;
    justify-content: unset;
    text-align: left;
  }
}

.ih-overflow-wrap {
  overflow-wrap: anywhere;
}
