/* Custom CSS goes here */

/* Load Neue Frutiger World fonts */
@import url("https://use.typekit.net/vxl8bkl.css");

.theme-nhs:not(.admin) {
  color: #231f20;
  font-family:'neue-frutiger-world', Arial, sans-serif !important;
  font-size: 19px !important;
  line-height: 1.25em;
}

html {
  scroll-behavior: smooth;
}

/* Offset in-page anchor targets so they clear the fixed header/toolbar */
.anchor-target {
  scroll-margin-top: 140px;
}

@media (max-width: 991.98px) {
  .anchor-target {
    scroll-margin-top: 120px;
  }
}

h1, h2 {
  color: #1f299c;
}

.hidden {
  display: none;
}

.breadcrumb.breadcrumb-dot .breadcrumb-item:after {
  content: "/";
}

.nav-item > a.disabled {
  cursor: default;
  pointer-events: none;
  text-decoration: none;
  opacity: 0.4;
}

.table td.filter_validate {
  font-size: 0!important;
}

.table td.filter_validate:before {
  font-size: 1.5rem!important;
  ;
}

.dataTables_wrapper {
  position: relative;
}

.pass_strength[status=false] {
  color: #f17b7b!important;
}

.pass_strength[status=true] {
  color: #50cd89!important;
}

.pass_strength[status=false]::before {
  width: 20px;
  content: '!';
  height: 20px;
  background: #f17b7b;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 50%;
  color: #fff;
  text-align: center;
}

.pass_strength[status=true]::before {
  width: 20px;
  content: '✓';
  height: 20px;
  background: #50cd89;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 50%;
  color: #fff;
  text-align: center;
}

.pass_strength[value="0"] {
  visibility: hidden;
}

.drag-icon {
  border: 1px solid #ccc!important;
  padding: 20px!important;
  margin-left: 3.5px;
}

.clone-action-td a {
  max-width: 50px;
}

.wysiwyg-editor {
  display: none;
}


/* Workflow steps */

.step-wrapper .step-content img,
.start .step-wrapper img,
.patient #workflow .container img {
  max-width: 100%;
}


/* Quill editor frontend classes */

.ql-align-center {
  text-align: center;
}

.ql-align-right {
  text-align: right;
}

.fitVids-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.fitVids-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.text-truncate-2lines {
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
}

.truncate-cell-250px {
  max-width: 250px;
}

#preview_modal .modal-body img {
  max-width: 100%;
}

.overlay-wrapper.video::before {
  font-family: bootstrap-icons!important;
  content: "\f21c";
  color: white;
  font-size: 100px;
  top: 10px;
  position: relative;
}

.overlay-wrapper.video {
  background-color: lightgray;
}

/* 10-6-2022 */
body .gear-btn .menu-sub-dropdown.menu.show, body .gear-btn .menu-sub-dropdown.show[data-popper-placement], body .gear-btn .show.menu-dropdown>.menu-sub-dropdown{
  position: absolute!important;
  inset:unset!important;
  right:0!important;
  top:100%;
  min-width: 250px;
}

.gear-btn{
  position: relative;
}

.ql-editor p {
  margin-bottom: 20px;
}

/* Letter editor styling */
#letter_editor .ql-editor {
  min-height: 300px;
}

#letters .letter-row {
  cursor: pointer;
}

#sidebar_accordion .note-date {
  margin-bottom: 0;
}

#sidebar_accordion .note-title {
  font-weight: 700;
}

#sidebar_accordion .note-body {
  border-bottom: 1px solid #f5f8fa;
  padding-bottom: 10px;
}

#sidebar_accordion .note-container:hover {
  cursor: pointer;
  background-color: #f5f8fa;
}


/* Product Image styles */

#featured-img {
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

.product-img-thumbnail{
  object-fit: cover;
  cursor: pointer;
  opacity:0.5;
  border-radius: 10px;
  height: 110px;
}

.product-img-thumbnail:hover{
  opacity:1.0;
}

.product-thumbnail-active {
  opacity:1.0;
}

#slide-wrapper{
  display: flex;
  min-height:100px;
  align-items: center;
}

#slider{
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex: 1;
}

#slider::-webkit-scrollbar {
  display: none;
}

.thumbnail-item {
  flex-shrink: 0;
  height: 110px;
}

.arrow{
  width:30px;
  height:30px;
  cursor:pointer;
  transition: .3s;
  opacity: 0.7;
}

.arrow:hover{
  opacity: 1;
}

.arrow.disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

.product-category h1, .product-view h1 {
  font-size: 40pt;
}

.product-category .description, .product-view .short_description, .product-view .tab-content {
  font-size: 12pt;
  line-height: 30px;
}

.product-category .short_description img, .product-view .short_description img, .product-view .tab-content img {
  max-width: 100%;
}

.product-category .price {
  font-weight: 500;
  font-size: 14pt;
}

.product-view .price {
  font-weight: 500;
  font-size: 18pt;
}

.product-view .nav-tabs a {
  font-size: 16pt;
  font-weight: 600;
}

.product-view .availability {
  font-size: 12pt;
}

.product-category #products_promo img {
  max-width: 100%;
}

.ql-size-huge {
  font-size: 28pt;
}

.ql-size-large {
  font-size: 20pt;
}

.row.bg-blue {
  position: relative;
  z-index: 1;
}

.row.bg-blue:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX( -50%);
  width: 100vw;
  height: 100%;
  background: #f1f7fa;
  z-index: -1;
}

.row.bg-grey {
  position: relative;
  z-index: 1;
}

.row.bg-grey:before {
  content: "";
  position: absolute;
  left: 50%;
  top: auto;
  width: 100vw;
  height: 100%;
  background-color: #f0f0f0;
  z-index: -1;
  transform: translateX(-50%);
}
.truncate-line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* mobile menu */
.mobile_menu{
  font-size: 30px;
  color: black;
  cursor: pointer;
  display: none;
}

/* Branding updates - Jan 2023 */
body.patient .content a {
  color: #1f299c!important;
}

body.patient .btn.btn-primary {
  background-color: black !important;
  color: white !important;
}

body.patient .btn.btn-primary:hover:not(.btn-active),
body.patient .btn.btn-primary:focus:not(.btn-active),
body.patient .form-check.form-check-solid .form-check-input:checked {
  background-color: black !important;
}

body.patient .btn.btn-light-primary {
  background-color: #edfffc !important;
}

body.patient .btn.btn-light-primary:hover:not(.btn-active) {
  background-color: #ffffff !important;
}

body.patient .menu-state-primary .menu-item .menu-link.active .menu-title,
body.patient .menu-state-primary .menu-item .menu-link:hover:not(.disabled):not(.active) .menu-icon i,
body.patient .menu-state-primary .menu-item .menu-link:hover:not(.disabled):not(.active) .menu-title,
body.patient .menu-state-primary .menu-item.here>.menu-link .menu-title,
body.patient .menu-state-primary .menu-item.show>.menu-link .menu-title {
  color: #3d59ff;
}
/* End of branding updates - Jan 2023 */


