#eh-root form {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 16px;
  max-width: 468px;
  width: 100%;
  box-sizing: border-box;
}

/* client/src/components/atoms/TextLinkify/index.tsx の実装をコピー */
#eh-root > form > div.terms > pre > a,
#eh-root > form > fieldset > pre.description > a  {
  color: "#282e4e";
  position: relative;
  padding-right: 16px;
  text-decoration: none;
  transition: "all 0.6s ease-out";
  &:hover {
    text-decoration: underline;
  }
  &::after {
    content: "";
    background-image: url(/assets/img/icon_link-blank-key.svg);
    background-repeat: no-repeat;
    width: 14px;
    height: 14px;
    right: 0;
    bottom: 0;
    position: absolute;
  }
}

#eh-root ::placeholder {
  color: #bdbdbd;
}

#eh-root fieldset:not(.hide) {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: none;
}

#eh-root fieldset.utm {
  display: none;
}

#eh-root fieldset > div.heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  align-items: center;
}

#eh-root legend .title {
  display: inline;
  vertical-align: middle;
  width: auto;
  max-width: 270px;
  font-size: 14px;
}

#eh-root .required {
  margin-left: 4px;
  font-size: 10px;
  color: #ef0000;
  white-space: nowrap;
}

#eh-root .max-length {
  align-self: flex-end;
  font-size: 10px;
  font-weight: 500;
  line-height: 14px;
  color: #828282;
  white-space: nowrap;
}

#eh-root input[type="text"],
#eh-root select,
#eh-root textarea {
  padding: 16px;
  width: 100%;
  border-radius: 5px;
  border: 1px solid #bdbdbd;
  box-sizing: border-box;
}

#eh-root textarea {
  height: 100px;
  resize: vertical;
}

#eh-root input[type="text"],
#eh-root select {
  height: 50px;
}

#eh-root .container {
  display: flex;
  flex-direction: column;
}

#eh-root .container > legend {
  margin-bottom: 8px;
  font-size: 14px;
  cursor: pointer;
}

#eh-root .container > legend:last-child {
  margin-bottom: 0;
}

#eh-root .container input {
  width: 24px;
}

#eh-root .description {
  margin: 8px 0 0;
  font-size: 12px;
  font-style: normal;
  line-height: 17px;
  color: #828282;
  word-break: break-all;
  white-space: pre-wrap;
}

#eh-root .eh-terms,
#eh-root .terms,
#eh-root .terms-confirmation {
  padding: 0 16px;
}

#eh-root .eh-terms > pre {
  width: 100%;
  white-space: pre-wrap;
}

#eh-root .terms > pre {
  padding: 12px;
  width: calc(100% - 24px);
  height: 108px;
  background: #f5f5f5;
  border-radius: 5px;
  overflow-y: auto;
  color: #4f4f4f;
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  line-height: 17px;
  white-space: pre-wrap;
}

#eh-root .terms-confirmation > label {
  display: flex;
  align-items: center;
}

#eh-root .terms-confirmation > label > input {
  width: 24px;
}

#eh-root .terms-confirmation > label > p {
  margin: 8px 0;
  width: calc(100% - 24px);
  font-size: 14px;
}

#eh-root button {
  align-self: center;
  margin-top: 64px;
  width: 160px;
  height: 50px;
  color: white;
  background: #0077ff;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

#eh-root button:disabled {
  opacity: 0.5;
  cursor: default;
}

#eh-root .errorMessages ul {
  padding: 16px;
  border: 1px solid #ef0000;
  box-sizing: border-box;
  border-radius: 5px;
  color: #ef0000;
  line-height: 20px;
}

#eh-root .errorMessages ul li {
  margin-left: 16px;
  word-break: break-all;
}

#eh-root .error {
  background-color: #ffe2e5;
}

#eh-root .eh-maintenance {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto;
}

#eh-root .eh-maintenance > h2 {
  margin: 24px 0 0;
  font-size: 24px;
  font-weight: bold;
}

#eh-root .eh-maintenance > pre {
  margin: 24px 0 0;
  width: 320px;
  font-size: 16px;
  white-space: pre-wrap;
}

#eh-root .eh-maintenance > .maintenance-schedule {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid #bfc4d4;
  border-radius: 5px;
}

#eh-root .maintenance-schedule > h3 {
  margin: 0;
  font-weight: bold;
  font-size: 20px;
}

#eh-root .maintenance-schedule > p {
  margin: 16px 0 0;
  font-size: 20px;
}

#browser-alert {
  max-width: 696px;
  margin: auto;
  padding: 24px;
  margin-top: 20vh;
  background-color: #f4f5f6;
}

#browser-alert .container {
  padding: 48px 8px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0px 16px 64px -24px rgba(0, 41, 97, 0.32);
  background-color: #ffffff;
}

#browser-alert .container::before {
  display: block;
  margin: auto;
  content: "";
  width: 96px;
  height: 96px;
  background: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2294%22%20height%3D%2294%22%20viewBox%3D%220%200%2094%2094%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M47%200.5C21.3125%200.5%200.5%2021.5%200.5%2047C0.5%2072.6875%2021.3125%2093.5%2047%2093.5C72.5%2093.5%2093.5%2072.6875%2093.5%2047C93.5%2021.5%2072.5%200.5%2047%200.5ZM71.375%2022.625C83.5625%2035%2084.5%2053.75%2075.125%2066.875L27.125%2018.875C40.25%209.5%2059%2010.4375%2071.375%2022.625ZM22.4375%2071.5625C10.25%2059.1875%209.3125%2040.4375%2018.6875%2027.3125L66.6875%2075.3125C53.5625%2084.6875%2034.8125%2083.75%2022.4375%2071.5625Z%22%20fill%3D%22%237E8AA9%22%2F%3E%3C%2Fsvg%3E")
    no-repeat center center;
}

#browser-alert .title {
  margin: 24px;
  font-size: 24px;
  font-weight: bold;
}

#browser-alert .description {
  line-height: 22px;
}
