/* Missing background colour class (was bg-white but the rest are colour-bg format) */
.white-bg {
    background: #fff;
}


/*
* Mobile navigation tweaks - Allow entire li area (including arrow) to be clickable by expanding link with absolute positioning to avoid placing link on li with JS
*/
.ds-c-drawer__content li {
  position: relative;
  height: 50px;
}
.ds-c-drawer__content li a {
  position: absolute;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}
.ds-c-drawer__content li svg {
  position: absolute;
  right: 0;
  z-index: -1;
}



/* Remove default padding so sizing is exact */
.featherlight .featherlight-content {
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
}

/* Square container, capped at 600px */
.featherlight .featherlight-content iframe {
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  display: block;
  border: 0;
}

/* Remove Featherlight's reserved bottom space for your video modals only */
.featherlight.fl-video-bar .featherlight-content {
  border-bottom: 0 !important;
}


.featherlight.fl-video-bar .featherlight-content {
  position: relative;
  padding-top: 44px;   /* bar height */
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;

  /* Allow scroll when viewport is short */
  overflow: auto;

  /* Optional but recommended constraints */
  max-width: 90vw;
  max-height: 90vh;
  box-sizing: border-box;
}

/* Orange bar */
.featherlight.fl-video-bar .featherlight-content::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 44px;
  background: rgb(237, 100, 0);
  z-index: 2;
  pointer-events: none; /* don't interfere with interaction */
}

/* Close button in the bar */
.featherlight.fl-video-bar .featherlight-close-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  background: transparent;
  color: #fff;
  z-index: 3;
  font-size: 24px;
}

/* Square responsive iframe */
.featherlight.fl-video-bar iframe {
  display: block;
  border: 0;
  width: min(600px, 90vw, calc(90vh - 44px));
  height: min(600px, 90vw, calc(90vh - 44px));
}


/*
* Teams In-Page Navigation
*/

