/*
 * @emas/components default theme
 */
:root {
  --ema-color: #343a40;
  --ema-primary: #007bff;
  --ema-secondary: #6c757d;
  --ema-success: #28a745;
  --ema-info: #17a2b8;
  --ema-warning: #ffc107;
  --ema-danger: #dc3545;
  --ema-light: #f8f9fa;
  --ema-dark: #343a40;
  --ema-background: #fff;
  --ema-background-diap: rgba(29, 29, 29, 0.97);
  --ema-border-color: #c5c9cd;
  --ema-border: 1px solid #c5c9cd;
  --ema-border-radius: 3px 3px 3px 3px;
  --ema-box-shadow: 1px 1px 10px 1px #ccc;
  --ema-margin: 0.25rem;
  --ema-margin-sm: 0.5rem;
  --ema-margin-md: 1rem;
  --ema-margin-lg: 1.5rem;
  --ema-margin-xl: 2rem;
  --ema-padding: 0.25rem;
  --ema-padding-sm: 0.5rem;
  --ema-padding-md: 1rem;
  --ema-padding-lg: 1.5rem;
  --ema-padding-xl: 2rem;
  --ema-gray-100: #f8f9fa;
  --ema-gray-200: #e9ecef;
  --ema-gray-300: #dee2e6;
  --ema-gray-400: #ced4da;
  --ema-gray-500: #adb5bd;
  --ema-gray-600: #868e96;
  --ema-gray-700: #495057;
  --ema-gray-800: #343a40;
  --ema-gray-900: #212529; }

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);
  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;
  overflow-y: auto; }

ema-modal .modal-align-top {
  margin: var(--ema-paddig, 15px) auto; }

ema-modal .modal-header {
  background-color: var(--ema-background, white);
  border-bottom: var(--ema-border, 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%); }