/* responsive */

@media( max-width: 991px ) {
  .mobile_menu{
    display: block;
  }
  .primary-menu ul{
    display: block;
  }
  .main-bar ul li:last-of-type a {
    margin-left: 0;
  }

  .branding{
    position: relative;
    z-index: 99;
  }
  .primary_menu{
    transform: translateX(-110%);
    transition: 0.35s;
    position: fixed;
    height: 100vh;
    top: 130px;
    left: 0;
    display: block;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 9;
  }
  .primary_menu div{
    margin: 2.5rem 0;
    font-size: 15px;
  }
  .menu-active .primary_menu{
    transform: translateX(0);
  }
  .menu-active body, html.menu-active{
    overflow: hidden;
  }
}

.hyphen-if-empty:empty:before {
  content: "-";
}

.blink-bg {
  color: #fff;
  padding: 10px;
  display: inline-block;
  border-radius: 5px;
  animation: blinkingBackground 1s infinite;
  animation-iteration-count: 1;
}

@keyframes blinkingBackground {
  0%		{ background-color: #f5f8fa;}
  50%		{ background-color: #E0E2E2;}
  100%  { background-color: #f5f8fa;}
}

.no-flex {
  flex: unset !important;
}

body[data-kt-sticky-header="on"] #kt_header .powered_by {
  display: none; /* hide 'powered by' strapline when navigation is sticky */
}

#kt_content {
  max-width: calc(100% - 50px);
}

.patient.category .product-category .description img {
  max-width: 100%;
}

/*------------------*/

.menu-state-primary .menu-item-wrapper{position:relative;display:flex;}
.menu-state-primary .menu-item-wrapper.menu-link{flex:unset;} 

@media (max-width:767px) {
  .menu-state-primary .menu-item-wrapper.menu-link{white-space:nowrap;flex:unset;margin:0;}   
  .primary_menu .menu-item {margin:1rem 0;}
  .menu-item .menu-item-wrapper .menu-arrow{
      right: 0;
      top:0;
      flex-grow:1;
      height: 40px;
      display:flex;
      justify-content: flex-end;
      align-items: center;
  }
  .menu-state-primary .menu-item .menu-link.active::before {
      content: "";
      background: inherit;
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      z-index: -1;
  }
  .primary_menu .menu-sub{
    margin:0.5rem 0;
  }
  .primary_menu .menu-sub div{
    margin:0;
  }
  .menu-state-primary .menu-item .menu-link .menu-arrow:after{
      width:14px;
      height:14px;
  }
}

/* Quill styling resets */
.ql-editor h1, .ql-editor h2 {
  margin-bottom: 20px;
  color: inherit;
}

.tab-content > .tab-pane ul {
  list-style-position: inside;
}

.quill_img_fill_available img {
  max-width: -webkit-fill-available;
  object-fit: contain;
}

/* Contact Form Section */
.contact-form-section {
  padding: 40px 0;
}

body.partner.patient .contact-form-section .contact-form-card h2 {
  color: white !important; /* force text to be white */
}

.contact-form-card {
  background-color: #1b2459;
  border-radius: 10px;
  color: #ffffff;
}

.contact-form-card h2,
.contact-form-card h3,
.contact-form-card h4 {
  color: #ffffff;
  font-weight: 500;
  font-size: 28px;
}

.contact-form-card p {
  font-size: 19px;
}

.contact-form-card .contact-form-subtitle {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.contact-form-card .form-label {
  color: #ffffff;
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 6px;
}

.contact-form-card .form-control {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0px;
  padding: 10px 14px;
  font-size: 15px;
  color: #1b2459;
}

.contact-form-card .form-control:focus {
  background-color: #ffffff;
  border-color: #00e4c6;
  box-shadow: 0 0 0 0.2rem rgba(0, 228, 198, 0.25);
  color: #1b2459;
}

.contact-form-card .form-control::placeholder {
  color: #9ca3af;
}

.contact-form-submit-btn {
  background-color: #00e4c6;
  color: #1b2459;
  font-weight: 700;
  padding: 10px 40px;
  border-radius: 3px !important;
  border: none;
  font-size: 15px;
  transition: background-color 0.2s ease;
}

.contact-form-submit-btn:hover {
  background-color: #00c7b2;
  color: #1b2459;
}

.contact-form-submit-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 228, 198, 0.4);
}

@media (max-width: 767px) {
  .contact-form-card {
    padding: 24px 20px;
    border-radius: 12px;
  }
}

.table-rows-cursor-pointer tr,
.cursor-pointer {
  cursor: pointer;
}

.max-height-textarea-code {
  max-height: 200px;
}

.cms_page p {
  margin-bottom: 16px;
}

.header-return-back-link a{
  white-space: nowrap;
}

.header-return-back-link a:after{
  content:'\F231';
  font-family: bootstrap-icons!important;
  font-style: normal;
  font-weight: 400!important;
  vertical-align: middle;
}

