/***** Begin Engagement *****/
@-webkit-keyframes glowing {
  from {
    opacity: 0.5;
    -webkit-transform: scale(0.8, 0.8);
  }
  to {
    opacity: 0.8;
    -webkit-transform: scale(1, 1);
  }
}

@-moz-keyframes glowing {
  from {
    opacity: 0.5;
    -moz-transform: scale(0.8, 0.8);
  }
  to {
    opacity: 0.8;
    -moz-transform: scale(1, 1);
  }
}

@keyframes glowing {
  from {
    opacity: 0.5;
    transform: scale(0.8, 0.8);
  }
  to {
    opacity: 0.8;
    transform: scale(1, 1);
  }
}

@-webkit-keyframes fadeout {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@-moz-keyframes fadeout {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.hotspot {
  background: url("../../_content/Engagement/hotspot.png") 0 0 no-repeat;
  background-size: cover;
  width: 24px;
  height: 24px;
  top: 0;
  left: 0;
  position: absolute;
  opacity: 0.5;
  -webkit-animation: glowing .7s ease-in-out infinite alternate;
  -moz-animation: glowing .7s ease-in-out infinite alternate;
  animation: glowing .7s ease-in-out infinite alternate;
  cursor: pointer;
}

.hotspot-fadeout {
  -moz-animation: fadeout 1s;
  -moz-animation-delay: 8s;
  -moz-animation-fill-mode: forwards;
  -webkit-animation: fadeout 1s;
  -webkit-animation-delay: 8s;
  -webkit-animation-fill-mode: forwards;
  animation: fadeout 1s;
  animation-delay: 8s;
  animation-fill-mode: forwards;
}

.quickstart {
  white-space: normal;
  /* force to override any no-wrap whitespace */
  line-height: normal;
  max-width: 1000px;
  min-width: 250px;
  background: rgba( 255, 255, 255 ,  1 );
  background: rgba( var(--palette-neutral-0,255, 255, 255) ,  1 );
  -webkit-box-shadow: 0 1px 10px rgba( 0, 0, 0 ,  0.6 );
  -webkit-box-shadow: 0 1px 10px rgba( var(--palette-neutral-100,0, 0, 0) ,  0.6 );
  -moz-box-shadow: 0 1px 10px rgba( 0, 0, 0 ,  0.6 );
  -moz-box-shadow: 0 1px 10px rgba( var(--palette-neutral-100,0, 0, 0) ,  0.6 );
  box-shadow: 0 1px 10px rgba( 0, 0, 0 ,  0.6 );
  box-shadow: 0 1px 10px rgba( var(--palette-neutral-100,0, 0, 0) ,  0.6 );
  position: absolute;
  z-index: 19000;
}

.quickstart-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
  background: rgba( 102, 102, 102 ,  1 );
  background: rgba( var(--palette-neutral-60,102, 102, 102) ,  1 );
  background: rgba( 0, 0, 0 ,  0.3 );
  background: rgba( var(--palette-neutral-100,0, 0, 0) ,  0.3 );
}

.quickstart-main-container {
  padding: 10px 20px 15px;
}

.quickstart-title {
  font-family: Segoe UI Light,Segoe UI,Tahoma,Arial,Verdana;
  font-weight: normal;
}

.quickstart .quickstart-buttons-container {
  margin: 20px auto 0;
  left: 0;
  right: 0;
  text-align: right;
}

.quickstart button + button {
  margin-left: 10px;
}

.quickstart button {
  background-color: rgba( 255, 255, 255 ,  1 );
  background-color: rgba( var(--palette-neutral-0,255, 255, 255) ,  1 );
  color: rgba( 0, 0, 0 ,  1 );
  color: rgba( var(--palette-neutral-100,0, 0, 0) ,  1 );
}

.quickstart button.primary {
  background-color: rgba(0, 120, 212, 1);
  background-color: var(--communication-background,rgba(0, 120, 212, 1));
  color: rgba( 0, 0, 0 ,  1 );
  color: rgba( var(--palette-neutral-100,0, 0, 0) ,  1 );
}

.quickstart button.primary:hover,
.quickstart button.primary:focus {
  background-color: rgba( 0, 90, 158 ,  1 );
  background-color: rgba( var(--palette-primary-shade-20,0, 90, 158) ,  1 );
}

.quickstart-close-button {
  font-family: "Bowtie";
  font-size: 14px;
  speak: none;
  display: inline-block;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  text-align: center;
  text-decoration: none;
  line-height: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 16px;
  height: 16px;
  right: 10px;
  top: 10px;
  position: absolute;
  cursor: pointer;
}

.quickstart-close-button::before {
  content: "\E9FA";
}

/******************/
/* Bubble control */
/******************/
.bubble-container.force-overflow {
  overflow: visible;
}

.quickstart.bubble .bubble-callout {
  background: url("../../_content/Engagement/bubble-callout.png") 0 0 no-repeat;
  position: absolute;
  width: 16px;
  height: 29px;
}

.quickstart.bubble {
  -moz-transition: opacity .3s, margin-top .3s;
  -webkit-transition: opacity .3s, margin-top .3s;
  -o-transition: opacity .3s, margin-top .3s;
  transition: opacity .3s, margin-top .3s;
  opacity: 0;
  margin-top: 20px;
  max-width: 450px;
}

.quickstart.bubble.shown {
  opacity: 1;
  margin-top: 0;
}

.quickstart.bubble .bubble-callout.from-bottom {
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
  top: -22px;
}

.quickstart.bubble .bubble-callout.from-top {
  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
  transform: rotate(-90deg);
  bottom: -22px;
}

.quickstart.bubble .bubble-callout.from-right {
  left: -16px;
}

.quickstart.bubble .bubble-callout.from-left {
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -o-transform: rotate(180deg);
  transform: rotate(180deg);
  right: -16px;
}

.quickstart.bubble footer {
  float: right;
}

.targetless-bubble {
  margin: 50px;
}

.bubble .bubble-spinner {
  background: url("../../_content/spinner.gif") 0 0 no-repeat;
  width: 16px;
  height: 16px;
  display: inline-block;
}

/******************/
/* Bubble Mini control overrrides */
/******************/
.quickstart.bubble.mini {
  /* color is hard-coded to match the callout image color */
  background-color: #68217a;
  border: 1px solid #68217a;
  color: rgba( 255, 255, 255 ,  1 );
  color: rgba( var(--palette-neutral-0,255, 255, 255) ,  1 );
  padding: 0;
  min-width: 130px;
}

.quickstart.bubble.mini .bubble-callout {
  background: url("../../_content/Engagement/bubble-callout-mini-dark.png") 0 0 no-repeat;
  position: absolute;
  width: 12px;
  height: 15px;
}

.quickstart.bubble.mini .quickstart-main-container {
  padding: 0;
}

.quickstart.bubble.mini .feature-content {
  border-bottom:  1px solid;
  border-bottom-color: rgba( 102, 102, 102 ,  1 );
  border-bottom-color: rgba( var(--palette-neutral-60,102, 102, 102) ,  1 );
  margin-bottom: 10px;
  padding-bottom: 7px;
}

.quickstart.bubble.mini .bubble-callout.from-bottom {
  top: -13px;
  right: 5px;
  left: auto;
}

.quickstart.bubble.mini .quickstart-content {
  display: none;
  background-color: rgba( 255, 255, 255 ,  1 );
  background-color: rgba( var(--palette-neutral-0,255, 255, 255) ,  1 );
  color: rgba( 0, 0, 0 ,  1 );
  color: rgba( var(--palette-neutral-100,0, 0, 0) ,  1 );
  padding: 5px;
  float: right;
  overflow: hidden;
}

.quickstart.bubble.mini h3 {
  margin: 0;
  padding: 4px 25px 5px 8px;
  cursor: pointer;
  white-space: nowrap;
}

.quickstart.bubble.mini .quickstart-close-button {
  background: url("../../_content/Engagement/icon-close-small-white.png") 0 0 no-repeat;
  right: 0;
  top: 5px;
}

.quickstart.bubble.mini .feature-content-bottom {
  float: right;
  padding-top: 10px;
  padding-right: 5px;
  margin-bottom: 5px;
}

.quickstart.bubble.mini .feature-content-text {
  padding: 0 10px;
}

.quickstart.bubble.mini .feature-content-img {
  margin: 10px auto;
  border:  1px solid;
  border-color: rgba( 218, 218, 218 ,  1 );
  border-color: rgba( var(--palette-neutral-10,218, 218, 218) ,  1 );
  max-width: 420px;
}

.quickstart.bubble.mini .feature-content-learn-more {
  background-color: #68217a;
  color: rgba( 255, 255, 255 ,  1 );
  color: rgba( var(--palette-neutral-0,255, 255, 255) ,  1 );
  line-height: 25px;
  display: block;
  padding: 2px 12px 2px 12px;
}

.quickstart.bubble.mini .feature-content-learn-more:hover,
.quickstart.bubble.mini .feature-content-learn-more:focus {
  opacity: 0.7;
  text-decoration: none;
}

/**************************/
/* Quickstart Dialog control */
/**************************/
.quickstart-dialog {
  font-size: 1.1em;
  width: 500px;
  height: 500px;
  padding: 30px 40px;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
}

.quickstart-dialog-icon {
  padding: 20px;
  text-align: center;
}

.quickstart-dialog-icon img {
  border:  1px solid;
  border-color: rgba( 200, 200, 200 ,  1 );
  border-color: rgba( var(--palette-neutral-20,200, 200, 200) ,  1 );
}

.quickstart-dialog .quickstart-title {
  font-size: 1.6em;
  margin: 0 0 20px 0;
}

.quickstart-dialog .quickstart-buttons-container {
  position: absolute;
  bottom: 30px;
  text-align: center;
}

.quickstart-dialog button {
  padding: 6px 20px;
  height: auto;
}

.sas-feedback-container {
  color: rgba( 0, 0, 0 ,  1 );
  color: rgba( var(--palette-neutral-100,0, 0, 0) ,  1 );
  cursor: default;
}

.sas-icon {
  width: 16px;
  height: 16px;
}

.sas-black-feedback-icon {
  background: url("../../_content/Engagement/black-smile-icon.png") no-repeat;
}

.sas-white-feedback-icon {
  background: url("../../_content/Engagement/white-smile-icon.png") no-repeat;
}

.sas-black-feedback-icon:hover,
.sas-white-feedback-icon:hover {
  cursor: pointer;
}

/* Float over the content - don't push it down. */
.sas-bubble-container {
  position: absolute;
}

/* Sentiment selection view */
.sas-sentiment-selection-container {
  /* Fill out the bubble */
  height: 100%;
  width: 100%;
  display: table;
}

.sas-sentiment-container {
  /* contained by sas-sentiment-selection-container */
  display: table-row;
  /* stop cursor from becoming text slection on sentiment text */
  cursor: pointer;
}

.sas-sentiment-container:hover {
  background-color: rgba( 222, 236, 249 ,  1 );
  background-color: rgba( var(--palette-primary-tint-30,222, 236, 249) ,  1 );
}

.sas-positive-sentiment-icon {
  background: url("../../_content/Engagement/black-smile-icon.png") no-repeat center;
}

.sas-negative-sentiment-icon {
  background: url("../../_content/Engagement/frown-icon.png") no-repeat center;
}

.sas-sentiment-container .sas-icon,
.sas-sentiment-text {
  padding: 8px 0px;
  display: table-cell;
}

.sas-sentiment-container .sas-icon {
  padding: 0px 17px;
}

/* Sentiment selection view */
/* Feedback submit view*/
.sas-feedback-submit-container.sas-dropdown {
  padding: 20px;
  overflow: auto;
  /* clears button float */
}

.sas-feedback-submit-title {
  cursor: default;
  font-family: Segoe UI Light,Segoe UI,Tahoma,Arial,Verdana;
  font-size: 20px;
  padding-bottom: 20px;
  line-height: 1;
}

.sas-feedback-submit-headline {
  font-size: 14px;
  font-family: Segoe UI,Tahoma,Arial,Verdana;
  color: rgba(0, 0, 0, .9);
  color: var(--text-primary-color,rgba(0, 0, 0, .9));
  padding-bottom: 10px;
  cursor: default;
  line-height: 1;
}

.sas-modal .sas-feedback-submit-headline {
  font-size: 14px;
  line-height: 18px;
  font-family: Segoe UI,Tahoma,Arial,Verdana;
  color: rgba(0, 0, 0, .55);
  color: var(--text-secondary-color,rgba(0, 0, 0, .55));
  margin: 14px 0 0 0;
  padding-bottom: 6px;
  cursor: default;
}

.sas-feedback-submit-textarea-container {
  padding-bottom: 10px;
}

.sas-feedback-submit-container textarea {
  width: 510px;
  height: 100px;
  border:  solid 1px;
  border-color: rgba( 234, 234, 234 ,  1 );
  border-color: rgba( var(--palette-neutral-8,234, 234, 234) ,  1 );
  overflow: auto;
}

.sas-modal textarea:focus {
  outline: none;
}

.sas-modal-btn {
  /* sizing */
  height: 32px;
  min-width: 90px;
  font-size: 14px;
  line-height: 18px;
  padding: 0 12px;
  float: right;
  outline: 0;
  margin: 0 0 0 8px;
}

.sas-feedback-submit-container .sas-feedback-submit-btn {
  float: right;
  color: rgba( 255, 255, 255 ,  1 );
  color: rgba( var(--palette-neutral-0,255, 255, 255) ,  1 );
  /* text color */
  border: none;
  background-color: #68217a;
  /* button color */
  /* make the submit button bigger */
  padding: 7px 10px;
}

.sas-feedback-submit-container .sas-modal-feedback-submit-btn {
  float: right;
  color: rgba(255, 255, 255, 1);
  color: var(--text-on-communication-background,rgba(255, 255, 255, 1));
  /* text color */
  border: 2px solid rgba(0, 120, 212, 1);
  border: 2px solid var(--communication-background,rgba(0, 120, 212, 1));
  background-color: rgba(0, 120, 212, 1);
  background-color: var(--communication-background,rgba(0, 120, 212, 1));
  /* button color */
}

.sas-feedback-submit-container .sas-modal-feedback-cancel-btn {
  color: rgba(0, 0, 0, .9);
  color: var(--text-primary-color,rgba(0, 0, 0, .9));
  background-color: rgba( 200, 200, 200 ,  1 );
  background-color: rgba( var(--palette-neutral-20,200, 200, 200) ,  1 );
  border:  2px solid;
  border-color: rgba( 200, 200, 200 ,  1 );
  border-color: rgba( var(--palette-neutral-20,200, 200, 200) ,  1 );
}

.sas-feedback-submit-container input[type=button]:hover {
  opacity: .5;
  cursor: pointer;
}

.sas-modal.sas-feedback-submit-container .sas-modal-feedback-submit-btn:hover {
  opacity: 1;
  background-color: rgba( 43, 136, 216 ,  1 );
  background-color: rgba( var(--palette-primary-tint-10,43, 136, 216) ,  1 );
  border:  2px solid;
  border-color: rgba( 0, 90, 158 ,  1 );
  border-color: rgba( var(--palette-primary-shade-20,0, 90, 158) ,  1 );
}

.sas-modal.sas-feedback-submit-container .sas-modal-feedback-cancel-btn:hover {
  opacity: 1;
  border:  2px solid;
  border-color: rgba( 166, 166, 166 ,  1 );
  border-color: rgba( var(--palette-neutral-30,166, 166, 166) ,  1 );
}

.sas-modal .sas-privacy-link {
  font-size: 14px;
  line-height: 18px;
}

/* Text entry view*/
/* QuickStart overrides. */
.sas-feedback-container .quickstart-main-container {
  padding: 0;
}

/* allow a wider bubble */
.sas-feedback-container .quickstart.bubble.shown {
  max-width: 540px;
}

/* move bubble closer to the icon */
.sas-feedback-container .sas-expand-bottom .quickstart.bubble.shown {
  margin-top: -9px;
}

.sas-feedback-container .sas-expand-top .quickstart.bubble.shown {
  margin-top: 9px;
}

/* remove bubble expand animation */
.sas-feedback-container .quickstart.bubble {
  -moz-transition: none;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
}

/* allow for smaller bubbles */
.sas-feedback-container .quickstart.bubble.shown {
  /* 
     * Task to make QS bubbles more flexible: 
     * https://mseng.visualstudio.com/DefaultCollection/VSOnline/Acquisition/_workitems?id=524598 
     */
  min-width: 140px;
}

/* QuickStart overrides. */
/* Bowtie overrides */
.ui-dialog.bowtie-dialog-preview .ui-dialog-content.sas-feedback-submit-container {
  padding: 0 20px 24px 20px;
}

/* Bowtie overrides */
/***** End Engagement *****/
