@font-face {
  font-family: "bccFont";
  src: url(./bccFont.ttf) format("truetype"), url(/assets/bccFont.woff) format("woff"), url(/assets/bccFont.svg#bbcFont) format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
[class^=bcc-font_], [class*=" bcc-font_"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: "bccFont" !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.section-list {
	padding-bottom: 2rem;
}

.section-list .section-block {
  flex: 1 1 100%;
  padding: 0.25rem;
  box-sizing: border-box;
}

.nhslogo {
	height: 10rem;
}

.section-list .section-block .result-list {
  width: 100%;
}

@media (min-width: 900px), (orientation: landscape) {
  .section-list .section-block {
    flex: 1 1 calc(50% - 0.5rem);
  }
}

#postcode {
	text-transform:uppercase;
}

.address-lookup-block {
	/*padding: 2rem;*/
}

/*
.section-block {
	margin-bottom: 1rem;
}

.section-header {
	background: #eee; 
	padding: 1rem; 
	border-radius: 0.5rem; 
	cursor: pointer; 
	font-weight: bold;
}
*/

/* Neutralise interactive hints for non-interactive headings */

/* Hide confirm address button when the sectionlist is visible */
#AddrGCodeResults:has(~ #SectionList:not([hidden])) #btnConfirmAddress {
    display: none;
}


.section-header.accordion-button.accordion-button--static {
  cursor: default;
}
.section-header.accordion-button.accordion-button--static:hover {
  background: inherit; /* or the same as default accordion background */
}
.section-header.accordion-button.accordion-button--static:focus,
.section-header.accordion-button.accordion-button--static:focus-visible {
  outline: none;
  box-shadow: none;
}

@media only screen and (max-width: 900px) {
	.section-header.accordion-button.accordion-button--static {
		font-size: 20px;
		line-height: 22px;
	}
}
	

.limit-length {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  width: fit-content;
  white-space: nowrap;
}

.result-list {
  padding-bottom: 0 !important;
}

.featureContainer {
  
}

i {
  transition: transform 0.3s ease;
}

.section-block.open .toggle-icon {
	transform: rotate(180deg);
}

.back-button {
  margin-top: 0.5rem;
}

.result-list-ul {
  list-style: none;
  padding: 0;
  margin: 0;
}


.overlap-item {
  all: inherit;
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  width: max-content;
}

.nearest-item {
  all: inherit;
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.postcode-row { 
	display: flex; 
	align-items: flex-end; 
	gap: 0.5rem; 
	}
	
.postcode-row input { 
	flex: 1 1 auto; 
	}
	
.postcode-row button { 
	flex: 0 0 auto; 
	margin-bottom: 0.25rem; 
	}
	
#AddrGCodeResults .selected-address, #AddrGCodeResults p { 
	margin: 0.5rem 0; 
	text-align: center; 
	}
	
.result-list li::before { 
	content: none !important; 
	}

/*body { font-size: clamp(1rem, 1.5vw, 1.5rem) !important; }*/

.esri-widget__table tr td, .esri-widget__table tr th {
	font-size: clamp(0.95rem,1.5vw,1.3rem);
	border-top: 1px solid #CCCCCC
}

.esri-widget__table tr th {
	text-wrap-mode: nowrap;
}

table tr:last-child th {
	border-bottom: 1px solid #CCCCCC
}

.postcode-row {
  position: relative;
}

/*
.postcode-row input:invalid ~ button {
  pointer-events: none;
  opacity: 0.5;
}

.postcode-row input:valid ~ button {
  pointer-events: auto;
  opacity: 1;
}
*/

.field__message--error {
  color: #ea0000;
  font-size: 1rem;
  padding-top: 0.5rem;
  font-weight: 700;
  font-family: "Thesans-Bold", "Helvetica Neue", Arial, sans-serif;
}

.spinner {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
}

.inline-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.spinner-icon {
  width: 1.5rem;
  height: 1.5rem;
  border: 4px solid #ccc;
  border-top: 4px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  padding: 1rem !important;
  margin: 3rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent background */
  /* overflow: auto; */
}

.modal.is-open {
  display: block;
}

.modal > div {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.modal > div > div {
  background: white;
  padding: 2rem;
  /* border-radius: 8px;*/ /* Doesn't round corners when the overflow scrollbar comes on */
  max-width: 90vw;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

/* Mobile-first: stack label (TH) above value (TD) */
/* Mobile-first: stack TH above TD */
@media (max-width: 640px) {
  .esri-widget__table,
  .esri-widget__table tbody,
  .esri-widget__table tr {
    display: block;
    width: 100%;
  }

  .esri-widget__table tr {
    margin: 0;
    border: none;
  }

  .esri-widget__table th,
  .esri-widget__table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.75rem;
  }

  .esri-widget__table th {
    font-weight: bold;
    background-color: #f3f3f3; /* light grey for header */
    border-bottom: 1px solid #ddd;
  }

  .esri-widget__table td {
    background-color: #fff;
    border-bottom: 1px solid #eee;
  }

  /* Alternating row colors: use nth-child on TR */
  .esri-widget__table tr:nth-child(even) th {
    background-color: #f9f9f9;
  }

  .esri-widget__table tr:nth-child(even) td {
    background-color: #fefefe;
  }

  /* Hide THs where the TD is empty */
  .esri-widget__table tr:has(td:empty) th, .esri-widget__table tr:has(td:empty) td {
    display: none;
  }
}

.accordion-button > i {
  pointer-events: none;
}