.header.masthead {
  height: 600px;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.usp-icons {
  font-size: 19px;
  color: white;
  font-weight: 500;
}

.usp-icons-blue {
  font-size: 19px;
  color: #3d59ff;
  font-weight: 500;
}

.header.masthead-with-icons {
  height: 600px;
  
  /* The gradient stays in the CSS, the image comes from the HTML variable */
  background-image: 
    linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%), 
    var(--bg-image);
    
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


@media (min-width: 992px) {
  .header {
    z-index: 3 !important;
  }
}

@media (max-width:992px){
  .header-return-back-link{
    right:15px;
  }
}

.masthead-header-content {
  background-color: white;
  min-height: 300px;
  border-radius: 14px;
  padding: 50px;
  max-width: 770px;
}

.masthead-header-content .strapline {
  color: #3d59ff;
  font-size: 24px;
  font-weight: 500;
}

.masthead-header-content h1 {
  color: #16205b;
  font-size: 50px;
}

/* Container styling: Expands to 100% of parent width */
.masthead-search {
  background-color: #1a2258;
  border-radius: 70px;
  width: 100%;
  position: relative;
  top: -60px;
  z-index: 100;
}

.masthead-search h3 {
  font-size: 32px;
  font-weight: 600;
}

.masthead-search .search-input {
  border-radius: 0;
  padding: 0.6rem 1rem;
  font-size: 19px;
}

.masthead-search .search-input:focus {
  box-shadow: none;
  border: 2px solid #00d2b4;
}

.masthead-search .search-btn {
  background-color: #00d2b4;
  border-radius: 4px;
  border: none;
  padding: 0.6rem 1rem;
  transition: background-color 0.2s;
  font-size: 19px;
}

.masthead-search .search-btn:hover {
  background-color: #00b399;
  color: #1a2258 !important;
}

@media (max-width:767px){
  .masthead-search {
    border-radius: 10px;
  }

  .masthead-header-content .strapline {
    font-size: 19px;
    line-height: 24px !important;
  }

  .masthead-header-content h1 {
    font-size: 28px;
  }

  .masthead-header-content {
    min-height: initial;
    padding: 20px;
  }
}

.pdf-preview {
  border: 1px solid #eff2f5;
  border-radius: 5px;
}

.control-button-on i {
  opacity: 1.0;
}

.control-button-off i {
  opacity: 0.3;
}

.dropzone.disabled {
  cursor: default;
  pointer-events: none;
  text-decoration: none;
  opacity: 0.4;
}

.img-hidden {
  opacity: 0.2;
  filter: grayscale(100%);
}

/* BOTTOM BAR */

.bottom-bar {
  position: sticky;
  position: fixed;
  width: 100%;
  bottom: -1px;
  left:0;
  z-index: 2;
  box-shadow: 0 00px 30px 0 rgba(82,63,105,.08);
  background-color: #fff;
}

.bottom-bar .price {
  line-height: initial; /* reset line height */
}

/* Hidden state for bottom bar */
.bottom-bar.hidden {
  display: none !important;
}

.bottom-bar .btn-primary:visited,
.bottom-bar .btn-primary:focus,
.bottom-bar .btn-primary:active,
.bottom-bar .btn.btn-primary:active:not(.btn-active),
.bottom-bar .btn.btn-primary:focus:not(.btn-active){
  background-color: #08548c !important;
}

body.product-view .footer{
  margin-bottom: 84px;
}

body.product-view .scrolltop {
  bottom: 22px !important;
}

@media (max-width:767px){
  body.product-view .footer{
    margin-bottom: 72px;
  }
}

@media (min-width:768px){
  .bottom-bar .btn{
    min-width: 400px !important;
  }
}

@media (max-width: 991.98px){
  body.product-view .scrolltop {
      bottom: 70px;
  }
}

video.cms-video {
  width: -moz-available;          /* WebKit-based browsers will ignore this. */
  width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
  width: fill-available;
}

/*
.cms-content img {
  max-width: -webkit-fill-available;
  max-width: -moz-available;
  max-width: fill-available;
  object-fit: scale-down;
}
*/

.cms-content img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain; /* or just remove object-fit entirely */
}

.cms-content h2 {
  margin-bottom: 20px;
}

.pointer {
  cursor: pointer;
}

.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover {
  opacity: 0.4;
}

.disabled-select {
  opacity: 0.4 !important;
}

/* USP Bar styling */
.usp-bar {
  background-color: #ededed;
  user-select: none;
}

.usp-bar .icon > i {
  font-size: 20px;
  color: black;
}

.usp-bar .text {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.5px;
  display: inline-block;
  vertical-align: top;
}
/* End USP Bar styling */

/* Styling updates June 2024 */
.btn {
  border-radius: 30px;
}

.menu-title {
  font-weight: 600;
}

#myaccount.btn{
  border-radius: 8px;
  border: 1px solid #e5e5ed;
  font-size: 13px;
  font-weight: 600;
  background-color: #fcfcfd;
}

.myaccount-menu-sub {
  top: -25px !important;
}

.myaccount-menu-sub .menu-item a{
  color: #5e6278 !important;
  font-size: 13px;
  font-weight: 600;
}

.myaccount-menu-sub.menu-sub-dropdown {
  background-color: #fcfcfd;
  box-shadow: initial;
  border-bottom: 1px solid #e5e5ed;
  border-left: 1px solid #e5e5ed;
  border-right: 1px solid #e5e5ed;
  border-radius: 0 0 8px 8px;
}

@media (max-width:767px){
  #myaccount.btn {
    width: 125px;
  }
  
  .myaccount-menu-sub {
    width: 125px;
  }
}

@media (min-width:768px){
  #myaccount.btn {
    width: 150px;
  }
  
  .myaccount-menu-sub {
    width: 150px;
  }
}

.workflow-timeline {
  text-align: center;
}

.workflow-timeline .item {
  user-select: none;
}

.workflow-timeline > div:first-child:before {
  content: "";
  background-color: red;
}

.workflow-timeline .circle {
  display: inline-block;
  border-radius: 50%;
  border: 3px solid #b2b2b2;
  background-color: white;
  font-size: 20px;
  color: #b2b2b2;
  width: 42px;
  line-height: 35px;
  font-weight: 600;
}

.workflow-timeline .current > .circle {
  background-color: #363636;
  border-color: #363636;
  color: white;
}

.workflow-timeline .circle span {
  display: inline-block;
  margin-left: 8px;
  margin-right: 8px;
}

.workflow-timeline .title {
  font-weight: 600;
}

.workflow-timeline .step-separator:before {
  content: "/";
  font-size: 24px;
  font-weight: 500;
  color: #b2b2b2;
  position: relative;
  top: -8px;
  background-color: white;
  width: 24px;
  display: inline-block;
}

.workflow-timeline .col.item {
  position: relative;
  z-index: 1;
}
.workflow-timeline .col.item:not(:last-child):before {
  content: '';
  position: absolute;
  border-top: dotted 4px #b2b2b2;
  width: 70%;
  z-index: -100;
  top: 20px;
  left: 50%;
}
.workflow-timeline .col.item:last-child:before {
  content: '';
  position: absolute;
  border-top: dotted 4px #b2b2b2;
  width: 70%;
  z-index: -100;
  top: 20px;
  right: 50%;
}
.workflow-timeline .circle {
  outline: 10px solid #fff;
}

.workflow-timeline.no-separator .col.item:not(:last-child):before {
  width: 100%;
}

.workflow-timeline.no-separator .col.item:last-child:before {
  display: none;
}

.workflow-timeline .step-separator {
  height: 100%;
}
.workflow-timeline .step-separator::before {
  width: 26px;
  z-index: 2;
  top: 5px;
}

.workflow-timeline .title-container h1 {
  color: black;
  font-size: xx-large;
}

#workflow .border-dark {
  border: 1px solid #b2b2b2 !important;
}

#workflow h2,
#order-summary h2 {
  font-weight: 500;
  color: #5d6770 !important;
}

#order-summary img.product-image {
  max-width: 100px !important;
}

#order-summary a,
#workflow-wrapper label.form-check-label a {
  text-decoration: underline;
  color: black !important;
}

#order-summary .accordion.accordion-icon-toggle .accordion-icon {
  transform: none;
  transition: none;
}

#order-summary .accordion.accordion-icon-toggle .accordion-icon i {
  color: #a1a5b7;
}

#order-summary .accordion .accordion-icon {
  position: relative;
  top: 3px;
}

#order-summary .accordion [aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
  transition: none;
  margin-left: 10px;
  position: relative;
  top: -1px;
}

