/*
 * @emas/js-base default theme
 */
ema-modal input[type="checkbox"] {
  display: none; }

ema-modal input[type="checkbox"]:checked ~ .modal,
ema-modal input[type="checkbox"]:checked ~ .modal-background {
  display: block;
  opacity: 1; }

ema-modal .modal-wrapper {
  z-index: 9996;
  display: block; }

ema-modal .modal-background {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  z-index: 9998;
  transition: opacity 200ms; }

ema-modal .modal {
  border-radius: var(--ema-border-radius, 3px 3px 3px 3px);
  background: var(--ema-background, white);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  min-height: 180px;
  min-width: 180px;
  opacity: 0;
  display: none;
  box-sizing: border-box;
  z-index: 9999;
  transition: opacity 200ms; }

ema-modal .modal-header {
  background-color: var(--ema-background, white);
  border-bottom: 1px solid #c5c9cd;
  box-sizing: border-box;
  padding: var(--ema-padding-md, 1rem); }
  ema-modal .modal-header .modal-title {
    margin: 0;
    box-sizing: border-box;
    font-weight: bold; }
  ema-modal .modal-header label {
    position: absolute;
    box-sizing: border-box;
    top: var(--ema-padding-md, 1rem);
    right: var(--ema-padding-md, 1rem);
    line-height: 50px;
    padding: 0 var(--ema-padding-md, 1rem) 0 var(--ema-padding-md, 1rem);
    margin-top: -1rem;
    margin-right: -0.8rem;
    cursor: pointer;
    z-index: 1; }
  ema-modal .modal-header label:hover img {
    opacity: 0.6; }
  ema-modal .modal-header.modal-header-centered {
    text-align: center; }
    ema-modal .modal-header.modal-header-centered .modal-title {
      text-align: center;
      padding-top: var(--ema-padding-xl, 2rem);
      margin: 0 auto; }
    ema-modal .modal-header.modal-header-centered label {
      right: 50%;
      margin-left: -8px; }
  ema-modal .modal-header.modal-header-no-title {
    border-bottom: none; }
    ema-modal .modal-header.modal-header-no-title label {
      top: var(--ema-padding-sm, 0.5rem); }

ema-modal .modal-content-render {
  padding: var(--ema-padding-md, 1rem); }
  ema-modal .modal-content-render.modal-content-centered {
    text-align: center;
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%); }
