#kas-layer {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
}

#kas-body {
  display: block;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  width: 1080px;
  /* max-width: 880px; */
  background-color: #fff;
  padding: 25px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

  /* hint to browser: this element will be animated via transform/opacity
     and should get its own compositing layer to avoid layout jank */
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Keep the body centered inside the full-screen layer and allow
   it to scroll when its content exceeds the viewport height. */
#kas-body {
  text-align: left;
  box-sizing: border-box;
  max-height: calc(100vh - 80px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#kas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#kas-header h1 {
  font-size: 28px;
  line-height: 1.5;
  color: inherit;
  margin: 0;
}

#kas-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

#kas-content {
  display: block;
}

#kas-footer {
  text-align: center;
}

#kas-footer a {
  font-size: 90%;
  color: #999;
  text-decoration: none;
}

#kas-footer a:hover {
  text-decoration: underline;
}


/* Loader shown while kas content is being fetched */
.kas-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 200px;
  box-sizing: border-box;
}

.kas-loader:before {
  content: "";
  width: 36px;
  height: 36px;
  margin-right: 12px;
  border-radius: 50%;
  border: 4px solid rgba(0,0,0,0.12);
  border-top-color: rgba(0,0,0,0.6);
  animation: kas-spin 1s linear infinite;
}

.kas-loader .kas-loader-text {
  font-size: 14px;
  color: #333;
}

@keyframes kas-spin {
  to { transform: rotate(360deg); }
}


/* Notification shown at top of kas layer */
#kas-notification {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  pointer-events: none;
  width: 100%;
  max-width: 920px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.kas-notification {
  pointer-events: auto;
  min-width: 280px;
  max-width: 90%;
  box-sizing: border-box;
  padding: 8px 16px;
  border-radius: 6px;
  color: #fff;
  font-size: 90%;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  position: relative;
}

.kas-notification-success { background: #2e7d32; }
.kas-notification-error { background: #c62828; }

.kas-notification-message { text-align: center; }

.kas-notification-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: rgba(255,255,255,0.4);
  transform-origin: left;
}

@keyframes kas-notify-shrink {
  from { width: 100%; }
  to { width: 0%; }
}

/* exit animation: drop a bit then move up offscreen */
.kas-notification-leave {
  animation: kas-notify-exit 300ms ease-in-out forwards;
}

@keyframes kas-notify-exit {
  0% { transform: translateY(0); opacity: 1; }
  30% { transform: translateY(8px); opacity: 1; }
  100% { transform: translateY(-140%); opacity: 0; }
}

/* enter animation: come from top, drop slightly, settle */
.kas-notification-enter {
  animation: kas-notify-enter 300ms ease-out forwards;
}

@keyframes kas-notify-enter {
  0% { transform: translateY(-140%); opacity: 0; }
  70% { transform: translateY(8px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

/* kas-body enter/leave animations */
.kas-body-enter {
  animation: kas-body-in 320ms cubic-bezier(.2,.9,.2,1) forwards;
}
.kas-body-leave {
  animation: kas-body-out 360ms cubic-bezier(.2,.9,.2,1) forwards;
}

@keyframes kas-body-in {
  0% { transform: translateY(-12px); opacity: 0; }
  60% { transform: translateY(6px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes kas-body-out {
  0% { transform: translateY(0); opacity: 1; }
  30% { transform: translateY(8px); opacity: 1; }
  100% { transform: translateY(-140%); opacity: 0; }
}