#order-summary .floating-total {
  line-height: 24px;
}

#order-summary .sticky-top {
  top: 130px;
}

#order-summary {
  z-index: 2;
}

#workflow-wrapper h1 {
  font-size: 2rem !important;
  font-weight: 500;
  color: #5d6770 !important;
}

@media (min-width:768px){
  .no-pointer-events-md {
    pointer-events: none
  }
}

.blurred {
  opacity: 0.5 !important;
}

.input-disabled {
  pointer-events: none;
}

.cursor-pointer {
  cursor:pointer;
}
/* End Styling updates June 2024 */

#topbar-wrapper {
  background-color: #16205b;
}

#topbar-wrapper img.logo-upper {
  max-height: 32px;
  margin-top: 28px;
  margin-bottom: 28px;
}

#topbar-wrapper a.login-upper {
  color: white !important;
  font-weight: 600;
  font-size: 19px !important;
  text-decoration: underline;
  text-underline-offset: 6px; /* Push the underline lower */
}

#topbar-wrapper a.login-upper > i {
  color: white !important;
  margin-left: 10px;
  font-weight: 600;
  font-size: 24px !important;
  position: relative;
  top: 2px;
}

#topbar-wrapper .topbar .header-return-back-link > a,
#topbar-wrapper .topbar .topbar-links a.topbar-link,
#topbar-wrapper .topbar {
  color: white !important;
}

#topbar-wrapper .topbar-links {
  padding-right: 10px;
}

#topbar-wrapper .topbar-links.no-return-link a.topbar-link:last-child {
  padding-right: 0;
  border-right: none;
}

#topbar-wrapper .topbar-links.no-return-link a.topbar-link:first-child {
  padding-left: 0;
}

#topbar-wrapper .topbar-links a.topbar-link {
  border-right: 1px solid white;
  padding: 0 10px;
  font-size: 13px;
}

#topbar-wrapper a.topbar-link-secondary {
  text-decoration: underline;
  text-underline-offset: 6px; /* Push the underline lower */
}

#topbar-wrapper .topbar-right {
  position: relative;
  top: -4px;
}

/* =========================================
   Top Level Navigation Links 
========================================= */

nav.navbar ul .nav-link {
  color: #16205b !important;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-weight: 900;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  transition: color 0.2s ease-in-out;
}

@media (min-width: 992px) {
  /* Keep uniform 18px padding on ALL links */
  nav.navbar ul .nav-link {
    padding-left: 18px !important;
    padding-right: 18px !important;
    padding-bottom: 12px !important;
  }
}

nav.navbar ul .nav-link:hover,
nav.navbar ul .nav-link:focus {
  color: #3d59ff !important;
}

nav.navbar .dropdown-toggle::after {
  display: none !important;
}

/* =========================================
   Desktop-Only Active Tab & Dropdown Box
========================================= */

@media (min-width: 992px) {

    nav.navbar.header-navbar {
        height: 140px;
    }
    
    /* 
     * NEW: Shift the last menu item to the right by exactly 18px (the padding width).
     * This perfectly aligns the text with your right content margin, while allowing 
     * the white background tab to safely extend past the text without shifting the layout! 
     */
    nav.navbar .navbar-nav .nav-item:last-child {
        margin-right: -18px;
    }

    nav.navbar .dropdown.show > .nav-link {
        background-color: #ffffff;
        color: #3d59ff !important; 
        text-decoration: none !important; 
        border-color: rgba(0,0,0,0.08); 
        border-bottom-color: #ffffff; 
        z-index: 1005; 
        position: relative;
    }

    nav.navbar .dropdown-menu {
        margin-top: -1px !important; 
        border-radius: 0 8px 8px 8px !important; 
        border: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 4px 20px rgba(0,0,0,0.05); 
        padding: 15px 0;
        min-width: 320px;
    }

    /* Keep the last dropdown menu pinned to the right edge expanding left */
    nav.navbar .navbar-nav .nav-item:last-child .dropdown-menu {
        right: 0;
        left: auto;
        border-radius: 8px 0 8px 8px !important; /* Flat corner on top-right to match the tab */
    }
}


/* =========================================
   Dropdown Menu Links (Inner Items)
========================================= */

nav.navbar .dropdown-menu .dropdown-item {
  text-decoration: none !important;
  background-color: transparent !important;
  padding-left: 21px !important;
  padding-right: 21px !important;
  transition: color 0.2s ease-in-out;
  color: #16205b !important;
}

nav.navbar .dropdown-menu .dropdown-item:hover,
nav.navbar .dropdown-menu .dropdown-item:focus {
  color: #3d59ff !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
  background-color: transparent !important;
}

/* =========================================
   Mobile Menu Spacing Fixes (Screens under 992px)
========================================= */

@media (max-width: 991px) {
    /* Override the theme's large gap class so items stack tightly */
    nav.navbar .navbar-nav {
        gap: 10px !important; 
    }

    /* Reduce vertical padding on the links themselves to keep it compact */
    nav.navbar ul .nav-link {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        border: none; /* Removes the transparent border setup from desktop */
    }

    /* Remove the negative margin we added for the last item on desktop */
    nav.navbar .navbar-nav .nav-item:last-child {
        margin-right: 0;
    }
    
    /* Ensure the dropdown menu on mobile blends nicely without huge gaps */
    nav.navbar .dropdown-menu {
        border: none;
        padding-top: 0;
        padding-bottom: 15px;
        margin-top: 0;
        box-shadow: none !important; /* Removes shadow for a cleaner native mobile feel */
    }
}




.footer-upper {
  background-color: #f0f4f5;
  font-size: 21px;
  font-weight: 600;
}

.footer-upper a {
  color: #16205b !important;
  text-decoration: underline;
  text-underline-offset: 6px; /* Push the underline lower */
}

.footer-upper i {
  color: #16205b;
  font-size: 28px;
  margin-left: 10px;
  position: relative;
  top: 2px;
}

.footer-upper .upper-row {
  margin: 50px 0;
}

.footer-upper img.footer-upper-logo {
  max-height: 30px;
}

.footer-upper .strapline {
  color: #3d59ff;
  margin-top: 16px;
}

.footer-lower {
  padding: 20px 0;
  font-weight: 500;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #16205b;
}

.user-identity {
	display: inline-block;
}

.user-identity .group-name {
	display: block;
	font-size: xx-small;
	text-align: left;
}

.use_default_container {
	margin-top: 10px;
}

.use_default_container input[type=checkbox] {
	margin-right: 5px;
}

.hidden-on-load {
  visibility:hidden;
}

.card_title_use_default_container {
	font-size: 13px !important;
}

.card_title_use_default_container input[type=checkbox] {
	margin-right: 5px;
}

#ryft-pay-form .divider.form-control, #ryft-pay-form .ryft-divider {
	border: none;
	border-bottom: none !important;
}

