*, *:before, *:after {
  box-sizing: border-box;
}


.flash {
  position: relative;
  width: 100%;
  max-width: 288px;
}
.flash svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flash .bg > div {
  position: absolute;
  z-index: -1;
}
.flash .bg .bg-icon {
  top: -52px;
  left: calc(50% - 52px);
  width: 104px;
  height: 104px;
  background: #2c3e4f;
  border-radius: 100%;
}
.flash .bg .bg-btns {
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: space-between;
  position: absolute;
  bottom: -38px;
  left: calc(50% - 88px);
  width: 176px;
}
.flash .bg .bg-btns:before, .flash .bg .bg-btns:after {
  content: "";
  display: block;
  width: 76px;
  height: 76px;
  background: #4B5E6B;
  border-radius: 100%;
}
.flash .inside {
  border: 4px solid #ffffff;
  border-radius: 6px;
  height: 230px;
  padding: 48px 25px 0;
}
.flash h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 52px;
  text-align: center;
}
.flash p {
  font-size: 20px;
  font-weight: 500;
  line-height: 29px;
}
.flash .btns {
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: space-between;
  position: absolute;
  bottom: -34px;
  left: calc(50% - 84px);
  width: 168px;
}
.flash button {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 100%;
  padding: 0;
  font-family: "brandon-grotesque", "Brandon Grotesque", sans-serif;
}
.flash button svg {
  will-change: transform;
  transition: all 300ms ease-out;
  transform-origin: center center;
  width: 56px;
  height: 56px;
  border-radius: 100%;
  background: white;
}
.flash button span {
    display: block;
    position: absolute;
    bottom: -26px;
    color: white;
    font-size: 14px;
    text-transform: uppercase;
}
.flash button:hover svg, .flash button:focus svg {
  transition: all 400ms cubic-bezier(0.6, 0, 0.1, 2);
  transform: scale(1.2);
}
.flash button:active svg {
  transition: all 150ms ease-in;
  transform: scale(0.9);
}
.flash .icon {
  position: absolute;
  top: -48px;
  left: calc(50% - 48px);
  width: 96px;
  height: 96px;
  border-radius: 100%;
  padding: 6px;
}
.flash .icon svg {
  width: 84px;
  height: 84px;
}
.flash.success .inside, .flash.success .icon, .flash.success button {
  background-color: #ff3131;
  color: white;
}

.flash.working .inside, .flash.working .icon, .flash.working button {
  background-color: #E1C55E;
}
.flash.working .bg .bg-btns, .flash.working .btns {
  justify-content: center;
}
.flash.working .bg .bg-btns:after, .flash.working .btns:after {
  display: none;
}
.flash.working button {
  pointer-events: none;
}
.flash.working button svg {
  background: rgba(255, 255, 255, 0.5);
}
.flash.error .inside, .flash.error .icon, .flash.error button {
  background-color: #C46465;
}
.flash.error .bg .bg-btns, .flash.error .btns {
  justify-content: center;
}
.flash.error .bg .bg-btns:after, .flash.error .btns:after {
  display: none;
}
.flash .icon circle:not(:first-child) {
  transform: scale(0);
  -webkit-animation: tsfm 100ms ease-out both;
          animation: tsfm 100ms ease-out both;
}
.flash .icon circle:nth-child(3) {
  transform-origin: 30px 42px;
}
.flash .icon circle:nth-child(4) {
  transform-origin: 54px 42px;
}

