/* Reusable 300x50 bottom ad unit */
:root {
  --adunit-strip-h: 60px;
}

.adunit-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  width: 100%;
  height: var(--adunit-strip-h);
  z-index: 9999;
}

.adunit-bottom__inner {
  width: 100%;
  height: calc(var(--adunit-strip-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-radius: 0;
  background: #d84e55;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  justify-content: space-between;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.12);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  user-select: none;
  text-decoration: none;
}

.adunit-bottom__inner:hover {
  filter: brightness(1);
}

.adunit-bottom__left {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.adunit-bottom__left svg {
  display: block;
  width: 30px;
  height: 30px;
}

.adunit-bottom__logo {
  display: block;
  height: 30px;
  width: auto;
  /* Make the red logo appear white on red background */
  filter: brightness(0) invert(1);
}

.adunit-bottom__text {
  flex: 1 1 auto;
  min-width: 0;
  font-style: italic;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adunit-bottom__cta {
  flex: 0 0 auto;
  width: 92px;
  height: 32px;
  border-radius: 999px;
  background: #b10000;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.5px;
  font-size: 12px;
}

/* Add this class to body when you mount the ad */
body.has-adunit-bottom {
  padding-bottom: calc(var(--adunit-strip-h) + env(safe-area-inset-bottom));
}