.tooltip-wide .tooltip-inner {
  max-width: 350px;
  white-space: normal;
}

/* The vendor bundle caps the SweetAlert modal body at 200px, which clips the resend reward modal */
.swal2-container .swal2-popup.swal-reward-resend .swal2-html-container {
  max-height: 60vh;
}

.text-dark {
  color: #16205b !important;
}

.search-results .group_title {
  font-size: 32px;
  color: #3d59ff !important;
  text-decoration: underline !important;
  text-underline-offset: 7px; /* Push the underline lower */
  text-decoration-thickness: 2px !important; 
  font-weight: 900 !important;
}

.search-results .group_title:hover {
  text-decoration: none !important;
}

.search-results .address-icon img, .search-results .phone-icon img {
  max-height: 30px;
}

.homepage-intro {
  color: #16205b;
  font-size: 19px;
}

.homepage-intro .card-img-custom {
  aspect-ratio: 1.48 / 1;
  object-fit: cover;
}

.homepage-intro h2 {
  color: #16205b;
  font-size: 32px;
}

body.patient .content .homepage-intro a {
  color: #3d59ff !important;
  font-size: 32px;
  text-decoration: underline !important;
  text-underline-offset: 5px; /* Push the underline lower */
  font-weight: 900 !important;
}

body.patient .content .homepage-intro a:hover {
  text-decoration: none !important;
}

.content .homepage-intro i.fas {
  font-size: 30px;
  color: #3d59ff !important;
}

h3 a.border-primary {
  border-color: #3d59ff !important;
}

/* ------------------------------------------- */
/* NHS theme specific styling */

.theme-nhs {
  color: #231f20;
  font-family: 'neue-frutiger-world', Arial, sans-serif !important;
}

.theme-nhs #topbar-wrapper {
  background-color: #16205b;
}

.theme-nhs #topbar-wrapper a.topbar-link-secondary {
	color: #00ddc6;
}

.theme-nhs #topbar-wrapper .topbar-left {
  font-size: 16px;
}

.theme-nhs #topbar-wrapper .topbar-left i {
  color: white;
  font-size: 20px;
}

.theme-nhs i:hover,
h1,
h2 {
  color: #3d59ff;
}

.theme-nhs .header {
  background-color: #E8EDEE;
}

.theme-nhs .header .separator {
  display: none;
}

.theme-nhs .footer {
  background-color: #ffffff;
}

.theme-nhs .footer-links a {
  color: #16205b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.theme-nhs .dropdown-menu a {
  font-size: 19px;
}

.theme-nhs .dropdown-menu a:active {
  background-color: initial;
  color: black;
}

/* Utility: opt a menu out of theme font-size overrides (e.g. .theme-nhs .dropdown-menu a) */
.no-font-override a,
.no-font-override .dropdown-item {
  font-size: inherit !important;
}

/* Disabled dropdown actions (e.g. block Move up/down at the first/last position) must be inert */
.dropdown-item.disabled,
.dropdown-item.disabled:hover,
.dropdown-item.disabled:focus {
  opacity: .5;
  pointer-events: none;
  cursor: default;
}

.theme-nhs .btn {
  border-radius: 0px;
}

.theme-nhs .dropzone {
  border: 1px dashed #005EB8;
  background-color: #fafafc;
  border-radius: 0px !important;
}

.theme-nhs .btn-primary {
  background-color: #005EB8;

}

.theme-nhs .text-primary {
  color: #005EB8 !important;
}

.theme-nhs .badge-primary {
  background-color: #009639;
}

.theme-nhs .bg-light-primary {
  background-color: #fafafc !important;
}

.theme-nhs a {
  color: #005EB8;
}

.theme-nhs .btn-danger {
  background-color: #DA291C;
}


.theme-nhs .badge-danger {
  background-color: #DA291C;
}


.theme-nhs .text-danger {
  color: #DA291C !important;
}


.theme-nhs .btn.btn-active-light-primary:hover:not(.btn-active) i {
  color: #005EB8;
}

.theme-nhs .badge-warning {
  background-color: #FFB81C;
}

.theme-nhs .btn.btn-active-light-primary:hover {
  color: #005EB8;
  background-color: #E8EDEE;
}

.theme-nhs .btn.btn-info {
  background-color: #00A9CE;
}

.theme-nhs .btn.btn-info:hover {
  background-color: #41B6E6 !important;
}

.theme-nhs .badge-info {
  background-color: #00A9CE;
}


.theme-nhs .text-success {
  color: #009639 !important;
}

.theme-nhs .btn.btn-primary:hover:not(.btn-active) {
  background-color: #003087 !important;
}

.theme-nhs .scrolltop {
  background-color: #005EB8;
  border-radius: 0px;
}

.theme-nhs .page-item.active .page-link {
  background-color: #005EB8;
  border-radius: 0px;
  color: white !important;
  text-decoration: none;
}

.theme-nhs .menu-sub-dropdown,
.theme-nhs .menu-rounded .menu-link {
  border-radius: 0px;
}

.theme-nhs .page-item.active .page-link:hover {
  color: white;
  border-radius: 0px;
}

.theme-nhs .page-item:hover:not(.disabled) .page-link i:hover {
  color: #50cd89;
  border-radius: 0px;
}

.theme-nhs .text-hover-primary:hover {
  color: #005EB8 !important;
}

.theme-nhs .breadcrumb-item,
.theme-nhs .breadcrumb-item a {
  color: white !important;
}


.theme-nhs .breadcrumb-item a:hover {
  color: #E8EDEE !important;
}

.theme-nhs .form-check-input:checked {
  background-color: #005EB8;
  border-color: #005EB8;
}


.theme-nhs .menu-state-icon-primary .menu-item .menu-link:hover:not(.disabled):not(.active) .menu-icon i,
.menu-state-icon-primary .menu-item.hover>.menu-link:not(.disabled):not(.active) .menu-icon i {
  color: #005EB8;
}

.theme-nhs .menu-state-bg-light-primary .menu-item .menu-link:hover:not(.disabled):not(.active),
.menu-state-bg-light-primary .menu-item.hover>.menu-link:not(.disabled):not(.active) {
  transition: color .2sease, background-color .2sease;
  background-color: #E8EDEE;
  color: #005EB8;
}

.theme-nhs .menu-state-primary .menu-item .menu-link:hover {
  color: #005EB8 !important;
}

.theme-nhs .menu-state-primary .menu-item .menu-link.active {
  color: #005EB8 !important;
}

.theme-nhs .badge-light-primary {
  color: #005EB8;
  background-color: #d9f0fd;
}

.theme-nhs .menu-state-icon-primary .menu-item .menu-link.active .menu-icon i {
  color: #005EB8;
}

.theme-nhs .page-link:hover {
  color: #005EB8;
  background-color: #E8EDEE;
  border-radius: 0px;
}