.flash.working {
  -webkit-animation-delay: 500ms;
          animation-delay: 500ms;
}
.flash.working .icon circle:nth-child(2) {
  stroke-dasharray: 43.982;
  stroke-dashoffset: 43.982;
  will-change: stroke-dashoffset;
  -webkit-animation: sdo 400ms ease-out 950ms both;
          animation: sdo 400ms ease-out 950ms both;
  transform: scale(1);
}
.flash.working .icon circle:nth-child(3) {
  -webkit-animation-delay: 750ms;
          animation-delay: 750ms;
}
.flash.working .icon circle:nth-child(4) {
  -webkit-animation-delay: 850ms;
          animation-delay: 850ms;
}
.flash.working button circle {
  opacity: 0;
  will-change: opacity;
}
.flash.working button circle:nth-child(1) {
  -webkit-animation: ellipsis-1 900ms ease-out infinite forwards;
          animation: ellipsis-1 900ms ease-out infinite forwards;
}
.flash.working button circle:nth-child(2) {
  -webkit-animation: ellipsis-2 900ms ease-out infinite forwards;
          animation: ellipsis-2 900ms ease-out infinite forwards;
}
.flash.working button circle:nth-child(3) {
  -webkit-animation: ellipsis-3 900ms ease-out infinite forwards;
          animation: ellipsis-3 900ms ease-out infinite forwards;
}
.flash.error {
  opacity: 0;
  -webkit-animation: jitter 225ms ease-in-out 2 both 750ms;
          animation: jitter 225ms ease-in-out 2 both 750ms;
}
.flash.error .icon path {
  stroke-dasharray: 26.661;
  stroke-dashoffset: 26.661;
  will-change: stroke-dashoffset;
  -webkit-animation: sdo 250ms ease-out 1200ms both;
          animation: sdo 250ms ease-out 1200ms both;
}
.flash.error .icon circle:nth-child(3) {
  -webkit-animation-delay: 1000ms;
          animation-delay: 1000ms;
}
.flash.error .icon circle:nth-child(4) {
  -webkit-animation-delay: 1100ms;
          animation-delay: 1100ms;
}
.flash.error button {
  transform-origin: center center;
  transform: rotate(90deg);
  will-change: transform;
  -webkit-animation: tsfm 570ms ease-out 1000ms both;
          animation: tsfm 570ms ease-out 1000ms both;
}
.flash.error button polyline {
  stroke-dasharray: 18.1;
  stroke-dashoffset: 18.1;
  will-change: stroke-dashoffset;
  -webkit-animation: sdo 200ms ease-out 1300ms both;
          animation: sdo 200ms ease-out 1300ms both;
}
.flash.error button path {
  stroke-dasharray: 66.376;
  stroke-dashoffset: 66.376;
  will-change: stroke-dashoffset;
  -webkit-animation: sdo 650ms ease-out 1400ms both;
          animation: sdo 650ms ease-out 1400ms both;
}
.flash.error button span {
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  -webkit-animation: tsfm-op 500ms cubic-bezier(0, 0.75, 0.25, 1) 1700ms both;
          animation: tsfm-op 500ms cubic-bezier(0, 0.75, 0.25, 1) 1700ms both;
}


@-webkit-keyframes tsfm {
  to {
    transform: none;
  }
}
@keyframes tsfm {
  to {
    transform: none;
  }
}
@-webkit-keyframes op {
  to {
    opacity: 1;
  }
}
@keyframes op {
  to {
    opacity: 1;
  }
}
@-webkit-keyframes sdo {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes sdo {
  to {
    stroke-dashoffset: 0;
  }
}
@-webkit-keyframes ellipsis-1 {
  0% {
    opacity: 0;
  }
  20%, 95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes ellipsis-1 {
  0% {
    opacity: 0;
  }
  20%, 95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@-webkit-keyframes ellipsis-2 {
  0%, 20% {
    opacity: 0;
  }
  40%, 95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes ellipsis-2 {
  0%, 20% {
    opacity: 0;
  }
  40%, 95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@-webkit-keyframes ellipsis-3 {
  0%, 40% {
    opacity: 0;
  }
  60%, 95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes ellipsis-3 {
  0%, 40% {
    opacity: 0;
  }
  60%, 95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@-webkit-keyframes tsfm-op {
  10% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}
@keyframes tsfm-op {
  10% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}
@-webkit-keyframes jitter {
  0% {
    transform: translateX(0px) translateY(0px);
    opacity: 0;
  }
  10% {
    transform: translateX(4px) translateY(4px);
    opacity: 0.8;
  }
  20% {
    transform: translateX(0px) translateY(0px);
    opacity: 0.47;
  }
  30% {
    transform: translateX(0px) translateY(4px);
    opacity: 0.3;
  }
  70% {
    transform: translateX(-2px) translateY(2px);
    opacity: 0.96;
  }
  80% {
    transform: translateX(0px) translateY(-4px);
    opacity: 0.9;
  }
  90% {
    transform: translateX(2px) translateY(-4px);
    opacity: 0.81;
  }
  100% {
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
}
@keyframes jitter {
  0% {
    transform: translateX(0px) translateY(0px);
    opacity: 0;
  }
  10% {
    transform: translateX(4px) translateY(4px);
    opacity: 0.8;
  }
  20% {
    transform: translateX(0px) translateY(0px);
    opacity: 0.47;
  }
  30% {
    transform: translateX(0px) translateY(4px);
    opacity: 0.3;
  }
  70% {
    transform: translateX(-2px) translateY(2px);
    opacity: 0.96;
  }
  80% {
    transform: translateX(0px) translateY(-4px);
    opacity: 0.9;
  }
  90% {
    transform: translateX(2px) translateY(-4px);
    opacity: 0.81;
  }
  100% {
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
}