/* Public campaign presentation only. Existing navigation owns its own measurements. */
.ccake-promotion-announcement {
  position: fixed;
  top: var(--ccake-nav-admin-offset, 0px);
  inset-inline: 0;
  z-index: 100000;
  height: 0;
  overflow: hidden;
  color: #242424;
  background: #c9aa96;
  transition: height 500ms cubic-bezier(.4, 0, .2, 1);
}
.ccake-promotion-announcement-inner {
  position: relative;
  box-sizing: border-box;
  min-height: 30px;
  padding: 6px 0;
  text-align: center;
  font-size: 14px;
  line-height: 18px;
}
.ccake-promotion-announcement-link {
  display: block;
  width: 75%;
  margin: 0 auto;
  color: inherit !important;
  text-decoration: none;
}
.ccake-promotion-announcement-text {
  display: block;
  animation: ccake-promotion-announcement-text 4999ms ease infinite;
}
.ccake-promotion-announcement-close {
  position: absolute;
  inset-inline-end: 3px;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: 24px/1 sans-serif;
  cursor: pointer;
}
.ccake-promotion-announcement-closed { pointer-events: none; }
.ccake-promotion-announcement-closed .ccake-promotion-announcement-text,
.ccake-promotion-suspended .ccake-promotion-announcement-text { animation: none; }
@keyframes ccake-promotion-announcement-text {
  0% { opacity: 0; transform: translateY(-20px); }
  20.004%, 100% { opacity: 1; transform: translateY(0); }
}

html body#thim-body.ccake-promotion-ready.ccake-navigation-ready #masthead.ccake-navigation-header,
html body#thim-body.ccake-promotion-ready.ccake-navigation-ready #masthead.ccake-navigation-header.menu-hidden {
  inset: calc(var(--ccake-nav-admin-offset, 0px) + var(--ccake-promotion-height, 0px)) 0 auto !important;
}
html body#thim-body.ccake-promotion-ready.ccake-navigation-ready:not(.course-item-popup) #wrapper-container .content-pusher {
  padding-top: calc(var(--ccake-nav-header-height, 99px) + var(--ccake-promotion-height, 0px)) !important;
}
html body#thim-body.ccake-promotion-ready.ccake-navigation-ready #popup-course.cc-learning.ccake-navigation-learning-root {
  top: calc(var(--ccake-nav-admin-offset, 0px) + var(--ccake-promotion-height, 0px)) !important;
}
@media (min-width: 801px) {
  html body#thim-body.ccake-promotion-ready.ccake-navigation-ready #popup-course.cc-learning.ccake-navigation-learning-root #popup-sidebar {
    max-height: calc(100dvh - var(--ccake-nav-admin-offset, 0px) - var(--ccake-promotion-height, 0px) - var(--ccake-nav-learning-height, 46px) - 40px) !important;
  }
  html body#thim-body.ccake-promotion-ready.ccake-navigation-ready #popup-course.cc-learning.ccake-nav-learning-hidden #popup-sidebar {
    max-height: calc(100dvh - var(--ccake-nav-admin-offset, 0px) - var(--ccake-promotion-height, 0px) - 40px) !important;
  }
}

.ccake-promotion-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: auto !important;
  height: fit-content;
  max-width: 1000px;
  max-height: calc(95vh - 50px);
  max-height: calc(95dvh - 50px);
  margin: auto;
  padding: 16px;
  border: 0;
  overflow: visible;
  color: #fff;
  background: transparent;
}
dialog.ccake-promotion-dialog:not([open]) { display: none; }
.ccake-promotion-dialog[open],
.ccake-promotion-backdrop .ccake-promotion-dialog { animation: ccake-promotion-dialog-in 300ms ease both; }
.ccake-promotion-dialog::backdrop {
  background: rgba(0, 0, 0, .7);
  animation: ccake-promotion-backdrop-in 300ms ease both;
}
.ccake-promotion-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .7);
  animation: ccake-promotion-backdrop-in 300ms ease both;
}
.ccake-promotion-backdrop .ccake-promotion-dialog { position: relative; inset: auto; }
.ccake-promotion-image-link {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  outline-offset: 3px;
}
.ccake-promotion-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  object-fit: contain;
  animation: ccake-promotion-image-in 180ms ease both;
}
.ccake-promotion-close {
  position: absolute;
  z-index: 1;
  top: -12px;
  right: -16px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font: 40px/1 sans-serif;
  cursor: pointer;
}
/* Theme button paint must not replace these two campaign close controls. */
html body#thim-body #ccake-promotion-announcement button.ccake-promotion-announcement-close {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #242424 !important;
}
html body#thim-body #ccake-promotion-dialog button.ccake-promotion-close {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
}
html body#thim-body #ccake-promotion-announcement button.ccake-promotion-announcement-close:focus-visible,
html body#thim-body #ccake-promotion-dialog button.ccake-promotion-close:focus-visible {
  outline: 2px solid currentColor !important;
  outline-offset: 2px !important;
}
.ccake-promotion-dialog a:focus-visible,
.ccake-promotion-dialog button:focus-visible,
.ccake-promotion-announcement a:focus-visible,
.ccake-promotion-announcement button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@keyframes ccake-promotion-dialog-in { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ccake-promotion-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ccake-promotion-image-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 767px) {
  .ccake-promotion-dialog { width: 94% !important; }
  .ccake-promotion-close { width: 36px; height: 36px; top: 8px; right: 8px; font-size: 30px; background: #00000073; }
  html body#thim-body #ccake-promotion-dialog button.ccake-promotion-close { background: rgba(0, 0, 0, .45) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ccake-promotion-announcement { transition: none; }
  .ccake-promotion-announcement-text,
  .ccake-promotion-dialog[open],
  .ccake-promotion-dialog::backdrop,
  .ccake-promotion-backdrop,
  .ccake-promotion-backdrop .ccake-promotion-dialog,
  .ccake-promotion-image { animation: none; opacity: 1; transform: none; }
}