.theme-nhs .nav-line-tabs .nav-item .nav-link:hover {
  border-bottom: 2px solid #005EB8;
}

.theme-nhs .nav-line-tabs .nav-item .nav-link.active {
  border-bottom: 2px solid #005EB8;
}

.theme-nhs .text-active-primary.active {
  color: #005EB8 !important;
}

.theme-nhs .toolbar {
  background-color: #005EB8;
}

.theme-nhs .form-check.form-check-solid .form-check-input:checked {
  background-color: #005EB8;
}

.theme-nhs .text-dark:not(label):not(.bg-light):not(.bg-light-warning):not(.forced):not(.text-dark-forced) {
  color: #FFFFFF !important;
}

/* PATIENT NHS STYLING */

.theme-nhs #myaccount,
.theme-nhs .menu-sub-lg-dropdown,
.theme-nhs .card,
.theme-nhs .form-select-sm,
.theme-nhs .card img,
.theme-nhs #featured-img,
.theme-nhs .form-control-lg,
.theme-nhs .form-select,
.theme-nhs .myaccount-menu-sub.menu-sub-dropdown {
  border-radius: 10px !important;
}

.theme-nhs .myaccount-menu-sub.menu-sub-dropdown .menu-item {
  margin-top: 8px;
}

.theme-nhs.patient .btn.btn-primary {
  background-color: #005EB8 !important;
  color: white !important;
}


.theme-nhs.patient .btn.btn-primary:hover:not(.btn-active) {
  background-color: #0072CE !important;
  color: white !important;
}

.theme-nhs.patient .btn.btn-primary:focus:not(.btn-active) {
  background-color: #0072CE !important;
  color: white !important;
}


.theme-nhs.patient .form-check.form-check-solid .form-check-input:checked {
  background-color: #005EB8 !important;
}


.theme-nhs .nav-line-tabs .nav-item .nav-link {
  color: #005EB8 !important;
}

.theme-nhs .workflow-timeline .current>.circle {
  background-color: #005EB8;
  border-color: #005EB8;
  color: white;
}

.theme-nhs .workflow-timeline .current .title {
  color: #005EB8;
}

.theme-nhs .workflow-timeline .title-container h1 {
  color: #005EB8;
}

.theme-nhs .alert-success {
  color: #006b99;
  background-color: #dcf3fc;
  border-color: #b3e8ff;
}

.theme-nhs .gpay-card-info-container.black,
.gpay-card-info-animation-container.black {
  background-color: #005EB8;
  box-shadow: none;
}

.theme-nhs .gpay-card-info-container.black.hover,
.gpay-card-info-animation-container.black.hover {
  background-color: #005EB8;
}

.theme-nhs .flatpickr-day:hover {
  border-radius: 0px;
  color: #005EB8;
}

.theme-nhs .flatpickr-day.selected {
  background-color: #005EB8;
  border-radius: 0px;
}

.theme-nhs .flatpickr-day.selected:hover {
  color: white;

}


.theme-nhs .flatpickr-calendar {
  border-radius: 0px;
}

.theme-nhs #slideRight {
  mask-image: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTO0DjKpkto8xx76Jr95tfsWDet4fLmZtpHZQ");
  -webkit-mask-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTO0DjKpkto8xx76Jr95tfsWDet4fLmZtpHZQ');
}

.theme-nhs.patient .btn.btn-primary {
  background-color: #005EB8 !important;
  color: white !important;
}

.theme-nhs .menu-item .menu-link .menu-title {
  font-size: 16px;
  color: #221f21;
}

.theme-nhs #myaccount {
  font-size: 15px;
  color: #221f21;
}

.theme-nhs .group-card h3.group_title {
  color: #005eb8;
  text-decoration: underline;
}

.theme-nhs .group-card .address-detail,
.theme-nhs .group-card .telephone {
  color: #212b32;
}

.theme-nhs .products-section .product-overlay-icon {
  border-radius: 0 10px 10px 0 !important;
}

.theme-nhs nav.navbar .dropdown-menu .dropdown-item {
  font-size: 19px !important;
}

.topbar-right ul.dropdown-menu {
  font-size: 13px;
}


/* End NHS theme specific styling */
/* ------------------------------------------- */

/* ------------------------------------------- */
/* Theme - Standard */

.theme-standard a {
  color: #1f299c;
}

.theme-standard #topbar-wrapper {
  background-color: #ededed;
}

.theme-standard #topbar-wrapper .topbar-right {
  position: relative;
  top: 0;
}

.theme-standard #topbar-wrapper a.login-upper > i {
  top: 0;
  margin-left: 5px;
}

.theme-standard #topbar-wrapper img.logo-upper {
  display: none;
}

.theme-standard #topbar-wrapper a.login-upper,
.theme-standard #topbar-wrapper a.login-upper>i {
  color: #000000 !important;
  font-size: 13px !important;
  text-transform: uppercase;
  font-weight: 900;
  text-underline-offset: 3px;
}

.theme-standard #topbar-wrapper .topbar-links a.topbar-link {
  color: #5e6278 !important;
  border-right-color: #5e6278;
}

/* Removes the right border from the last element */
.theme-standard #topbar-wrapper .topbar-links a.topbar-link:last-child {
    border-right: none;
}

.theme-standard #topbar-wrapper .topbar .header-return-back-link > a,
.theme-standard #topbar-wrapper .topbar {
  color: #5e6278 !important;
}

.theme-standard nav.navbar ul .nav-link {
  color: #5e6278 !important;
}

.theme-standard nav.navbar ul .nav-link:hover,
.theme-standard nav.navbar ul .nav-link:focus {
  color: #5e6278 !important;
}

.theme-standard nav.navbar .dropdown-menu .dropdown-item {
  color: #5e6278 !important;
}

.theme-standard nav.navbar .dropdown-menu .dropdown-item:hover,
.theme-standard nav.navbar .dropdown-menu .dropdown-item:focus {
  color: #5e6278 !important;
}

.theme-standard.product-view .primary-cta-btn:hover, .theme-standard .btn-get-cert:hover {
  background-color: #00c7b2 !important;
}

/* End Theme - Standard */
/* ------------------------------------------- */

