/* Minimal CSS for WP eCards modal */
#wp-ecard-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

#wp-ecard-modal.wp-ecard-modal-open {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  #wp-ecard-modal {
    background: none;
    padding: 0;
  }
}

#wp-ecard-modal.wp-ecard-has-adminbar {
  top: 32px;
  height: calc(100vh - 32px);
}
@media (max-width: 782px) {
  #wp-ecard-modal.wp-ecard-has-adminbar {
    top: 46px;
    height: calc(100vh - 46px);
  }
}

#wp-ecard-modal-content {
  background: #fff;
  width: 100%;
  height: 100%;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 40px);
  padding: 18px 20px;
  position: relative;
  overflow: auto;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}
.wp-ecard-has-adminbar #wp-ecard-modal-content {
  margin-top: 0 !important;
}
@media (max-width: 782px) {
  .wp-ecard-has-adminbar #wp-ecard-modal-content {
    margin-top: 46px !important;
  }
}
#wp-ecard-modal-close {
  position: absolute;
  top: 38px;
  right: 37px;
  font-size: 40px;
  background: #fff;
  border: none;
  color: #000;
  cursor: pointer;
  z-index: 10000;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  line-height: 1;
}
@media (max-width: 600px) {
  #wp-ecard-modal-content {
    padding: 16px 4px 4px 4px;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 0;
    box-shadow: none;
  }
  #wp-ecard-modal-close {
    top: 8px;
    right: 8px;
    font-size: 32px;
  }
}
