:root{
  --eb-modal-z: 2200;
  --eb-modal-backdrop: rgba(0,0,0,.55);
  --eb-modal-radius: 10px;
  --eb-modal-shadow: 0 10px 40px rgba(0,0,0,.3);
}

.eb-modal{
  position: fixed;
  inset: 0;
  z-index: var(--eb-modal-z);
  display: none;
}

.eb-modal.is-open{
  display: block;
}

.eb-modal__backdrop{
  position: absolute;
  inset: 0;
  background: var(--eb-modal-backdrop);
}

.eb-modal__dialog{
  position: relative;
  max-width: 760px;
  margin: 10vh auto;
  background: #fff;
  border-radius: var(--eb-modal-radius);
  overflow: hidden;
  box-shadow: var(--eb-modal-shadow);
}

@media (max-width: 768px){
  .eb-modal__dialog{
    max-width: calc(100% - 24px);
    margin: 6vh auto;
  }
}

.eb-modal__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.eb-modal__title{
  font-weight: 600;
}

.eb-modal__body{
  padding: 12px;
}

.eb-modal__input{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.2;
}

.eb-modal__input:focus{
  outline: none;
  border-color: rgba(13,110,253,.75);
  box-shadow: 0 0 0 3px rgba(13,110,253,.15);
}

.eb-modal__footer{
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.eb-modal__btn{
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}

.eb-modal__btn:hover{
  background: rgba(0,0,0,.03);
}

.eb-modal__btn.primary{
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

.eb-modal__btn.primary:hover{
  background: #0b5ed7;
}

.eb-modal__btn.danger{
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.eb-modal__btn.danger:hover{
  background: #bb2d3b;
}

.eb-modal__btn.close{
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}
