.mrpoint {
  color: inherit;
  font-size: inherit;
}

.mrpoint-embed {
  position: fixed;
  bottom: 30px;
  background: #fff;
  max-width: 350px;
  -webkit-filter: drop-shadow(3px 3px 3px rgba(0, 0, 0, 0.2));
  -moz-filter: drop-shadow(3px 3px 3px rgba(0, 0, 0, 0.2));
  -ms-filter: drop-shadow(3px 3px 3px rgba(0, 0, 0, 0.2));
  filter: drop-shadow(3px 3px 3px rgba(0, 0, 0, 0.2));
  border-radius: 10px;
  overflow: hidden;
  z-index: 99999;
}

.mrpoint-embed__form {
  position: relative;
}

.mrpoint-embed.is-loading .mrpoint-embed__form::after {
  content: "";
  position: absolute;
  background-color: #fff;
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  opacity: 0.5;
}

.mrpoint-embed__loading-icon {
  display: none;
  position: absolute;
  top: calc(50% - 16px);
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 32px;
  animation: rotate-anim 1.5s linear infinite;
  z-index: 2;
}

.mrpoint-embed.is-loading .mrpoint-embed__loading-icon {
  display: block;
}

@keyframes rotate-anim {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.mrpoint-embed__loading-icon img {
  display: block;
}

.mrpoint-embed:not(.is-open) {
  cursor: pointer;
}

.mrpoint-embed__content {
  display: none;
  padding: 20px;
}

.mrpoint-embed.is-open .mrpoint-embed__content {
  display: block;
}

.mrpoint-embed__header {
  padding: 10px;
}

.mrpoint-embed__header-title {
  padding: 10px;
  font-size: 1.1em;
  font-weight: bold;
}

.mrpoint-embed.is-open .mrpoint-embed__header::after {
  display: block;
  content: "×";
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 26px;
  color: #fff;
  height: 1em;
  line-height: 1em;
  cursor: pointer;
}

.mrpoint-embed.is-open .mrpoint-embed__content label {
  width: 170px;
  display: inline-block;
}

.mrpoint-embed__rank,
.mrpoint-embed__current-point,
.mrpoint-embed__use-point,
.mrpoint-embed__apply-point,
.mrpoint-embed__discount {
  margin-bottom: 10px;
}

.mrpoint-embed__rank,
.mrpoint-embed__current-point {
  display: flex;
  align-items: center;
}

.mrpoint-embed__error {
  font-size: 0.9em;
  color: #cc3333;
  margin-bottom: 3px;
  font-weight: bold;
}

.mrpoint-embed__discount-header {
  display: flex;
}

.mrpoint-embed__discount input[name="use-point"] {
  width: 300px;
  max-width: 90%;
  margin-right: 10px;
  padding: 10px 12px;
  background: #f4f4f4;
  border: none;
  font-size: 20px;
  line-height: 1.6;
  text-align: right;
}

.mrpoint-embed__use-button,
.mrpoint-embed__use-button:hover {
  width: 100%;
  height: auto;
  padding: 10px 30px;
  border-radius: 2px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.05em;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.mrpoint-embed__use-point.is-apply {
  padding: 10px;
  border: 2px solid #ccc;
}

.mrpoint-embed__discount-point {
  display: none;
  font-weight: bold;
}

.mrpoint-embed__use-point.is-discount .mrpoint-embed__discount-point {
  display: block;
}

.mrpoint-embed__use-point .mrpoint-embed__apply-point {
  display: none;
}

.mrpoint-embed__use-point.is-apply .mrpoint-embed__apply-point {
  display: block;
}

.mrpoint-embed__apply-point-value {
  font-size: 26px;
  font-weight: bold;
}

.mrpoint-embed__use-point.is-apply .mrpoint-embed__discount {
  display: none;
}

.mrpoint-embed__desc {
  font-size: 0.9em;
}

.mrpoint-embed__use-point[disabled] {
  opacity: 0.5;
}

.mrpoint-embed__reset {
  text-align: center;
  margin-bottom: 4px;
}

.mrpoint-embed__reset-button {
  display: inline-block;
  text-decoration: underline;
  font-size: 14px;
  cursor: pointer;
}