body.login form img,
.kb-article img {
  max-width: -webkit-fill-available;
  object-fit: contain;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.footer-links li {
  margin-left: 5px;
}

.footer-links li:first-child {
  margin-left: 0;
}

.footer-links li:not(:last-child)::after {
  content: " |";
  margin-left: 5px;
}

.ticket-message .author_name {
  font-weight: bold;
}

.voucher-list .voucher-number {
  min-width: 115px;
  white-space: nowrap;
  text-align: left;
}

.resize-vertical {
  resize: vertical !important;
  overflow: auto;
}

i.rotate-180.collapsed {
  transform: rotate(180deg);
  transform-origin: center center;
  transition: transform 0.3s ease;
  backface-visibility: hidden; /* avoids flicker on some browsers */
  -webkit-transform: rotate(180deg);        /* Safari/older WebKit */
  -webkit-transform-origin: center center;
  -webkit-transition: -webkit-transform 0.3s ease;
}

/* Footer links on mobile */
@media (max-width:575px) {
  ul.footer-links {
  	display: initial;
  }
  
  ul.footer-links li {
  	margin-left: 0 !important;
  }
  
  ul.footer-links li::after {
  	content: "" !important;
  	margin-left: 0 !important;
  }
}

@media (max-width:1024px) {
	ul.footer-links-right {
  	display: initial;
  	text-align: right;
  }
  
  ul.footer-links-right li {
  	margin-left: 0 !important;
  }
  
  ul.footer-links-right li::after {
  	content: "" !important;
  	margin-left: 0 !important;
  }
}

#loading-overlay {
	position: fixed;
	inset: 0; /* top:0; right:0; bottom:0; left:0; */
	z-index: 1080; /* above Bootstrap modals (1050) */
	pointer-events: none; /* default; enabled when shown */
}

/* semi-transparent backdrop that will also apply a blur to the page behind */
#loading-overlay .loading-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.35);
	backdrop-filter: blur(4px); /* partial blur */
	-webkit-backdrop-filter: blur(4px);
}

/* center container for spinner and text */
#loading-overlay .loading-center {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
	pointer-events: auto; /* allow interactions with the overlay itself if needed */
}

/* show/hide class */
#loading-overlay.show {
	display: block;
	pointer-events: auto; /* block interactions with underlying page */
}

/* ensure the overlay is hidden by default when using d-none */
#loading-overlay.d-none {
	display: none !important;
}

.btn-orange {
	background-color: #ED8B00 !important;
	color: white !important;
}

.btn.btn-light.btn-orange:hover {
	background-color: #ED8B00 !important;
	filter: brightness(95%);
}

.btn-green {
	background-color: #50cd89 !important;
	color: white !important;
}

.btn.btn-light.btn-green:hover {
	background-color: #50cd89 !important;
	filter: brightness(95%);
}

.custom-filters .form-select  {
	font-size: 10px;
}

.navbar-brand img {
  max-width: 200px;
  max-height: 80px;
  width: 100%;
  height: auto;
}

.category-container {
  max-width: 1280px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  margin-top: 80px;
}

.category-section {
  background-color: #f4f5f8;
  /* Force background to fill the entire viewport width */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.category-title {
  color: #1b2459;
  font-weight: 400;
  font-size: 32px;
}

/* Removed transition and hover effects from the card */
.category-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
}

.category-img {
  height: 140px;
  object-fit: cover;
}

.category-body {
  background-color: #1b2459;
  min-height: 90px;
}

.category-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  line-height: 1.4;
}

.category-link:hover {
  text-decoration: none;
}

/* Controls sizing for variable item counts */
@media (min-width: 768px) {
  .category-col {
    width: 190px;
  }
}



/* --- Products Grid - Main Container & Section Title --- */

