/* common */

.layer {
  opacity: 0;
  display: none;
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  bottom: safe(bottom, env);
  bottom: safe(bottom, constant);
}
.layer.show {
  opacity: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.layer-container {
  z-index: 120;
  overflow: hidden;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  min-width: 300px;
  max-width: 90vw;
  max-height: 80vh;
  background: #fff;
  border-radius: 8px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-box-shadow: 5px 5px 7px 0px rgba(0, 0, 0, 0.35);
          box-shadow: 5px 5px 7px 0px rgba(0, 0, 0, 0.35);
}
.layer-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid #dfdfdf;
}
.layer-header h2 {
  font-size: 1.2rem;
  font-weight: 500;
}
.layer-header .btn-icon {
  font-size: 1.3rem;
}
.layer-contents {
  overflow-y: auto;
  padding: 32px 24px 16px;
  line-height: 1.43;
}
.layer-contents:last-child {
  padding-bottom: 32px;
}
.layer-contents p {
  text-align: center;
}
.layer-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0;
  padding-top: 16px;
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), color-stop(28.57%, #fff));
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 28.57%);
}
.layer-footer .btn {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  height: 40px;
  font-size: 15px;
  line-height: 40px;
  border-radius: 0;
  margin:0;
}
.layer-footer .btn + .btn {
  margin-left: 0;
}

.btn {
  position: relative;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  cursor: pointer;
  -webkit-transition: background 0.35s;
  transition: background 0.35s;
  padding: 0 16px;
  height: 32px;
  font-size: 14px;
  line-height: 30px;
  border-radius: 8px;
}
.btn-primary {
  color: #fff;
  border: 1px solid #00a35f;
  background: #12bd7e;
}
.btn-primary:hover {
  background: #00a35f;
}
.btn-primary-line {
  color: #078c55;
  border: 1px solid #12bd7e;
  background: #fff;
}
.btn-primary-line:hover {
  background: #ddf3e9;
}