html.yaab-locked, html.yaab-locked body { overflow: hidden !important; }

#yaab-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  -webkit-tap-highlight-color: transparent;
}

#yaab-modal {
  position: relative;
  background: #fff;
  color: #222;
  width: 100%;
  max-width: 460px;
  border-radius: 8px;
  padding: 32px 28px 28px;
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  line-height: 1.6;
  box-sizing: border-box;
}

#yaab-modal .yaab-close {
  position: absolute;
  top: 8px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
#yaab-modal .yaab-close.yaab-pos-right  { right: 12px; }
#yaab-modal .yaab-close.yaab-pos-left   { left: 12px; }
#yaab-modal .yaab-close.yaab-pos-center { left: 50%; transform: translateX(-50%); }
#yaab-modal .yaab-close.yaab-pos-bottom-right { top: auto; bottom: 8px; right: 12px; }
#yaab-modal .yaab-close.yaab-pos-bottom-left  { top: auto; bottom: 8px; left: 12px; }
#yaab-modal .yaab-close.is-ready {
  opacity: 1;
  pointer-events: auto;
}
#yaab-modal .yaab-close:hover { color: #222; }

#yaab-modal .yaab-icon {
  margin: 0 auto 16px;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#yaab-modal .yaab-icon img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

#yaab-modal .yaab-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.4;
  color: #1a1a1a;
}

#yaab-modal .yaab-msg {
  font-size: 14px;
  color: #444;
  margin: 0 0 24px;
}

#yaab-modal .yaab-allow {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: #2f8df3;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  display: block;
  transition: background .15s;
}
#yaab-modal .yaab-allow:hover { background: #2376d4; }
#yaab-modal .yaab-allow:active { background: #1c63b5; }

@media (max-width: 480px) {
  #yaab-modal { padding: 24px 18px 20px; max-width: 92vw; }
  #yaab-modal .yaab-icon { width: 80px; height: 80px; }
  #yaab-modal .yaab-title { font-size: 17px; }
  #yaab-modal .yaab-msg { font-size: 13px; }
  #yaab-modal .yaab-allow { font-size: 15px; padding: 12px 18px; }
}
