
.dndod-wrapper {
  overflow:auto;
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  z-index:9998;
  background-color:rgba(0,0,0,0);
  transition-property:background-color;
  transition-duration:.25s;
  transform:translate3d(0,0,0);

  .dndod-popup {
    border-radius: var(--ema-border-radius, 3px);
    background: var(--ema-background, white);
    position:absolute;
    top:50%;
    left:50%;
    z-index:9999;
    min-width:260px;
    max-width:100%;
    min-height:70px;
    padding:40px 50px;
    text-align:center;
    box-shadow:var(--ema-box-shadow, 1px 1px 10px 1px #ccc);
    transform:translate(-50%, -50%);
    transition-property:top;
    transition-duration:.25s;

    .dndod-btn-close {
      display:block;
      overflow:hidden;
      position:absolute;
      top:3px;
      right:3px;
      width:30px;
      height:30px;
      margin:0;
      padding:0;
      border:0 none;
      font-family:sans-serif;
      font-size:2em;
      font-weight:lighter;
      line-height:1em;
      color:#c5c5c5;
      background-color:#fff;
      text-align:center;
      cursor:pointer;

      &:hover,
      &:focus{
        color:darken(#c5c5c5, 20%);
      }

      &:active {
        color:darken(#c5c5c5, 30%);
      }
    }

    .dndod-heading {
      font-size:1.4em;
      margin:0 0 20px;
    }

    .dndod-body {
      font-size:1.2em;
      line-height:1.4em;
      margin:20px 0;
    }

    &.dndod-text-left {
      text-align:left
    }

  }

  &.dndod-status-show {
    background-color:rgba(0,0,0,.3);
  }

  &.dndod-animate-from-top .dndod-popup {
    top:-50%;
  }

  &.dndod-animate-from-bottom .dndod-popup {
    top:150%;
  }

  &.dndod-animate-from-top.dndod-status-show .dndod-popup,
  &.dndod-animate-from-bottom.dndod-status-show .dndod-popup {
    top:50%;
  }

  &.dndod-oversize .dndod-popup {
    transform:translate(-50%, 0);
  }

  &.dndod-oversize.dndod-status-show .dndod-popup {
    margin:30px 0;
    top:0% !important;
    transition:none;
  }

  &.dndod-has-btn .dndod-popup {
    padding-bottom:90px;
  }

  &.dndod-no-outline .dndod-popup {
    outline:0 none;
    button {
      outline:0 none;
    }
  }

}

.dndod-custom-btn-wrapper {
  display: flex;
  position:absolute;
  left: 0;
  right:0;
  bottom:0;
  height:60px;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  .dndod-btn-custom {
    flex:auto;
    flex-grow:1;
    flex-basis: 0;
    width:auto;
    height:100%;
    border:0 none;
    margin:0;
    padding:0;
    font-size:1.1em;
    cursor:pointer;

    &:hover,
    &:focus{
      background-color:darken(#eaeaea, 5%);
    }

    &:active {
      background-color:darken(#eaeaea, 10%);
    }

    &.dndod-btn-default {
      background-color:#d8d8d8;
      color:#000;

      &:hover,
      &:focus{
        background-color:darken(#d8d8d8, 5%);
      }

      &:active {
        background-color:darken(#d8d8d8, 10%);
      }
    }

    &.dndod-btn-kakaobank {
      background-color:#ffde00;
      color:#000;

      &:hover,
      &:focus{
        background-color:darken(#ffde00, 5%);
      }

      &:active {
        background-color:darken(#ffde00, 10%);
      }
    }

    &.dndod-btn-primary {
      background-color:var(--ema-primary, #007bff);
      color:var(--ema-light, #f8f9fa);

      &:hover,
      &:focus{
        background:
                linear-gradient(
                    to top,
                    rgba(0, 0, 0, 0.05),
                    rgba(0, 0, 0, 0.05)
                )
                var(--ema-primary, #007bff);
      }

      &:active {
        background:
                linear-gradient(
                    to top,
                    rgba(0, 0, 0, 0.10),
                    rgba(0, 0, 0, 0.10)
                )
                var(--ema-primary, #007bff);
      }
    }

    &.dndod-btn-danger {
      background-color:var(--ema-danger, #dc3545);
      color:var(--ema-color, #343a40);

      &:hover,
      &:focus{
        background:
                linear-gradient(
                                to top,
                                rgba(0, 0, 0, 0.05),
                                rgba(0, 0, 0, 0.05)
                )
                var(--ema-danger, #dc3545);
      }

      &:active {
        background:
                linear-gradient(
                                to top,
                                rgba(0, 0, 0, 0.10),
                                rgba(0, 0, 0, 0.10)
                )
                var(--ema-danger, #dc3545);
      }
    }

    &.dndod-btn-warning {
      background-color:#ffdd57;
      color:rgba(0, 0, 0, 0.7);

      &:hover,
      &:focus{
        background-color:darken(#ffdd57, 5%);
      }

      &:active {
        background-color:darken(#ffdd57, 10%);
      }
    }

    &.dndod-btn-success {
      background-color:var(--ema-success, #28a745);;
      color:var(--ema-color, #343a40);

      &:hover,
      &:focus{
        background:
                linear-gradient(
                                to top,
                                rgba(0, 0, 0, 0.05),
                                rgba(0, 0, 0, 0.05)
                )
                var(--ema-success, #28a745);
      }

      &:active {
        background:
                linear-gradient(
                                to top,
                                rgba(0, 0, 0, 0.10),
                                rgba(0, 0, 0, 0.10)
                )
                var(--ema-success, #28a745);
      }
    }

    &.dndod-btn-info {
      background-color:var(--ema-primary, #007bff);
      color:var(--ema-color, #343a40);

      &:hover,
      &:focus{
        background:
                linear-gradient(
                    to top,
                    rgba(0, 0, 0, 0.05),
                    rgba(0, 0, 0, 0.05)
                )
                var(--ema-primary, #007bff);
        //background-color:darken(var(--ema-primary, #007bff), 5%);
      }

      &:active {
        background:
                linear-gradient(
                    to top,
                    rgba(0, 0, 0, 0.10),
                    rgba(0, 0, 0, 0.10)
                )
                var(--ema-primary, #007bff);
        //background-color:darken(var(--ema-primary, #007bff), 10%);
      }
    }
  }
}


