:root {
  /* Color palette */
  --primary: #00a8ff;
  --secondary: #323437;
  --black-high-emphasis: hsla(0, 0%, 15%, 0.87);
  --black-medium-emphasis: hsla(0, 0%, 15%, 0.6);
  --black-inactive-emphasis: hsla(0, 0%, 15%, 0.54);
  --black-disabled-emphasis: hsla(0, 0%, 15%, 0.38);
  --black-action-emphasis: hsla(0, 0%, 15%, 0.12);
  --black-subtle-emphasis: hsla(0, 0%, 15%, 0.08);
  --white-high-emphasis: hsla(0, 0%, 100%, 1);
  --white-medium-emphasis: hsla(0, 0%, 100%, 0.7);
  --green: #28a745;
  /* Typography */
  --font-family-sans-serif: 'Barlow', sans-serif;
  --font-family-serif: "Source Serif Pro", serif;
  --font-size-base: 16px;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  /* Sizes */
  --spacing: 8px;
  /* Elevation */
  --elevation-1: 0 0 16px var(--black-medium-emphasis);
  --elevation-2: 0 0 16px var(--black-subtle-emphasis);
  /* Other */
  --border-radius: 4px;
}

.btn {
  font-weight: var(--font-weight-semibold);
  /* font-family: var(--font-family-sans-serif); */
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  background-color: white;
  color: black;

  display: inline-block;
  /* font-weight: 400; */
  color: #212529;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
}

.btn-light {
  color: #212529;
  background-color: #f8f9fa;
  border-color: #f8f9fa;
}

.btn:hover {
  background-color: var(--white-medium-emphasis) !important;
}

.btn:not(.btn-lg) {
  font-size: 0.875rem;
}

.btn-link {
  color: var(--white-high-emphasis);
  background-color: transparent;
}

.btn-link:hover {
  background-color: rgba(200,200,200,0.4) !important;
}


/* ==========================================================================
   #CONFIRMATION BANNER
   ========================================================================== */
