.mnci-wrapper{
  display:inline-flex;
  align-items:center;
}

/* ===== Trigger button ===== */

.mnci-btn{
  appearance:none;
  border:0;
  cursor:pointer;
  font:inherit;
}

.mnci-btn--chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.10);
  background:#ffffff;
  box-shadow: var(--mn-shadow-1);
  text-decoration:none;
  color:#0b2a4a;
  font-weight:700;
  font-size:14px;
  line-height:1;
  transition:transform .12s ease, background .12s ease, border-color .12s ease;
}

.mnci-btn--chip:hover{
  background:rgba(0,0,0,0.03);
  border-color:rgba(0,0,0,0.16);
  transform:translateY(-1px);
}

.mnci-btn__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:999px;
  background:var(--mn-link);
  color:#ffffff;
  font-size:11px;
  line-height:1;
  font-weight:800;
}

.mnci-btn__label{
  display:inline-block;
}

/* ===== Modal ===== */

.mnci-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  display:none;
}

.mnci-modal[aria-hidden="false"]{
  display:block;
}

.mnci-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(7, 21, 36, 0.64);
}

.mnci-modal__dialog{
  position:relative;
  z-index:2;
  width:min(760px, calc(100% - 32px));
  max-height:calc(100vh - 48px);
  overflow:auto;
  margin:24px auto;
  padding:22px 22px 20px;
  border-radius:18px;
  background:linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  border:1px solid rgba(0,0,0,.08);
  box-shadow:var(--mn-shadow-soft);
}

/* ===== Close ===== */

.mnci-modal__close{
  position:absolute;
  top:14px;
  right:14px;
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.10);
  background:#ffffff;
  box-shadow:var(--mn-shadow-1);
  color:#0b2a4a;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  transition:transform .12s ease, background .12s ease, border-color .12s ease;
}

.mnci-modal__close:hover{
  background:rgba(0,0,0,0.03);
  border-color:rgba(0,0,0,0.16);
  transform:translateY(-1px);
}

/* ===== Title / text ===== */

.mnci-modal__title{
  margin:0 0 14px;
  padding-right:46px;
  font-size:clamp(24px, 2.4vw, 30px);
  line-height:1.12;
  color:#0b2a4a;
  font-weight:700;
}

.mnci-context{
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:12px;
  background:#ffffff;
  border:1px solid #E6EEF9;
  color:#2A3B57;
  line-height:1.6;
  box-shadow:var(--mn-shadow-1);
}

.mnci-method{
  color:#2A3B57;
  font-size:15px;
  line-height:1.7;
}

.mnci-method p{
  margin:0 0 14px;
}

.mnci-mobile-summary{
  margin:0 0 16px;
  padding:14px 16px;
  border-radius:14px;
  background:#ffffff;
  border:1px solid #E6EEF9;
  box-shadow:var(--mn-shadow-1);
  color:#2A3B57;
}

.mnci-mobile-summary strong{
  color:#0b2a4a;
}

.mnci-modal__h{
  margin:22px 0 8px;
  font-size:18px;
  line-height:1.25;
  color:#0F1B2D;
  font-weight:900;
}

.mnci-method strong{
  color:var(--mn-link);
}

.mnci-method-link{
  margin:18px 0 0;
  padding-top:14px;
  border-top:1px dashed rgba(148,163,184,0.6);
}

.mnci-method-link a{
  color:var(--mn-link);
  text-decoration:none;
  font-weight:700;
}

.mnci-method-link a:hover{
  color:var(--mn-link-hover);
  text-decoration:underline;
}

/* ===== Scroll lock ===== */

html.mnci-modal-open,
body.mnci-modal-open{
  overflow:hidden;
}

/* ===== Mobile ===== */

@media (max-width: 767px){
  .mnci-wrapper{
    display:flex;
    width:100%;
  }

  .mnci-btn--chip{
    width:100%;
    justify-content:center;
  }

  .mnci-modal__dialog{
    width:min(100%, calc(100% - 16px));
    max-height:calc(100vh - 16px);
    margin:8px auto;
    padding:18px 16px 18px;
    border-radius:16px;
  }

  .mnci-modal__title{
    padding-right:42px;
    font-size:24px;
  }

  .mnci-method{
    font-size:14px;
    line-height:1.65;
  }

  .mnci-modal__h{
    font-size:17px;
  }
}