/* Modify aria-selected to aria-current */
.ds-c-tabs.ds-c-tabs--secondary .ds-c-tabs--tab-button[aria-current=page] {
    background-color: var(--ds-color-palette-brand-1, #1976d2);
    color: var(--ds-color-palette-white, #fff);
}
.ds-c-tabs.ds-c-tabs--secondary .ds-c-tabs--tab-button[aria-current=page]:hover {
    background-color: var(--ds-color-palette-brand-1-dark, undefined);
}
.ds-c-tabs.ds-c-tabs--secondary .ds-c-tabs--tab-button[aria-current=page] {
    background-color: var(--ds-color-palette-brand-1, #1976d2);
    color: var(--ds-color-palette-white, #fff) !important;
}
.ds-c-tabs.ds-c-tabs--secondary .ds-c-tabs--tab-button:focus, .ds-c-tabs.ds-c-tabs--secondary .ds-c-tabs--tab-button:hover {
    background-color: var(--ds-color-monochrome-lighter, #f2f2f2);
    color: var(--ds-color-monochrome-dark, #404040);
}


/*
* Lozenge buttons needed a min width and justify to stop them looking too small compared to lozenges with more text in them
*/
.ds-c-tag {
  min-width: 200px;
  justify-content: center;
}


/*
* Anchor Navigation Block (custom styling to allow two rows or more without duplication of block content)
*/
.ccustom-tags .tags {
  padding-top: 0;
  align-items: center;
  justify-content: center;
}
.ccustom-tags .tags .ds-c-tag:not(:last-child) {
  margin-bottom: none;
}
.ccustom-tags .tags .ds-c-tag:is(button,a) {
  margin: .75rem .75rem;
}



/*
* Fix 'Teams' sub navigation outline cut off issue by adding a little padding
*/
.ds-c-tabs.ds-c-tabs--secondary .ds-c-tabs--list {
  padding: 1px;
}


/*
* Remove background/border artifacts when absolutely positioning play button SVG within an image
*/
.video-trigger {
  /* background: none;
  border: none; */
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  cursor: pointer;
}


/*
* Make text image banner image 100% width
*/
.christmas-banner {
  display: block;
  width: 100%;
}


/*
* Inline CSS from latest roles block
*/
.latest-jobs-carousel .jobs-card {
  width: 440px;
}
.latestJobCarouselSection{
  position:relative;
  padding-bottom:50px;        
}
.latestJobCarouselSection .latest-roles-carousel-buttons{
  position:absolute;
  bottom:0px;
  right:0px;
}
@media screen and (max-width: 768px) {
  .latest-jobs-carousel .jobs-card {
    width: 320px;
  }
}
/* buttons */
.carouselLeftBtn.ds-c-button--icon.ds-c-button--sr-only, .carouselRightBtn.ds-c-button--icon.ds-c-button--sr-only {
  width: 42px;
  height: 42px;
  margin-top: 3%;
  color: black;
  background-color: var(--ds-color-alias-cta-scheme-brand-1-secondary-default-border);
  color: white;
}
/* @media screen and (max-width: 768px) {
.carouselLeftBtn.ds-c-button--icon.ds-c-button--sr-only, .carouselRightBtn.ds-c-button--icon.ds-c-button--sr-only {
  position: absolute;
  bottom: 0px;
  right: 10px;
  }
} */




/*
* Life at Sainsbury's 'Filter topics' tag link arrangement changes
*/
.las-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-start;
  padding-top: 2rem;
  column-gap: 1rem;
  }



/*
* Inline CSS from anchor navigation block
*/
@media screen and (min-width: 992px) {
  .demo-only {
    display: none;
  }
  .desktopNav{
    display:block;
    width: 100%;
    overflow: hidden;
    height:auto;
  }
}
.demo-only #demo-only-div {
}

@media screen and (max-width: 992px) {
  .desktopNav{
    display:none !important;
  }
}

.overwrite-second-nav .tags {
  padding-top: 16px;
}
.overwrite-second-nav .demo-only {
  padding-top: 0;
}

.overwrite-second-nav .tags {
  justify-content: center;
}

.overwrite-second-nav .tags .ds-c-tag {
  margin-left: 16px;
  margin-right: 16px;
}



/*
* Style image within .text-wrapper h1 (used for MOVEFWD graphic)
*/
.text-wrapper h1 img,
.text-wrapper h2 img,
.text-wrapper h3 img {
  max-height: 42px;
  max-width: 100%;
}



/*
* WYSIWYG text styling
*/
.wysiwyg-text {
    display: block;
    font-family: var(--ds-font-stack-body-1-font-family,"Roboto",Arial,Helvetica,sans-serif);
    font-size: var(--ds-font-size-body-1,1rem);
    font-weight: var(--ds-font-stack-body-1-font-weight,400);
    line-height: var(--ds-font-stack-body-1-line-height,1.5)
}
  .wysiwyg-text a {
      background-color: transparent;
      color: var(--ds-color-alias-link-default-color);
      display: inline;
      font-size: var(--ds-font-size-body-1);
      font-weight: var(--ds-font-weight-semi-bold);
      line-height: var(--ds-font-line-height-body-1);
      position: relative;
      text-decoration-line: underline;
      transition-duration: var(--ds-modifier-transition-duration);
      transition-property: background-color,color;
      transition-timing-function: var(--ds-modifier-transition-timing)
  }
    .wysiwyg-text a:hover {
        color: var(--ds-color-alias-cta-primary-default-background);
        
        background-color: var(--ds-color-alias-link-hover-background-color);
    }
    
/* .ds-c-display-6 */
.wysiwyg-text h1,
.wysiwyg-text h2 {
  display: block;
  font-family: var(--ds-font-stack-display-5-font-family,"Roboto",Arial,Helvetica,sans-serif);
  font-size: var(--ds-font-size-display-5,3rem);
  font-weight: var(--ds-font-stack-display-5-font-weight,700);
  line-height: var(--ds-font-stack-display-5-line-height,1.292);
}

@media (min-width: 719.98px) {
  .wysiwyg-text h1,
  .wysiwyg-text h2 {
      font-family:var(--ds-font-stack-display-6-font-family,"Roboto",Arial,Helvetica,sans-serif);
      font-size: var(--ds-font-size-display-6,3.75rem);
      font-weight: var(--ds-font-stack-display-6-font-weight,700);
      line-height: var(--ds-font-stack-display-6-line-height,1.267);
  }
}
    
/* .ds-c-display-3 */
.wysiwyg-text h3 {
  display: block;
  font-family: var(--ds-font-stack-display-2-font-family,"Roboto",Arial,Helvetica,sans-serif);
  font-size: var(--ds-font-size-display-2,1.5rem);
  font-weight: var(--ds-font-stack-display-2-font-weight,700);
  line-height: var(--ds-font-stack-display-2-line-height,1.333);
}
@media (min-width: 719.98px) {
  .wysiwyg-text h3 {
      font-family:var(--ds-font-stack-display-3-font-family,"Roboto",Arial,Helvetica,sans-serif);
      font-size: var(--ds-font-size-display-3,1.875rem);
      font-weight: var(--ds-font-stack-display-3-font-weight,700);
      line-height: var(--ds-font-stack-display-3-line-height,1.333);
  }
}

/* .ds-c-display-2 */
.wysiwyg-text h4 {
  display: block;
  font-family: var(--ds-font-stack-display-1-font-family,"Roboto",Arial,Helvetica,sans-serif);
  font-size: var(--ds-font-size-display-1,1.25rem);
  font-weight: var(--ds-font-stack-display-1-font-weight,700);
  line-height: var(--ds-font-stack-display-1-line-height,1.3);
}

@media (min-width: 719.98px) {
    .wysiwyg-text h4 {
        font-family:var(--ds-font-stack-display-2-font-family,"Roboto",Arial,Helvetica,sans-serif);
        font-size: var(--ds-font-size-display-2,1.5rem);
        font-weight: var(--ds-font-stack-display-2-font-weight,700);
        line-height: var(--ds-font-stack-display-2-line-height,1.333);
    }
}


/* .ds-c-display-1 */
.wysiwyg-text h5,
.wysiwyg-text h6 {
  display: block;
}

.wysiwyg-text h5,
.wysiwyg-text h6 {
  font-family: var(--ds-font-stack-display-1-font-family,"Roboto",Arial,Helvetica,sans-serif);
  font-size: var(--ds-font-size-display-1,1.25rem);
  font-weight: var(--ds-font-stack-display-1-font-weight,700);
  line-height: var(--ds-font-stack-display-1-line-height,1.3);
}