html.ests-firstorder-modal-open,
html.ests-firstorder-modal-open body {
  overflow: hidden;
}

.ests-firstorder-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.ests-firstorder-modal.is-active {
  display: block;
}

.ests-firstorder-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.ests-firstorder-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 461px;
  margin: 6vh auto 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.ests-firstorder-modal__title {
  padding: 16px 48px 16px 16px;
  font-weight: bold;
  text-transform: uppercase;
  color: #000;
}

.ests-firstorder-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 26px;
  cursor: pointer;
}

#js--sc--container.ests-firstorder-scratch {
	position: relative;
	margin: 0 auto;
	width: 461px;
	height: 300px;
	border: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	transform: unset !important;
	opacity: 1;
	animation: move 2s;
}
#js--sc--container.ests-firstorder-scratch:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/loader.gif");
  background-repeat: no-repeat;
  background-position: center center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms ease-in-out;
}

#js--sc--container.ests-firstorder-scratch.ests-firstorder-is-loading:before {
  opacity: 1;
}

#js--sc--container.ests-firstorder-scratch .sc__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #fff7f7 45%, #ffffff 100%);
}
#js--sc--container.ests-firstorder-scratch canvas {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	right: 0;
	width: 100%;
  z-index: 2;
  touch-action: none;
}

#js--sc--container.ests-firstorder-scratch img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.coupan-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.coupan-code__value {
  display: inline-block;
  padding: 10px 12px;
  background: #df0e0e;
  color: #fff;
  border-radius: 8px;
  letter-spacing: 1px;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
}

.ests-firstorder-copy {
  border: 0;
  background: #111827;
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.ests-firstorder-copy:hover {
  background: #0b1220;
}

.ests-firstorder-copy.is-copied {
  background: #16a34a;
}

.ests-firstorder-reveal {
  text-align: center;
  max-width: 380px;
}

.ests-firstorder-reveal__headline {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

.ests-firstorder-reveal__subhead {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.ests-firstorder-reveal__hint {
  margin-top: 10px;
  font-size: 13px;
  color: #4b5563;
}

#js-debug-cursor {
  position: absolute;
  top: 0;
  left: 0;
  background-color: yellow;
  width: 50px;
  height: 50px;
  z-index: 99;
  will-change: transform;
  -webkit-transition-duration: 300ms;
  transition-duration: 300ms;
}

.sc__wrapper {
  display: block;
  width: 100%;
  height: 300px;
  max-width: 300px;
  margin: 0 auto;
  border: 5px solid rgba(#FFF, 0.5);
}

 /* Where the scratchcard will be generate. */
.sc__container {
  position: relative;
  overflow: hidden;
  max-height: 300px;
  max-width: 300px;
}

.sc__inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

 /* Background image, the result... */
.sc__container > img {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

 /* The scratchcard generate with scratchcard-js */
.sc__container canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

 /* Scratchcard informations */
.sc__infos {
  text-align: center;
  height: 40px;
  line-height: 40px;
  margin-top: 5px;
  font-weight: bold;
  font-size: 16px;
}

.test {
  color: lightsalmon;
  font-size: 20px;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: white;
}

.modal-inner-wrap .datasection .sc__inner {
	text-align: center;
	font-weight: bold;
	color: #fff;
	background-color: #3c3c3c;
	width: 220px;
	margin: 0 auto;
	padding: 14px;
	border: 2px solid #df0e0e;
	position: absolute;
	top: 106px;
	left: 0;
	right: 0;
	height: auto;
}

.modal-content {
	padding: 0 !important;
}


.modal-footer button {
	background-color: #333;
	box-shadow: unset !important;
	color: #fff;
	font-size: 21px;
	padding: 14px 25px;
}

.modal-inner-wrap .modal-header {
	padding: 16px 0;
}
.modal-popup .modal-title {
	word-wrap: break-word;
	color: #000;
	font-weight: bold;
	padding-left: 15px;
	text-transform: uppercase;
}
@media only screen and (max-width: 550px) and (min-width:320px)  {

  .ests-firstorder-modal__dialog {
    max-width: 96vw;
    margin-top: 4vh;
  }

  #js--sc--container.ests-firstorder-scratch {
    width: 100%;
    max-width: 461px;
  }
}