/**
 * Opt-out confirmation banner.
 */
 .c-confirmation-banner {
  align-items: center;
  background-color: var(--ahd-banner-bg, #14281b);
  pointer-events: all;
  /* padding: calc(var(--spacing) * 3) calc(var(--spacing) * 2); */

  /* padding-right: calc(var(--spacing) * 3) !important;
  padding-left: calc(var(--spacing) * 2) !important;
  padding-top: calc(var(--spacing) * 2) !important;
  padding-bottom: calc(var(--spacing) * 2) !important; */

  padding: calc(var(--spacing) * 3) calc(var(--spacing) * 4);

  /* In normal flow (not a fixed overlay) so it can never cover a focused control (WCAG 2.4.11) */
  position: relative;
  box-sizing: border-box;
  width: 100%;
}
@media (min-width: 992px) {
  .c-confirmation-banner {
    display: flex;
    /* padding-right: calc(var(--spacing) * 3) !important;
    padding-left: calc(var(--spacing) * 3) !important;
    padding-top: calc(var(--spacing) * 2) !important;
    padding-bottom: calc(var(--spacing) * 2) !important; */
    padding: calc(var(--spacing) * 3) calc(var(--spacing) * 4);

  }
}

.c-confirmation-banner__content {
  display: flex;
  flex: 1;
  margin-bottom: calc(var(--spacing) * 3);
}
@media (min-width: 992px) {
  .c-confirmation-banner__content {
    display: flex;
    margin-bottom: 0;
  }
}

.c-confirmation-banner__icon {
  align-self: flex-start;
  margin-right: calc(var(--spacing) * 2);
}
.c-confirmation-banner__icon svg {
  height: calc(var(--spacing) * 4);
  fill: white;
  width: calc(var(--spacing) * 4);
}

.c-confirmation-banner__actions {
  display: flex;
  justify-content: flex-end;
}

.c-confirmation-banner__body {
  color: white;
}

.subtitle1 {
  font: 1rem/1.4 var(--font-family-sans-serif);
  font-weight: var(--font-weight-regular);
  letter-spacing: 1px;
}

.mb-2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.mb-0 {
  margin: 0;
}

.body2 {
  font: 0.875rem/1.6 var(--font-family-sans-serif);
  font-weight: 300;
}

.c-confirmation-banner.hide {
  display: none;
}

/* DESKTOP */
@media(min-width: 49rem) {
  .c-confirmation-banner__body {
    display: flex;
  }

  .unsub-banner-header {
    margin: 0 10px 0 0;
    display: flex;
    align-items: center;
  }

  .unsub-banner-body-text {
    display: flex;
    align-items: center;
  }

  .c-confirmation-banner__icon {
    display: flex;
  }

  .c-confirmation-banner__actions {
    margin-right: 10px;
  }
}

/* Mobile */
@media(max-width: 48.99rem) {
  .c-confirmation-banner {
    margin-bottom: 0;
    display: flex;
  }
  .c-confirmation-banner__content {
    /* margin-bottom: calc(var(--spacing) * 3); */
    margin: 0;
    display: flex;
  }

  .c-confirmation-banner {
    padding-right: calc(var(--spacing) * 2) !important;
    padding-left: calc(var(--spacing) * 2) !important;
    padding-top: calc(var(--spacing) * 3) !important;
    padding-bottom: calc(var(--spacing) * 3) !important;
    display: flex;
  }

  .c-confirmation-banner__actions {
    max-height: 38px;
    margin-right: 10px;
  }

  .unsub-banner-header {
    font-size: 14px;
    display: flex;
    align-items: center;
  }
}

/* ==========================================================================
   At Home Daily look: the site's Barlow (Source Sans Pro is never loaded here, so it fell back to the browser
   default), normal-case title, a dark success green that sits with the dark header, and the same left and right
   edges as the header and page content
   ========================================================================== */
.c-confirmation-banner {
  align-items: center;
  background-color: var(--ahd-banner-bg, #14281b);
  border-bottom: 1px solid #24452f;
  padding: 16px max(24px, calc((100% - 1230px) / 2)) 16px max(24px, calc((100% - 1270px) / 2));
}

.c-confirmation-banner__content {
  align-items: center;
}

.c-confirmation-banner__icon {
  align-self: center;
}

.c-confirmation-banner__icon svg {
  width: 24px;
  height: 24px;
  fill: #4ade80;
}

.c-confirmation-banner .unsub-banner-header,
.c-confirmation-banner .unsub-banner-body-text {
  font-family: 'Barlow', sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

.c-confirmation-banner .unsub-banner-header {
  color: #fff;
  font-size: 16px;
  font-weight: 700 !important;
}

.c-confirmation-banner .unsub-banner-body-text {
  color: #c9d6cd;
  font-size: 15px;
  line-height: 1.4;
}

.c-confirmation-banner .js-confirmation-trigger svg {
  fill: #c9d6cd;
}

@media (max-width: 48.99rem) {
  .c-confirmation-banner {
    padding: 14px 16px !important;
  }

  .c-confirmation-banner .unsub-banner-header {
    margin-bottom: 2px;
    font-size: 15px;
  }
}

/* The dismiss button: a quiet round target, not the old square button with a grey hover block */
.c-confirmation-banner .js-confirmation-trigger {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background-color: transparent;
}

.c-confirmation-banner .js-confirmation-trigger:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.c-confirmation-banner .js-confirmation-trigger:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 2px;
}

.c-confirmation-banner .js-confirmation-trigger svg {
  width: 20px;
  height: 20px;
}

.c-confirmation-banner__actions {
  margin-right: 0 !important;
  max-height: none !important;
}

/* Noticed without moving the page: the bar starts a brighter green and settles, and the tick pops in.
   Skipped for readers who ask their device for less motion. */
@media (prefers-reduced-motion: no-preference) {
  .c-confirmation-banner:not(.hide) {
    animation: optout-glow 1.8s ease-out 0.1s both;
  }

  .c-confirmation-banner:not(.hide) .c-confirmation-banner__icon svg {
    animation: optout-tick 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
  }
}

@keyframes optout-glow {
  from {
    background-color: #1f5a33;
  }
  to {
    background-color: var(--ahd-banner-bg, #14281b);
  }
}

@keyframes optout-tick {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
