.mr-iwa-button,
.mr-iwa-floating,
.mr-iwa-primary {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  text-decoration: none !important;
  cursor: pointer;
  font: inherit;
  box-sizing: border-box;
}

.mr-iwa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 52px;
  padding: .82rem 1.25rem;
  border-radius: 16px;
  background: #111827;
  color: #fff !important;
  font-weight: 800;
  line-height: 1.15;
  box-shadow: 0 14px 32px rgba(17, 24, 39, .2);
  transition: transform .18s ease, box-shadow .18s ease;
}

.mr-iwa-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(17, 24, 39, .25);
}

.mr-iwa-button-icon,
.mr-iwa-floating-icon {
  display: inline-grid;
  place-items: center;
  font-size: 1.2em;
  line-height: 1;
}

.mr-iwa-floating {
  position: fixed;
  z-index: 99990;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  max-width: calc(100vw - 36px);
  padding: 13px 18px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, .94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-weight: 800;
}

.mr-iwa-modal[hidden] {
  display: none !important;
}

.mr-iwa-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: end center;
  padding: 18px;
  opacity: 0;
  transition: opacity .22s ease;
}

.mr-iwa-modal.is-visible {
  opacity: 1;
}

.mr-iwa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mr-iwa-sheet {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(82vh, 720px);
  overflow: auto;
  padding: 28px 24px calc(24px + env(safe-area-inset-bottom));
  border-radius: 28px;
  background: #fff;
  color: #111827;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
  transform: translateY(24px) scale(.98);
  transition: transform .22s ease;
  text-align: left;
}

.mr-iwa-modal.is-visible .mr-iwa-sheet {
  transform: translateY(0) scale(1);
}

.mr-iwa-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.mr-iwa-app-mark {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 19px;
  background: #111827;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.04em;
  box-shadow: 0 14px 30px rgba(17, 24, 39, .24);
}

.mr-iwa-sheet h2 {
  margin: 0 42px 12px 0;
  color: #0f172a;
  font-size: clamp(24px, 5vw, 31px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.mr-iwa-message {
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
}

.mr-iwa-message p {
  margin: 10px 0;
}

.mr-iwa-steps {
  margin: 18px 0;
  padding: 0;
  list-style: none;
  counter-reset: mr-iwa-step;
}

.mr-iwa-steps li {
  counter-increment: mr-iwa-step;
  position: relative;
  min-height: 42px;
  margin: 12px 0;
  padding: 10px 10px 10px 52px;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
}

.mr-iwa-steps li::before {
  content: counter(mr-iwa-step);
  position: absolute;
  left: 10px;
  top: 9px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-weight: 900;
}

.mr-iwa-note {
  padding: 12px 14px;
  border-radius: 14px;
  background: #eef6ff;
  color: #1e3a5f;
}

.mr-iwa-primary {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  padding: 13px 18px;
  border-radius: 16px;
  background: #111827;
  color: #fff;
  font-weight: 850;
  font-size: 16px;
}

.mr-iwa-modal-open {
  overflow: hidden;
}

.mr-iwa-installed .mr-iwa-floating,
.mr-iwa-installed [data-mr-iwa-install] {
  display: none !important;
}

.mr-iwa-profile-modal .mr-iwa-app-mark {
  background: linear-gradient(135deg, #0a84ff, #5856d6);
}

.mr-iwa-profile-success {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 18px;
  padding: 14px;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  background: #f0fdf4;
  color: #166534;
}

.mr-iwa-profile-success > span {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.mr-iwa-profile-success strong,
.mr-iwa-profile-success p {
  display: block;
  margin: 0;
}

.mr-iwa-profile-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mr-profile-step;
}

.mr-iwa-profile-steps li {
  counter-increment: mr-profile-step;
  position: relative;
  margin: 12px 0;
  padding: 14px 14px 14px 58px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}

.mr-iwa-profile-steps li::before {
  content: counter(mr-profile-step);
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: #0a84ff;
  color: #fff;
  font-weight: 900;
}

.mr-iwa-profile-steps strong,
.mr-iwa-profile-steps span {
  display: block;
}

.mr-iwa-profile-steps strong {
  color: #0f172a;
  font-size: 16px;
}

.mr-iwa-profile-steps span {
  margin-top: 3px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.mr-iwa-profile-result {
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #eef6ff;
  color: #1e3a5f;
  text-align: center;
}

@media (min-width: 700px) {
  .mr-iwa-modal {
    place-items: center;
  }
}

@media (max-width: 520px) {
  .mr-iwa-floating {
    left: 18px;
    right: 18px;
    justify-content: center;
  }

  .mr-iwa-sheet {
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 24px;
  }
}

.mr-iwa-profile-alert {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fff7ed;
  color: #9a3412;
}

.mr-iwa-profile-alert--blue {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}

.mr-iwa-profile-alert strong,
.mr-iwa-profile-alert p {
  display: block;
  margin: 0;
}

.mr-iwa-profile-alert p {
  margin-top: 5px;
}

.mr-iwa-profile-path {
  margin: 16px 0;
  padding: 15px 16px;
  border: 2px solid #0a84ff;
  border-radius: 16px;
  background: #f0f7ff;
  text-align: center;
}

.mr-iwa-profile-path strong,
.mr-iwa-profile-path span {
  display: block;
}

.mr-iwa-profile-path strong {
  margin-bottom: 4px;
  color: #0f172a;
}

.mr-iwa-profile-path span {
  color: #0a5dc2;
  font-size: 17px;
  font-weight: 900;
}