/* Constrains the grid width to match your 1280px theme and adds specific side padding */
.products-section .container-custom {
  max-width: 1280px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

/* Styling for the main H3 section heading */
.products-section .products-title {
  color: #1b2459;
  /* Dark blue */
  font-weight: 400;
  font-size: 30px;
  line-height: 1.3;
}

/* Increases the vertical margin between rows of products */
.products-section .product-grid-row {
  --bs-gutter-y: 80px;
}

@media (max-width: 425px) {
  .category-title {
    font-size: 24px;
  }

  .products-section .products-title {
    font-size: 24px;
  }
}


/* --- Product Card Structure & Images --- */

/* Removes the default white background from Bootstrap cards */
.products-section .product-card {
  background: transparent;
}

/* Container for product image with overlay positioning */
.products-section .product-image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Standardizes image heights, prevents stretching, and adds rounded corners */
.products-section .product-img {
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  width: 100%;
}

/* Product overlay icon - positioned at upper left corner of image */
.products-section .product-overlay-icon {
  position: absolute;
  top: 25px;
  left: -7px;
  width: 100px;
  height: 100px;
  z-index: 10;
  background-color: white;
  padding: 10px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  object-fit: contain;
}

/* Product view page - overlay icon styling */
.product-view .product-image-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

.product-view .product-overlay-icon {
  position: absolute;
  top: 35px;
  left: -7px;
  width: 100px;
  height: 100px;
  z-index: 10;
  background-color: white;
  padding: 10px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  object-fit: contain;
}

/* Enforce standard Bootstrap Flexbox for the card body */
.products-section .card-body {
  display: flex !important;
  flex-direction: column;
  height: 100%;
}


/* --- Card Typography (Titles, Descriptions, Prices) --- */

/* Product H4 title styling */
.products-section .product-name {
  color: #3d59ff;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 1rem 0 !important;
  display: block;
  overflow: visible;
  min-height: calc(1.2em * 2);
}

/* --- Product Description Truncation & Overrides --- */

.products-section .product-desc {
  color: #333333;
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 1.5rem 0 !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 3; /* 3 lines maximum */
  max-height: calc(1.5em * 3); /* 3 lines maximum height */
}

/* Flatten nested paragraphs injected by Magento */
.products-section .product-desc p {
  display: inline;
  margin: 0;
  padding: 0;
}

/* Add a space between inline paragraphs so words don't squash together */
.products-section .product-desc p+p::before {
  content: " ";
}

/* Hide any images output inside the product description */
.products-section .product-desc img {
  display: none !important;
}

/* Hide other block elements like lists that break the layout */
.products-section .product-desc ul,
.products-section .product-desc ol,
.products-section .product-desc table {
  display: none !important;
}

/* Price styling */
.products-section .product-price {
  color: #3d59ff;
  font-weight: 600;
  font-size: 32px;
  line-height: 1;
}

/* Re-apply auto margin to bottom flex row so it docks to the bottom */
.products-section .card-body>.d-flex {
  margin-top: auto !important;
}


/* --- Custom Button Styling --- */

/* 'Get Certificate' button with custom cyan color and dark blue bottom line */
.products-section .btn-get-cert {
  display: inline-block;
  min-width: 145px;
  padding: 12px 22px;
  background-color: #00ddc6;
  color: #1b2459;
  border: 1px solid #00c7b2;
  border-bottom: 2px solid #16205b !important;
  /* 2px thick dark blue bottom line */
  border-radius: 2px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Hover and focus states */
.products-section .btn-get-cert:hover,
.products-section .btn-get-cert:focus {
  background-color: #00c7b2;
  border-color: #00c7b2;
  border-bottom: 2px solid #16205b !important;
  color: #1b2459;
  text-decoration: none;
}



/* --- Custom g-20 Spacing Classes --- */

/* Base classes for all screen sizes */
.g-20,
.gx-20 {
  --bs-gutter-x: 80px;
  /* Or use 5rem */
}

.g-20,
.gy-20 {
  --bs-gutter-y: 80px;
}

/* Responsive Large (desktop) versions */
@media (min-width: 992px) {

  .g-lg-20,
  .gx-lg-20 {
    --bs-gutter-x: 80px;
  }

  .g-lg-20,
  .gy-lg-20 {
    --bs-gutter-y: 80px;
  }
}

/* Responsive Medium (tablet) versions - optional */
@media (min-width: 768px) {

  .g-md-20,
  .gx-md-20 {
    --bs-gutter-x: 80px;
  }

  .g-md-20,
  .gy-md-20 {
    --bs-gutter-y: 80px;
  }
}

/* --- Custom g-15 Spacing Classes (60px) --- */

/* Base classes for all screen sizes */
.g-15,
.gx-15 {
  --bs-gutter-x: 60px;
}

.g-15,
.gy-15 {
  --bs-gutter-y: 60px;
}

/* Responsive Medium (tablet) versions */
@media (min-width: 768px) {

  .g-md-15,
  .gx-md-15 {
    --bs-gutter-x: 60px;
  }

  .g-md-15,
  .gy-md-15 {
    --bs-gutter-y: 60px;
  }
}

/* Responsive Large (desktop) versions */
@media (min-width: 992px) {

  .g-lg-15,
  .gx-lg-15 {
    --bs-gutter-x: 60px;
  }

  .g-lg-15,
  .gy-lg-15 {
    --bs-gutter-y: 60px;
  }
}

.bg-dark {
  background-color: #16205b !important;
}

.bg-dark h2 {
  color: white !important;
}

/* --- Product page --- */

.product-view h1 {
  font-size: 50px;
  color: #16205b;
}

.product-view .strapline {
  color: #3d59ff;
  font-size: 19px;
  font-weight: 600;
}

/* Forces the background to break out of the parent and span the entire screen */
.product-view .info-section .info-header-bg {
  background-color: #1b2459;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.product-view .info-section .info-content-bg {
  background-color: #f0f4f5;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* Styles the title to match your theme */
.product-view .info-section .info-title {
  color: #ffffff !important;
  font-weight: 500;
  font-size: 28px;
}

/* Provides a safe wrapper to style the raw HTML coming from Magento */
.product-view .info-section .info-content {
  color: #333333;
  font-size: 16px;
  line-height: 1.6;
}

/* Ensures images inside the raw Magento content don't break on mobile */
.product-view .info-section .info-content img {
  max-width: 100%;
  height: auto;
}

/* Container styling */
.product-view .price-container {
  background-color: #ebedf0;
}

/* Price styling */
.product-view .price {
  color: #3d59ff;
  min-width: 80px; /* Ensures consistent spacing if price changes */
  font-size: 40px !important;
  font-weight: 600 !important;
}

/* Quantity input styling for voucher */
.product-view #quantity {
  max-width: 80px;
}

/* 3D Button styling */
.product-view .primary-cta-btn {
  background-color: #00e4c6 !important;
  color: #003641 !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 3px solid #014351 !important;
  border-radius: 4px;
  transition: all 0.1s ease-in-out;
  font-size: 19px;
  font-weight: 600 !important;
  min-height: 50px;
}

/* Button hover state */
.theme-nhs.product-view .primary-cta-btn:hover, .theme-nhs .btn-get-cert:hover {
  background-color: #ffd300 !important;
  color: #003641 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px; /* Push the underline lower */
}

/* Button active (clicked) state */
.theme-nhs.product-view .primary-cta-btn:active, .theme-nhs .btn-get-cert:active {
  border-bottom-width: 1px !important;
  transform: translateY(2px);
  margin-bottom: 2px; /* Keeps the layout from shifting when the border shrinks */
}

.product-view .info-section h3 {
  color: #16205b;
  font-size: 32px !important;
  font-weight: 600 !important;
}

.product-view .faqs .accordion-item, .product-view .faqs .accordion-item:last-of-type {
  border: 0;
  border-bottom: 1px solid #e4e4e4;
  border-radius: 0;
}

.product-view .faqs .accordion-button {
  color: #1f299c !important;
  font-size: 19px;
  font-weight: 600 !important;
  background-color: #fff;
}

/* Custom accordion icon styling (Open state by default) */
.product-view .accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 9 12 16 19 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-color: #1a237e; /* Dark blue background */
  border-radius: 50%;
  
  /* Reduced sizes by ~20% */
  background-size: 21px; /* Reduced from 26px */
  width: 27px;           /* Reduced from 34px */
  height: 27px;          /* Reduced from 34px */
  
  background-position: center;
  background-repeat: no-repeat;
  
  /* Open state: Chevron points UP */
  transform: rotate(-180deg);
  transition: transform 0.2s ease-in-out;
}

/* Icon styling when the accordion is closed */
.product-view .accordion-button.collapsed::after {
  /* Closed state: Chevron points DOWN */
  transform: rotate(0deg);
}

/* Ensure the button focus doesn't obscure the icon */
.product-view .accordion-button:focus {
  box-shadow: none;
}

.patient .content h2 {
  font-size: 32px;
}

.text-highlight {
  color: #3d59ff;
}

@media (max-width: 768px) {
  .product-view h1 {
    font-size: 28px;
  }

  .product-view .price {
    font-size: 28px !important;
  }
}

.hover-dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0 !important;
}

/* Create an invisible bridge for the mouse */
.hover-dropdown .dropdown-menu {
  border-top: 8px solid transparent !important;
  background-clip: padding-box;
}

/* Ensure the parent remains relatively positioned */
.hover-dropdown {
  position: relative;
}

.full-width-section {
  background-color: #f0f4f5;
  padding: 3rem 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.w-75-mobile {
  width: 75%;
}

@media (min-width: 768px) {
  .w-75-mobile {
    width: auto;
  }
}

.mx-auto-mobile {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .mx-auto-mobile {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Updates March 2026 */
@media( max-width: 991px ) {
  .masthead-header-content .strapline {
    line-height: 40px;
  }

  .masthead-search h3 {
    font-size: 22px;
  }

  .footer-upper {
    font-size: 16px;
  }
}

@media( max-width: 425px ) {
  .footer-upper, .footer-lower {
    font-size: 14px !important;
  }
}

.vw-50 {
  width: 50vw !important;
}

.max-vw-50 {
  max-width: 50vw !important;
}

/* Referral share panel (patient referrals page) */
.referral-share-panel .referral-share-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.referral-share-panel .referral-share-icon {
  width: 80px;
  height: 80px;
  font-size: 4.5rem; /* large present emoji (~72px), matching the screenshot */
  line-height: 1;
}

.referral-share-panel .referral-message {
  line-height: 1.8;
  word-break: break-word;
}
